summaryrefslogtreecommitdiffabout
path: root/src/dbrw.h
authorSergey Poznyakoff <gray@gnu.org.ua>2013-07-18 05:51:53 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2013-07-18 05:51:53 (GMT)
commitdc19c0288af974dd861d61478804b1d7543730be (patch) (side-by-side diff)
treed211e287444816ed0c034717fdf694928e6d5625 /src/dbrw.h
parent7b1b68c8a1c65ef33c39f494275eab91b6343658 (diff)
downloadvmod-dbrw-dc19c0288af974dd861d61478804b1d7543730be.tar.gz
vmod-dbrw-dc19c0288af974dd861d61478804b1d7543730be.tar.bz2
Remove leftover static data.
* src/dbrw.h (dbrw_connection) <matches,matchsize>: New members. * src/vmod_dbrw.c (matches,matchsize): Remove static data. (findmatch): Update accrodingly.
Diffstat (limited to 'src/dbrw.h') (more/less context) (ignore whitespace changes)
-rw-r--r--src/dbrw.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/dbrw.h b/src/dbrw.h
index 0b6f44e..7fe9faf 100644
--- a/src/dbrw.h
+++ b/src/dbrw.h
@@ -19,6 +19,7 @@
#include <string.h>
#include <errno.h>
#include <syslog.h>
+#include <regex.h>
struct dbrw_connection;
@@ -59,9 +60,11 @@ struct dbrw_config {
};
struct dbrw_connection {
- int state;
- struct dbrw_config *conf;
- void *data;
+ int state; /* Connection state */
+ struct dbrw_config *conf; /* Pointer to the configuration data */
+ regmatch_t *matches; /* Match map */
+ size_t matchsize; /* Total number of entries in match map */
+ void *data; /* Backend-specific data */
};
void dbrw_debug(const char *fmt, ...);

Return to:

Send suggestions and report system problems to the System administrator.