[aravis/dom] gc_property_node: add Formula.
- From: Emmanuel Pacaud <emmanuel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [aravis/dom] gc_property_node: add Formula.
- Date: Thu, 1 Mar 2012 14:08:57 +0000 (UTC)
commit 8f48cf7a497fad3eafa8696cbe686292780d9ae1
Author: Emmanuel Pacaud <emmanuel gnome org>
Date: Thu Mar 1 15:07:04 2012 +0100
gc_property_node: add Formula.
src/arvgc.c | 2 ++
src/arvgcpropertynode.c | 8 ++++++++
src/arvgcpropertynode.h | 2 ++
3 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/src/arvgc.c b/src/arvgc.c
index 19e9df6..b1fef26 100644
--- a/src/arvgc.c
+++ b/src/arvgc.c
@@ -151,6 +151,8 @@ arv_gc_create_element (ArvDomDocument *document, const char *tag_name)
node = arv_gc_property_node_new_p_port ();
else if (strcmp (tag_name, "pVariable") == 0)
node = arv_gc_variable_node_new ();
+ else if (strcmp (tag_name, "Formula") == 0)
+ node = arv_gc_property_node_new_formula ();
else if (strcmp (tag_name, "FormulaTo") == 0)
node = arv_gc_property_node_new_formula_to ();
else if (strcmp (tag_name, "FormulaFrom") == 0)
diff --git a/src/arvgcpropertynode.c b/src/arvgcpropertynode.c
index 09b3be0..8fac2fd 100644
--- a/src/arvgcpropertynode.c
+++ b/src/arvgcpropertynode.c
@@ -70,6 +70,8 @@ arv_gc_property_node_get_node_name (ArvDomNode *node)
return "OffValue";
case ARV_GC_PROPERTY_NODE_TYPE_LENGTH:
return "Length";
+ case ARV_GC_PROPERTY_NODE_TYPE_FORMULA:
+ return "Formula";
case ARV_GC_PROPERTY_NODE_TYPE_FORMULA_TO:
return "FormulaTo";
case ARV_GC_PROPERTY_NODE_TYPE_FORMULA_FROM:
@@ -389,6 +391,12 @@ arv_gc_property_node_new_p_port (void)
}
ArvGcNode *
+arv_gc_property_node_new_formula (void)
+{
+ return arv_gc_property_node_new (ARV_GC_PROPERTY_NODE_TYPE_FORMULA);
+}
+
+ArvGcNode *
arv_gc_property_node_new_formula_to (void)
{
return arv_gc_property_node_new (ARV_GC_PROPERTY_NODE_TYPE_FORMULA_TO);
diff --git a/src/arvgcpropertynode.h b/src/arvgcpropertynode.h
index f28ef71..e4bb797 100644
--- a/src/arvgcpropertynode.h
+++ b/src/arvgcpropertynode.h
@@ -42,6 +42,7 @@ typedef enum {
ARV_GC_PROPERTY_NODE_TYPE_ON_VALUE,
ARV_GC_PROPERTY_NODE_TYPE_OFF_VALUE,
ARV_GC_PROPERTY_NODE_TYPE_LENGTH,
+ ARV_GC_PROPERTY_NODE_TYPE_FORMULA,
ARV_GC_PROPERTY_NODE_TYPE_FORMULA_TO,
ARV_GC_PROPERTY_NODE_TYPE_FORMULA_FROM,
ARV_GC_PROPERTY_NODE_TYPE_EXPRESSION,
@@ -106,6 +107,7 @@ ArvGcNode * arv_gc_property_node_new_p_is_available (void);
ArvGcNode * arv_gc_property_node_new_length (void);
ArvGcNode * arv_gc_property_node_new_p_length (void);
ArvGcNode * arv_gc_property_node_new_p_port (void);
+ArvGcNode * arv_gc_property_node_new_formula (void);
ArvGcNode * arv_gc_property_node_new_formula_to (void);
ArvGcNode * arv_gc_property_node_new_formula_from (void);
ArvGcNode * arv_gc_property_node_new_expression (void);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]