Blame SOURCES/0008-ovirt-foreign-menu-Add-accessors-for-current-iso-and.patch

48c875
From 54f2b8abb553005b10cc65e7267a7de2d095fad5 Mon Sep 17 00:00:00 2001
48c875
From: "Eduardo Lima (Etrunko)" <etrunko@redhat.com>
48c875
Date: Thu, 3 Nov 2016 16:36:35 -0200
48c875
Subject: [PATCH 08/26] ovirt-foreign-menu: Add accessors for current iso and
48c875
 iso list
48c875
48c875
Also, to keep consistency around the codebase, changed the return value
48c875
of ovirt_foreign_menu_get_current_iso_name() from char * to gchar *.
48c875
48c875
Signed-off-by: Eduardo Lima (Etrunko) <etrunko@redhat.com>
48c875
---
48c875
 src/ovirt-foreign-menu.c | 11 +++++++++--
48c875
 src/ovirt-foreign-menu.h |  2 ++
48c875
 2 files changed, 11 insertions(+), 2 deletions(-)
48c875
48c875
diff --git a/src/ovirt-foreign-menu.c b/src/ovirt-foreign-menu.c
48c875
index 8a99665..ef3ddd9 100644
48c875
--- a/src/ovirt-foreign-menu.c
48c875
+++ b/src/ovirt-foreign-menu.c
48c875
@@ -85,10 +85,10 @@ enum {
48c875
 };
48c875
 
48c875
 
48c875
-static char *
48c875
+gchar *
48c875
 ovirt_foreign_menu_get_current_iso_name(OvirtForeignMenu *foreign_menu)
48c875
 {
48c875
-    char *name;
48c875
+    gchar *name;
48c875
 
48c875
     if (foreign_menu->priv->cdrom == NULL) {
48c875
         return NULL;
48c875
@@ -100,6 +100,13 @@ ovirt_foreign_menu_get_current_iso_name(OvirtForeignMenu *foreign_menu)
48c875
 }
48c875
 
48c875
 
48c875
+GList*
48c875
+ovirt_foreign_menu_get_iso_names(OvirtForeignMenu *foreign_menu)
48c875
+{
48c875
+    return foreign_menu->priv->iso_names;
48c875
+}
48c875
+
48c875
+
48c875
 static void
48c875
 ovirt_foreign_menu_get_property(GObject *object, guint property_id,
48c875
                                        GValue *value, GParamSpec *pspec)
48c875
diff --git a/src/ovirt-foreign-menu.h b/src/ovirt-foreign-menu.h
48c875
index a864a60..340201f 100644
48c875
--- a/src/ovirt-foreign-menu.h
48c875
+++ b/src/ovirt-foreign-menu.h
48c875
@@ -88,6 +88,8 @@ gboolean ovirt_foreign_menu_set_current_iso_name_finish(OvirtForeignMenu *foreig
48c875
 
48c875
 
48c875
 GtkWidget *ovirt_foreign_menu_get_gtk_menu(OvirtForeignMenu *foreign_menu);
48c875
+gchar *ovirt_foreign_menu_get_current_iso_name(OvirtForeignMenu *menu);
48c875
+GList *ovirt_foreign_menu_get_iso_names(OvirtForeignMenu *menu);
48c875
 
48c875
 G_END_DECLS
48c875
 
48c875
-- 
48c875
2.12.0
48c875