Ignore:
Timestamp:
Jul 17, 2013 8:20:50 PM (9 years ago)
Author:
nanang
Message:

JNI projects:

  • More work on callbacks wrapper, i.e: pj_timer_heap_callback for pjsua_schedule_timer() and pjsua_logging_config::cb.
  • Map pjsua_call_dump() output buffer.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/jni/pjsip-apps/src/jni/callbacks.h.template

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