- Timestamp:
- Jul 17, 2013 8:20:50 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/jni/pjsip-apps/src/jni/callbacks.c.template
r4549 r4566 3 3 #include "callbacks.h" 4 4 5 /* 6 * Wrapper of pjsua_logging_config callback 7 */ 8 static PjsuaLoggingConfigCallback *pjsua_logging_config_cb = NULL; 9 10 void pjsua_logging_config_callback_proxy(int level, const char *data, int len) 11 { 12 PJ_UNUSED_ARG(len); 13 pjsua_logging_config_cb->on_log(level, data); 14 } 15 16 void setPjsuaLoggingConfigCallback(PjsuaLoggingConfigCallback *callback) 17 { 18 pjsua_logging_config_cb = callback; 19 } 20 21 22 /* 23 * Wrapper of pj_timer_heap_callback 24 */ 25 void pj_timer_heap_callback_proxy(pj_timer_heap_t *timer_heap, struct pj_timer_entry *entry) 26 { 27 PjTimerHeapCallback *cb = (PjTimerHeapCallback*)entry->user_data; 28 pj_assert(cb); 29 cb->on_timer(timer_heap, entry); 30 } 31 32 void setPjTimerHeapCallback(pj_timer_entry *entry, PjTimerHeapCallback *callback) 33 { 34 entry->user_data = callback; 35 } 36 37 38 /* 39 * Wrapper of pjsua_callback 40 */ 5 41 static PjsuaCallback* cb = NULL; 6 42 … … 15 51 }; 16 52 17 pjsua_callback* PJSUA_CALLBACK_PROXY= &my_cb_proxy;53 pjsua_callback* pjsua_callback_proxy = &my_cb_proxy;
Note: See TracChangeset
for help on using the changeset viewer.