[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] [tor/master 08/40] Create rendservice.h
Author: Sebastian Hahn <sebastian@xxxxxxxxxxxxxx>
Date: Thu, 22 Jul 2010 00:30:17 +0200
Subject: Create rendservice.h
Commit: 85a1d635d5f15a49bda9f5e6588b0863d4b7b67d
---
src/or/circuituse.c | 1 +
src/or/config.c | 1 +
src/or/connection_edge.c | 1 +
src/or/main.c | 1 +
src/or/or.h | 24 ------------------------
src/or/rendcommon.c | 1 +
src/or/rendservice.c | 1 +
src/or/rendservice.h | 38 ++++++++++++++++++++++++++++++++++++++
src/or/routerlist.c | 1 +
9 files changed, 45 insertions(+), 24 deletions(-)
create mode 100644 src/or/rendservice.h
diff --git a/src/or/circuituse.c b/src/or/circuituse.c
index 5621e4f..3bdd8ac 100644
--- a/src/or/circuituse.c
+++ b/src/or/circuituse.c
@@ -12,6 +12,7 @@
#include "or.h"
#include "rendclient.h"
#include "rendcommon.h"
+#include "rendservice.h"
#include "router.h"
#include "routerlist.h"
diff --git a/src/or/config.c b/src/or/config.c
index b4d8637..27bdf93 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -14,6 +14,7 @@
#include "or.h"
#include "geoip.h"
#include "rendclient.h"
+#include "rendservice.h"
#include "router.h"
#include "routerlist.h"
#ifdef MS_WINDOWS
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c
index 4adb250..44e366b 100644
--- a/src/or/connection_edge.c
+++ b/src/or/connection_edge.c
@@ -13,6 +13,7 @@
#include "dnsserv.h"
#include "rendclient.h"
#include "rendcommon.h"
+#include "rendservice.h"
#include "router.h"
#include "routerlist.h"
diff --git a/src/or/main.c b/src/or/main.c
index 3bc2823..4bd3b0a 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -16,6 +16,7 @@
#include "geoip.h"
#include "rendclient.h"
#include "rendcommon.h"
+#include "rendservice.h"
#include "router.h"
#include "routerlist.h"
#ifdef USE_DMALLOC
diff --git a/src/or/or.h b/src/or/or.h
index 7c2bf07..ef2a303 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -4661,30 +4661,6 @@ typedef struct rend_cache_entry_t {
rend_service_descriptor_t *parsed; /**< Parsed value of 'desc' */
} rend_cache_entry_t;
-/********************************* rendservice.c ***************************/
-
-int num_rend_services(void);
-int rend_config_services(or_options_t *options, int validate_only);
-int rend_service_load_keys(void);
-void rend_services_init(void);
-void rend_services_introduce(void);
-void rend_consider_services_upload(time_t now);
-void rend_hsdir_routers_changed(void);
-void rend_consider_descriptor_republication(void);
-
-void rend_service_intro_has_opened(origin_circuit_t *circuit);
-int rend_service_intro_established(origin_circuit_t *circuit,
- const char *request,
- size_t request_len);
-void rend_service_rendezvous_has_opened(origin_circuit_t *circuit);
-int rend_service_introduce(origin_circuit_t *circuit, const char *request,
- size_t request_len);
-void rend_service_relaunch_rendezvous(origin_circuit_t *oldcirc);
-int rend_service_set_connection_addr_port(edge_connection_t *conn,
- origin_circuit_t *circ);
-void rend_service_dump_stats(int severity);
-void rend_service_free_all(void);
-
/********************************* rendmid.c *******************************/
int rend_mid_establish_intro(or_circuit_t *circ, const char *request,
size_t request_len);
diff --git a/src/or/rendcommon.c b/src/or/rendcommon.c
index e4a2d61..60f4d25 100644
--- a/src/or/rendcommon.c
+++ b/src/or/rendcommon.c
@@ -11,6 +11,7 @@
#include "or.h"
#include "rendclient.h"
#include "rendcommon.h"
+#include "rendservice.h"
#include "routerlist.h"
/** Return 0 if one and two are the same service ids, else -1 or 1 */
diff --git a/src/or/rendservice.c b/src/or/rendservice.c
index 839d501..4fc0313 100644
--- a/src/or/rendservice.c
+++ b/src/or/rendservice.c
@@ -10,6 +10,7 @@
#include "or.h"
#include "rendclient.h"
#include "rendcommon.h"
+#include "rendservice.h"
#include "router.h"
#include "routerlist.h"
diff --git a/src/or/rendservice.h b/src/or/rendservice.h
new file mode 100644
index 0000000..1087492
--- /dev/null
+++ b/src/or/rendservice.h
@@ -0,0 +1,38 @@
+/* Copyright (c) 2001 Matej Pfajfar.
+ * Copyright (c) 2001-2004, Roger Dingledine.
+ * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
+ * Copyright (c) 2007-2010, The Tor Project, Inc. */
+/* See LICENSE for licensing information */
+
+/**
+ * \file rendservice.h
+ * \brief Header file for rendservice functions
+ **/
+
+#ifndef _TOR_RENDSERVICE_H
+#define _TOR_RENDSERVICE_H
+
+int num_rend_services(void);
+int rend_config_services(or_options_t *options, int validate_only);
+int rend_service_load_keys(void);
+void rend_services_init(void);
+void rend_services_introduce(void);
+void rend_consider_services_upload(time_t now);
+void rend_hsdir_routers_changed(void);
+void rend_consider_descriptor_republication(void);
+
+void rend_service_intro_has_opened(origin_circuit_t *circuit);
+int rend_service_intro_established(origin_circuit_t *circuit,
+ const char *request,
+ size_t request_len);
+void rend_service_rendezvous_has_opened(origin_circuit_t *circuit);
+int rend_service_introduce(origin_circuit_t *circuit, const char *request,
+ size_t request_len);
+void rend_service_relaunch_rendezvous(origin_circuit_t *oldcirc);
+int rend_service_set_connection_addr_port(edge_connection_t *conn,
+ origin_circuit_t *circ);
+void rend_service_dump_stats(int severity);
+void rend_service_free_all(void);
+
+#endif
+
diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index 02480af..6beecac 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -14,6 +14,7 @@
#include "or.h"
#include "geoip.h"
#include "rendcommon.h"
+#include "rendservice.h"
#include "router.h"
#include "routerlist.h"
--
1.7.1