gobj_unsubscribe_list()

gobj_unsubscribe_list()#

Removes a list of event subscriptions from their respective publishers, optionally forcing the removal of hard subscriptions.

Prototype

int gobj_unsubscribe_list(
    json_t *dl_subs,  // owned
    BOOL force  // delete hard_subscription subs too
);

Parameters

Key

Type

Description

dl_subs

json_t *

A JSON array containing the subscriptions to be removed. Each element represents a subscription.

force

BOOL

If set to TRUE, hard subscriptions will also be removed.


Return Value

Returns 0 upon successful removal of the subscriptions.

Notes

Each subscription in dl_subs is checked and removed from both the publisher’s and subscriber’s subscription lists.

Prototype

// Not applicable in JS

Prototype

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