Atom namespace is in a common header now
authorThadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Sat, 9 Aug 2008 22:06:44 +0000 (19:06 -0300)
committerThadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Sat, 9 Aug 2008 22:06:44 +0000 (19:06 -0300)
atom/entry.c
include/atompub/Makefile.am
include/atompub/atom.h
include/atompub/globals.h [new file with mode: 0644]

index 8df08d9..eefb3ed 100644 (file)
@@ -23,8 +23,6 @@
 #include <libxml/tree.h>
 #include <libxml/parser.h>
 
-#define ATOM_NAMESPACE "http://www.w3.org/2005/Atom"
-
 struct _atom_entry
 {
   xmlDocPtr doc;
index dfada39..46fbdf1 100644 (file)
@@ -1,3 +1,3 @@
 pkginclude_HEADERS = atom.h config.h ctx.h entry.h person.h error.h feed.h \
                iri.h backend.h atom-glib.h error-glib.h atom-xml.h \
-               entry-xml.h person-xml.h feed-xml.h
+               entry-xml.h person-xml.h feed-xml.h globals.h
index c1ddacf..b1625c3 100644 (file)
@@ -20,6 +20,7 @@
 #ifndef ATOMPUB_ATOM_H
 #define ATOMPUB_ATOM_H
 
+#include <atompub/globals.h>
 #include <atompub/ctx.h>
 #include <atompub/config.h>
 #include <atompub/error.h>
diff --git a/include/atompub/globals.h b/include/atompub/globals.h
new file mode 100644 (file)
index 0000000..33157ab
--- /dev/null
@@ -0,0 +1,25 @@
+/*
+ *  Copyright (C) 2008  Thadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License along
+ *  with this program; if not, write to the Free Software Foundation, Inc.,
+ *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
+
+#ifndef ATOM_GLOBALS_H
+#define ATOM_GLOBALS_H
+
+#define ATOM_NAMESPACE "http://www.w3.org/2005/Atom"
+
+#endif