[sr-dev] git:master: core: new rpc api to add values in an array
Daniel-Constantin Mierla
miconda at gmail.com
Wed Apr 23 23:11:32 CEST 2014
Module: sip-router
Branch: master
Commit: 83247604e8c79b2df8c1e80347a96201e31d49ba
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=83247604e8c79b2df8c1e80347a96201e31d49ba
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: Wed Apr 23 22:59:22 2014 +0200
core: new rpc api to add values in an array
- memeber named array_add
---
rpc.h | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/rpc.h b/rpc.h
index addc8c8..fbaea83 100644
--- a/rpc.h
+++ b/rpc.h
@@ -51,7 +51,8 @@ typedef void (*rpc_fault_f)(void* ctx, int code, char* fmt, ...); /* Si
typedef int (*rpc_add_f)(void* ctx, char* fmt, ...); /* Add a new piece of data to the result */
typedef int (*rpc_scan_f)(void* ctx, char* fmt, ...); /* Retrieve request parameters */
typedef int (*rpc_printf_f)(void* ctx, char* fmt, ...); /* Add printf-like formated data to the result set */
-typedef int (*rpc_struct_add_f)(void* ctx, char* fmt, ...); /* Create a new structure */
+typedef int (*rpc_struct_add_f)(void* ctx, char* fmt, ...); /* Add fields in a structure */
+typedef int (*rpc_array_add_f)(void* ctx, char* fmt, ...); /* Add values in an array */
typedef int (*rpc_struct_scan_f)(void* ctx, char* fmt, ...); /* Scan attributes of a structure */
typedef int (*rpc_struct_printf_f)(void* ctx, char* name, char* fmt, ...); /* Struct version of rpc_printf */
@@ -74,6 +75,7 @@ typedef struct rpc {
rpc_scan_f scan;
rpc_printf_f printf;
rpc_struct_add_f struct_add;
+ rpc_array_add_f array_add;
rpc_struct_scan_f struct_scan;
rpc_struct_printf_f struct_printf;
rpc_capabilities_f capabilities;
More information about the sr-dev
mailing list