diff options
Diffstat (limited to 'lib9p/tests/test_server/fs_flush.h')
-rw-r--r-- | lib9p/tests/test_server/fs_flush.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/lib9p/tests/test_server/fs_flush.h b/lib9p/tests/test_server/fs_flush.h new file mode 100644 index 0000000..023434b --- /dev/null +++ b/lib9p/tests/test_server/fs_flush.h @@ -0,0 +1,26 @@ +/* lib9p/tests/test_server/fs_flush.h - flush-* API endpoints + * + * Copyright (C) 2024-2025 Luke T. Shumaker <lukeshu@lukeshu.com> + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + +#ifndef _LIB9P_TESTS_TEST_SERVER_FS_FLUSH_H_ +#define _LIB9P_TESTS_TEST_SERVER_FS_FLUSH_H_ + +#include <libhw/host_net.h> +#include <util9p/static.h> + +struct flush_file { + char *name; + uint64_t pathnum; + + unsigned int flush_cnt; + enum { + FLUSH_READ, + FLUSH_ERROR, + FLUSH_SILENT, + } flush_behavior; +}; +LO_IMPLEMENTATION_H(lib9p_srv_file, struct flush_file, flush_file); + +#endif /* _LIB9P_TESTS_TEST_SERVER_FS_FLUSH_H_ */ |