[or-cvs] Add some documentation to routerlist
Nick Mathewson
nickm at seul.org
Tue Nov 9 17:14:17 UTC 2004
Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/tmp/cvs-serv19981/src/or
Modified Files:
routerlist.c
Log Message:
Add some documentation to routerlist
Index: routerlist.c
===================================================================
RCS file: /home/or/cvsroot/src/or/routerlist.c,v
retrieving revision 1.180
retrieving revision 1.181
diff -u -d -r1.180 -r1.181
--- routerlist.c 9 Nov 2004 11:36:38 -0000 1.180
+++ routerlist.c 9 Nov 2004 17:14:15 -0000 1.181
@@ -1170,22 +1170,27 @@
return 0;
}
-int router_update_status_from_smartlist(routerinfo_t *router,
- time_t list_time,
- smartlist_t *running_list,
- int rr_format)
+/** As router_update_status_from_entry, but consider all entries in
+ * running_list. */
+int
+router_update_status_from_smartlist(routerinfo_t *router,
+ time_t list_time,
+ smartlist_t *running_list,
+ int rr_format)
{
smartlist_t *rl;
rl = smartlist_create();
smartlist_add(rl,router);
SMARTLIST_FOREACH(running_list, const char *, cp,
routers_update_status_from_entry(rl,list_time,cp,rr_format));
-
smartlist_free(rl);
return 0;
}
-void add_trusted_dir_server(const char *address, uint16_t port, const char *digest)
+/** Add to the list of authorized directory servers one at
+ * <b>address</b>:<b>port</b>, with identity key <b>digest</b>. */
+void
+add_trusted_dir_server(const char *address, uint16_t port, const char *digest)
{
trusted_dir_server_t *ent;
uint32_t a;
More information about the tor-commits
mailing list