- 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.h.template
r4549 r4566 3 3 #include <pjsua-lib/pjsua.h> 4 4 5 /* 6 * Wrapper of pjsua_logging_config callback 7 */ 8 class PjsuaLoggingConfigCallback { 9 public: 10 virtual void on_log(int level, const char *data) {} 11 virtual ~PjsuaLoggingConfigCallback() {} 12 }; 13 5 14 #ifndef SWIG /* SWIG should ignore these */ 6 class PjsuaCallback; 7 extern void setPjsuaCallback(PjsuaCallback* callback); 8 extern pjsua_callback* PJSUA_CALLBACK_PROXY; 15 extern void pjsua_logging_config_callback_proxy(int level, const char *data, int len); 16 extern void setPjsuaLoggingConfigCallback(PjsuaLoggingConfigCallback *callback); 9 17 #endif 10 18 19 20 /* 21 * Wrapper of pj_timer_heap_callback 22 */ 23 class PjTimerHeapCallback { 24 public: 25 virtual void on_timer(pj_timer_heap_t *timer_heap, pj_timer_entry *entry) {} 26 virtual ~PjTimerHeapCallback() {} 27 }; 28 29 #ifndef SWIG /* SWIG should ignore these */ 30 extern void pj_timer_heap_callback_proxy(pj_timer_heap_t *timer_heap, pj_timer_entry *entry); 31 extern void setPjTimerHeapCallback(pj_timer_entry *entry, PjTimerHeapCallback *callback); 32 #endif 33 34 35 /* 36 * Wrapper of pjsua_callback 37 */ 11 38 class PjsuaCallback { 12 39 public: … … 14 41 virtual ~PjsuaCallback() {} 15 42 }; 43 44 #ifndef SWIG /* SWIG should ignore these */ 45 extern void setPjsuaCallback(PjsuaCallback* callback); 46 extern pjsua_callback* pjsua_callback_proxy; 47 #endif
Note: See TracChangeset
for help on using the changeset viewer.