aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSebastian Hahn <sebastian@torproject.org>2010-07-22 10:08:32 +0200
committerSebastian Hahn <sebastian@torproject.org>2010-07-27 07:58:14 +0200
commit3074d5a2215b82e37c756426a7576088e52630ea (patch)
tree44dbd327710f63ea471020f23cec9625b3de63eb /src
parent01c7b60a8063580fff7ad48adac3d1905df01013 (diff)
downloadtor-3074d5a2215b82e37c756426a7576088e52630ea.tar
tor-3074d5a2215b82e37c756426a7576088e52630ea.tar.gz
Create command.h
Diffstat (limited to 'src')
-rw-r--r--src/or/command.c1
-rw-r--r--src/or/command.h25
-rw-r--r--src/or/connection_or.c1
-rw-r--r--src/or/main.c1
-rw-r--r--src/or/or.h11
5 files changed, 28 insertions, 11 deletions
diff --git a/src/or/command.c b/src/or/command.c
index 1f084d032..1a5c893b7 100644
--- a/src/or/command.c
+++ b/src/or/command.c
@@ -18,6 +18,7 @@
#include "or.h"
#include "circuitbuild.h"
#include "circuitlist.h"
+#include "command.h"
#include "router.h"
#include "routerlist.h"
diff --git a/src/or/command.h b/src/or/command.h
new file mode 100644
index 000000000..1aa56207f
--- /dev/null
+++ b/src/or/command.h
@@ -0,0 +1,25 @@
+/* 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 command.h
+ * \brief Header file for command.c.
+ **/
+
+#ifndef _TOR_COMMAND_H
+#define _TOR_COMMAND_H
+
+void command_process_cell(cell_t *cell, or_connection_t *conn);
+void command_process_var_cell(var_cell_t *cell, or_connection_t *conn);
+
+extern uint64_t stats_n_padding_cells_processed;
+extern uint64_t stats_n_create_cells_processed;
+extern uint64_t stats_n_created_cells_processed;
+extern uint64_t stats_n_relay_cells_processed;
+extern uint64_t stats_n_destroy_cells_processed;
+
+#endif
+
diff --git a/src/or/connection_or.c b/src/or/connection_or.c
index 4cec41990..a1e372003 100644
--- a/src/or/connection_or.c
+++ b/src/or/connection_or.c
@@ -13,6 +13,7 @@
#include "or.h"
#include "buffers.h"
#include "circuitbuild.h"
+#include "command.h"
#include "geoip.h"
#include "router.h"
#include "routerlist.h"
diff --git a/src/or/main.c b/src/or/main.c
index d188a5020..9d4dfed80 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -16,6 +16,7 @@
#include "circuitbuild.h"
#include "circuitlist.h"
#include "circuituse.h"
+#include "command.h"
#include "dnsserv.h"
#include "geoip.h"
#include "rendclient.h"
diff --git a/src/or/or.h b/src/or/or.h
index 2acc91847..29d51fc19 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -3055,17 +3055,6 @@ typedef struct {
double close_ms;
} circuit_build_times_t;
-/********************************* command.c ***************************/
-
-void command_process_cell(cell_t *cell, or_connection_t *conn);
-void command_process_var_cell(var_cell_t *cell, or_connection_t *conn);
-
-extern uint64_t stats_n_padding_cells_processed;
-extern uint64_t stats_n_create_cells_processed;
-extern uint64_t stats_n_created_cells_processed;
-extern uint64_t stats_n_relay_cells_processed;
-extern uint64_t stats_n_destroy_cells_processed;
-
/********************************* config.c ***************************/
/** An error from options_trial_assign() or options_init_from_string(). */