[libgda/LIBGDA_4.2] GI annotations fixes and Vala bindings fixes on GdaMetaContext and GdaMetaStore * Added documentatio



commit 54f0c30825bf958095db403978f0f361cd2f3f0a
Author: Daniel Espinosa <despinosa src gnome org>
Date:   Tue Jan 24 11:13:42 2012 -0600

    GI annotations fixes and Vala bindings fixes on GdaMetaContext and GdaMetaStore
    * Added documentation to GdaMetaContext
    * GI annnotations doesn't fix GdaMetaStore GIR, then added metadata to fix on Vala

 libgda/Gda-4.0.metadata  |    4 ++++
 libgda/gda-meta-store.c  |    2 +-
 libgda/gda-meta-store.h  |   12 +++++++++++-
 libgda/gda-meta-struct.c |    2 +-
 4 files changed, 17 insertions(+), 3 deletions(-)
---
diff --git a/libgda/Gda-4.0.metadata b/libgda/Gda-4.0.metadata
index 4b7413a..ddc19b5 100644
--- a/libgda/Gda-4.0.metadata
+++ b/libgda/Gda-4.0.metadata
@@ -39,3 +39,7 @@ DataModelIter.get_value_for_field unowned=true
 DataModelIter.get_value_for_field nullable=true
 Holder.get_value nullable=true
 Row.get_value nullable=true
+MetaContext.column_names array=true
+MetaContext.column_names array_length_field="size"
+MetaContext.column_values array=true
+MetaContext.column_values array_length_field="size"
diff --git a/libgda/gda-meta-store.c b/libgda/gda-meta-store.c
index 9f1d6c7..e815765 100644
--- a/libgda/gda-meta-store.c
+++ b/libgda/gda-meta-store.c
@@ -2436,7 +2436,7 @@ gda_meta_store_extract (GdaMetaStore *store, const gchar *select_sql, GError **e
  * gda_meta_store_extract_v:
  * @store: a #GdaMetaStore object
  * @select_sql: a SELECT statement
- * @vars: (element-type gchar GObject.Value) (allow-none): a hash table with all variables names as keys and GValue* as 
+ * @vars: (element-type utf8 GObject.Value) (allow-none): a hash table with all variables names as keys and GValue* as 
  * value, representing values for all the variables mentioned in @select_sql. If there is no variable then this part can be
  * omitted.
  * @error: a place to store errors, or %NULL
diff --git a/libgda/gda-meta-store.h b/libgda/gda-meta-store.h
index 499aec2..5d635e1 100644
--- a/libgda/gda-meta-store.h
+++ b/libgda/gda-meta-store.h
@@ -69,7 +69,17 @@ typedef struct {
 	                               * value = a GValue pointer */
 } GdaMetaStoreChange;
 
-/* suggestion */
+/**
+ * GdaMetaContext:
+ * @table_name: the name of the table <emphasis>in the GdaMetaStore's internal database</emphasis>
+ * @size: the size of the @column_names and @column_values arrays
+ * @column_names: (array length=size): an array of column names (columns of the @table_name table)
+ * @column_values: (array length=size): an array of values, one for each column named in @column_names
+ *
+ * The <structname>GdaMetaContext</structname> represents a meta data modification
+ * context: the <emphasis>how</emphasis> when used with gda_meta_store_modify_with_context(),
+ * and the <emphasis>what</emphasis> when used with gda_connection_update_meta_store().
+ */
 typedef struct {
 	gchar                  *table_name;
 	gint                    size;
diff --git a/libgda/gda-meta-struct.c b/libgda/gda-meta-struct.c
index fff8f8b..764cde8 100644
--- a/libgda/gda-meta-struct.c
+++ b/libgda/gda-meta-struct.c
@@ -1854,7 +1854,7 @@ _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)



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