aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Ghigonis <laurent@p1sec.com>2012-12-15 03:31:39 +0100
committerLaurent Ghigonis <laurent@p1sec.com>2012-12-15 03:31:39 +0100
commit392500f23fc7c20010f70a3c71124ef9ff303c4c (patch)
tree7a93dbebf9475205369167ad08e3a1cc0019791a
parentvariable rename to avoid confusion (diff)
downloadglouglou-392500f23fc7c20010f70a3c71124ef9ff303c4c.tar.xz
glouglou-392500f23fc7c20010f70a3c71124ef9ff303c4c.zip
rename ggnet_grouping_set() to ggnet_set_grouping(), to match ggnet_set_dns().
fix usage in gg_map
-rw-r--r--gg_map/gg_map.c2
-rw-r--r--libglouglou/libggnet.c3
-rw-r--r--libglouglou/libggnet.h2
3 files changed, 3 insertions, 4 deletions
diff --git a/gg_map/gg_map.c b/gg_map/gg_map.c
index a246b8b..13c68c0 100644
--- a/gg_map/gg_map.c
+++ b/gg_map/gg_map.c
@@ -436,7 +436,7 @@ elm_main(int argc, char **argv)
_ggnet = ggnet_new(GGNET_MANAGE_CONNID_FALSE);
if (!_ggnet)
goto quit;
- ggnet_grouping_set(_ggnet, GGNET_GROUPING_TRUE,
+ ggnet_set_grouping(_ggnet, GGNET_GROUPING_TRUE,
_cb_ggnet_addgroup, _cb_ggnet_delgroup);
_ev_base = event_base_new();
diff --git a/libglouglou/libggnet.c b/libglouglou/libggnet.c
index 7367372..adde888 100644
--- a/libglouglou/libggnet.c
+++ b/libglouglou/libggnet.c
@@ -39,9 +39,8 @@ ggnet_new(int manage_connid)
*
* Note: Must be set before any use of ggnet
*/
-// XXX break API to ggnet_set_grouping()
void
-ggnet_grouping_set(struct ggnet *net, int set,
+ggnet_set_grouping(struct ggnet *net, int set,
void (*cb_addgroup)(struct ggnet *, struct ggnet_nodegroup *, struct ggnet_nodegroup *),
void (*cb_delgroup)(struct ggnet *, struct ggnet_nodegroup *))
{
diff --git a/libglouglou/libggnet.h b/libglouglou/libggnet.h
index cbcdc99..e8c31c6 100644
--- a/libglouglou/libggnet.h
+++ b/libglouglou/libggnet.h
@@ -97,7 +97,7 @@ struct ggnet {
};
struct ggnet *ggnet_new(int);
-void ggnet_grouping_set(struct ggnet *, int,
+void ggnet_set_grouping(struct ggnet *, int,
void (*cb_addgroup)(struct ggnet *, struct ggnet_nodegroup *, struct ggnet_nodegroup *),
void (*cb_delgroup)(struct ggnet *, struct ggnet_nodegroup *));
void ggnet_set_dns(struct ggnet *net, int set,