From 511cf5520ae1f938b7df901b48c521a2bf79c0b4 Mon Sep 17 00:00:00 2001 From: Thadeu Lima de Souza Cascardo Date: Sat, 9 Aug 2008 19:06:44 -0300 Subject: [PATCH] Atom namespace is in a common header now --- atom/entry.c | 2 -- include/atompub/Makefile.am | 2 +- include/atompub/atom.h | 1 + include/atompub/globals.h | 25 +++++++++++++++++++++++++ 4 files changed, 27 insertions(+), 3 deletions(-) create mode 100644 include/atompub/globals.h diff --git a/atom/entry.c b/atom/entry.c index 8df08d9..eefb3ed 100644 --- a/atom/entry.c +++ b/atom/entry.c @@ -23,8 +23,6 @@ #include #include -#define ATOM_NAMESPACE "http://www.w3.org/2005/Atom" - struct _atom_entry { xmlDocPtr doc; diff --git a/include/atompub/Makefile.am b/include/atompub/Makefile.am index dfada39..46fbdf1 100644 --- a/include/atompub/Makefile.am +++ b/include/atompub/Makefile.am @@ -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 diff --git a/include/atompub/atom.h b/include/atompub/atom.h index c1ddacf..b1625c3 100644 --- a/include/atompub/atom.h +++ b/include/atompub/atom.h @@ -20,6 +20,7 @@ #ifndef ATOMPUB_ATOM_H #define ATOMPUB_ATOM_H +#include #include #include #include diff --git a/include/atompub/globals.h b/include/atompub/globals.h new file mode 100644 index 0000000..33157ab --- /dev/null +++ b/include/atompub/globals.h @@ -0,0 +1,25 @@ +/* + * Copyright (C) 2008 Thadeu Lima de Souza Cascardo + * + * 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 -- 2.20.1