gateway: add some comments
authorFerry Huberts <ferry.huberts@pelagic.nl>
Tue, 17 Jul 2012 11:04:02 +0000 (13:04 +0200)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Wed, 25 Jul 2012 06:55:06 +0000 (08:55 +0200)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
src/gateway_default_handler.c

index 22c4ee1..7851977 100644 (file)
@@ -18,11 +18,15 @@ static bool gw_def_finished_ipv4;
 static bool gw_def_finished_ipv6;
 static struct timer_entry *gw_def_timer;
 
+/* forward declarations */
 static void gw_default_startup_handler(void);
 static void gw_default_choosegw_handler(bool ipv4, bool ipv6);
 static void gw_default_update_handler(struct gateway_entry *);
 static void gw_default_delete_handler(struct gateway_entry *);
 
+/**
+ * Callback list for the gateway (default) handler
+ */
 static struct olsr_gw_handler gw_def_handler = {
   &gw_default_startup_handler,
   &gw_default_choosegw_handler,