]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
builds with warnings, still not linking
authorMichael Jerris <mike@jerris.com>
Tue, 18 Dec 2012 02:28:13 +0000 (21:28 -0500)
committerMichael Jerris <mike@jerris.com>
Tue, 18 Dec 2012 02:28:13 +0000 (21:28 -0500)
14 files changed:
libs/sipcc/Makefile.am
libs/sipcc/core/ccapp/ccprovider.c
libs/sipcc/core/gsm/fim.c
libs/sipcc/core/gsm/fsmdef.c
libs/sipcc/core/gsm/gsm_sdp.c
libs/sipcc/core/includes/CSFLog.h [new file with mode: 0644]
libs/sipcc/core/includes/ccapi.h
libs/sipcc/core/sdp/sdp_attr.c
libs/sipcc/core/sipstack/ccsip_messaging.c
libs/sipcc/core/sipstack/ccsip_pmh.c
libs/sipcc/core/sipstack/ccsip_spi_utils.c
libs/sipcc/core/sipstack/httpish.c
libs/sipcc/cpr/common/cpr_string.c
libs/sipcc/cpr/include/cpr_stdlib.h

index f76786e5a646f3e8178e44eead93b0f4d916a17f..d05e162ec344440bfd316e34aead219fee7cb61c 100644 (file)
@@ -74,7 +74,6 @@ core/sdp/sdp_base64.c \
 core/sdp/sdp_config.c \
 core/sdp/sdp_main.c \
 core/sdp/sdp_services_unix.c \
-core/sdp/sdp_services_win32.c \
 core/sdp/sdp_token.c \
 core/sdp/sdp_utils.c
 
@@ -104,8 +103,7 @@ core/sipstack/pmhutils.c \
 core/sipstack/sip_common_regmgr.c \
 core/sipstack/sip_common_transport.c \
 core/sipstack/sip_csps_transport.c \
-core/sipstack/sip_interface_regmgr.c \
-core/sipstack/sip_platform_win32_task.c
+core/sipstack/sip_interface_regmgr.c
 
 CORE_SIPSTACK_UNIX_SRC = core/sipstack/sip_platform_task.c
 
index f6c2d944effe9e644c16b2fc798e59a73de53fde..69bce566b718aebba198917e72bfc91ad37dca3f 100755 (executable)
@@ -49,7 +49,7 @@
 #include "ccapi_device_info.h"
 #include "conf_roster.h"
 #include "reset_api.h"
-#include "prlog.h"
+//#include "prlog.h"
 
 /*---------------------------------------------------------
  *
index e910db6c47ff8454a95828b139b695312245eba2..c435fbecb93f8ffedf57eea2eb129e130a156c44 100755 (executable)
@@ -2,7 +2,7 @@
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-#include "mozilla/Assertions.h"
+//#include "mozilla/Assertions.h"
 #include "cpr_types.h"
 #include "cpr_stdlib.h"
 #include "cpr_stdio.h"
index cec9eb5f996b6dc863ecfc677b3fbd28738ab8d4..69e30df4d1db6fa3cc6726dfb54e706dc284b92c 100755 (executable)
@@ -36,7 +36,7 @@
 #include "text_strings.h"
 #include "platform_api.h"
 #include "peer_connection_types.h"
-#include "prlog.h"
+//#include "prlog.h"
 #include "sessionHash.h"
 
 extern void update_kpmlconfig(int kpmlVal);
index 53d442c89de7b32db65043cf643ea0f39d2245e6..6a795200fd1eeb0a889202795575ff652aed622b 100644 (file)
@@ -21,8 +21,8 @@
 #include "sip_interface_regmgr.h"
 #include "platform_api.h"
 #include "vcm.h"
-#include "prlog.h"
-#include "plstr.h"
+//#include "prlog.h"
+//#include "plstr.h"
 #include "sdp_private.h"
 
 //TODO Need to place this in a portable location
diff --git a/libs/sipcc/core/includes/CSFLog.h b/libs/sipcc/core/includes/CSFLog.h
new file mode 100644 (file)
index 0000000..c215925
--- /dev/null
@@ -0,0 +1,45 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
+#ifndef CSFLOG_H
+#define CSFLOG_H
+
+#include <stdarg.h>
+
+typedef enum{
+       CSF_LOG_CRITICAL =1,
+       CSF_LOG_ERROR,
+       CSF_LOG_WARNING,
+       CSF_LOG_NOTICE,
+       CSF_LOG_INFO,
+       CSF_LOG_DEBUG
+} CSFLogLevel;
+
+
+
+#define CSFLogError(tag , format, ...) CSFLog( CSF_LOG_ERROR, __FILE__ , __LINE__ , tag , format , ## __VA_ARGS__ )
+#define CSFLogErrorV(tag , format, va_list_arg) CSFLogV(CSF_LOG_ERROR, __FILE__ , __LINE__ , tag , format , va_list_arg )
+#define CSFLogWarn(tag , format, ...) CSFLog( CSF_LOG_WARNING, __FILE__ , __LINE__ , tag , format , ## __VA_ARGS__ )
+#define CSFLogWarnV(tag , format, va_list_arg) CSFLogV(CSF_LOG_WARNING, __FILE__ , __LINE__ , tag , format , va_list_arg )
+#define CSFLogInfo(tag , format, ...) CSFLog( CSF_LOG_INFO, __FILE__ , __LINE__ , tag , format , ## __VA_ARGS__ )
+#define CSFLogInfoV(tag , format, va_list_arg) CSFLogV(CSF_LOG_INFO, __FILE__ , __LINE__ , tag , format , va_list_arg )
+#define CSFLogDebug(tag , format, ...) CSFLog(CSF_LOG_DEBUG, __FILE__ , __LINE__ , tag , format , ## __VA_ARGS__ )
+#define CSFLogDebugV(tag , format, va_list_arg) CSFLogV(CSF_LOG_DEBUG, __FILE__ , __LINE__ , tag , format , va_list_arg )
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+#if 0
+void CSFLog( CSFLogLevel priority, const char* sourceFile, int sourceLine, const char* tag , const char* format, ...);
+void CSFLogV( CSFLogLevel priority, const char* sourceFile, int sourceLine, const char* tag , const char* format, va_list args);
+#else
+#endif
+#define CSFLog(pri, file, line, tag, format, ...)
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+
index 666397742a5ea7812a9ebf8f539a776182434014..011b57e8fb81d39a6e9f3e49dd35df0694c4e4e2 100755 (executable)
@@ -5,7 +5,7 @@
 #ifndef _CCAPI_H_
 #define _CCAPI_H_
 
-#include "prtypes.h"
+//#include "prtypes.h"
 #include "cpr_types.h"
 #include "cpr_memory.h"
 #include "phone_types.h"
@@ -170,7 +170,7 @@ static const char *cc_feature_names[] = {
 /* This checks at compile-time that the cc_feature_names list
  * is the same size as the cc_group_feature_t enum
  */
