summaryrefslogtreecommitdiff
path: root/include/common/kernel/iofilemgr/dirent.h
diff options
context:
space:
mode:
authorReiko Asakura2020-07-23 21:34:32 -0400
committerReiko Asakura2020-07-23 21:34:32 -0400
commit128b6114a5951f3489f9e626cddfe6de54e7fb99 (patch)
tree5c2f81dfde71f133bb1db7528f6ef80f0b60eb08 /include/common/kernel/iofilemgr/dirent.h
parentChange `pragma GCC warning` to `pragma message` (diff)
downloadvds-libraries-128b6114a5951f3489f9e626cddfe6de54e7fb99.tar.gz
Put common IO definitions into psp2common
Diffstat (limited to 'include/common/kernel/iofilemgr/dirent.h')
-rw-r--r--include/common/kernel/iofilemgr/dirent.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/include/common/kernel/iofilemgr/dirent.h b/include/common/kernel/iofilemgr/dirent.h
new file mode 100644
index 0000000..1e28c22
--- /dev/null
+++ b/include/common/kernel/iofilemgr/dirent.h
@@ -0,0 +1,23 @@
+#ifndef _DOLCESDK_PSP2COMMON_KERNEL_IOFILEMGR_DIRENT_H_
+#define _DOLCESDK_PSP2COMMON_KERNEL_IOFILEMGR_DIRENT_H_
+
+#include <psp2common/kernel/types.h>
+#include <psp2common/kernel/iofilemgr/stat.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/** Describes a single directory entry */
+typedef struct SceIoDirent {
+ SceIoStat d_stat; //!< File status
+ char d_name[256]; //!< File name (not file path)
+ void *d_private; //!< Reserved (set to 0)
+ int dummy; //!< Padding
+} SceIoDirent;
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _DOLCESDK_PSP2COMMON_KERNEL_IOFILEMGR_DIRENT_H_ */