---
title: "es_subscriptions(_:_:_:)"
framework: endpointsecurity
role: symbol
role_heading: Function
path: "endpointsecurity/es_subscriptions(_:_:_:)"
---

# es_subscriptions(_:_:_:)

Returns a list of the client’s subscriptions.

## Declaration

```swift
func es_subscriptions(_ client: OpaquePointer, _ count: UnsafeMutablePointer<Int>, _ subscriptions: UnsafeMutablePointer<UnsafeMutablePointer<es_event_type_t>>?) -> es_return_t
```

## 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

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

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(_:_:_:)](endpointsecurity/es_subscribe(_:_:_:).md)
- [es_unsubscribe(_:_:_:)](endpointsecurity/es_unsubscribe(_:_:_:).md)
- [es_event_type_t](endpointsecurity/es_event_type_t.md)
- [es_unsubscribe_all(_:)](endpointsecurity/es_unsubscribe_all(_:).md)
