summaryrefslogtreecommitdiffstats
path: root/ipset.h
diff options
context:
space:
mode:
Diffstat (limited to 'ipset.h')
-rw-r--r--ipset.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/ipset.h b/ipset.h
index 3b41760..f71ff1c 100644
--- a/ipset.h
+++ b/ipset.h
@@ -146,7 +146,7 @@ struct settype {
void (*saveips) (struct set *set, void *data, size_t len, unsigned options);
/* Conver a single IP (binding) to string */
- char * (*bindip_tostring)(ip_set_ip_t ip, unsigned options);
+ char * (*bindip_tostring)(struct set *set, ip_set_ip_t ip, unsigned options);
/* Parse an IP at restoring bindings. FIXME */
void (*bindip_parse) (const char *str, ip_set_ip_t * ip);
@@ -167,6 +167,8 @@ extern void settype_register(struct settype *settype);
extern void exit_error(enum exittype status, char *msg, ...);
+extern char *binding_ip_tostring(struct set *set,
+ ip_set_ip_t ip, unsigned options);
extern char *ip_tostring(ip_set_ip_t ip, unsigned options);
extern char *ip_tostring_numeric(ip_set_ip_t ip);
extern void parse_ip(const char *str, ip_set_ip_t * ip);