Initial import of the new binary lttng-relayd
[lttng-tools.git] / src / bin / lttng-sessiond / consumer.h
CommitLineData
f1e16794
DG
1/*
2 * Copyright (C) 2012 - David Goulet <dgoulet@efficios.com>
3 *
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.
7 *
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
11 * more details.
12 *
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.
16 */
17
18#ifndef _CONSUMER_H
19#define _CONSUMER_H
20
21#include <semaphore.h>
22
23#include <common/consumer.h>
24
25struct consumer_data {
26 enum lttng_consumer_type type;
27
28 pthread_t thread; /* Worker thread interacting with the consumer */
29 sem_t sem;
30
31 /* Mutex to control consumerd pid assignation */
32 pthread_mutex_t pid_mutex;
33 pid_t pid;
34
35 int err_sock;
36 int cmd_sock;
37
38 /* consumer error and command Unix socket path */
39 char err_unix_sock_path[PATH_MAX];
40 char cmd_unix_sock_path[PATH_MAX];
41};
42
43#endif /* _CONSUMER_H */
This page took 0.027762 seconds and 5 git commands to generate.