Ignore:
Timestamp:
Jul 17, 2013 8:20:50 PM (11 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/header.i

    r4558 r4566  
    11/* $Id$ */ 
     2 
     3/* TODO: 
     4 * - fix memory leaks in pj_str_t - java String typemaps 
     5 * - typemap for pj_str_t as output param for callback/director, 
     6 *   e.g: "st_text" param in pjsua_callback::on_call_replace_request() 
     7 * - workaround for nested struct/union, i.e: moving out inner classes to global scope 
     8 */ 
    29 
    310%module (directors="1") pjsua 
     
    1522%rename("%(strip:[pjsua_])s", %$isfunction) ""; 
    1623 
     24/* Suppress pjsua_schedule_timer2(), app can still use pjsua_schedule_timer() */ 
     25%ignore pjsua_schedule_timer2; 
     26 
     27/* Suppress aux function pjsua_resolve_stun_servers(), usually app won't need this 
     28 * as app can just simply configure STUN server to use STUN. 
     29 */ 
     30%ignore pjsua_resolve_stun_servers; 
     31 
    1732/* Map 'void *' simply as long, app can use this "long" as index of its real user data */ 
    1833%apply long long { void * }; 
     
    2641%apply bool { pj_bool_t }; 
    2742 
     43/* Map pjsua_call_dump() output buffer */ 
     44%apply (char *STRING, size_t LENGTH) { (char *buffer, unsigned maxlen) }; 
     45 
    2846/* Map "int*" & "unsigned*" as input & output */ 
    2947%apply unsigned *INOUT  { unsigned * }; 
     
    3351%apply int      *INOUT  { pj_stun_nat_type * }; 
    3452%apply int      *INOUT  { pjsip_status_code * }; 
     53%apply pj_str_t *INOUT  { pj_str_t *p_contact }; 
     54 
     55/* Apply array of integer on array of enum */ 
    3556%apply int[ANY]         { pjmedia_format_id dec_fmt_id[ANY] }; 
    36 %apply pj_str_t *INOUT  { pj_str_t *p_contact }; 
    3757 
    3858/* Handle members typed array of pj_str_t */ 
Note: See TracChangeset for help on using the changeset viewer.