X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fsnapshot.h;h=027b098c046cf9bfcb9a48c5f331deade0e635a9;hp=bdf0570366061c1691745a0a08c5ba4ceb5cc77e;hb=d37ac3cdc4fe21f117edfb829db4d0eb7cf914a1;hpb=1bfe73287bb3776cdba5a76d5a812ef79820bf10 diff --git a/src/bin/lttng-sessiond/snapshot.h b/src/bin/lttng-sessiond/snapshot.h index bdf057036..027b098c0 100644 --- a/src/bin/lttng-sessiond/snapshot.h +++ b/src/bin/lttng-sessiond/snapshot.h @@ -1,18 +1,8 @@ /* - * Copyright (C) 2013 - David Goulet + * Copyright (C) 2013 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. + * SPDX-License-Identifier: GPL-2.0-only * - * 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 SNAPSHOT_H @@ -28,6 +18,7 @@ #include "consumer.h" struct consumer_output; +struct ltt_session; struct snapshot_output { uint32_t id; @@ -72,11 +63,13 @@ void snapshot_add_output(struct snapshot *snapshot, /* Snapshot output object. */ struct snapshot_output *snapshot_output_alloc(void); void snapshot_output_destroy(struct snapshot_output *obj); -int snapshot_output_init(uint64_t max_size, const char *name, +int snapshot_output_init(const struct ltt_session *session, + uint64_t max_size, const char *name, const char *ctrl_url, const char *data_url, struct consumer_output *consumer, struct snapshot_output *output, struct snapshot *snapshot); -int snapshot_output_init_with_uri(uint64_t max_size, const char *name, +int snapshot_output_init_with_uri(const struct ltt_session *session, + uint64_t max_size, const char *name, struct lttng_uri *uris, size_t nb_uri, struct consumer_output *consumer, struct snapshot_output *output, struct snapshot *snapshot);