Network streaming support
[lttng-tools.git] / src / bin / lttng / command.h
1 /*
2 * Copyright (C) 2011 - David Goulet <david.goulet@polymtl.ca>
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License, version 2 only,
6 * as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License along
14 * with this program; if not, write to the Free Software Foundation, Inc.,
15 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
16 */
17
18 #ifndef _LTTNG_CMD_H
19 #define _LTTNG_CMD_H
20
21 #include <lttng/lttng.h>
22 #include <common/common.h>
23 #include <common/defaults.h>
24
25 #include "conf.h"
26 #include "utils.h"
27
28 enum cmd_error_code {
29 CMD_SUCCESS = 0,
30 CMD_ERROR,
31 CMD_UNDEFINED,
32 CMD_FATAL,
33 CMD_WARNING,
34 };
35
36 struct cmd_struct {
37 const char *name;
38 int (*func)(int argc, const char **argv);
39 };
40
41 extern int cmd_list(int argc, const char **argv);
42 extern int cmd_create(int argc, const char **argv);
43 extern int cmd_destroy(int argc, const char **argv);
44 extern int cmd_start(int argc, const char **argv);
45 extern int cmd_stop(int argc, const char **argv);
46 extern int cmd_enable_events(int argc, const char **argv);
47 extern int cmd_disable_events(int argc, const char **argv);
48 extern int cmd_enable_channels(int argc, const char **argv);
49 extern int cmd_disable_channels(int argc, const char **argv);
50 extern int cmd_add_context(int argc, const char **argv);
51 extern int cmd_set_session(int argc, const char **argv);
52 extern int cmd_version(int argc, const char **argv);
53 extern int cmd_calibrate(int argc, const char **argv);
54 extern int cmd_view(int argc, const char **argv);
55 extern int cmd_enable_consumer(int argc, const char **argv);
56 extern int cmd_disable_consumer(int argc, const char **argv);
57
58 #endif /* _LTTNG_CMD_H */
This page took 0.030917 seconds and 5 git commands to generate.