Commit | Line | Data |
---|---|---|
74d81a6c MD |
1 | /* |
2 | * Copyright (C) 2011 - Julien Desfossez <julien.desfossez@polymtl.ca> | |
3 | * Copyright (C) 2011-2013 - Mathieu Desnoyers <mathieu.desnoyers@efficios.com> | |
4 | * | |
5 | * This program is free software; you can redistribute it and/or modify | |
6 | * it under the terms of the GNU General Public License as published by | |
7 | * the Free Software Foundation; version 2 of the License only. | |
8 | * | |
9 | * This program is distributed in the hope that it will be useful, | |
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
12 | * GNU General Public License for more details. | |
13 | * | |
14 | * You should have received a copy of the GNU General Public License along | |
15 | * with this program; if not, write to the Free Software Foundation, Inc., | |
16 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | |
17 | */ | |
18 | ||
19 | #ifndef _LTTNG_UST_CTL_PRIVATE_H | |
20 | #define _LTTNG_UST_CTL_PRIVATE_H | |
21 | ||
22 | #include <lttng/ust-ctl.h> | |
23 | ||
24 | /* | |
25 | * Map channel lttng_ust_shm_handle and add streams. Typically performed | |
26 | * by the application to map the objects into its memory space. | |
27 | */ | |
28 | struct lttng_ust_shm_handle * | |
29 | ustctl_map_channel(struct lttng_ust_object_data *chan_data); | |
30 | int ustctl_add_stream(struct lttng_ust_shm_handle *lttng_ust_shm_handle, | |
31 | struct lttng_ust_object_data *stream_data); | |
32 | /* | |
33 | * Note: the lttng_ust_object_data from which the lttng_ust_shm_handle | |
34 | * is derived can only be released after unmapping the handle. | |
35 | */ | |
36 | void ustctl_unmap_channel(struct lttng_ust_shm_handle *lttng_ust_shm_handle); | |
37 | ||
38 | #endif /* _LTTNG_UST_CTL_PRIVATE_H */ |