X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=blobdiff_plain;f=options.h;h=c7f9f8f4bf28676608b89583e66b50e65d9cf037;hp=571ba8e24b770bb22f614aeaa7897e43cb3f4690;hb=51c27d3a306987244398b65e2f1d465a98386f2a;hpb=e9daaa4ef7ee895e6a8610ebb2166cc99c891a4e diff --git a/options.h b/options.h index 571ba8e..c7f9f8f 100644 --- a/options.h +++ b/options.h @@ -8,11 +8,12 @@ ** options header file ** ** ** \*****************************************************************************/ +#ifdef __cplusplus +extern "C" { +#endif struct options { char log[128]; /* location of log file */ - char ports[256]; /* use of ports */ -// int ptp; /* if layer 2 should be watched */ int deb; /* debugging */ char law; /* 'a' or 'u' law */ @@ -21,15 +22,24 @@ struct options { char tones_dir[64]; /* directory of all tones/patterns */ char fetch_tones[256]; /* directories of tones to fetch */ - char extensions_dir[64]; /* directory of extensions */ 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 gsm; /* enable gsm support */ + int polling; + char loopback_ext[64]; /* loopback interface GSM side */ + char loopback_lcr[64]; /* loopback interface LCR side */ }; extern struct options options; -int read_options(void); +int read_options(char *options_error); +#ifdef __cplusplus +} +#endif