summaryrefslogtreecommitdiff
path: root/lib9p/tests/test_server/fs_slowread.h
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2025-04-12 08:43:15 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2025-04-12 08:43:15 -0600
commit52674d0483e3754b039857be1d11798859c5bcef (patch)
tree3047d310b60032a6861776eb37175551db59c0ca /lib9p/tests/test_server/fs_slowread.h
parentddd3f3982c6cdf8d7d0068e544cc9daf24355d32 (diff)
parenta780f6fe756b1a1051d5197d81366f21c42a316b (diff)
Merge branch 'lukeshu/9p-tests'
Diffstat (limited to 'lib9p/tests/test_server/fs_slowread.h')
-rw-r--r--lib9p/tests/test_server/fs_slowread.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/lib9p/tests/test_server/fs_slowread.h b/lib9p/tests/test_server/fs_slowread.h
new file mode 100644
index 0000000..ef4b65f
--- /dev/null
+++ b/lib9p/tests/test_server/fs_slowread.h
@@ -0,0 +1,22 @@
+/* lib9p/tests/test_server/fs_slowread.h - slowread API endpoint
+ *
+ * Copyright (C) 2024-2025 Luke T. Shumaker <lukeshu@lukeshu.com>
+ * SPDX-License-Identifier: AGPL-3.0-or-later
+ */
+
+#ifndef _LIB9P_TESTS_TEST_SERVER_FS_SLOWREAD_H_
+#define _LIB9P_TESTS_TEST_SERVER_FS_SLOWREAD_H_
+
+#include <util9p/static.h>
+#include <libhw/host_net.h>
+
+struct slowread_file {
+ char *name;
+ uint64_t pathnum;
+
+ bool flushable;
+};
+LO_IMPLEMENTATION_H(lib9p_srv_file, struct slowread_file, slowread_file);
+#define lo_box_slowread_file_as_lib9p_srv_file(obj) util9p_box(slowread_file, obj)
+
+#endif /* _LIB9P_TESTS_TEST_SERVER_FS_SLOWREAD_H_ */