gobj_find_subscribings()

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

subscriber

hgobj

The subscriber gobj whose subscriptions are being queried.

event

gobj_event_t

The event name to filter subscriptions. If NULL, all events are considered.

kw

json_t *

A JSON object containing additional filtering criteria, such as __config__, __global__, __local__, and __filter__. Owned by the function.

publisher

hgobj

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