Move to kernel style SPDX license identifiers
[lttng-ust.git] / liblttng-ust / lttng-rb-clients.h
1 /*
2 * SPDX-License-Identifier: LGPL-2.1-only
3 *
4 * Copyright (C) 2013 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
5 */
6
7 #ifndef _LTTNG_RB_CLIENT_H
8 #define _LTTNG_RB_CLIENT_H
9
10 #include <stdint.h>
11
12 struct lttng_ust_client_lib_ring_buffer_client_cb {
13 struct lttng_ust_lib_ring_buffer_client_cb parent;
14
15 int (*timestamp_begin) (struct lttng_ust_lib_ring_buffer *buf,
16 struct lttng_ust_shm_handle *handle,
17 uint64_t *timestamp_begin);
18 int (*timestamp_end) (struct lttng_ust_lib_ring_buffer *buf,
19 struct lttng_ust_shm_handle *handle,
20 uint64_t *timestamp_end);
21 int (*events_discarded) (struct lttng_ust_lib_ring_buffer *buf,
22 struct lttng_ust_shm_handle *handle,
23 uint64_t *events_discarded);
24 int (*content_size) (struct lttng_ust_lib_ring_buffer *buf,
25 struct lttng_ust_shm_handle *handle,
26 uint64_t *content_size);
27 int (*packet_size) (struct lttng_ust_lib_ring_buffer *buf,
28 struct lttng_ust_shm_handle *handle,
29 uint64_t *packet_size);
30 int (*stream_id) (struct lttng_ust_lib_ring_buffer *buf,
31 struct lttng_ust_shm_handle *handle,
32 uint64_t *stream_id);
33 int (*current_timestamp) (struct lttng_ust_lib_ring_buffer *buf,
34 struct lttng_ust_shm_handle *handle,
35 uint64_t *ts);
36 int (*sequence_number) (struct lttng_ust_lib_ring_buffer *buf,
37 struct lttng_ust_shm_handle *handle, uint64_t *seq);
38 int (*instance_id) (struct lttng_ust_lib_ring_buffer *buf,
39 struct lttng_ust_shm_handle *handle, uint64_t *id);
40 };
41
42 #endif /* _LTTNG_RB_CLIENT_H */
This page took 0.029245 seconds and 4 git commands to generate.