X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fbin%2Flttng%2Fcommand.h;h=bf004521003787acb910b9d29ea3a1b519c9af9a;hb=HEAD;hp=27de0d5a0f1c61b9218c98b2a5e3d356b1612a50;hpb=0cd3b1d4a59305a7efb608605d2e74c0ea347383;p=lttng-tools.git diff --git a/src/bin/lttng/command.h b/src/bin/lttng/command.h deleted file mode 100644 index 27de0d5a0..000000000 --- a/src/bin/lttng/command.h +++ /dev/null @@ -1,56 +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, version 2 only, - * as published by the Free Software Foundation. - * - * 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., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - */ - -#ifndef _LTTNG_CMD_H -#define _LTTNG_CMD_H - -#include -#include -#include - -#include "conf.h" -#include "utils.h" - -enum cmd_error_code { - CMD_SUCCESS = 0, - CMD_ERROR, - CMD_UNDEFINED, - CMD_FATAL, - CMD_WARNING, -}; - -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); -extern int cmd_view(int argc, const char **argv); - -#endif /* _LTTNG_CMD_H */