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