X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=blobdiff_plain;f=main.h;h=720a3c4ced4ee8eb3b1b5c7f90d6c7f1b9d2cd02;hp=4ea51b09508ce93bd2f61c055ba01a9b40b153d9;hb=1bfbfbf903777d13df3107fbc89bdaeb2af9f2d6;hpb=f1eb0ea3cc77016f59843055c28d7c5c76767623 diff --git a/main.h b/main.h index 4ea51b0..720a3c4 100644 --- a/main.h +++ b/main.h @@ -9,11 +9,32 @@ ** ** \*****************************************************************************/ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + #define NAME "LCR" #define DEFAULT_ENDPOINT_APP EndpointAppPBX -#define VERSION_STRING "0.2 (August 2007)" +#define VERSION_STRING "0.5 (Spring 2007)" extern int memuse; extern int mmemuse; @@ -26,7 +47,13 @@ extern int classuse; extern int fduse; extern int fhuse; +//extern pthread_mutex_t mutex_lcr; // lcr process mutex + +#ifdef SOCKET_MISDN +extern FILE *debug_fp; +#else extern int global_debug; +#endif #define PDEBUG(mask, fmt, arg...) _printdebug(__FUNCTION__, __LINE__, mask, fmt, ## arg) #define PERROR(fmt, arg...) _printerror(__FUNCTION__, __LINE__, fmt, ## arg) @@ -68,7 +95,6 @@ void debug(const char *function, int line, char *prefix, char *buffer); */ #define ISDN_LOAD 1024 // samples #define ISDN_MAXLOAD 2048 // samples -#define ISDN_TRANSMIT 256 // samples /* give sendmail program. if not inside $PATH, give absolute path here (e.g. "/usr/sbin/sendmail") */ @@ -104,19 +130,14 @@ void debug(const char *function, int line, char *prefix, char *buffer); #define BUDETECT ; #endif -#include -#include -#include -#include -#include -#include -//#include #ifdef __cplusplus extern "C" { #endif #ifndef SOCKET_MISDN -#include -#include <../i4lnet/net_l3.h> +#include +#include +#else +#include #endif #ifdef __cplusplus } @@ -141,7 +162,7 @@ extern "C" { #include "alawulaw.h" #include "tones.h" #include "crypt.h" -#include "admin_server.h" +#include "socket_server.h" #include "trace.h" extern double now_d; @@ -154,4 +175,10 @@ extern struct timezone now_tz; #define DIRECTION_OUT 1 #define DIRECTION_IN 2 +#if 0 +struct lcr_fdset { + struct mISDNport *mISDNport; + int b_index; +}; +#endif