Remove calibrate from lttng-sessiond
[lttng-tools.git] / include / lttng / snapshot-internal.h
CommitLineData
da3c9ec1
DG
1/*
2 * Copyright (C) 2013 - David Goulet <dgoulet@efficios.com>
3 *
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.
7 *
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
11 * for more details.
12 *
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
16 */
17
18#ifndef LTTNG_SNAPSHOT_INTERNAL_ABI_H
19#define LTTNG_SNAPSHOT_INTERNAL_ABI_H
20
21#include <limits.h>
22#include <stdint.h>
36d2e35d 23#include <lttng/constant.h>
da3c9ec1
DG
24
25/*
26 * Object used for the snapshot API. This is opaque to the public library.
27 */
28struct lttng_snapshot_output {
29 /*
30 * ID of the snapshot output. This is only used when they are listed. It is
31 * assigned by the session daemon so when adding an output, this value will
32 * not be used.
33 */
34 uint32_t id;
35 /*
36 * Maximum size in bytes of the snapshot meaning the total size of all
37 * stream combined. A value of 0 is unlimited.
38 */
39 uint64_t max_size;
40 /* Name of the output so it can be recognized easily when listing them. */
36d2e35d 41 char name[LTTNG_NAME_MAX];
da3c9ec1
DG
42 /* Destination of the output. See lttng(1) for URL format. */
43 char ctrl_url[PATH_MAX];
44 /* Destination of the output. See lttng(1) for URL format. */
45 char data_url[PATH_MAX];
46};
47
48/*
49 * Snapshot output list object opaque to the user.
50 */
51struct lttng_snapshot_output_list {
52 /*
53 * The position in the output array. This is changed by a get_next call.
54 */
55 int index;
56
57 /*
58 * Number of element in the array.
59 */
60 size_t count;
61
62 /*
63 * Containes snapshot output object.
64 */
65 struct lttng_snapshot_output *array;
66};
67
68#endif /* LTTNG_SNAPSHOT_INTERNAL_ABI_H */
This page took 0.040558 seconds and 5 git commands to generate.