Remove global variables; replace by stack passing.
[citadel.git] / citadel / modules / network / netconfig.h
index 4e1e2643323fa1072906f9bb981224171ea672f3..37e1e0c3e874bb8f48d370c72b5ea9242a99ea70 100644 (file)
@@ -7,12 +7,7 @@ struct  NetMap {
        char nexthop[SIZ];
 };
 
-
-NetMap *the_netmap;
-int netmap_changed;
-char *working_ignetcfg;
-
-void load_working_ignetcfg(void);
-void read_network_map(void);
-void write_network_map(void);
-int is_valid_node(char *nexthop, char *secret, char *node);
+char* load_working_ignetcfg(void);
+NetMap *read_network_map(void);
+void write_network_map(NetMap *the_netmap, int netmap_changed);
+int is_valid_node(char *nexthop, char *secret, char *node, char *working_ignetcfg, NetMap *the_netmap);