Server Wait On Clients System - API Documentation v1.8.3
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, 2025 Mark Grant

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

Version
v1.1.1 ==== 31/03/2025

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()

int validateportnos ( const struct confsection * ps)
static