Fix comments and usage output
[lttng-tools.git] / src / bin / lttng / command.h
CommitLineData
f3ed775e
DG
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
82a3637f
DG
6 * as published by the Free Software Foundation; only version 2
7 * of the License.
f3ed775e
DG
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>
990570ed
DG
23#include <common/common.h>
24#include <common/defaults.h>
f3ed775e 25
c399183f
DG
26#include "conf.h"
27#include "utils.h"
28
f3ed775e
DG
29enum cmd_error_code {
30 CMD_SUCCESS,
31 CMD_ERROR,
32 CMD_UNDEFINED,
f3ed775e
DG
33 CMD_FATAL,
34};
35
36struct cmd_struct {
37 const char *name;
38 int (*func)(int argc, const char **argv);
39};
40
41extern int cmd_list(int argc, const char **argv);
42extern int cmd_create(int argc, const char **argv);
43extern int cmd_destroy(int argc, const char **argv);
f3ed775e
DG
44extern int cmd_start(int argc, const char **argv);
45extern int cmd_stop(int argc, const char **argv);
46extern int cmd_enable_events(int argc, const char **argv);
e953ef25 47extern int cmd_disable_events(int argc, const char **argv);
d36b8583 48extern int cmd_enable_channels(int argc, const char **argv);
26cc6b4e 49extern int cmd_disable_channels(int argc, const char **argv);
d65106b1 50extern int cmd_add_context(int argc, const char **argv);
3087ef18 51extern int cmd_set_session(int argc, const char **argv);
eb9cb8b7 52extern int cmd_version(int argc, const char **argv);
d0254c7c 53extern int cmd_calibrate(int argc, const char **argv);
f3ed775e
DG
54
55#endif /* _LTTNG_CMD_H */
This page took 0.029899 seconds and 5 git commands to generate.