X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-relayd%2Fcmd-2-4.c;h=7abc371f06732056bf61435d8bf71750cdb3a774;hp=98cd92b2a12dcee45b378710fce694f0c9351e93;hb=HEAD;hpb=890d8fe47755c3bad936389cf48ffa141cff41c9 diff --git a/src/bin/lttng-relayd/cmd-2-4.c b/src/bin/lttng-relayd/cmd-2-4.c deleted file mode 100644 index 98cd92b2a..000000000 --- a/src/bin/lttng-relayd/cmd-2-4.c +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright (C) 2013 - Julien Desfossez - * David Goulet - * 2015 - Mathieu Desnoyers - * - * 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. - */ - -#define _LGPL_SOURCE -#include -#include - -#include -#include - -#include - -#include "cmd-generic.h" -#include "lttng-relayd.h" - -int cmd_create_session_2_4(struct relay_connection *conn, - char *session_name, char *hostname, - uint32_t *live_timer, bool *snapshot) -{ - int ret; - struct lttcomm_relayd_create_session_2_4 session_info; - - ret = cmd_recv(conn->sock, &session_info, sizeof(session_info)); - if (ret < 0) { - ERR("Unable to recv session info version 2.4"); - goto error; - } - - strncpy(session_name, session_info.session_name, - sizeof(session_info.session_name)); - strncpy(hostname, session_info.hostname, - sizeof(session_info.hostname)); - *live_timer = be32toh(session_info.live_timer); - *snapshot = be32toh(session_info.snapshot); - - ret = 0; - -error: - return ret; -}