Commit a2079c07 authored by Nick Mathewson's avatar Nick Mathewson 🤹
Browse files

Add some documentation to routerlist


svn:r2753
parent 548d4174
Loading
Loading
Loading
Loading
+11 −6
Original line number Original line Diff line number Diff line
@@ -1170,7 +1170,10 @@ int routers_update_status_from_entry(smartlist_t *routers,
  return 0;
  return 0;
}
}


int router_update_status_from_smartlist(routerinfo_t *router,
/** 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,
                                    time_t list_time,
                                    smartlist_t *running_list,
                                    smartlist_t *running_list,
                                    int rr_format)
                                    int rr_format)
@@ -1180,12 +1183,14 @@ int router_update_status_from_smartlist(routerinfo_t *router,
  smartlist_add(rl,router);
  smartlist_add(rl,router);
  SMARTLIST_FOREACH(running_list, const char *, cp,
  SMARTLIST_FOREACH(running_list, const char *, cp,
            routers_update_status_from_entry(rl,list_time,cp,rr_format));
            routers_update_status_from_entry(rl,list_time,cp,rr_format));
                                                
  smartlist_free(rl);
  smartlist_free(rl);
  return 0;
  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;
  trusted_dir_server_t *ent;
  uint32_t a;
  uint32_t a;