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