X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=blobdiff_plain;f=options.h;h=7ea516638310e83a4814ff5035d6fff75064e90e;hp=df952b3a73771f8c9ebe1ebd8b8e8ac9aaf289a8;hb=5463e1b62a39ce417b610584e3d34a8bc30ac15e;hpb=ee848d3a9e333b3b91c0e40679c9d0512d511fc2 diff --git a/options.h b/options.h index df952b3..7ea5166 100644 --- a/options.h +++ b/options.h @@ -8,6 +8,9 @@ ** options header file ** ** ** \*****************************************************************************/ +#ifdef __cplusplus +extern "C" { +#endif struct options { char log[128]; /* location of log file */ @@ -20,17 +23,22 @@ struct options { char tones_dir[64]; /* directory of all tones/patterns */ char fetch_tones[256]; /* directories of tones to fetch */ char dummyid[32]; /* caller id for external calls if not available */ - int dsptones; /* tones will be generated via dsp.o 1=american 2=ger */ int schedule; /* run process in realtime @ given priority */ char email[128]; /* source email address */ char lock[128]; /* path of lock files */ int socketrights; /* rights of lcr admin socket */ + int socketuser; /* socket chown to this user */ + int socketgroup; /* socket chgrp to this group */ + int polling; + char loopback_ext[64]; /* loopback interface GSM side */ + char loopback_lcr[64]; /* loopback interface LCR side */ }; extern struct options options; -extern char options_error[256]; - -int read_options(void); +int read_options(char *options_error); +#ifdef __cplusplus +} +#endif