tor_api_internal.h 896 B

1234567891011121314151617181920212223242526272829
  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-2019, The Tor Project, Inc. */
  5. /* See LICENSE for licensing information */
  6. #ifndef TOR_API_INTERNAL_H
  7. #define TOR_API_INTERNAL_H
  8. #include "lib/net/nettypes.h"
  9. /* The contents of this type are private; don't mess with them from outside
  10. * Tor. */
  11. struct tor_main_configuration_t {
  12. /** As in main() */
  13. int argc;
  14. /** As in main(). This pointer is owned by the caller */
  15. char **argv;
  16. /** As argc, but describes the number of elements in argv_owned */
  17. int argc_owned;
  18. /** As argv, but is owned by the tor_main_configuration_t object. */
  19. char **argv_owned;
  20. /** Socket that Tor will use as an owning control socket. Owned. */
  21. tor_socket_t owning_controller_socket;
  22. };
  23. #endif /* !defined(TOR_API_INTERNAL_H) */