[Xfce4-commits] <xfce4-weather-plugin:master> Move DATA, PROP, NODE_IS_TYPE from interface to implementation.

Harald Judt noreply at xfce.org
Mon Aug 6 13:20:03 CEST 2012


Updating branch refs/heads/master
         to af6071e3fd12faf59da063a4f1bc382e41c78d0f (commit)
       from 159ce4068f81c78d4f9600557829c2e65f2cf751 (commit)

commit af6071e3fd12faf59da063a4f1bc382e41c78d0f
Author: Harald Judt <h.judt at gmx.at>
Date:   Mon Aug 6 11:00:25 2012 +0200

    Move DATA, PROP, NODE_IS_TYPE from interface to implementation.
    
    These are only used by weather-parsers, and all parsing should
    take place there.

 panel-plugin/weather-parsers.c |   10 ++++++++++
 panel-plugin/weather-parsers.h |    9 ---------
 2 files changed, 10 insertions(+), 9 deletions(-)

diff --git a/panel-plugin/weather-parsers.c b/panel-plugin/weather-parsers.c
index 746f185..184e6ad 100644
--- a/panel-plugin/weather-parsers.c
+++ b/panel-plugin/weather-parsers.c
@@ -33,6 +33,16 @@
 #include <string.h>
 
 
+#define DATA(node)                                                  \
+    ((gchar *) xmlNodeListGetString(node->doc, node->children, 1))
+
+#define PROP(node, prop)                                        \
+    ((gchar *) xmlGetProp((node), (const xmlChar *) (prop)))
+
+#define NODE_IS_TYPE(node, type)                        \
+    (xmlStrEqual(node->name, (const xmlChar *) type))
+
+
 /*
  * This is a portable replacement for the deprecated timegm(),
  * copied from the man page.
diff --git a/panel-plugin/weather-parsers.h b/panel-plugin/weather-parsers.h
index dc746f2..b07ef5a 100644
--- a/panel-plugin/weather-parsers.h
+++ b/panel-plugin/weather-parsers.h
@@ -24,15 +24,6 @@
 
 G_BEGIN_DECLS
 
-#define DATA(node)                                                  \
-    ((gchar *) xmlNodeListGetString(node->doc, node->children, 1))
-
-#define PROP(node, prop)                                        \
-    ((gchar *) xmlGetProp((node), (const xmlChar *) (prop)))
-
-#define NODE_IS_TYPE(node, type)                        \
-    (xmlStrEqual(node->name, (const xmlChar *) type))
-
 #define MAX_TIMESLICE 500
 
 enum {


More information about the Xfce4-commits mailing list