Ignore:
Timestamp:
Jul 11, 2013 5:35:05 AM (11 years ago)
Author:
nanang
Message:

JNI project:

  • mapped pj_str_t and java String
  • cosmetics: tabs consistency
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/jni/pjsip-apps/src/jni/header.i

    r4549 r4557  
    1616 
    1717/* 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 * }; 
    1919 
    2020/* Handle void *[ANY], e.g: pjsip_tx_data::mod_data, pjsip_transaction::mod_data */ 
    2121//%ignore pjsip_tx_data::mod_data; 
    2222//%ignore pjsip_transaction::mod_data; 
    23 %apply long[ANY] { void *[ANY] }; 
     23%apply long long[ANY]  { void *[ANY] }; 
    2424 
    2525/* Map "int*" & "unsigned*" as input & output */ 
    2626%apply unsigned *INOUT  { unsigned * }; 
    27 %apply int      *INOUT  { int * }; 
     27%apply int      *INOUT  { int * }; 
    2828 
    2929/* 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 }; 
    3334 
    34 /* Handle array of pj_str_t */ 
    35 JAVA_ARRAYSOFCLASSES(pj_str_t) 
     35/* Handle members typed array of pj_str_t */ 
     36MY_JAVA_MEMBER_ARRAY_OF_STR(pjsua_config, nameserver, nameserver_count) 
     37MY_JAVA_MEMBER_ARRAY_OF_STR(pjsua_config, outbound_proxy, outbound_proxy_cnt) 
     38MY_JAVA_MEMBER_ARRAY_OF_STR(pjsua_config, stun_srv, stun_srv_cnt) 
     39MY_JAVA_MEMBER_ARRAY_OF_STR(pjsua_acc_config, proxy, proxy_cnt) 
     40MY_JAVA_MEMBER_ARRAY_OF_STR(pjsua_config, stun_srv, stun_srv_cnt) 
     41MY_JAVA_MEMBER_ARRAY_OF_STR(pjsua_config, stun_srv, stun_srv_cnt) 
     42MY_JAVA_MEMBER_ARRAY_OF_STR(pjsip_generic_array_hdr, values, count) 
    3643 
    3744/* Handle pointer-to-pointer-to-object as input & output */ 
Note: See TracChangeset for help on using the changeset viewer.