Major changes
[lttng-tools.git] / lttng / cmd.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
6 * as published by the Free Software Foundation; either version 2
7 * of the License, or (at your option) any later version.
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 "lttngerr.h"
24#include "lttng-share.h"
25#include "lttng-kernel.h"
26
27enum cmd_error_code {
28 CMD_SUCCESS,
29 CMD_ERROR,
30 CMD_UNDEFINED,
31 CMD_NOT_IMPLEMENTED,
32 CMD_FATAL,
33};
34
35struct cmd_struct {
36 const char *name;
37 int (*func)(int argc, const char **argv);
38};
39
40extern int cmd_list(int argc, const char **argv);
41extern int cmd_create(int argc, const char **argv);
42extern int cmd_destroy(int argc, const char **argv);
43extern int cmd_add_channel(int argc, const char **argv);
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);
47
48#endif /* _LTTNG_CMD_H */
This page took 0.026523 seconds and 5 git commands to generate.