X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fbin%2Flttng-sessiond%2Fsnapshot.hpp;h=726b89f80c23fbea59ea73452a29a6c692159f66;hb=28f23191dcbf047429d51950a337a57d7a3f866a;hp=9053d3b4a84b54f0ec2629900e7ac171fcfedd0e;hpb=f250b40e2179eccdb83766bf4abef5a35036c47b;p=lttng-tools.git diff --git a/src/bin/lttng-sessiond/snapshot.hpp b/src/bin/lttng-sessiond/snapshot.hpp index 9053d3b4a..726b89f80 100644 --- a/src/bin/lttng-sessiond/snapshot.hpp +++ b/src/bin/lttng-sessiond/snapshot.hpp @@ -8,14 +8,14 @@ #ifndef SNAPSHOT_H #define SNAPSHOT_H -#include -#include +#include "consumer.hpp" #include #include #include -#include "consumer.hpp" +#include +#include struct consumer_output; struct ltt_session; @@ -55,27 +55,29 @@ struct snapshot { struct snapshot *snapshot_alloc(); void snapshot_destroy(struct snapshot *obj); int snapshot_init(struct snapshot *obj); -void snapshot_delete_output(struct snapshot *snapshot, - struct snapshot_output *output); -void snapshot_add_output(struct snapshot *snapshot, - struct snapshot_output *output); +void snapshot_delete_output(struct snapshot *snapshot, struct snapshot_output *output); +void snapshot_add_output(struct snapshot *snapshot, struct snapshot_output *output); /* Snapshot output object. */ struct snapshot_output *snapshot_output_alloc(); void snapshot_output_destroy(struct snapshot_output *obj); 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); + 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(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); -struct snapshot_output *snapshot_find_output_by_id(uint32_t id, - struct snapshot *snapshot); -struct snapshot_output *snapshot_find_output_by_name(const char *name, - struct snapshot *snapshot); + 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); +struct snapshot_output *snapshot_find_output_by_id(uint32_t id, struct snapshot *snapshot); +struct snapshot_output *snapshot_find_output_by_name(const char *name, struct snapshot *snapshot); #endif /* SNAPSHOT_H */