[sr-dev] git:master:9c105b13: lib/binrpc: updated code for the new prototype of binrpc read function

Daniel-Constantin Mierla miconda at gmail.com
Wed Aug 26 19:08:55 CEST 2015


Module: kamailio
Branch: master
Commit: 9c105b13436c9eb3e61568e6f08050423da3e569
URL: https://github.com/kamailio/kamailio/commit/9c105b13436c9eb3e61568e6f08050423da3e569

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2015-08-26T19:06:43+02:00

lib/binrpc: updated code for the new prototype of binrpc read function

---

Modified: lib/binrpc/binrpc_api.c

---

Diff:  https://github.com/kamailio/kamailio/commit/9c105b13436c9eb3e61568e6f08050423da3e569.diff
Patch: https://github.com/kamailio/kamailio/commit/9c105b13436c9eb3e61568e6f08050423da3e569.patch

---

diff --git a/lib/binrpc/binrpc_api.c b/lib/binrpc/binrpc_api.c
index 656b623..e67c589 100644
--- a/lib/binrpc/binrpc_api.c
+++ b/lib/binrpc/binrpc_api.c
@@ -815,7 +815,7 @@ int binrpc_print_response(struct binrpc_response_handle *resp_handle, char* fmt)
 read_value:
 		val.name.s=0;
 		val.name.len=0;
-		p=binrpc_read_record(&resp_handle->in_pkt, p, end, &val, &ret);
+		p=binrpc_read_record(&resp_handle->in_pkt, p, end, &val, 0, &ret);
 		if (ret<0){
 			if (fmt)
 				putchar('\n');
@@ -898,7 +898,7 @@ int binrpc_parse_response(struct binrpc_val** vals, int* val_count,
 		val.type = BINRPC_T_ALL;
 		val.name.s = 0;
 		val.name.len = 0;
-		p = binrpc_read_record(&resp_handle->in_pkt, p, end, &val, &ret);
+		p = binrpc_read_record(&resp_handle->in_pkt, p, end, &val, 0, &ret);
 		if (ret<0){
 			if (ret==E_BINRPC_EOP){
 				break;
@@ -982,7 +982,7 @@ int binrpc_parse_error_response(
 	val.type=BINRPC_T_INT;
 	val.name.s=0;
 	val.name.len=0;
-	p = binrpc_read_record(&resp_handle->in_pkt, p, end, &val, &ret);
+	p = binrpc_read_record(&resp_handle->in_pkt, p, end, &val, 0, &ret);
 	if (ret < 0) {
 		snprintf(binrpc_last_errs, sizeof(binrpc_last_errs)-1,
 			"parse_error_response: error when parsing reply (code): %s", binrpc_error(ret)
@@ -992,7 +992,7 @@ int binrpc_parse_error_response(
 	*err_no = val.u.intval;
 
 	val.type=BINRPC_T_STR;
-	p = binrpc_read_record(&resp_handle->in_pkt, p, end, &val, &ret);
+	p = binrpc_read_record(&resp_handle->in_pkt, p, end, &val, 0, &ret);
 	if (ret < 0) {
 		snprintf(binrpc_last_errs, sizeof(binrpc_last_errs)-1,
 			"parse_error_response: error when parsing reply (str): %s", binrpc_error(ret)
@@ -1170,7 +1170,7 @@ int binrpc_response_to_text(
 		val.type=BINRPC_T_ALL;
 		val.name.s=0;
 		val.name.len=0;
-		p = binrpc_read_record(&resp_handle->in_pkt, p, end, &val, &ret);
+		p = binrpc_read_record(&resp_handle->in_pkt, p, end, &val, 0, &ret);
 		if (ret < 0) {
 			if (ret == E_BINRPC_EOP) {
 				printf("end of message detected\n");




More information about the sr-dev mailing list