relayd: track stdio output file descriptors
[lttng-tools.git] / src / bin / lttng-relayd / stream-fd.h
1 #ifndef _STREAM_FD_H
2 #define _STREAM_FD_H
3
4 /*
5 * Copyright (C) 2015 - Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
6 *
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License, version 2 only, as
9 * published by the Free Software Foundation.
10 *
11 * This program is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14 * more details.
15 *
16 * You should have received a copy of the GNU General Public License along with
17 * this program; if not, write to the Free Software Foundation, Inc., 51
18 * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 */
20
21 #include <urcu/ref.h>
22
23 struct stream_fd {
24 int fd;
25 struct urcu_ref ref;
26 };
27
28 struct stream_fd *stream_fd_create(int fd);
29 void stream_fd_get(struct stream_fd *sf);
30 void stream_fd_put(struct stream_fd *sf);
31
32 #endif /* _STREAM_FD_H */
This page took 0.029556 seconds and 4 git commands to generate.