gobj_find_subscribings()
#
Returns a list of subscriptions where the given subscriber
is subscribed to events from various publishers.
Prototype
json_t *gobj_find_subscribings(
hgobj subscriber,
gobj_event_t event,
json_t *kw,
hgobj publisher
);
Parameters
Key |
Type |
Description |
---|---|---|
|
|
The subscriber gobj whose subscriptions are being queried. |
|
|
The event name to filter subscriptions. If NULL, all events are considered. |
|
|
A JSON object containing additional filtering criteria, such as |
|
|
The publisher gobj to filter subscriptions. If NULL, all publishers are considered. |
Return Value
A JSON array containing the matching subscriptions. The caller owns the returned JSON object and must free it using json_decref()
.
Notes
This function searches for subscriptions where subscriber
is subscribed to events from publisher
. The filtering criteria in kw
allow for fine-grained selection of subscriptions.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples