|
Tor 0.4.9.3-alpha-dev
|
lib/pubsub: Publish-subscribe message passing.
More...Files | |
| pub_binding_st.h | |
| Declaration of pub_binding_t. | |
| pubsub.h | |
| Header for OO publish-subscribe functionality. | |
| pubsub_build.c | |
| Construct a dispatch_t in safer, more OO way. | |
| pubsub_build.h | |
| Header used for constructing the OO publish-subscribe facility. | |
| pubsub_builder_st.h | |
| private structures used for configuring dispatchers and messages. | |
| pubsub_check.c | |
| Enforce various requirements on a pubsub_builder. | |
| pubsub_connect.h | |
| Header for functions that add relationships to a pubsub builder. | |
| pubsub_flags.h | |
| Flags that can be set on publish/subscribe messages. | |
| pubsub_macros.h | |
| Macros to help with the publish/subscribe dispatch API. | |
| pubsub_publish.c | |
| Header for functions to publish using a pub_binding_t. | |
| pubsub_publish.h | |
| Header for pubsub_publish.c. | |
lib/pubsub: Publish-subscribe message passing.
This module wraps the lib/dispatch module, to provide a more ergonomic and type-safe approach to message passing.
In general, we favor this mechanism for cases where higher-level modules need to be notified when something happens in lower-level modules. (The alternative would be calling up from the lower-level modules, which would be error-prone; or maintaining lists of function-pointers, which would be clumsy and tend to complicate the call graph.)
See pubsub.c for more information.