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