X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=lttng%2Fcmd.h;fp=lttng%2Fcmd.h;h=0000000000000000000000000000000000000000;hp=257d0a1c490fa33d9f3ba761690fe8ba4da53bb3;hb=10a8a2237343699e3923d87e24dbf2d7fe225377;hpb=734f79bf717d87817623d382c59086dc9e8ef610 diff --git a/lttng/cmd.h b/lttng/cmd.h deleted file mode 100644 index 257d0a1c4..000000000 --- a/lttng/cmd.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2011 - David Goulet - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; only version 2 - * of the License. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - */ - -#ifndef _LTTNG_CMD_H -#define _LTTNG_CMD_H - -#include -#include "lttngerr.h" -#include "lttng-share.h" -#include "lttng-kernel.h" - -enum cmd_error_code { - CMD_SUCCESS, - CMD_ERROR, - CMD_UNDEFINED, - CMD_NOT_IMPLEMENTED, - CMD_FATAL, -}; - -struct cmd_struct { - const char *name; - int (*func)(int argc, const char **argv); -}; - -extern int cmd_list(int argc, const char **argv); -extern int cmd_create(int argc, const char **argv); -extern int cmd_destroy(int argc, const char **argv); -extern int cmd_start(int argc, const char **argv); -extern int cmd_stop(int argc, const char **argv); -extern int cmd_enable_events(int argc, const char **argv); -extern int cmd_disable_events(int argc, const char **argv); -extern int cmd_enable_channels(int argc, const char **argv); -extern int cmd_disable_channels(int argc, const char **argv); -extern int cmd_add_context(int argc, const char **argv); -extern int cmd_set_session(int argc, const char **argv); -extern int cmd_version(int argc, const char **argv); -extern int cmd_calibrate(int argc, const char **argv); - -#endif /* _LTTNG_CMD_H */