[vala] libgda-4.0: fix vfunc names om Gda.DataModel and Gda.Lockable



commit 601b513c63b8d1a17601235122f6570e610cb8a4
Author: Evan Nemerson <evan coeus-group com>
Date:   Sat May 15 22:35:03 2010 -0700

    libgda-4.0: fix vfunc names om Gda.DataModel and Gda.Lockable

 vapi/libgda-4.0.vapi                         |   91 +++++++++-----------------
 vapi/packages/libgda-4.0/libgda-4.0.metadata |   24 +++++++
 2 files changed, 54 insertions(+), 61 deletions(-)
---
diff --git a/vapi/libgda-4.0.vapi b/vapi/libgda-4.0.vapi
index 83c008b..b2eb13d 100644
--- a/vapi/libgda-4.0.vapi
+++ b/vapi/libgda-4.0.vapi
@@ -1462,72 +1462,44 @@ namespace Gda {
 	}
 	[CCode (cheader_filename = "libgda/libgda.h")]
 	public interface DataModel : GLib.Object {
-		public int append_row () throws GLib.Error;
-		public int append_values (GLib.List values) throws GLib.Error;
-		public unowned Gda.DataModelIter create_iter ();
-		public unowned Gda.Column describe_column (int col);
+		[CCode (vfunc_name = "i_append_row")]
+		public virtual int append_row () throws GLib.Error;
+		[CCode (vfunc_name = "i_append_values")]
+		public virtual int append_values (GLib.List values) throws GLib.Error;
+		[CCode (vfunc_name = "i_create_iter")]
+		public virtual unowned Gda.DataModelIter create_iter ();
+		[CCode (vfunc_name = "i_describe_column")]
+		public virtual unowned Gda.Column describe_column (int col);
 		public void dump (GLib.FileStream to_stream);
 		public unowned string dump_as_string ();
 		public static GLib.Quark error_quark ();
 		public bool export_to_file (Gda.DataModelIOFormat format, string file, int cols, int nb_cols, int rows, int nb_rows, Gda.Set options) throws GLib.Error;
 		public unowned string export_to_string (Gda.DataModelIOFormat format, int cols, int nb_cols, int rows, int nb_rows, Gda.Set options);
 		public void freeze ();
-		public Gda.DataModelAccessFlags get_access_flags ();
-		public Gda.ValueAttribute get_attributes_at (int col, int row);
+		[CCode (vfunc_name = "i_get_access_flags")]
+		public virtual Gda.DataModelAccessFlags get_access_flags ();
+		[CCode (vfunc_name = "i_get_attributes_at")]
+		public virtual Gda.ValueAttribute get_attributes_at (int col, int row);
 		public int get_column_index (string name);
 		public unowned string get_column_name (int col);
 		public unowned string get_column_title (int col);
-		public int get_n_columns ();
-		public int get_n_rows ();
+		[CCode (vfunc_name = "i_get_n_columns")]
+		public virtual int get_n_columns ();
+		[CCode (vfunc_name = "i_get_n_rows")]
+		public virtual int get_n_rows ();
 		public int get_row_from_values (GLib.SList values, int cols_index);
 		public unowned GLib.Value? get_typed_value_at (int col, int row, GLib.Type expected_type, bool nullok) throws GLib.Error;
 		public unowned GLib.Value? get_value_at (int col, int row) throws GLib.Error;
-		[NoWrapper]
-		public abstract int i_append_row () throws GLib.Error;
-		[NoWrapper]
-		public abstract int i_append_values (GLib.List values) throws GLib.Error;
-		[NoWrapper]
-		public abstract unowned Gda.DataModelIter i_create_iter ();
-		[NoWrapper]
-		public abstract unowned Gda.Column i_describe_column (int col);
-		[NoWrapper]
-		public abstract int i_find_row (GLib.SList values, int cols_index);
-		[NoWrapper]
-		public abstract Gda.DataModelAccessFlags i_get_access_flags ();
-		[NoWrapper]
-		public abstract Gda.ValueAttribute i_get_attributes_at (int col, int row);
-		[NoWrapper]
-		public abstract int i_get_n_columns ();
-		[NoWrapper]
-		public abstract int i_get_n_rows ();
-		[NoWrapper]
-		public abstract bool i_get_notify ();
-		[NoWrapper]
-		public abstract GLib.Value i_get_value_at (int col, int row) throws GLib.Error;
-		[NoWrapper]
-		public abstract bool i_iter_at_row (Gda.DataModelIter iter, int row);
-		[NoWrapper]
-		public abstract bool i_iter_next (Gda.DataModelIter iter);
-		[NoWrapper]
-		public abstract bool i_iter_prev (Gda.DataModelIter iter);
-		[NoWrapper]
-		public abstract bool i_iter_set_value (Gda.DataModelIter iter, int col, GLib.Value value) throws GLib.Error;
-		[NoWrapper]
-		public abstract bool i_remove_row (int row) throws GLib.Error;
-		[NoWrapper]
-		public abstract void i_send_hint (Gda.DataModelHint hint, GLib.Value hint_value);
-		[NoWrapper]
-		public abstract void i_set_notify (bool do_notify_changes);
-		[NoWrapper]
-		public abstract bool i_set_value_at (int col, int row, GLib.Value value) throws GLib.Error;
-		[NoWrapper]
-		public abstract bool i_set_values (int row, GLib.List values) throws GLib.Error;
-		public bool remove_row (int row) throws GLib.Error;
-		public void send_hint (Gda.DataModelHint hint, GLib.Value hint_value);
+		[CCode (vfunc_name = "i_remove_row")]
+		public virtual bool remove_row (int row) throws GLib.Error;
+		[CCode (vfunc_name = "i_send_hint")]
+		public virtual void send_hint (Gda.DataModelHint hint, GLib.Value hint_value);
 		public void set_column_name (int col, string name);
 		public void set_column_title (int col, string title);
-		public bool set_value_at (int col, int row, GLib.Value value) throws GLib.Error;
-		public bool set_values (int row, GLib.List values) throws GLib.Error;
+		[CCode (vfunc_name = "i_set_value_at")]
+		public virtual bool set_value_at (int col, int row, GLib.Value value) throws GLib.Error;
+		[CCode (vfunc_name = "i_set_values")]
+		public virtual bool set_values (int row, GLib.List values) throws GLib.Error;
 		public void thaw ();
 		public signal void changed ();
 		public signal void reset ();
@@ -1537,15 +1509,12 @@ namespace Gda {
 	}
 	[CCode (cheader_filename = "libgda/libgda.h")]
 	public interface Lockable : GLib.Object {
-		[NoWrapper]
-		public abstract void i_lock ();
-		[NoWrapper]
-		public abstract bool i_trylock ();
-		[NoWrapper]
-		public abstract void i_unlock ();
-		public void @lock ();
-		public bool trylock ();
-		public void unlock ();
+		[CCode (vfunc_name = "i_lock")]
+		public virtual void @lock ();
+		[CCode (vfunc_name = "i_trylock")]
+		public virtual bool trylock ();
+		[CCode (vfunc_name = "i_unlock")]
+		public virtual void unlock ();
 	}
 	[CCode (type_id = "GDA_TYPE_DSN_INFO", cheader_filename = "libgda/libgda.h")]
 	public struct DsnInfo {
diff --git a/vapi/packages/libgda-4.0/libgda-4.0.metadata b/vapi/packages/libgda-4.0/libgda-4.0.metadata
index 91cd298..05564e5 100644
--- a/vapi/packages/libgda-4.0/libgda-4.0.metadata
+++ b/vapi/packages/libgda-4.0/libgda-4.0.metadata
@@ -1,9 +1,33 @@
 Gda cheader_filename="libgda/libgda.h"
+*_i_* hidden="1"
 gda_connection_open_from_string.cnc_string nullable="1"
 gda_connection_open_from_string.auth_string nullable="1"
 gda_connection_open_from_dsn.auth_string nullable="1"
 gda_connection_statement_execute_non_select.params nullable="1"
 gda_connection_statement_execute_non_select.last_insert_row nullable="1"
+gda_data_model_append_row virtual="1" vfunc_name="i_append_row"
+gda_data_model_append_values virtual="1" vfunc_name="i_append_values"
+gda_data_model_create_iter virtual="1" vfunc_name="i_create_iter"
+gda_data_model_describe_column virtual="1" vfunc_name="i_describe_column"
+gda_data_model_find_row virtual="1" vfunc_name="i_find_row"
+gda_data_model_get_access_flags virtual="1" vfunc_name="i_get_access_flags"
+gda_data_model_get_attributes_at virtual="1" vfunc_name="i_get_attributes_at"
+gda_data_model_get_n_columns virtual="1" vfunc_name="i_get_n_columns"
+gda_data_model_get_n_rows virtual="1" vfunc_name="i_get_n_rows"
+gda_data_model_get_notify virtual="1" vfunc_name="i_get_notify"
+gda_data_model_get_value_at virtual="1" vfunc_name="i_get_value_at"
+gda_data_model_iter_at_row virtual="1" vfunc_name="i_iter_at_row"
+gda_data_model_iter_next virtual="1" vfunc_name="i_iter_next"
+gda_data_model_iter_prev virtual="1" vfunc_name="i_iter_prev"
+gda_data_model_iter_set_value virtual="1" vfunc_name="i_iter_set_value"
+gda_data_model_remove_row virtual="1" vfunc_name="i_remove_row"
+gda_data_model_send_hint virtual="1" vfunc_name="i_send_hint"
+gda_data_model_set_notify virtual="1" vfunc_name="i_set_notify"
+gda_data_model_set_value_at virtual="1" vfunc_name="i_set_value_at"
+gda_data_model_set_values virtual="1" vfunc_name="i_set_values"
+gda_lockable_lock virtual="1" vfunc_name="i_lock"
+gda_lockable_trylock virtual="1" vfunc_name="i_trylock"
+gda_lockable_unlock virtual="1" vfunc_name="i_unlock"
 gda_data_model_import_new_xml_node name="from_xml_node"
 gda_sql_parser_parse_string.remain is_out="1"
 xmlNodePtr name="Node" namespace="Xml"



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