refactor: one more step towards arch-agnostic design
[lunaix-os.git] / lunaix-os / includes / lunaix / fs / twifs.h
index a8117ef7cddb61ff4c67b59598c45365ef128691..d77619e952291213245990a46617c9a7482d650f 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef __LUNAIX_TWIFS_H
 #define __LUNAIX_TWIFS_H
 
+#include <lunaix/ds/ldga.h>
 #include <lunaix/fs.h>
 #include <lunaix/fs/twimap.h>
 #include <lunaix/spike.h>
@@ -10,7 +11,7 @@ struct twifs_node
     struct hstr name;
     inode_t ino_id;
     void* data;
-    uint32_t itype;
+    u32_t itype;
     char name_val[VFS_NAME_MAXLEN];
     struct llist_header children;
     struct llist_header siblings;
@@ -34,6 +35,12 @@ struct twifs_node
         (type) twinode->data;                                                  \
     })
 
+#define EXPORT_TWIFS_PLUGIN(label, plg_init)                                   \
+    export_ldga_el(twiplugin_inits, label, ptr_t, plg_init)
+
+void
+twifs_register_plugins();
+
 void
 twifs_init();