pubsub_flags.h 982 B

1234567891011121314151617181920212223242526272829303132
  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-2018, The Tor Project, Inc. */
  5. /* See LICENSE for licensing information */
  6. /**
  7. * @file pubsub_flags.h
  8. * @brief Flags that can be set on publish/subscribe messages.
  9. **/
  10. #ifndef TOR_PUBSUB_FLAGS_H
  11. #define TOR_PUBSUB_FLAGS_H
  12. /**
  13. * Flag for registering a message: declare that no other module is allowed to
  14. * publish this message if we are publishing it, or subscribe to it if we are
  15. * subscribing to it.
  16. */
  17. #define DISP_FLAG_EXCL (1u<<0)
  18. /**
  19. * Flag for registering a message: declare that this message is a stub, and we
  20. * will not actually publish/subscribe it, but that the dispatcher should
  21. * treat us as if we did when typechecking.
  22. *
  23. * We use this so that messages aren't treated as "dangling" if they are
  24. * potentially used by some other build of Tor.
  25. */
  26. #define DISP_FLAG_STUB (1u<<1)
  27. #endif