Complete change of the source directory tree
[lttng-tools.git] / src / bin / lttng / cmd.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
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; only version 2
7 * of the License.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17 */
18
19 #ifndef _LTTNG_CMD_H
20 #define _LTTNG_CMD_H
21
22 #include <lttng/lttng.h>
23 #include <common/lttngerr.h>
24 #include <common/lttng-share.h>
25
26 enum cmd_error_code {
27 CMD_SUCCESS,
28 CMD_ERROR,
29 CMD_UNDEFINED,
30 CMD_NOT_IMPLEMENTED,
31 CMD_FATAL,
32 };
33
34 struct cmd_struct {
35 const char *name;
36 int (*func)(int argc, const char **argv);
37 };
38
39 extern int cmd_list(int argc, const char **argv);
40 extern int cmd_create(int argc, const char **argv);
41 extern int cmd_destroy(int argc, const char **argv);
42 extern int cmd_start(int argc, const char **argv);
43 extern int cmd_stop(int argc, const char **argv);
44 extern int cmd_enable_events(int argc, const char **argv);
45 extern int cmd_disable_events(int argc, const char **argv);
46 extern int cmd_enable_channels(int argc, const char **argv);
47 extern int cmd_disable_channels(int argc, const char **argv);
48 extern int cmd_add_context(int argc, const char **argv);
49 extern int cmd_set_session(int argc, const char **argv);
50 extern int cmd_version(int argc, const char **argv);
51 extern int cmd_calibrate(int argc, const char **argv);
52
53 #endif /* _LTTNG_CMD_H */
This page took 0.030335 seconds and 5 git commands to generate.