]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Create command.h
authorSebastian Hahn <sebastian@torproject.org>
Thu, 22 Jul 2010 08:08:32 +0000 (10:08 +0200)
committerSebastian Hahn <sebastian@torproject.org>
Tue, 27 Jul 2010 05:58:14 +0000 (07:58 +0200)
src/or/command.c
src/or/command.h [new file with mode: 0644]
src/or/connection_or.c
src/or/main.c
src/or/or.h

index 1f084d032fd047075ab11e4ce9a5c6bcc0e47b5e..1a5c893b7e4f881567200823bdcbd8d56d427eef 100644 (file)
@@ -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 (file)
index 0000000..1aa5620
--- /dev/null
@@ -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
+
index 4cec41990385402fa15d50c8bbdec32d78048ff3..a1e37200313dc01bfc415c3e4275143d2426dda6 100644 (file)
@@ -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"
index d188a5020c7371d15c3f7051a90f368e0f471014..9d4dfed80595d0e2490a3ef958d938aef12c4c62 100644 (file)
@@ -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"
index 2acc91847cd0f89b63eca646d1081e8b476e4114..29d51fc19db06f34f03a3947716671e8dc7c6448 100644 (file)
@@ -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(). */