X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=liblttng-ust-ctl%2Fust-ctl-private.h;fp=liblttng-ust-ctl%2Fust-ctl-private.h;h=0f2e0bbe9d03e637440be44702727f9f81efa749;hb=74d81a6cca2cd4a7718bba9368f382f9f2fbba84;hp=0000000000000000000000000000000000000000;hpb=00b217e613614b8addc4ee2bbcdec473275842fd;p=lttng-ust.git diff --git a/liblttng-ust-ctl/ust-ctl-private.h b/liblttng-ust-ctl/ust-ctl-private.h new file mode 100644 index 00000000..0f2e0bbe --- /dev/null +++ b/liblttng-ust-ctl/ust-ctl-private.h @@ -0,0 +1,38 @@ +/* + * Copyright (C) 2011 - Julien Desfossez + * Copyright (C) 2011-2013 - Mathieu Desnoyers + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License only. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + +#ifndef _LTTNG_UST_CTL_PRIVATE_H +#define _LTTNG_UST_CTL_PRIVATE_H + +#include + +/* + * Map channel lttng_ust_shm_handle and add streams. Typically performed + * by the application to map the objects into its memory space. + */ +struct lttng_ust_shm_handle * + ustctl_map_channel(struct lttng_ust_object_data *chan_data); +int ustctl_add_stream(struct lttng_ust_shm_handle *lttng_ust_shm_handle, + struct lttng_ust_object_data *stream_data); +/* + * Note: the lttng_ust_object_data from which the lttng_ust_shm_handle + * is derived can only be released after unmapping the handle. + */ +void ustctl_unmap_channel(struct lttng_ust_shm_handle *lttng_ust_shm_handle); + +#endif /* _LTTNG_UST_CTL_PRIVATE_H */