summaryrefslogtreecommitdiffstats
path: root/main.h
diff options
context:
space:
mode:
authorSuper User2008-03-24 11:13:44 +0100
committerSuper User2008-03-24 11:13:44 +0100
commitd9d954e58d6acf8c3de95402110e691f0bc29688 (patch)
treef17628b6953b4afd485385e38a80e77f835d4373 /main.h
parentfixed dialtone bug (diff)
downloadlcr-d9d954e58d6acf8c3de95402110e691f0bc29688.tar.gz
lcr-d9d954e58d6acf8c3de95402110e691f0bc29688.tar.xz
lcr-d9d954e58d6acf8c3de95402110e691f0bc29688.zip
socket api work
modified: apppbx.cpp modified: cause.c modified: dss1.cpp modified: dss1.h modified: ie.cpp modified: interface.c modified: mISDN.cpp modified: mISDN.h modified: main.c modified: main.h modified: message.c modified: options.c modified: port.cpp modified: q931.h modified: route.c modified: socket_server.c modified: tones.c
Diffstat (limited to 'main.h')
-rw-r--r--main.h32
1 files changed, 25 insertions, 7 deletions
diff --git a/main.h b/main.h
index 61ffc80..42387b0 100644
--- a/main.h
+++ b/main.h
@@ -9,6 +9,27 @@
** **
\*****************************************************************************/
+#include <stdio.h>
+#include <stdlib.h>
+#include <stdarg.h>
+#include <unistd.h>
+#include <string.h>
+#include <signal.h>
+#include <time.h>
+#include <fcntl.h>
+#include <errno.h>
+#include <pthread.h>
+#include <dirent.h>
+#include <math.h>
+#include <sys/time.h>
+#include <sys/types.h>
+#include <sys/wait.h>
+#include <sys/stat.h>
+#include <sys/ioctl.h>
+#include <sys/file.h>
+#include <sys/mman.h>
+#include <sys/resource.h>
+
#define NAME "LCR"
#define DEFAULT_ENDPOINT_APP EndpointAppPBX
@@ -26,7 +47,11 @@ extern int classuse;
extern int fduse;
extern int fhuse;
+#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)
@@ -103,13 +128,6 @@ void debug(const char *function, int line, char *prefix, char *buffer);
#define BUDETECT ;
#endif
-#include <stdio.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <string.h>
-#include <time.h>
-#include <sys/time.h>
-//#include <asm/bitops.h>
#ifdef __cplusplus
extern "C" {
#endif