builds with warnings, still not linking

This commit is contained in:
Michael Jerris 2012-12-17 21:28:13 -05:00
parent ab3ac5ed99
commit 9d44329b2c
14 changed files with 66 additions and 23 deletions

View 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

View File

@ -49,7 +49,7 @@
#include "ccapi_device_info.h"
#include "conf_roster.h"
#include "reset_api.h"
#include "prlog.h"
//#include "prlog.h"
/*---------------------------------------------------------
*

View 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 "mozilla/Assertions.h"
//#include "mozilla/Assertions.h"
#include "cpr_types.h"
#include "cpr_stdlib.h"
#include "cpr_stdio.h"

View File

@ -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);

View 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

View File

@ -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

View File

@ -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__

View 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";

View 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"

View 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"

View File

@ -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"

View 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"

View 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"

View File

@ -13,12 +13,12 @@
#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