summaryrefslogtreecommitdiffstats
path: root/qemu/include/qemu/id.h
diff options
context:
space:
mode:
Diffstat (limited to 'qemu/include/qemu/id.h')
-rw-r--r--qemu/include/qemu/id.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/qemu/include/qemu/id.h b/qemu/include/qemu/id.h
new file mode 100644
index 000000000..7d90335af
--- /dev/null
+++ b/qemu/include/qemu/id.h
@@ -0,0 +1,13 @@
+#ifndef QEMU_ID_H
+#define QEMU_ID_H 1
+
+typedef enum IdSubSystems {
+ ID_QDEV,
+ ID_BLOCK,
+ ID_MAX /* last element, used as array size */
+} IdSubSystems;
+
+char *id_generate(IdSubSystems id);
+bool id_wellformed(const char *id);
+
+#endif