/** Return the canonical string containing the list of protocols
* that we support. */
const char *
-get_supported_protocols(void)
+protover_get_supported_protocols(void)
{
return
"Cons=1-2 "
"Relay=1-2";
}
-/** The protocols from get_supported_protocols(), as parsed into a list of
- * proto_entry_t values. Access this via get_supported_protocol_list. */
+/** The protocols from protover_get_supported_protocols(), as parsed into a
+ * list of proto_entry_t values. Access this via
+ * get_supported_protocol_list. */
static smartlist_t *supported_protocol_list = NULL;
/** Return a pointer to a smartlist of proto_entry_t for the protocols
get_supported_protocol_list(void)
{
if (PREDICT_UNLIKELY(supported_protocol_list == NULL)) {
- supported_protocol_list = parse_protocol_list(get_supported_protocols());
+ supported_protocol_list =
+ parse_protocol_list(protover_get_supported_protocols());
}
return supported_protocol_list;
}
int protover_all_supported(const char *s, char **missing);
int protover_is_supported_here(protocol_type_t pr, uint32_t ver);
-const char *get_supported_protocols(void);
+const char *protover_get_supported_protocols(void);
char *protover_compute_vote(const smartlist_t *list_of_proto_strings,
int threshold);
get_platform_str(platform, sizeof(platform));
ri->platform = tor_strdup(platform);
- ri->protocol_list = tor_strdup(get_supported_protocols());
+ ri->protocol_list = tor_strdup(protover_get_supported_protocols());
/* compute ri->bandwidthrate as the min of various options */
ri->bandwidthrate = get_effective_bwrate(options);