Commit | Line | Data |
---|---|---|
82b9bde8 JD |
1 | #ifndef _LTTNG_RB_CLIENT_H |
2 | #define _LTTNG_RB_CLIENT_H | |
3 | ||
4 | /* | |
5 | * Copyright (c) 2013 - Mathieu Desnoyers <mathieu.desnoyers@efficios.com> | |
6 | * | |
7 | * This library is free software; you can redistribute it and/or | |
8 | * modify it under the terms of the GNU Lesser General Public | |
9 | * License as published by the Free Software Foundation; only | |
10 | * version 2.1 of the License. | |
11 | * | |
12 | * This library is distributed in the hope that it will be useful, | |
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
15 | * Lesser General Public License for more details. | |
16 | * | |
17 | * You should have received a copy of the GNU Lesser General Public | |
18 | * License along with this library; if not, write to the Free Software | |
19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | |
20 | */ | |
21 | ||
fb31eb73 FD |
22 | #include <stdint.h> |
23 | ||
82b9bde8 JD |
24 | struct lttng_ust_client_lib_ring_buffer_client_cb { |
25 | struct lttng_ust_lib_ring_buffer_client_cb parent; | |
b2f3252a JD |
26 | |
27 | int (*timestamp_begin) (struct lttng_ust_lib_ring_buffer *buf, | |
28 | struct lttng_ust_shm_handle *handle, | |
29 | uint64_t *timestamp_begin); | |
30 | int (*timestamp_end) (struct lttng_ust_lib_ring_buffer *buf, | |
31 | struct lttng_ust_shm_handle *handle, | |
32 | uint64_t *timestamp_end); | |
33 | int (*events_discarded) (struct lttng_ust_lib_ring_buffer *buf, | |
34 | struct lttng_ust_shm_handle *handle, | |
35 | uint64_t *events_discarded); | |
36 | int (*content_size) (struct lttng_ust_lib_ring_buffer *buf, | |
37 | struct lttng_ust_shm_handle *handle, | |
38 | uint64_t *content_size); | |
39 | int (*packet_size) (struct lttng_ust_lib_ring_buffer *buf, | |
40 | struct lttng_ust_shm_handle *handle, | |
41 | uint64_t *packet_size); | |
42 | int (*stream_id) (struct lttng_ust_lib_ring_buffer *buf, | |
43 | struct lttng_ust_shm_handle *handle, | |
44 | uint64_t *stream_id); | |
fca361e8 JD |
45 | int (*current_timestamp) (struct lttng_ust_lib_ring_buffer *buf, |
46 | struct lttng_ust_shm_handle *handle, | |
47 | uint64_t *ts); | |
1ff31389 JD |
48 | int (*sequence_number) (struct lttng_ust_lib_ring_buffer *buf, |
49 | struct lttng_ust_shm_handle *handle, uint64_t *seq); | |
45a00b05 JD |
50 | int (*instance_id) (struct lttng_ust_lib_ring_buffer *buf, |
51 | struct lttng_ust_shm_handle *handle, uint64_t *id); | |
82b9bde8 JD |
52 | }; |
53 | ||
54 | #endif /* _LTTNG_RB_CLIENT_H */ |