aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Ghigonis <laurent@p1sec.com>2012-12-15 03:35:15 +0100
committerLaurent Ghigonis <laurent@p1sec.com>2012-12-15 03:35:15 +0100
commit3a4d32cc61cad16c1cb5da8542a394fa36ccd753 (patch)
treedd9b6131ca9b96800ddb44674d0341d671e090c1
parentrename ggnet_grouping_set() to ggnet_set_grouping(), to match ggnet_set_dns(). (diff)
downloadglouglou-3a4d32cc61cad16c1cb5da8542a394fa36ccd753.tar.xz
glouglou-3a4d32cc61cad16c1cb5da8542a394fa36ccd753.zip
add (struct ggnet *) in cb_nodename() arguments
-rw-r--r--libglouglou/libggnet.c2
-rw-r--r--libglouglou/libggnet.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/libglouglou/libggnet.c b/libglouglou/libggnet.c
index adde888..eb3d31b 100644
--- a/libglouglou/libggnet.c
+++ b/libglouglou/libggnet.c
@@ -52,7 +52,7 @@ ggnet_set_grouping(struct ggnet *net, int set,
void
ggnet_set_dns(struct ggnet *net, int set,
struct event_base *ev_base,
- void (*cb_nodename)(struct ggnet_node *))
+ void (*cb_nodename)(struct ggnet *, struct ggnet_node *))
{
net->use_dns = set;
if (set) {
diff --git a/libglouglou/libggnet.h b/libglouglou/libggnet.h
index e8c31c6..1caa64b 100644
--- a/libglouglou/libggnet.h
+++ b/libglouglou/libggnet.h
@@ -93,7 +93,7 @@ struct ggnet {
/* dns */
int use_dns;
struct ggnet_dns *ggdns;
- void (*cb_nodename)(struct ggnet_node *);
+ void (*cb_nodename)(struct ggnet *, struct ggnet_node *);
};
struct ggnet *ggnet_new(int);
@@ -102,7 +102,7 @@ void ggnet_set_grouping(struct ggnet *, int,
void (*cb_delgroup)(struct ggnet *, struct ggnet_nodegroup *));
void ggnet_set_dns(struct ggnet *net, int set,
struct event_base *ev_base,
- void (*cb_nodename)(struct ggnet_node *));
+ void (*cb_nodename)(struct ggnet *, struct ggnet_node *));
void ggnet_debug_set(struct ggnet *, int);
void ggnet_free(struct ggnet *);
struct ggnet_node *ggnet_node_add(struct ggnet *, struct in_addr *);