diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-04-16 05:27:40 -0600 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-04-16 05:27:40 -0600 |
commit | fdc9b04c051c7a49dcc48866b5675e06b9a87abe (patch) | |
tree | 30008026f025696066024c8d32001cf938afb9cc /lib9p/tests/test_server/fs_flush.h | |
parent | 802ed1e3cd0252cafd1be2aada0addf4d3f7eb2e (diff) | |
parent | f56ae03840bb264163c4035eb72fbac938847638 (diff) |
Merge branch 'lukeshu/9p-fix-flush'
Diffstat (limited to 'lib9p/tests/test_server/fs_flush.h')
-rw-r--r-- | lib9p/tests/test_server/fs_flush.h | 27 |
1 files changed, 27 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..a509c4a --- /dev/null +++ b/lib9p/tests/test_server/fs_flush.h @@ -0,0 +1,27 @@ +/* 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 <util9p/static.h> +#include <libhw/host_net.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); +#define lo_box_flush_file_as_lib9p_srv_file(obj) util9p_box(flush_file, obj) + +#endif /* _LIB9P_TESTS_TEST_SERVER_FS_FLUSH_H_ */ |