X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng%2Fcommand.h;h=a4f06d446011809783f4613bf083edb608ff567d;hp=09ce7c0ebbc5c034f5290f97040dc7a220f04319;hb=b67cd6f052bb21a3c3c72840a9e55598951ba632;hpb=1ab1ea0b77d5fc71765e06b5c84431e403e8bd2e diff --git a/src/bin/lttng/command.h b/src/bin/lttng/command.h index 09ce7c0eb..a4f06d446 100644 --- a/src/bin/lttng/command.h +++ b/src/bin/lttng/command.h @@ -1,19 +1,18 @@ /* * 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 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * 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 @@ -27,10 +26,12 @@ #include "utils.h" enum cmd_error_code { - CMD_SUCCESS, + CMD_SUCCESS = 0, CMD_ERROR, CMD_UNDEFINED, CMD_FATAL, + CMD_WARNING, + CMD_UNSUPPORTED, }; struct cmd_struct { @@ -51,5 +52,13 @@ 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); +extern int cmd_enable_consumer(int argc, const char **argv); +extern int cmd_disable_consumer(int argc, const char **argv); +extern int cmd_snapshot(int argc, const char **argv); +extern int cmd_save(int argc, const char **argv); +extern int cmd_load(int argc, const char **argv); +extern int cmd_track(int argc, const char **argv); +extern int cmd_untrack(int argc, const char **argv); #endif /* _LTTNG_CMD_H */