Controls the memory around subscriptions.
More...
Go to the source code of this file.
|
| struct | subscription |
| | Events are what are located at the paths, whereas subscriptions are what are located at ev_path + ev_extra (ev_extra may == ""), and these are what you can actually broadcast and send events to. More...
|
| |
Controls the memory around subscriptions.
- Author
- Andrew Stone andre.nosp@m.w@cl.nosp@m.ovar..nosp@m.com
- Copyright
- 2012-2014 Clear Channel Inc.
Get a subscription.
If the subscription does not exist, it is created.
- Parameters
-
| ev | The event to get the subscription from |
| ev_extra | Any extra path segments for the subscription |
- Returns
- A reference to the subscription. When done, call sub_unref().
Increase the reference count on the subscription.
- Parameters
-
| sub | The subscription you're done with. |
Release a reference to the subscription, cleaning it up if there are no more references.
- Parameters
-
| sub | The subscription you're done with. |