diff options
Diffstat (limited to 'src/include/sys/vfs.h')
-rw-r--r-- | src/include/sys/vfs.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/include/sys/vfs.h b/src/include/sys/vfs.h index 579b9ba34..e596030fe 100644 --- a/src/include/sys/vfs.h +++ b/src/include/sys/vfs.h @@ -3,6 +3,13 @@ #include <stdint.h> +#define VFS_MODULE_MAX 128 +#define VFS_MODULE_NAME_MAX 64 +#define VFS_SYMBOL_INIT _init +#define VFS_SYMBOL_START _start +#define VFS_STRINGIFY(X) #X +#define VFS_TOSTRING(X) VFS_STRINGIFY(X) + #ifdef __cplusplus extern "C" { @@ -19,6 +26,17 @@ enum VfsMessages VFS_MSG_RESOLVE_MSGQ, }; +struct VfsSystemModule +{ + const char module[VFS_MODULE_NAME_MAX]; + void (*init)(void*); + void (*start)(void*); +}; + +extern VfsSystemModule VFS_MODULES[VFS_MODULE_MAX]; +extern uint64_t VFS_LAST_ADDRESS; + + #ifdef __cplusplus } #endif |