Merge branch 'vfs-dev'
[lunaix-os.git] / lunaix-os / includes / lunaix / device.h
index dde14a3f391d6eb31fdd1e0300ca1105935d1399..14558a7ce840ccb3458ef58355ba056f427ea42b 100644 (file)
@@ -14,21 +14,18 @@ struct device
     char name_val[DEVICE_NAME_SIZE];
     void* underlay;
     void* fs_node;
-    int (*read)(struct device* dev,
-                void* buf,
-                unsigned int offset,
-                unsigned int len);
-    int (*write)(struct device* dev,
-                 void* buf,
-                 unsigned int offset,
-                 unsigned int len);
+    int (*read)(struct device* dev, void* buf, size_t offset, size_t len);
+    int (*write)(struct device* dev, void* buf, size_t offset, size_t len);
 };
 
 void
 device_init();
 
 struct device*
-device_add(struct device* parent, void* underlay, char* name_fmt, ...);
+device_addseq(struct device* parent, void* underlay, char* name_fmt, ...);
+
+struct device*
+device_addvol(struct device* parent, void* underlay, char* name_fmt, ...);
 
 void
 device_remove(struct device* dev);