]> sjero.net Git - linphone/commitdiff
Linphone DCCP Support: Configuration Settings for transport protocol and DCCP CCID
authorSamuel Jero <sj323707@ohio.edu>
Sat, 15 Jun 2013 22:34:25 +0000 (18:34 -0400)
committerSamuel Jero <sj323707@ohio.edu>
Sat, 15 Jun 2013 22:34:25 +0000 (18:34 -0400)
coreapi/linphonecore.c
coreapi/linphonecore.h

index 202519d76358fdd346be84d3c1274a1263502300..f9b5c0703ecd7ac0df2a4d1a62086d24cdb09979 100644 (file)
@@ -5866,7 +5866,6 @@ int linphone_core_get_video_dscp(const LinphoneCore *lc){
        return lp_config_get_int(lc->config,"rtp","video_dscp",0x2e);
 }
 
-
 /**
  * Sets the database filename where chat messages will be stored.
  * If the file does not exist, it will be created.
@@ -5885,4 +5884,18 @@ void linphone_core_set_chat_database_path(LinphoneCore *lc, const char *path){
        }
 }
 
+void linphone_core_set_dccp(const LinphoneCore *lc, bool_t val){
+       return lp_config_set_int(lc->config,"rtp", "dccp", val);
+}
+
+bool_t linphone_core_get_dccp(const LinphoneCore *lc){
+       return lp_config_get_int(lc->config,"rtp", "dccp", 0);
+}
 
+void linphone_core_set_ccid(const LinphoneCore *lc, int val){
+       return lp_config_set_int(lc->config,"rtp", "ccid", val);
+}
+
+int linphone_core_get_ccid(const LinphoneCore *lc){
+       return lp_config_get_int(lc->config,"rtp", "ccid", 3);
+}
index 50686a2c973934662dd43c8c3c958fe72240f111..f612f1dac0b30edbe0dccf3a4dd4cc54c5afb058 100644 (file)
@@ -1531,6 +1531,11 @@ int linphone_core_get_audio_dscp(const LinphoneCore *lc);
 void linphone_core_set_video_dscp(LinphoneCore *lc, int dscp);
 int linphone_core_get_video_dscp(const LinphoneCore *lc);
 
+void linphone_core_set_dccp(const LinphoneCore *lc, bool_t val);
+bool_t linphone_core_get_dccp(const LinphoneCore *lc);
+
+void linphone_core_set_ccid(const LinphoneCore *lc, int val);
+int linphone_core_get_ccid(const LinphoneCore *lc);
 
 #ifdef __cplusplus
 }