Port: Use LTTNG_NAME_MAX instead of NAME_MAX
[lttng-tools.git] / include / lttng / load-internal.h
1 /*
2 * Copyright (C) 2014 - Jérémie Galarneau <jeremie.galarneau@efficios.com>
3 * David Goulet <dgoulet@efficios.com>
4 *
5 * This library is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU Lesser General Public License, version 2.1 only,
7 * as published by the Free Software Foundation.
8 *
9 * This library is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
12 * for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public License
15 * along with this library; if not, write to the Free Software Foundation,
16 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18
19 #ifndef LTTNG_LOAD_INTERNAL_ABI_H
20 #define LTTNG_LOAD_INTERNAL_ABI_H
21
22 #include <limits.h>
23 #include <stdint.h>
24
25 #include <lttng/constant.h>
26 #include <common/macros.h>
27
28 /*
29 * Object used by the load_session API. This is opaque to the public library.
30 */
31 struct lttng_load_session_attr {
32 /* Name of the session to load, empty string means all. */
33 char session_name[LTTNG_NAME_MAX];
34 /* URL of the session configuration file to load. */
35 char input_url[PATH_MAX];
36 /* Overwrite the session if it exists. */
37 uint32_t overwrite;
38 } LTTNG_PACKED;
39
40 #endif /* LTTNG_LOAD_INTERNAL_ABI_H */
This page took 0.043419 seconds and 5 git commands to generate.