aboutsummaryrefslogtreecommitdiff
path: root/src/feature/api/tor_api_internal.h
blob: 60e0f3aa59a16835bbf3e7f2032b5d65f0e5d57d (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
/* Copyright (c) 2001 Matej Pfajfar.
 * Copyright (c) 2001-2004, Roger Dingledine.
 * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
 * Copyright (c) 2007-2019, The Tor Project, Inc. */
/* See LICENSE for licensing information */

#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) */