[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r14899: Make note_request() accessible from outside of directory.c (tor/trunk/src/or)
Author: weasel
Date: 2008-06-02 11:09:29 -0400 (Mon, 02 Jun 2008)
New Revision: 14899
Modified:
tor/trunk/src/or/directory.c
tor/trunk/src/or/or.h
Log:
Make note_request() accessible from outside of directory.c
Modified: tor/trunk/src/or/directory.c
===================================================================
--- tor/trunk/src/or/directory.c 2008-06-02 15:09:24 UTC (rev 14898)
+++ tor/trunk/src/or/directory.c 2008-06-02 15:09:29 UTC (rev 14899)
@@ -57,7 +57,6 @@
int router_purpose,
int was_extrainfo,
int was_descriptor_digests);
-static void note_request(const char *key, size_t bytes);
static void note_client_request(int purpose, int compressed, size_t bytes);
static int client_likes_consensus(networkstatus_t *v, const char *want_url);
@@ -2206,7 +2205,7 @@
/** Called when we just transmitted or received <b>bytes</b> worth of data
* because of a request of type <b>key</b> (an arbitrary identifier): adds
* <b>bytes</b> to the total associated with key. */
-static void
+void
note_request(const char *key, size_t bytes)
{
uint64_t *n;
@@ -2263,7 +2262,7 @@
(void)bytes;
}
-static void
+void
note_request(const char *key, size_t bytes)
{
(void)key;
Modified: tor/trunk/src/or/or.h
===================================================================
--- tor/trunk/src/or/or.h 2008-06-02 15:09:24 UTC (rev 14898)
+++ tor/trunk/src/or/or.h 2008-06-02 15:09:29 UTC (rev 14899)
@@ -3078,6 +3078,7 @@
smartlist_t *fp_out, int *compresseed_out,
int decode_hex, int sort_uniq);
char *directory_dump_request_log(void);
+void note_request(const char *key, size_t bytes);
int router_supports_extrainfo(const char *identity_digest, int is_authority);
time_t download_status_increment_failure(download_status_t *dls,