Function

es_subscriptions

Returns a list of the client’s subscriptions.

Declaration

es_return_t es_subscriptions(es_client_t *client, size_t *count, es_event_type_t * _Nonnull *subscriptions);

Parameters

client

The client to query.

count

On return, the number of items in the subscriptions array.

subscriptions

An array of subscribed event types.

Return Value

A value that indicates whether the subscriptions query succeeded. ES_RETURN_ERROR indicates that the caller couldn’t reach the Endpoint Security subsystem or that the request was invalid.

Discussion

On return, the caller takes ownership of the memory pointed to by the subscriptions parameter, and must free it.

See Also

Subscribing to Events

es_subscribe

Subscribes a client to some set of events.

es_unsubscribe

Unsubscribes a client from some set of events.

es_event_type_t

A type used to identify a message’s event type and subscribe to events of that type.

es_unsubscribe_all

Unsubscribes a client from all events.