[libgda] Fixing GI annotations for Gda.MetaStruct.get_all_db_objects()



commit a19fca9c2636293636a6321145c52d5ce20ceaed
Author: Daniel Espinosa <despinosa src gnome org>
Date:   Wed Jan 4 18:21:51 2012 -0600

    Fixing GI annotations for Gda.MetaStruct.get_all_db_objects()

 libgda/Gda-5.0.gir       |   12 +++++++-----
 libgda/gda-meta-struct.c |    4 +++-
 libgda/libgda-5.0.vapi   |    1 +
 3 files changed, 11 insertions(+), 6 deletions(-)
---
diff --git a/libgda/Gda-5.0.gir b/libgda/Gda-5.0.gir
index 76a78cc..d767bff 100644
--- a/libgda/Gda-5.0.gir
+++ b/libgda/Gda-5.0.gir
@@ -11258,14 +11258,16 @@ Please refer to gda_meta_struct_complement() form more information.</doc>
         </parameters>
       </method>
       <method name="get_all_db_objects"
-              c:identifier="gda_meta_struct_get_all_db_objects"
-              introspectable="0">
+              c:identifier="gda_meta_struct_get_all_db_objects">
         <doc xml:whitespace="preserve">Get a list of all the #GdaMetaDbObject structures representing database objects in @mstruct. Note that
-no #GdaMetaDbObject structure must not be modified.</doc>
+no #GdaMetaDbObject structure must not be modified.
+
+#GdaMetaDbObject structures which must be destroyed after usage using g_slist_free(). The individual
+#GdaMetaDbObject must not be modified.</doc>
         <return-value transfer-ownership="container">
-          <doc xml:whitespace="preserve">a new #GSList list of pointers to #GdaMetaDbObject structures which must be destroyed after usage using g_slist_free(). The individual #GdaMetaDbObject must not be modified.</doc>
+          <doc xml:whitespace="preserve">a new #GSList list of pointers to</doc>
           <type name="GLib.SList" c:type="GSList*">
-            <type name="MetaObject"/>
+            <type name="MetaDbObject"/>
           </type>
         </return-value>
       </method>
diff --git a/libgda/gda-meta-struct.c b/libgda/gda-meta-struct.c
index 6f7d525..73fbf61 100644
--- a/libgda/gda-meta-struct.c
+++ b/libgda/gda-meta-struct.c
@@ -1856,7 +1856,9 @@ _meta_struct_get_db_object (GdaMetaStruct *mstruct, const GValue *catalog, const
  * Get a list of all the #GdaMetaDbObject structures representing database objects in @mstruct. Note that
  * no #GdaMetaDbObject structure must not be modified.
  *
- * Returns: (transfer container) (element-type Gda.MetaObject): a new #GSList list of pointers to #GdaMetaDbObject structures which must be destroyed after usage using g_slist_free(). The individual #GdaMetaDbObject must not be modified.
+ * Returns: (transfer container) (element-type Gda.MetaDbObject): a new #GSList list of pointers to
+ * #GdaMetaDbObject structures which must be destroyed after usage using g_slist_free(). The individual
+ * #GdaMetaDbObject must not be modified.
  */
 GSList *
 gda_meta_struct_get_all_db_objects (GdaMetaStruct *mstruct)
diff --git a/libgda/libgda-5.0.vapi b/libgda/libgda-5.0.vapi
index 96747df..19c3442 100644
--- a/libgda/libgda-5.0.vapi
+++ b/libgda/libgda-5.0.vapi
@@ -609,6 +609,7 @@ namespace Gda {
 		public bool complement_schema (GLib.Value? catalog, GLib.Value? schema) throws GLib.Error;
 		public string dump_as_graph (Gda.MetaGraphInfo info) throws GLib.Error;
 		public static GLib.Quark error_quark ();
+		public GLib.SList<weak Gda.MetaDbObject> get_all_db_objects ();
 		public Gda.MetaDbObject get_db_object (GLib.Value? catalog, GLib.Value? schema, GLib.Value name);
 		public bool sort_db_objects (Gda.MetaSortType sort_type) throws GLib.Error;
 		[NoAccessorMethod]



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