2 * Copyright (C) 2012 - David Goulet <dgoulet@efficios.com>
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License, version 2 only, as
6 * published by the Free Software Foundation.
8 * This program is distributed in the hope that it will be useful, but WITHOUT
9 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13 * You should have received a copy of the GNU General Public License along with
14 * this program; if not, write to the Free Software Foundation, Inc., 51
15 * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21 #include <semaphore.h>
23 #include <common/consumer.h>
25 struct consumer_data
{
26 enum lttng_consumer_type type
;
28 pthread_t thread
; /* Worker thread interacting with the consumer */
31 /* Mutex to control consumerd pid assignation */
32 pthread_mutex_t pid_mutex
;
38 /* consumer error and command Unix socket path */
39 char err_unix_sock_path
[PATH_MAX
];
40 char cmd_unix_sock_path
[PATH_MAX
];
43 #endif /* _CONSUMER_H */