gobj_list_subscriptions()

gobj_list_subscriptions()#

Retrieves a list of event subscriptions for a given hgobj. The function returns details about events the object is subscribed to and the objects that have subscribed to its events.

Prototype

json_t *gobj_list_subscriptions(
    hgobj gobj2view
);

Parameters

Key

Type

Description

gobj2view

hgobj

The hgobj whose subscriptions are to be listed.


Return Value

A json_t * object containing two lists: subscriptions (events published by gobj2view and their subscribers) and subscribings (events gobj2view is subscribed to). Each entry includes event names, publisher, and subscriber details.

Notes

The returned JSON object must be managed by the caller. The function internally calls gobj_find_subscriptions() and gobj_find_subscribings() to gather the relevant data.

Prototype

// Not applicable in JS

Prototype

# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples