[libosinfo PATCH v2 3/7] tree: Add treeinfo-* properties

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Fabiano Fidêncio <fidencio@xxxxxxxxxx>
---
 osinfo/osinfo_tree.c | 52 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 52 insertions(+)

diff --git a/osinfo/osinfo_tree.c b/osinfo/osinfo_tree.c
index 41e52d8..25b87b3 100644
--- a/osinfo/osinfo_tree.c
+++ b/osinfo/osinfo_tree.c
@@ -363,6 +363,58 @@ osinfo_tree_class_init(OsinfoTreeClass *klass)
                                  G_PARAM_READWRITE |
                                  G_PARAM_STATIC_STRINGS);
     g_object_class_install_property(g_klass, PROP_HAS_TREEINFO, pspec);
+
+    /**
+     * OsinfoTree:treeinfo-family
+     *
+     * The treeinfo family
+     */
+    pspec = g_param_spec_string("treeinfo-family",
+                                "TreeInfoFamily",
+                                _("The treeinfo family"),
+                                NULL /* default value */,
+                                G_PARAM_READWRITE |
+                                G_PARAM_STATIC_STRINGS);
+    g_object_class_install_property(g_klass, PROP_TREEINFO_FAMILY, pspec);
+
+    /**
+     * OsinfoTree:treeinfo-variant
+     *
+     * The treeinfo variant
+     */
+    pspec = g_param_spec_string("treeinfo-variant",
+                                "TreeInfoVariant",
+                                _("The treeinfo variant"),
+                                NULL /* default value */,
+                                G_PARAM_READWRITE |
+                                G_PARAM_STATIC_STRINGS);
+    g_object_class_install_property(g_klass, PROP_TREEINFO_FAMILY, pspec);
+
+    /**
+     * OsinfoTree:treeinfo-version
+     *
+     * The treeinfo version
+     */
+    pspec = g_param_spec_string("treeinfo-version",
+                                "TreeInfoVersion",
+                                _("The treeinfo version"),
+                                NULL /* default value */,
+                                G_PARAM_READWRITE |
+                                G_PARAM_STATIC_STRINGS);
+    g_object_class_install_property(g_klass, PROP_TREEINFO_FAMILY, pspec);
+
+    /**
+     * OsinfoTree:treeinfo-arch
+     *
+     * The treeinfo arch
+     */
+    pspec = g_param_spec_string("treeinfo-arch",
+                                "TreeInfoArch",
+                                _("The treeinfo architecture"),
+                                NULL /* default value */,
+                                G_PARAM_READWRITE |
+                                G_PARAM_STATIC_STRINGS);
+    g_object_class_install_property(g_klass, PROP_TREEINFO_FAMILY, pspec);
 }
 
 static void
-- 
2.21.0

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




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux