[gobject-introspection] Add test_obj_get_bare



commit 180a3644c02eefc765b70405a7b2be43162c5375
Author: Simon van der Linden <svdlinden src gnome org>
Date:   Wed Jul 29 16:34:52 2009 +0200

    Add test_obj_get_bare

 gir/everything.c |   11 +++++++++++
 gir/everything.h |    1 +
 2 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/gir/everything.c b/gir/everything.c
index 16c3edb..70983d5 100644
--- a/gir/everything.c
+++ b/gir/everything.c
@@ -1461,6 +1461,17 @@ test_obj_set_bare (TestObj *obj, GObject *bare)
     g_object_ref (obj->bare);
 }
 
+/**
+ * test_obj_get_bare:
+ *
+ * Return value: (allow-none):
+ */
+GObject *
+test_obj_get_bare (TestObj *obj)
+{
+  return obj->bare;
+}
+
 int
 test_obj_instance_method (TestObj *obj)
 {
diff --git a/gir/everything.h b/gir/everything.h
index b7dbca0..9b681c8 100644
--- a/gir/everything.h
+++ b/gir/everything.h
@@ -252,6 +252,7 @@ struct _TestObjClass
 GType      test_obj_get_type (void);
 TestObj*   test_obj_new_from_file (const char *x, GError **error);
 void       test_obj_set_bare (TestObj *obj, GObject *bare);
+GObject*   test_obj_get_bare (TestObj *obj);
 int        test_obj_instance_method (TestObj *obj);
 double     test_obj_static_method (int x);
 



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