mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-16 06:18:35 +00:00
builds with warnings, still not linking
This commit is contained in:
1 parent
ab3ac5ed99
commit
9d44329b2c
14 files changed
+66
-23
No files matched your search
@@ -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
|
||||
|
||||
@@ -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__
|
||||
|
||||
|
||||
Reference in new issue
Block a user