-PR_STATIC_ASSERT(PR_ARRAY_SIZE(cc_feature_names) == CC_FEATURE_MAX + 1);
+//PR_STATIC_ASSERT(PR_ARRAY_SIZE(cc_feature_names) == CC_FEATURE_MAX + 1);
 
 #endif
 
@@ -292,7 +292,7 @@ static const char *cc_msg_names[] = {
 /* This checks at compile-time that the cc_msg_names list
  * is the same size as the cc_msgs_t enum
  */
-PR_STATIC_ASSERT(PR_ARRAY_SIZE(cc_msg_names) == CC_MSG_MAX + 1);
+//PR_STATIC_ASSERT(PR_ARRAY_SIZE(cc_msg_names) == CC_MSG_MAX + 1);
 
 #endif //__CC_MESSAGES_STRINGS__
 
index 177628ff3d3fd3c33d903a2ec27d8abc24fa4f4d..fadaceede8e880b687d502adcb440cf5372e0fae 100644 (file)
@@ -5,12 +5,12 @@
 #include <errno.h>
 #include <limits.h>
 
-#include "plstr.h"
+//#include "plstr.h"
 #include "sdp_os_defs.h"
 #include "sdp.h"
 #include "sdp_private.h"
 #include "sdp_base64.h"
-#include "mozilla/Assertions.h"
+//#include "mozilla/Assertions.h"
 #include "CSFLog.h"
 
 static const char* logTag = "sdp_attr";
index d9a79651e953c4fcc756ebbfc2b5a6443e9fe23a..515d0a90bc00652e19b71fb08896c495201e7cea 100644 (file)
@@ -2,7 +2,7 @@
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-#include "plstr.h"
+//#include "plstr.h"
 #include "cpr_types.h"
 #include "cpr_time.h"
 #include "cpr_stdio.h"
index e298993c0975d688fdd0abf417a5560a8b73d315..9717058a3a667c8fc34ae90cf89daa860b322945 100644 (file)
@@ -15,7 +15,7 @@
 #include <errno.h>
 #include <limits.h>
 
-#include "plstr.h"
+//#include "plstr.h"
 #include "cpr_types.h"
 #include "cpr_stdio.h"
 #include "cpr_stdlib.h"
index 97ce502d31c9a0b2333e5202140cdee16fe526eb..781bee2d4353de3ce2c4f3505419cf46cefa5e73 100755 (executable)
@@ -9,7 +9,7 @@
  * CCAPI callids, conversion from CCAPI to SIP cause codes and the
  * like.
  */
-#include "plstr.h"
+//#include "plstr.h"
 #include "cpr_types.h"
 #include "cpr_stdlib.h"
 #include "cpr_string.h"
index f909a7baf274bae9f0691af40b2198bab9766b43..ed4a87a24316d4b14c5c47cb8d9cf82dd745c1f5 100644 (file)
@@ -11,7 +11,7 @@
 #include <errno.h>
 #include <limits.h>
 
-#include "plstr.h"
+//#include "plstr.h"
 #include "cpr_types.h"
 #include "cpr_stdio.h"
 #include "cpr_stdlib.h"
index 13276e91354ac7633e9900b133cd317a756ad794..4330175c67efd4c4be8fcdbd7e28b2998832502b 100644 (file)
@@ -5,7 +5,7 @@
 #include <stdio.h>
 #include <stdarg.h>
 
-#include "mozilla/Assertions.h"
+//#include "mozilla/Assertions.h"
 #include "cpr_types.h"
 #include "cpr_stdlib.h"
 #include "cpr_string.h"
index 65e4c5558fa77b9209bc0388b7975cee429ad84c..da5d912f28d6ccd28faea45f0c010d7c64da19f6 100644 (file)
 #include <errno.h>
 #endif
 
-#include "mozilla/mozalloc.h"
+//#include "mozilla/mozalloc.h"
 
-#define cpr_malloc(a) moz_xmalloc(a)
-#define cpr_calloc(a, b) moz_xcalloc(a, b)
-#define cpr_realloc(a, b) moz_xrealloc(a, b)
-#define cpr_free(a) moz_free(a)
+#define cpr_malloc(a) malloc(a)
+#define cpr_calloc(a, b) calloc(a, b)
+#define cpr_realloc(a, b) realloc(a, b)
+#define cpr_free(a) free(a)
 
 #endif