diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-04-05 21:41:15 -0600 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-04-05 21:41:15 -0600 |
commit | 5d72b64e90cd5252c2c25b6c6eb1e9cf5cc739f9 (patch) | |
tree | 3a29d91c3dfb3c7c580c87184a15b5bd54e55172 /cmd/sbc_harness/fs_harness_uptime_txt.h | |
parent | 7fe3755f3a3dc11f1371b2b104fe3cf357da2310 (diff) | |
parent | 9758d91ea795448689ec401570bf556b8107177c (diff) |
Merge branch 'lukeshu/net-flash'
Diffstat (limited to 'cmd/sbc_harness/fs_harness_uptime_txt.h')
-rw-r--r-- | cmd/sbc_harness/fs_harness_uptime_txt.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/cmd/sbc_harness/fs_harness_uptime_txt.h b/cmd/sbc_harness/fs_harness_uptime_txt.h new file mode 100644 index 0000000..7bf2945 --- /dev/null +++ b/cmd/sbc_harness/fs_harness_uptime_txt.h @@ -0,0 +1,19 @@ +/* sbc_harness/fs_harness_uptime_txt.h - 9P access to harness uptime + * + * Copyright (C) 2025 Luke T. Shumaker <lukeshu@lukeshu.com> + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + +#ifndef _SBC_HARNESS_FS_HARNESS_UPTIME_TXT_H_ +#define _SBC_HARNESS_FS_HARNESS_UPTIME_TXT_H_ + +#include <lib9p/srv.h> + +struct uptime_file { + char *name; + uint64_t pathnum; +}; +LO_IMPLEMENTATION_H(lib9p_srv_file, struct uptime_file, uptime_file); +#define lo_box_uptime_file_as_lib9p_srv_file(obj) util9p_box(uptime_file, obj) + +#endif /* _SBC_HARNESS_FS_HARNESS_UPTIME_TXT_H_ */ |