fd-tracker: refactor: extract fs_handle interface from fd_tracker
[lttng-tools.git] / src / common / fs-handle.c
1 /*
2 * Copyright (C) 2020 - Jérémie Galarneau <jeremie.galarneau@efficios.com>
3 *
4 * This library is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU Lesser General Public License as published by the
6 * Free Software Foundation; version 2.1 of the License.
7 *
8 * This library 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 Lesser General Public License
11 * for more details.
12 *
13 * You should have received a copy of the GNU Lesser General Public License
14 * along with this library; if not, write to the Free Software Foundation,
15 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16 */
17
18 #include <common/fs-handle.h>
19 #include <common/fs-handle-internal.h>
20
21 LTTNG_HIDDEN
22 int fs_handle_get_fd(struct fs_handle *handle)
23 {
24 return handle->get_fd(handle);
25 }
26
27 LTTNG_HIDDEN
28 void fs_handle_put_fd(struct fs_handle *handle)
29 {
30 return handle->put_fd(handle);
31 }
32
33 LTTNG_HIDDEN
34 int fs_handle_unlink(struct fs_handle *handle)
35 {
36 return handle->unlink(handle);
37 }
38
39 LTTNG_HIDDEN
40 int fs_handle_close(struct fs_handle *handle)
41 {
42 return handle->close(handle);
43 }
This page took 0.030176 seconds and 5 git commands to generate.