feat: taskfs for export process to filesystem
[lunaix-os.git] / lunaix-os / includes / lunaix / fs / taskfs.h
diff --git a/lunaix-os/includes/lunaix/fs/taskfs.h b/lunaix-os/includes/lunaix/fs/taskfs.h
new file mode 100644 (file)
index 0000000..0afc048
--- /dev/null
@@ -0,0 +1,25 @@
+#ifndef __LUNAIX_TASKFS_H
+#define __LUNAIX_TASKFS_H
+
+#include <lunaix/fs.h>
+#include <lunaix/fs/twimap.h>
+
+struct task_attribute
+{
+    struct llist_header siblings;
+    struct hlist_node attrs;
+    struct hstr key;
+    struct twimap* map_file;
+    char key_val[32];
+};
+
+void
+taskfs_init();
+
+void
+taskfs_export_attr(const char* key, struct twimap* attr_map_file);
+
+struct task_attribute*
+taskfs_get_attr(struct hstr* key);
+
+#endif /* __LUNAIX_TASKFS_H */