blob: d52b2caf446aea0882fe57c1dbba1c8cee496820 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
/* Copyright (c) 2001 Matej Pfajfar.
* Copyright (c) 2001-2004, Roger Dingledine.
* Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
* Copyright (c) 2007-2020, The Tor Project, Inc. */
/* See LICENSE for licensing information */
/**
* @file tor_api_internal.h
* @brief Internal declarations for in-process Tor API.
**/
#ifndef TOR_API_INTERNAL_H
#define TOR_API_INTERNAL_H
#include "lib/net/nettypes.h"
/* The contents of this type are private; don't mess with them from outside
* Tor. */
struct tor_main_configuration_t {
/** As in main() */
int argc;
/** As in main(). This pointer is owned by the caller */
char **argv;
/** As argc, but describes the number of elements in argv_owned */
int argc_owned;
/** As argv, but is owned by the tor_main_configuration_t object. */
char **argv_owned;
/** Socket that Tor will use as an owning control socket. Owned. */
tor_socket_t owning_controller_socket;
};
#endif /* !defined(TOR_API_INTERNAL_H) */
|