aboutsummaryrefslogtreecommitdiff
path: root/src/or/or.h
diff options
context:
space:
mode:
authorBruce Montrose <montrose@itd.nrl.navy.mil>2002-07-03 16:31:22 +0000
committerBruce Montrose <montrose@itd.nrl.navy.mil>2002-07-03 16:31:22 +0000
commita3609f4d5d66ce4eeb4492422e7a0ec2d623a43a (patch)
treec1f5d2f144c45c1b3017b97f8bb3fcbe550e411f /src/or/or.h
parent419781685cc7fcccb18634cdd23b639ea73ba39f (diff)
downloadtor-a3609f4d5d66ce4eeb4492422e7a0ec2d623a43a.tar
tor-a3609f4d5d66ce4eeb4492422e7a0ec2d623a43a.tar.gz
Added getoptions() and made minor adjustment to poptReadDefaultOptions()
svn:r25
Diffstat (limited to 'src/or/or.h')
-rw-r--r--src/or/or.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/or/or.h b/src/or/or.h
index 0f4647fb2..e09b154f5 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -284,7 +284,18 @@ typedef struct
void *next;
} tracked_onion_t;
-
+typedef struct
+{
+ char *LogLevel;
+ char *RouterFile;
+ char *PrivateKeyFile;
+ float CoinWeight;
+ int ORPort;
+ int OPPort;
+ int APPort;
+ int MaxConn;
+ int TrafficShaping;
+} or_options_t;
/* all the function prototypes go here */
@@ -366,6 +377,9 @@ void command_process_destroy_cell(cell_t *cell, connection_t *conn);
/* loads the configuration file */
int getconfig(char *filename, config_opt_t *options);
+/* create or_options_t from command-line args and config files(s) */
+int getoptions(int argc, char **argv, or_options_t *options);
+
/********************************* connection.c ***************************/
connection_t *connection_new(int type);