Changeset 6075
- Timestamp:
- Sep 24, 2019 11:12:45 AM (5 years ago)
- Location:
- pjproject/trunk/pjsip-apps/src/swig
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/swig/importsym.py
r5776 r6075 56 56 # Hardcoded! 57 57 if sys.platform == 'win32': 58 PYCPARSER_DIR=" C:/devs/tools/pycparser"58 PYCPARSER_DIR="D:/work/tool/pycparser-master" 59 59 elif sys.platform == "linux2": 60 60 PYCPARSER_DIR="/home/bennylp/Desktop/opt/src/pycparser-master" -
pjproject/trunk/pjsip-apps/src/swig/java/android/app/src/main/java/org/pjsip/pjsua2/app/CallActivity.java
r5952 r6075 143 143 Display display; 144 144 int rotation; 145 pjmedia_orient orient;145 int orient; 146 146 147 147 wm = (WindowManager)this.getSystemService(Context.WINDOW_SERVICE); … … 340 340 } 341 341 342 if (ci.getState() .swigValue()<343 pjsip_inv_state.PJSIP_INV_STATE_CONFIRMED .swigValue())342 if (ci.getState() < 343 pjsip_inv_state.PJSIP_INV_STATE_CONFIRMED) 344 344 { 345 345 if (ci.getRole() == pjsip_role_e.PJSIP_ROLE_UAS) { … … 351 351 } 352 352 } 353 else if (ci.getState() .swigValue()>=354 pjsip_inv_state.PJSIP_INV_STATE_CONFIRMED .swigValue())353 else if (ci.getState() >= 354 pjsip_inv_state.PJSIP_INV_STATE_CONFIRMED) 355 355 { 356 356 buttonAccept.setVisibility(View.GONE); -
pjproject/trunk/pjsip-apps/src/swig/java/android/app/src/main/java/org/pjsip/pjsua2/app/MainActivity.java
r6036 r6075 583 583 } 584 584 585 public void notifyRegState( pjsip_status_codecode, String reason,585 public void notifyRegState(int code, String reason, 586 586 long expiration) 587 587 { … … 592 592 msg_str += "Registration"; 593 593 594 if (code .swigValue()/100 == 2)594 if (code/100 == 2) 595 595 msg_str += " successful"; 596 596 else -
pjproject/trunk/pjsip-apps/src/swig/java/android/app/src/main/java/org/pjsip/pjsua2/app/MyApp.java
r6036 r6075 28 28 interface MyAppObserver 29 29 { 30 abstract void notifyRegState(pjsip_status_code code, String reason, 31 long expiration); 30 abstract void notifyRegState(int code, String reason, long expiration); 32 31 abstract void notifyIncomingCall(MyCall call); 33 32 abstract void notifyCallState(MyCall call); … … 352 351 log_cfg.setWriter(logWriter); 353 352 log_cfg.setDecor(log_cfg.getDecor() & 354 ~(pj_log_decoration.PJ_LOG_HAS_CR .swigValue()|355 pj_log_decoration.PJ_LOG_HAS_NEWLINE .swigValue()));353 ~(pj_log_decoration.PJ_LOG_HAS_CR | 354 pj_log_decoration.PJ_LOG_HAS_NEWLINE)); 356 355 357 356 /* Write log to file (just uncomment whenever needed) */ -
pjproject/trunk/pjsip-apps/src/swig/java/sample.java
r6036 r6075 38 38 39 39 @Override 40 public void notifyRegState( pjsip_status_codecode, String reason, long expiration) {}40 public void notifyRegState(int code, String reason, long expiration) {} 41 41 42 42 @Override -
pjproject/trunk/pjsip-apps/src/swig/pjsua2.i
r6026 r6075 68 68 69 69 // Constants from PJSIP libraries 70 71 #ifdef SWIGJAVA 72 %include "enumtypeunsafe.swg" 73 %javaconst(1); 74 #endif 75 70 76 %include "symbols.i" 71 77 -
pjproject/trunk/pjsip-apps/src/swig/symbols.i
r6001 r6075 201 201 PJ_TURN_TP_UDP = 17, 202 202 PJ_TURN_TP_TCP = 6, 203 PJ_TURN_TP_TLS = 255203 PJ_TURN_TP_TLS = 56 204 204 } pj_turn_tp_type; 205 205 … … 234 234 PJMEDIA_EVENT_ORIENT_CHANGED = ((('T' << 24) | ('N' << 16)) | ('R' << 8)) | 'O', 235 235 PJMEDIA_EVENT_RX_RTCP_FB = ((('B' << 24) | ('F' << 16)) | ('T' << 8)) | 'R', 236 PJMEDIA_EVENT_AUD_DEV_ERROR = ((('R' << 24) | ('R' << 16)) | ('E' << 8)) | 'A' 236 PJMEDIA_EVENT_AUD_DEV_ERROR = ((('R' << 24) | ('R' << 16)) | ('E' << 8)) | 'A', 237 PJMEDIA_EVENT_VID_DEV_ERROR = ((('R' << 24) | ('R' << 16)) | ('E' << 8)) | 'V', 238 PJMEDIA_EVENT_MEDIA_TP_ERR = ((('R' << 24) | ('R' << 16)) | ('E' << 8)) | 'T' 237 239 } pjmedia_event_type; 238 240 … … 827 829 typedef enum pjsua_snd_dev_id 828 830 { 829 PJSUA_SND_DEFAULT_CAPTURE_DEV = PJMEDIA_AUD_DEFAULT_CAPTURE_DEV,830 PJSUA_SND_DEFAULT_PLAYBACK_DEV = PJMEDIA_AUD_DEFAULT_PLAYBACK_DEV,831 PJSUA_SND_NO_DEV = PJMEDIA_AUD_INVALID_DEV,831 PJSUA_SND_DEFAULT_CAPTURE_DEV = -1, 832 PJSUA_SND_DEFAULT_PLAYBACK_DEV = -2, 833 PJSUA_SND_NO_DEV = -3, 832 834 PJSUA_SND_NULL_DEV = -99 833 835 } pjsua_snd_dev_id;
Note: See TracChangeset
for help on using the changeset viewer.