X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=liblttkconsumerd%2Fliblttkconsumerd.h;h=d085a795067c1cd4b295d24f1b8ce660714b2581;hp=8dc6b6270eff123d02da6d3f6b63a2290eb49801;hb=ca3c5ac0cf100d80352a1a81936b5adc47942f35;hpb=1ce86c9ab52be743e3348fd0c90153d9a9f63c49 diff --git a/liblttkconsumerd/liblttkconsumerd.h b/liblttkconsumerd/liblttkconsumerd.h index 8dc6b6270..d085a7950 100644 --- a/liblttkconsumerd/liblttkconsumerd.h +++ b/liblttkconsumerd/liblttkconsumerd.h @@ -3,8 +3,8 @@ * * 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; either version 2 - * of the License, or (at your option) any later version. + * as published by the Free Software Foundation; only version 2 + * of the License. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -19,8 +19,8 @@ #ifndef _LIBLTTKCONSUMERD_H #define _LIBLTTKCONSUMERD_H +#include #include "lttng-kconsumerd.h" -#include "liblttsessiondcomm.h" /* * When the receiving thread dies, we need to have a way to make @@ -57,11 +57,13 @@ struct kconsumerd_fd { unsigned long max_sb_size; /* the subbuffer size for this channel */ }; -int kconsumerd_create_poll_pipe(); +int kconsumerd_init(void); int kconsumerd_send_error(enum lttcomm_return_code cmd); +int kconsumerd_poll_socket(struct pollfd *kconsumerd_sockpoll); void *kconsumerd_thread_poll_fds(void *data); void *kconsumerd_thread_receive_fds(void *data); -void kconsumerd_cleanup(); +void kconsumerd_should_exit(void); +void kconsumerd_cleanup(void); void kconsumerd_set_error_socket(int sock); void kconsumerd_set_command_socket_path(char *sock);