X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Ffs-handle-internal.h;fp=src%2Fcommon%2Ffs-handle-internal.h;h=0000000000000000000000000000000000000000;hb=c9e313bc594f40a86eed237dce222c0fc99c957f;hp=08824673d3e1e93165dabe2e0aa47739eb989689;hpb=4878de5c7deb512bbdac4fdfc498907efa06fb7c;p=lttng-tools.git diff --git a/src/common/fs-handle-internal.h b/src/common/fs-handle-internal.h deleted file mode 100644 index 08824673d..000000000 --- a/src/common/fs-handle-internal.h +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright (C) 2020 Jérémie Galarneau - * - * SPDX-License-Identifier: LGPL-2.1-only - * - */ - -#ifndef FS_HANDLE_INTERNAL_H -#define FS_HANDLE_INTERNAL_H - -struct fs_handle; - -/* - * Multiple internal APIs return fs_handles. For the moment, this internal - * interface allows the use of different fs_handle implementations in different - * daemons. For instance, the trace chunk interface returns fs_handles that - * behave diffently depending on whether or not the trace chunk was configured - * to use an fd-tracker. - */ - -typedef int (*fs_handle_get_fd_cb)(struct fs_handle *); -typedef void (*fs_handle_put_fd_cb)(struct fs_handle *); -typedef int (*fs_handle_unlink_cb)(struct fs_handle *); -typedef int (*fs_handle_close_cb)(struct fs_handle *); - -struct fs_handle { - fs_handle_get_fd_cb get_fd; - fs_handle_put_fd_cb put_fd; - fs_handle_unlink_cb unlink; - fs_handle_close_cb close; -}; - -#endif /* FS_HANDLE_INTERNAL_H */