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

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