Server Wait On Clients System - API Documentation  v1.6.4
Server Wait On Clients System.
validateconfig.c File Reference

To parse and validate the config file. More...

#include <ctype.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <syslog.h>
#include <configmake.h>
#include "internal.h"
#include <libmgec/mge-errno.h>
#include <libmgesysutils/mge-configfile.h>
Include dependency graph for validateconfig.c:

Functions

static int validateportnos (const struct confsection *ps)
 
int swsd_validate_config (void)
 Parse and validate the config file. More...
 

Detailed Description

To parse and validate the config file.

Author
Copyright (C) 2017-2019, 2021, 2022 Mark Grant

Released under the GPLv3 only.
SPDX-License-Identifier: GPL-3.0-only

Version
v1.0.12 ==== 12/09/2022

Function Documentation

◆ swsd_validate_config()

int swsd_validate_config ( void  )

Parse and validate the config file.

On error mge_errno is set.

Returns
0 on success, non-zero on failure.

◆ validateportnos()

static int validateportnos ( const struct confsection *  ps)
static