[sr-dev] [kamailio/kamailio] cfg_rpc: extending the functionality of cfg.get command (#1321)

hdikme notifications at github.com
Fri Nov 24 14:54:54 CET 2017


hdikme commented on this pull request.



> +	str     group, var;
+	void    *val;
+	unsigned int    val_type;
+	int     ret, n;
+	unsigned int    *group_id;
+
+	n = rpc->scan(c, "SS", &group, &var);
+	/*  2: both group and variable name are present
+	 * -1: only group is present, print all variables in the group */
+	if(n<2) {
+		if (n == -1) {
+			var.s = NULL;
+			var.len = 0;
+		}
+		else return;
+	}

Thank you for the review, sure i'll send a new patch with the changes.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/1321#discussion_r152974588
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20171124/59e9fd9d/attachment.html>


More information about the sr-dev mailing list