diff extensions/rt_ereg/rtereg.h @ 1338:f1b65381c1e7

rt_ereg: Support config reload. Support grouped AVPs. Support multiple separate AVPs. Written for Effortel Technologies SA, published with their consent.
author Thomas Klausner <tk@giga.or.at>
date Tue, 09 Apr 2019 15:48:45 +0200
parents d59decafe9c0
children 566bb46cc73f
line wrap: on
line diff
--- a/extensions/rt_ereg/rtereg.h	Tue Apr 09 15:47:39 2019 +0200
+++ b/extensions/rt_ereg/rtereg.h	Tue Apr 09 15:48:45 2019 +0200
@@ -57,8 +57,11 @@
 extern struct rtereg_conf {
 	int			rules_nb; /* Number of rules in the configuration */
 	struct rtereg_rule 	*rules;   /* The array of rules */
-	
-	struct dict_object * avp; /* cache the dictionary object that we are searching */
+
+	int                     level;    /* how many levels of AVPs we have to dig down into */
+	int			finished; /* AVP fully configured, for configuration file reading */
+	struct dict_object      **avps;   /* cache the dictionary objects that we are searching */
 	
-} rtereg_conf;
+} *rtereg_conf;
 
+extern int rtereg_conf_size;
"Welcome to our mercurial repository"