bmsd/rdconfig.h

Fri, 07 May 2021 13:20:53 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Fri, 07 May 2021 13:20:53 +0200
changeset 746
44d929ff268e
parent 0
033898178630
permissions
-rw-r--r--

Can start the daemon as root, and it will drop privileges.

#ifndef	_RDCONFIG_H
#define	_RDCONFIG_H

#define S(x) (x)?(x):"(null)"

typedef struct _key_list {
   char                *key;
   int                 (*prc)(char **);
   char                **dest;
} key_list;


void killconfig(void);
int  rdconfig(void);
int  wrconfig(void);


#endif

mercurial