[libgda] GdaServerOperationNode: converted to GBoxed
- From: Daniel Espinosa Ortiz <despinosa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda] GdaServerOperationNode: converted to GBoxed
- Date: Thu, 28 Jun 2018 22:53:41 +0000 (UTC)
commit 3bbb77edf5651efdde8119b4f130b9c986030182
Author: Daniel Espinosa <esodan gmail com>
Date: Thu Jun 28 13:01:52 2018 -0500
GdaServerOperationNode: converted to GBoxed
libgda/Gda-6.0.metadata | 10 +++++++++-
libgda/gda-server-operation.c | 19 +++++++++++++++++++
libgda/gda-server-operation.h | 8 ++++++++
3 files changed, 36 insertions(+), 1 deletion(-)
---
diff --git a/libgda/Gda-6.0.metadata b/libgda/Gda-6.0.metadata
index b9b9a50c3..832661f11 100644
--- a/libgda/Gda-6.0.metadata
+++ b/libgda/Gda-6.0.metadata
@@ -7,16 +7,23 @@ DataModel.add_data_from_xml_node.node type="Xml.Node*"
utility_data_model_dump_data_to_xml.parent type="Xml.Node*"
utility_holder_load_attributes.node type="Xml.Node*"
DataModelImport.new_xml_node.node type="Xml.Node*"
+value_new_from_xml.node type="Xml.Node"
ServerOperation.load_data_from_xml.node type="Xml.Node*"
+// Rename methods
Numeric.get_string nullable=true
MetaStore.extract_v name="extract"
ServerOperation.set_value_at_path name="set_value_at"
ServerOperation.get_value_at_path name="get_value_at"
-ServerOperation.prepare_create_table_v skip=false
ServerOperation.op_type_to_string parent="Gda.ServerOperationType" name="to_string"
ServerOperation.string_to_op_type parent="Gda.ServerOperationType" name="from_string"
+// Enable skiped objects
+ServerOperation.prepare_create_table_v skip=false
+
+// Set type
+ServerProvider.set_impl_functions skip=true // FIXME:
+
// Avoid endless null
SqlBuilder
@@ -31,3 +38,4 @@ Connection
.statement_execute_non_select.params default=null
.statement_execute*.last_insert_row default=null
.statement_execute_select_full.col_types default=null
+
diff --git a/libgda/gda-server-operation.c b/libgda/gda-server-operation.c
index 785ebbaee..d507cb20c 100644
--- a/libgda/gda-server-operation.c
+++ b/libgda/gda-server-operation.c
@@ -683,6 +683,25 @@ gda_server_operation_get_property (GObject *object,
}
}
+G_DEFINE_BOXED_TYPE(GdaServerOperationNode, gda_server_operation_node, gda_server_operation_node_copy,
gda_server_operation_node_free)
+
+GdaServerOperationNode*
+gda_server_operation_node_copy (GdaServerOperationNode *src) {
+ GdaServerOperationNode* cp = g_new0 (GdaServerOperationNode, 1);
+ cp->type = src->type;
+ cp->status = src->status;
+ cp->plist = src->plist;
+ cp->model = src->model;
+ cp->column = src->column;
+ cp->param = src->param;
+ cp->priv = src->priv;
+ return cp;
+}
+void
+gda_server_operation_node_free (GdaServerOperationNode *node) {
+ g_free (node);
+}
+
/*
* if %FALSE is returned, then @doc is freed, otherwise it's not stolen.
* @xmlfile may be %NULL
diff --git a/libgda/gda-server-operation.h b/libgda/gda-server-operation.h
index bf2446c53..7eb1d0b5f 100644
--- a/libgda/gda-server-operation.h
+++ b/libgda/gda-server-operation.h
@@ -3,6 +3,7 @@
* Copyright (C) 2006 - 2014 Vivien Malerba <malerba gnome-db org>
* Copyright (C) 2010 David King <davidk openismus com>
* Copyright (C) 2010 Jonh Wendell <jwendell gnome org>
+ * Copyright (C) 2018 Daniel Espinosa <esodan gmail com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -145,6 +146,13 @@ typedef struct _GdaServerOperationNode {
gpointer priv;
} GdaServerOperationNode;
+#define GDA_TYPE_SERVER_OPERATION_NODE gda_server_operation_node_get_type ()
+
+GType gda_server_operation_node_get_type (void) G_GNUC_CONST;
+GdaServerOperationNode*
+ gda_server_operation_node_copy (GdaServerOperationNode *src);
+void gda_server_operation_node_free (GdaServerOperationNode *src);
+
struct _GdaServerOperationClass {
GObjectClass parent_class;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]