chiark / gitweb /
volume_id: split raid and filesystem detection
[elogind.git] / extras / volume_id / libvolume_id / volume_id.h
index f2f3a0d0065d52e48144eb8bf09f08ce47bff44d..2caf75f532eeaf80326226f83dd2828862d3118e 100644 (file)
 #define _VOLUME_ID_H_
 
 #include <stdint.h>
+#include <stddef.h>
 
-#define VOLUME_ID_VERSION              53
+#define VOLUME_ID_VERSION              57
+
+#ifndef PACKED
+#define PACKED                         __attribute__((packed))
+#endif
 
 #define VOLUME_ID_LABEL_SIZE           64
 #define VOLUME_ID_UUID_SIZE            36
@@ -68,6 +73,8 @@ struct volume_id {
 extern struct volume_id *volume_id_open_fd(int fd);
 extern struct volume_id *volume_id_open_node(const char *path);
 extern int volume_id_probe_all(struct volume_id *id, uint64_t off, uint64_t size);
+extern int volume_id_probe_filesystem(struct volume_id *id, uint64_t off, uint64_t size);
+extern int volume_id_probe_raid(struct volume_id *id, uint64_t off, uint64_t size);
 extern void volume_id_close(struct volume_id *id);
 
 /* filesystems */