Let's add a new type in order to specify flags to osinfo_media_detect.
This type, at least for now, contains only one specific flag that will
be used to specify whether the detection of the media should or should
not fail in case the media is not bootable.

https://gitlab.com/libosinfo/libosinfo/issues/15

Signed-off-by: Fabiano Fidêncio <fiden...@redhat.com>
---
 osinfo/libosinfo.syms |  2 ++
 osinfo/osinfo_media.h | 10 ++++++++++
 2 files changed, 12 insertions(+)

diff --git a/osinfo/libosinfo.syms b/osinfo/libosinfo.syms
index 1d9b15a..67627f2 100644
--- a/osinfo/libosinfo.syms
+++ b/osinfo/libosinfo.syms
@@ -586,6 +586,8 @@ LIBOSINFO_1.5.0 {
 
 LIBOSINFO_1.6.0 {
     global:
+       osinfo_media_detect_flags_get_type;
+
        osinfo_os_get_kernel_url_argument;
 } LIBOSINFO_1.5.0;
 
diff --git a/osinfo/osinfo_media.h b/osinfo/osinfo_media.h
index eb5ba67..0f19794 100644
--- a/osinfo/osinfo_media.h
+++ b/osinfo/osinfo_media.h
@@ -58,6 +58,16 @@ typedef enum {
     OSINFO_MEDIA_ERROR_NO_DIRECTORY_RECORD_EXTENT
 } OsinfoMediaError;
 
+/**
+ * OsinfoMediaDetectFlags
+ * OSINFO_MEDIA_DETECT_REQUIRE_BOOTABLE: Requires a media to be bootable.
+ *
+ * Flags used for detecting a media.
+ */
+typedef enum {
+    OSINFO_MEDIA_DETECT_REQUIRE_BOOTABLE = 1 << 0,
+} OsinfoMediaDetectFlags;
+
 /*
  * Type macros.
  */
-- 
2.21.0

_______________________________________________
Libosinfo mailing list
Libosinfo@redhat.com
https://www.redhat.com/mailman/listinfo/libosinfo

Reply via email to