- 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/header.i
r4558 r4566 1 1 /* $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 */ 2 9 3 10 %module (directors="1") pjsua … … 15 22 %rename("%(strip:[pjsua_])s", %$isfunction) ""; 16 23 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 17 32 /* Map 'void *' simply as long, app can use this "long" as index of its real user data */ 18 33 %apply long long { void * }; … … 26 41 %apply bool { pj_bool_t }; 27 42 43 /* Map pjsua_call_dump() output buffer */ 44 %apply (char *STRING, size_t LENGTH) { (char *buffer, unsigned maxlen) }; 45 28 46 /* Map "int*" & "unsigned*" as input & output */ 29 47 %apply unsigned *INOUT { unsigned * }; … … 33 51 %apply int *INOUT { pj_stun_nat_type * }; 34 52 %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 */ 35 56 %apply int[ANY] { pjmedia_format_id dec_fmt_id[ANY] }; 36 %apply pj_str_t *INOUT { pj_str_t *p_contact };37 57 38 58 /* Handle members typed array of pj_str_t */
Note: See TracChangeset
for help on using the changeset viewer.