2 * Copyright (C) 2013 - David Goulet <dgoulet@efficios.com>
4 * This library is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU Lesser General Public License, version 2.1 only,
6 * as published by the Free Software Foundation.
8 * This library is distributed in the hope that it will be useful, but WITHOUT
9 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
13 * You should have received a copy of the GNU Lesser General Public License
14 * along with this library; if not, write to the Free Software Foundation,
15 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 #ifndef LTTNG_SNAPSHOT_INTERNAL_ABI_H
19 #define LTTNG_SNAPSHOT_INTERNAL_ABI_H
25 * Object used for the snapshot API. This is opaque to the public library.
27 struct lttng_snapshot_output
{
29 * ID of the snapshot output. This is only used when they are listed. It is
30 * assigned by the session daemon so when adding an output, this value will
35 * Maximum size in bytes of the snapshot meaning the total size of all
36 * stream combined. A value of 0 is unlimited.
39 /* Name of the output so it can be recognized easily when listing them. */
41 /* Destination of the output. See lttng(1) for URL format. */
42 char ctrl_url
[PATH_MAX
];
43 /* Destination of the output. See lttng(1) for URL format. */
44 char data_url
[PATH_MAX
];
48 * Snapshot output list object opaque to the user.
50 struct lttng_snapshot_output_list
{
52 * The position in the output array. This is changed by a get_next call.
57 * Number of element in the array.
62 * Containes snapshot output object.
64 struct lttng_snapshot_output
*array
;
67 #endif /* LTTNG_SNAPSHOT_INTERNAL_ABI_H */