mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-31 07:34:19 +00:00
fix windows build issues from snapshot spandsp-20090131
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11602 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
0064924ba5
commit
356cfa02e8
124 files changed
+1675
-1143
No files matched your search
+12
-12
@@ -75,7 +75,7 @@ static void default_message_handler(int level, const char *text)
|
||||
}
|
||||
/*- End of function --------------------------------------------------------*/
|
||||
|
||||
int span_log_test(logging_state_t *s, int level)
|
||||
SPAN_DECLARE(int) span_log_test(logging_state_t *s, int level)
|
||||
{
|
||||
if (s && (s->level & SPAN_LOG_SEVERITY_MASK) >= (level & SPAN_LOG_SEVERITY_MASK))
|
||||
return TRUE;
|
||||
@@ -157,7 +157,7 @@ int span_log(logging_state_t *s, int level, const char *format, ...)
|
||||
}
|
||||
/*- End of function --------------------------------------------------------*/
|
||||
|
||||
int span_log_buf(logging_state_t *s, int level, const char *tag, const uint8_t *buf, int len)
|
||||
SPAN_DECLARE(int) span_log_buf(logging_state_t *s, int level, const char *tag, const uint8_t *buf, int len)
|
||||
{
|
||||
char msg[1024];
|
||||
int i;
|
||||
@@ -177,7 +177,7 @@ int span_log_buf(logging_state_t *s, int level, const char *tag, const uint8_t *
|
||||
}
|
||||
/*- End of function --------------------------------------------------------*/
|
||||
|
||||
int span_log_init(logging_state_t *s, int level, const char *tag)
|
||||
SPAN_DECLARE(int) span_log_init(logging_state_t *s, int level, const char *tag)
|
||||
{
|
||||
s->span_error = __span_error;
|
||||
s->span_message = __span_message;
|
||||
@@ -191,7 +191,7 @@ int span_log_init(logging_state_t *s, int level, const char *tag)
|
||||
}
|
||||
/*- End of function --------------------------------------------------------*/
|
||||
|
||||
int span_log_set_level(logging_state_t *s, int level)
|
||||
SPAN_DECLARE(int) span_log_set_level(logging_state_t *s, int level)
|
||||
{
|
||||
s->level = level;
|
||||
|
||||
@@ -199,7 +199,7 @@ int span_log_set_level(logging_state_t *s, int level)
|
||||
}
|
||||
/*- End of function --------------------------------------------------------*/
|
||||
|
||||
int span_log_set_tag(logging_state_t *s, const char *tag)
|
||||
SPAN_DECLARE(int) span_log_set_tag(logging_state_t *s, const char *tag)
|
||||
{
|
||||
s->tag = tag;
|
||||
|
||||
@@ -207,7 +207,7 @@ int span_log_set_tag(logging_state_t *s, const char *tag)
|
||||
}
|
||||
/*- End of function --------------------------------------------------------*/
|
||||
|
||||
int span_log_set_protocol(logging_state_t *s, const char *protocol)
|
||||
SPAN_DECLARE(int) span_log_set_protocol(logging_state_t *s, const char *protocol)
|
||||
{
|
||||
s->protocol = protocol;
|
||||
|
||||
@@ -215,7 +215,7 @@ int span_log_set_protocol(logging_state_t *s, const char *protocol)
|
||||
}
|
||||
/*- End of function --------------------------------------------------------*/
|
||||
|
||||
int span_log_set_sample_rate(logging_state_t *s, int samples_per_second)
|
||||
SPAN_DECLARE(int) span_log_set_sample_rate(logging_state_t *s, int samples_per_second)
|
||||
{
|
||||
s->samples_per_second = samples_per_second;
|
||||
|
||||
@@ -223,7 +223,7 @@ int span_log_set_sample_rate(logging_state_t *s, int samples_per_second)
|
||||
}
|
||||
/*- End of function --------------------------------------------------------*/
|
||||
|
||||
int span_log_bump_samples(logging_state_t *s, int samples)
|
||||
SPAN_DECLARE(int) span_log_bump_samples(logging_state_t *s, int samples)
|
||||
{
|
||||
s->elapsed_samples += samples;
|
||||
|
||||
@@ -231,25 +231,25 @@ int span_log_bump_samples(logging_state_t *s, int samples)
|
||||
}
|
||||
/*- End of function --------------------------------------------------------*/
|
||||
|
||||
void span_log_set_message_handler(logging_state_t *s, message_handler_func_t func)
|
||||
SPAN_DECLARE(void) span_log_set_message_handler(logging_state_t *s, message_handler_func_t func)
|
||||
{
|
||||
s->span_message = func;
|
||||
}
|
||||
/*- End of function --------------------------------------------------------*/
|
||||
|
||||
void span_log_set_error_handler(logging_state_t *s, error_handler_func_t func)
|
||||
SPAN_DECLARE(void) span_log_set_error_handler(logging_state_t *s, error_handler_func_t func)
|
||||
{
|
||||
s->span_error = func;
|
||||
}
|
||||
/*- End of function --------------------------------------------------------*/
|
||||
|
||||
void span_set_message_handler(message_handler_func_t func)
|
||||
SPAN_DECLARE(void) span_set_message_handler(message_handler_func_t func)
|
||||
{
|
||||
__span_message = func;
|
||||
}
|
||||
/*- End of function --------------------------------------------------------*/
|
||||
|
||||
void span_set_error_handler(error_handler_func_t func)
|
||||
SPAN_DECLARE(void) span_set_error_handler(error_handler_func_t func)
|
||||
{
|
||||
__span_error = func;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user