- Timestamp:
- Jul 11, 2013 5:35:05 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/jni/pjsip-apps/src/jni/header.i
r4549 r4557 16 16 17 17 /* Map 'void *' simply as long, app can use this "long" as index of its real user data */ 18 %apply long { void * };18 %apply long long { void * }; 19 19 20 20 /* Handle void *[ANY], e.g: pjsip_tx_data::mod_data, pjsip_transaction::mod_data */ 21 21 //%ignore pjsip_tx_data::mod_data; 22 22 //%ignore pjsip_transaction::mod_data; 23 %apply long [ANY]{ void *[ANY] };23 %apply long long[ANY] { void *[ANY] }; 24 24 25 25 /* Map "int*" & "unsigned*" as input & output */ 26 26 %apply unsigned *INOUT { unsigned * }; 27 %apply int 27 %apply int *INOUT { int * }; 28 28 29 29 /* Map the following args as input & output */ 30 %apply int *INOUT { pj_stun_nat_type * }; 31 %apply int *INOUT { pjsip_status_code * }; 32 %apply int[ANY] { pjmedia_format_id dec_fmt_id[ANY] }; 30 %apply int *INOUT { pj_stun_nat_type * }; 31 %apply int *INOUT { pjsip_status_code * }; 32 %apply int[ANY] { pjmedia_format_id dec_fmt_id[ANY] }; 33 %apply pj_str_t *INOUT { pj_str_t *p_contact }; 33 34 34 /* Handle array of pj_str_t */ 35 JAVA_ARRAYSOFCLASSES(pj_str_t) 35 /* Handle members typed array of pj_str_t */ 36 MY_JAVA_MEMBER_ARRAY_OF_STR(pjsua_config, nameserver, nameserver_count) 37 MY_JAVA_MEMBER_ARRAY_OF_STR(pjsua_config, outbound_proxy, outbound_proxy_cnt) 38 MY_JAVA_MEMBER_ARRAY_OF_STR(pjsua_config, stun_srv, stun_srv_cnt) 39 MY_JAVA_MEMBER_ARRAY_OF_STR(pjsua_acc_config, proxy, proxy_cnt) 40 MY_JAVA_MEMBER_ARRAY_OF_STR(pjsua_config, stun_srv, stun_srv_cnt) 41 MY_JAVA_MEMBER_ARRAY_OF_STR(pjsua_config, stun_srv, stun_srv_cnt) 42 MY_JAVA_MEMBER_ARRAY_OF_STR(pjsip_generic_array_hdr, values, count) 36 43 37 44 /* Handle pointer-to-pointer-to-object as input & output */
Note: See TracChangeset
for help on using the changeset viewer.