2 * Copyright (C) 2020 Jérémie Galarneau <jeremie.galarneau@efficios.com>
4 * SPDX-License-Identifier: LGPL-2.1-only
8 #ifndef FS_HANDLE_INTERNAL_H
9 #define FS_HANDLE_INTERNAL_H
14 * Multiple internal APIs return fs_handles. For the moment, this internal
15 * interface allows the use of different fs_handle implementations in different
16 * daemons. For instance, the trace chunk interface returns fs_handles that
17 * behave diffently depending on whether or not the trace chunk was configured
18 * to use an fd-tracker.
21 using fs_handle_get_fd_cb = int (*)(struct fs_handle *);
22 using fs_handle_put_fd_cb = void (*)(struct fs_handle *);
23 using fs_handle_unlink_cb = int (*)(struct fs_handle *);
24 using fs_handle_close_cb = int (*)(struct fs_handle *);
27 fs_handle_get_fd_cb get_fd;
28 fs_handle_put_fd_cb put_fd;
29 fs_handle_unlink_cb unlink;
30 fs_handle_close_cb close;
33 #endif /* FS_HANDLE_INTERNAL_H */