2009-04-18 14:14:26 +02:00
|
|
|
|
|
|
|
#ifndef __CONFFILE_H__
|
|
|
|
#define __CONFFILE_H__
|
|
|
|
|
2011-07-09 11:50:27 +02:00
|
|
|
#include <sys/types.h>
|
2020-02-01 13:15:56 -08:00
|
|
|
#include <stdint.h>
|
2011-07-09 11:50:27 +02:00
|
|
|
|
2009-04-18 17:18:37 +02:00
|
|
|
#include <confuse.h>
|
2009-04-18 14:14:26 +02:00
|
|
|
|
2009-06-12 11:09:58 +02:00
|
|
|
#define CONFFILE CONFDIR "/forked-daapd.conf"
|
|
|
|
|
2009-04-18 17:18:37 +02:00
|
|
|
extern cfg_t *cfg;
|
2010-04-02 18:28:43 +02:00
|
|
|
extern uint64_t libhash;
|
2011-07-09 11:50:27 +02:00
|
|
|
extern uid_t runas_uid;
|
|
|
|
extern gid_t runas_gid;
|
2009-04-18 14:14:26 +02:00
|
|
|
|
|
|
|
int
|
|
|
|
conffile_load(char *file);
|
|
|
|
|
|
|
|
void
|
|
|
|
conffile_unload(void);
|
|
|
|
|
|
|
|
#endif /* !__CONFFILE_H__ */
|