X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=blobdiff_plain;f=options.h;h=ecf8244594cd27e9fde9fa3c17a6e3347ea1b458;hp=ecf7e3c46aebf0b2a7f321e81ad17f1eb835d676;hb=320159175adced71da64efa80e9334f7bcab96c8;hpb=fd2045584f7084d209607f4d717a66bea9afe88e diff --git a/options.h b/options.h index ecf7e3c..ecf8244 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,16 +22,23 @@ 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 */ - int nodtmf; /* use dtmf detection */ 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 */ }; extern struct options options; +extern char options_error[256]; + int read_options(void); +#ifdef __cplusplus +} +#endif