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