mirror of https://github.com/sipwise/rtpengine.git
Change-Id: I472161e6368886240a4ba08e269542fd3f6e4d41pull/1072/head
parent
5001a02d44
commit
1147f856c0
@ -0,0 +1,8 @@
|
||||
#define SPAN_LOG_ARGS int level, const char *text
|
||||
#define PHASE_E_HANDLER_ARGS t30_state_t *s, void *user_data, int result
|
||||
INLINE void my_span_set_log(logging_state_t *ls, message_handler_func_t h) {
|
||||
span_log_set_message_handler(ls, h);
|
||||
}
|
||||
INLINE void my_span_mh(message_handler_func_t h) {
|
||||
span_set_message_handler(h);
|
||||
}
|
@ -0,0 +1,8 @@
|
||||
#define SPAN_LOG_ARGS void *user_data, int level, const char *text
|
||||
#define PHASE_E_HANDLER_ARGS void *user_data, int result
|
||||
INLINE void my_span_set_log(logging_state_t *ls, message_handler_func_t h) {
|
||||
span_log_set_message_handler(ls, h, NULL);
|
||||
}
|
||||
INLINE void my_span_mh(message_handler_func_t h) {
|
||||
span_set_message_handler(h, NULL);
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
#include <inttypes.h>
|
||||
#include <sys/types.h>
|
||||
#include <stdbool.h>
|
||||
#include <stddef.h>
|
||||
#include <spandsp/telephony.h>
|
||||
#include <spandsp/logging.h>
|
||||
#include "compat.h"
|
||||
#include "spandsp_logging.h"
|
||||
|
||||
void logfunc(SPAN_LOG_ARGS) {
|
||||
return;
|
||||
}
|
||||
|
||||
int main(void) {
|
||||
return 0;
|
||||
logging_state_t *ls = NULL;
|
||||
my_span_set_log(ls, logfunc);
|
||||
my_span_mh(NULL);
|
||||
return 0;
|
||||
}
|
Loading…
Reference in new issue