Server Wait On Clients System - Full Internal Documentation v1.7.4
Server Wait On Clients System.
Loading...
Searching...
No Matches
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.
 

Detailed Description

To parse and validate the config file.

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

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

Version
v1.1.0 ==== 26/11/2023

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