[lasem] build: single header include (svg).



commit 1d720d5da257e4b58806dc8626cf326ec93e0876
Author: Emmanuel Pacaud <emmanuel gnome org>
Date:   Sun Nov 7 21:58:47 2010 +0100

    build: single header include (svg).

 .gitignore                        |    1 +
 docs/reference/lasem/lasem.types  |    1 -
 src/lasemrender.c                 |    4 +-
 src/lsm.h                         |    1 +
 src/lsmproperties.c               |    3 +-
 src/lsmproperties.h               |    6 ++-
 src/lsmsvg.h                      |   76 +++++++++++++++++++------------------
 src/lsmsvgattributes.h            |    9 ++--
 src/lsmsvgcircleelement.h         |    2 +-
 src/lsmsvgclippathelement.c       |    3 +-
 src/lsmsvgclippathelement.h       |    5 +-
 src/lsmsvgcolors.h                |    2 +-
 src/lsmsvgdefselement.h           |    2 +-
 src/lsmsvgdocument.h              |    2 +-
 src/lsmsvgelement.c               |    3 +-
 src/lsmsvgelement.h               |    9 ++--
 src/lsmsvgellipseelement.h        |    2 +-
 src/lsmsvgenums.c                 |    3 +-
 src/lsmsvgenums.h                 |    5 +-
 src/lsmsvgfilterelement.h         |    2 +-
 src/lsmsvgfiltergaussianblur.h    |    2 +-
 src/lsmsvgfilterprimitive.c       |    3 +-
 src/lsmsvgfilterprimitive.h       |    5 +-
 src/lsmsvggelement.h              |    2 +-
 src/lsmsvggradientelement.c       |    3 +-
 src/lsmsvggradientelement.h       |    5 +-
 src/lsmsvgimageelement.h          |    2 +-
 src/lsmsvglength.c                |    3 +-
 src/lsmsvglength.h                |    7 ++-
 src/lsmsvglineargradientelement.h |    2 +-
 src/lsmsvglineelement.h           |    2 +-
 src/lsmsvgmarkerelement.h         |    2 +-
 src/lsmsvgmaskelement.h           |    2 +-
 src/lsmsvgmatrix.c                |    3 +-
 src/lsmsvgmatrix.h                |    5 +-
 src/lsmsvgpathelement.h           |    2 +-
 src/lsmsvgpatternelement.h        |    2 +-
 src/lsmsvgpolygonelement.h        |    2 +-
 src/lsmsvgpolylineelement.h       |    2 +-
 src/lsmsvgradialgradientelement.h |    2 +-
 src/lsmsvgrectelement.h           |    2 +-
 src/lsmsvgstopelement.h           |    2 +-
 src/lsmsvgstyle.c                 |    5 +-
 src/lsmsvgstyle.h                 |    5 +-
 src/lsmsvgsvgelement.h            |    2 +-
 src/lsmsvgsymbolelement.h         |    2 +-
 src/lsmsvgtextelement.c           |    3 +-
 src/lsmsvgtextelement.h           |    5 +-
 src/lsmsvgtraits.c                |    3 +-
 src/lsmsvgtraits.h                |    5 +-
 src/lsmsvgtspanelement.h          |    2 +-
 src/lsmsvgtypes.h                 |   66 ++++++++++++++++++++++++++++++++
 src/lsmsvguseelement.h            |    2 +-
 src/lsmsvgview.c                  |    3 +-
 src/lsmsvgview.h                  |    7 ++-
 55 files changed, 201 insertions(+), 112 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 4914221..bbc5938 100644
--- a/.gitignore
+++ b/.gitignore
@@ -20,6 +20,7 @@ stamp*
 autom4te*
 tags
 *.o
+*.lo
 *.lineno
 *.swp
 *.stamp
diff --git a/docs/reference/lasem/lasem.types b/docs/reference/lasem/lasem.types
index 860533e..89095b6 100644
--- a/docs/reference/lasem/lasem.types
+++ b/docs/reference/lasem/lasem.types
@@ -1,5 +1,4 @@
 lsm_dom_character_data_get_type
-lsm_dom_document_error_get_type
 lsm_dom_document_get_type
 lsm_dom_element_get_type
 lsm_dom_node_get_type
diff --git a/src/lasemrender.c b/src/lasemrender.c
index e8e8c0d..9ae070f 100644
--- a/src/lasemrender.c
+++ b/src/lasemrender.c
@@ -22,15 +22,13 @@
 
 #include <stdio.h>
 #include <string.h>
-#include <lsmdebug.h>
-#include <lsmdomtext.h>
+#include <lsmdom.h>
 #include <lsmmathmloperatordictionary.h>
 #include <lsmmathmldocument.h>
 #include <lsmmathmlmathelement.h>
 #include <lsmmathmlfractionelement.h>
 #include <lsmmathmlrowelement.h>
 #include <lsmmathmlview.h>
-#include <lsmdomparser.h>
 #include <glib/gmessages.h>
 #include <glib/goption.h>
 #include <glib/gprintf.h>
diff --git a/src/lsm.h b/src/lsm.h
index c6c982c..bec07c1 100644
--- a/src/lsm.h
+++ b/src/lsm.h
@@ -31,5 +31,6 @@
 #include <lsmdebug.h>
 #include <lsmtraits.h>
 #include <lsmattributes.h>
+#include <lsmproperties.h>
 
 #endif
diff --git a/src/lsmproperties.c b/src/lsmproperties.c
index 983b85b..3361831 100644
--- a/src/lsmproperties.c
+++ b/src/lsmproperties.c
@@ -1,4 +1,5 @@
-/*
+/* Lasem - SVG and Mathml library
+ *
  * Copyright © 2007-2009 Emmanuel Pacaud
  *
  * This library is free software; you can redistribute it and/or
diff --git a/src/lsmproperties.h b/src/lsmproperties.h
index 1ea0a51..1003838 100644
--- a/src/lsmproperties.h
+++ b/src/lsmproperties.h
@@ -1,4 +1,5 @@
-/*
+/* Lasem - SVG and Mathml library
+ *
  * Copyright © 2007-2009 Emmanuel Pacaud
  *
  * This library is free software; you can redistribute it and/or
@@ -19,10 +20,11 @@
  * Author:
  * 	Emmanuel Pacaud <emmanuel gnome org>
  */
+
 #ifndef LSM_PROPERTIES_H
 #define LSM_PROPERTIES_H
 
-#include <lsm.h>
+#include <lsmtypes.h>
 #include <lsmtraits.h>
 
 G_BEGIN_DECLS
diff --git a/src/lsmsvg.h b/src/lsmsvg.h
index 5f220a2..e32276a 100644
--- a/src/lsmsvg.h
+++ b/src/lsmsvg.h
@@ -1,5 +1,6 @@
-/*
- * Copyright © 2009 Emmanuel Pacaud
+/* Lasem - SVG and Mathml library
+ *
+ * Copyright © 2009-10 Emmanuel Pacaud
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -25,41 +26,42 @@
 
 #include <lsmdom.h>
 
-G_BEGIN_DECLS
-
-typedef struct _LsmSvgDocument LsmSvgDocument;
-typedef struct _LsmSvgElement LsmSvgElement;
-typedef struct _LsmSvgGraphic LsmSvgGraphic;
-typedef struct _LsmSvgClipPathElement LsmSvgClipPathElement;
-typedef struct _LsmSvgSvgElement LsmSvgSvgElement;
-typedef struct _LsmSvgGElement LsmSvgGElement;
-typedef struct _LsmSvgDefsElement LsmSvgDefsElement;
-typedef struct _LsmSvgUseElement LsmSvgUseElement;
-typedef struct _LsmSvgImageElement LsmSvgImageElement;
-typedef struct _LsmSvgSymbolElement LsmSvgSymbolElement;
-typedef struct _LsmSvgMarkerElement LsmSvgMarkerElement;
-typedef struct _LsmSvgRectElement LsmSvgRectElement;
-typedef struct _LsmSvgCircleElement LsmSvgCircleElement;
-typedef struct _LsmSvgEllipseElement LsmSvgEllipseElement;
-typedef struct _LsmSvgLineElement LsmSvgLineElement;
-typedef struct _LsmSvgPolylineElement LsmSvgPolylineElement;
-typedef struct _LsmSvgPolygonElement LsmSvgPolygonElement;
-typedef struct _LsmSvgPathElement LsmSvgPathElement;
-typedef struct _LsmSvgTextElement LsmSvgTextElement;
-typedef struct _LsmSvgTspanElement LsmSvgTspanElement;
-typedef struct _LsmSvgGradientElement LsmSvgGradientElement;
-typedef struct _LsmSvgLinearGradientElement LsmSvgLinearGradientElement;
-typedef struct _LsmSvgRadialGradientElement LsmSvgRadialGradientElement;
-typedef struct _LsmSvgStopElement LsmSvgStopElement;
-typedef struct _LsmSvgPatternElement LsmSvgPatternElement;
-typedef struct _LsmSvgMaskElement LsmSvgMaskElement;
-typedef struct _LsmSvgFilterElement LsmSvgFilterElement;
-typedef struct _LsmSvgFilterPrimitive LsmSvgFilterPrimitive;
-typedef struct _LsmSvgFilterGaussianBlur LsmSvgFilterGaussianBlur;
-
-typedef struct _LsmSvgView LsmSvgView;
-typedef struct _LsmSvgStyle LsmSvgStyle;
+#include <lsmsvgtypes.h>
 
-G_END_DECLS
+#include <lsmsvgtraits.h>
+#include <lsmsvgattributes.h>
+#include <lsmsvgstyle.h>
+#include <lsmsvgcolors.h>
+#include <lsmsvglength.h>
+#include <lsmsvgview.h>
+#include <lsmsvgmatrix.h>
+#include <lsmsvgdocument.h>
+#include <lsmsvgelement.h>
+#include <lsmsvgclippathelement.h>
+#include <lsmsvgsvgelement.h>
+#include <lsmsvggelement.h>
+#include <lsmsvgdefselement.h>
+#include <lsmsvguseelement.h>
+#include <lsmsvgimageelement.h>
+#include <lsmsvgsymbolelement.h>
+#include <lsmsvgmarkerelement.h>
+#include <lsmsvgrectelement.h>
+#include <lsmsvgcircleelement.h>
+#include <lsmsvgellipseelement.h>
+#include <lsmsvglineelement.h>
+#include <lsmsvgpathelement.h>
+#include <lsmsvgpolylineelement.h>
+#include <lsmsvgpolygonelement.h>
+#include <lsmsvgtextelement.h>
+#include <lsmsvgtspanelement.h>
+#include <lsmsvggradientelement.h>
+#include <lsmsvglineargradientelement.h>
+#include <lsmsvgradialgradientelement.h>
+#include <lsmsvgstopelement.h>
+#include <lsmsvgpatternelement.h>
+#include <lsmsvgmaskelement.h>
+#include <lsmsvgfilterelement.h>
+#include <lsmsvgfilterprimitive.h>
+#include <lsmsvgfiltergaussianblur.h>
 
 #endif
diff --git a/src/lsmsvgattributes.h b/src/lsmsvgattributes.h
index 1755dfa..1d50919 100644
--- a/src/lsmsvgattributes.h
+++ b/src/lsmsvgattributes.h
@@ -1,6 +1,6 @@
-/* lsmmathmlenums.c
+/* Lasem - SVG and Mathml library
  *
- * Copyright © 2007-2008  Emmanuel Pacaud
+ * Copyright © 2007-2008 Emmanuel Pacaud
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -24,9 +24,8 @@
 #ifndef LSM_SVG_ATTRIBUTES_H
 #define LSM_SVG_ATTRIBUTES_H
 
-#include <lsmattributes.h>
-#include <lsmdomview.h>
-#include <lsmsvg.h>
+#include <lsmdom.h>
+#include <lsmsvgtypes.h>
 #include <lsmsvgenums.h>
 #include <lsmsvgtraits.h>
 #include <lsmsvglength.h>
diff --git a/src/lsmsvgcircleelement.h b/src/lsmsvgcircleelement.h
index 0d920d7..debdf65 100644
--- a/src/lsmsvgcircleelement.h
+++ b/src/lsmsvgcircleelement.h
@@ -23,7 +23,7 @@
 #ifndef LSM_SVG_CIRCLE_ELEMENT_H
 #define LSM_SVG_CIRCLE_ELEMENT_H
 
-#include <lsmsvg.h>
+#include <lsmsvgtypes.h>
 #include <lsmsvgelement.h>
 
 G_BEGIN_DECLS
diff --git a/src/lsmsvgclippathelement.c b/src/lsmsvgclippathelement.c
index 9a8aa54..5677110 100644
--- a/src/lsmsvgclippathelement.c
+++ b/src/lsmsvgclippathelement.c
@@ -1,4 +1,5 @@
-/*
+/* Lasem - SVG and Mathml library
+ *
  * Copyright © 2009 Emmanuel Pacaud
  *
  * This library is free software; you can redistribute it and/or
diff --git a/src/lsmsvgclippathelement.h b/src/lsmsvgclippathelement.h
index 6ee3fcb..8e03c4e 100644
--- a/src/lsmsvgclippathelement.h
+++ b/src/lsmsvgclippathelement.h
@@ -1,4 +1,5 @@
-/*
+/* Lasem - SVG and Mathml library
+ *
  * Copyright © 2009 Emmanuel Pacaud
  *
  * This library is free software; you can redistribute it and/or
@@ -23,7 +24,7 @@
 #ifndef LSM_SVG_CLIP_PATH_ELEMENT_H
 #define LSM_SVG_CLIP_PATH_ELEMENT_H
 
-#include <lsmsvg.h>
+#include <lsmsvgtypes.h>
 #include <lsmsvgelement.h>
 
 G_BEGIN_DECLS
diff --git a/src/lsmsvgcolors.h b/src/lsmsvgcolors.h
index ac9e2ec..41f62a6 100644
--- a/src/lsmsvgcolors.h
+++ b/src/lsmsvgcolors.h
@@ -27,7 +27,7 @@
 #ifndef LSM_SVG_COLORS_H
 #define LSM_SVG_COLORS_H
 
-#include <lsmsvg.h>
+#include <lsmsvgtypes.h>
 
 G_BEGIN_DECLS
 
diff --git a/src/lsmsvgdefselement.h b/src/lsmsvgdefselement.h
index 9c8ee02..672a8e8 100644
--- a/src/lsmsvgdefselement.h
+++ b/src/lsmsvgdefselement.h
@@ -23,7 +23,7 @@
 #ifndef LSM_SVG_DEFS_ELEMENT_H
 #define LSM_SVG_DEFS_ELEMENT_H
 
-#include <lsmsvg.h>
+#include <lsmsvgtypes.h>
 #include <lsmsvgelement.h>
 
 G_BEGIN_DECLS
diff --git a/src/lsmsvgdocument.h b/src/lsmsvgdocument.h
index fa93752..04b9097 100644
--- a/src/lsmsvgdocument.h
+++ b/src/lsmsvgdocument.h
@@ -23,7 +23,7 @@
 #ifndef LSM_SVG_DOCUMENT_H
 #define LSM_SVG_DOCUMENT_H
 
-#include <lsmsvg.h>
+#include <lsmsvgtypes.h>
 #include <lsmdomdocument.h>
 
 G_BEGIN_DECLS
diff --git a/src/lsmsvgelement.c b/src/lsmsvgelement.c
index 17252ab..810fdc8 100644
--- a/src/lsmsvgelement.c
+++ b/src/lsmsvgelement.c
@@ -1,4 +1,5 @@
-/*
+/* Lasem - SVG and Mathml library
+ *
  * Copyright © 2009 Emmanuel Pacaud
  *
  * This library is free software; you can redistribute it and/or
diff --git a/src/lsmsvgelement.h b/src/lsmsvgelement.h
index 2716bd8..39510da 100644
--- a/src/lsmsvgelement.h
+++ b/src/lsmsvgelement.h
@@ -1,6 +1,6 @@
-/* lsmsvgelement.h
+/* Lasem - SVG and Mathml library
  *
- * Copyright © 2007-2008  Emmanuel Pacaud
+ * Copyright © 2007-2008 Emmanuel Pacaud
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -24,11 +24,10 @@
 #ifndef LSM_SVG_ELEMENT_H
 #define LSM_SVG_ELEMENT_H
 
-#include <lsmsvg.h>
-#include <lsmattributes.h>
+#include <lsmsvgtypes.h>
 #include <lsmsvgattributes.h>
 #include <lsmsvgstyle.h>
-#include <lsmdomelement.h>
+#include <lsmdom.h>
 #include <cairo.h>
 
 G_BEGIN_DECLS
diff --git a/src/lsmsvgellipseelement.h b/src/lsmsvgellipseelement.h
index 724de7c..d290659 100644
--- a/src/lsmsvgellipseelement.h
+++ b/src/lsmsvgellipseelement.h
@@ -23,7 +23,7 @@
 #ifndef LSM_SVG_ELLIPSE_ELEMENT_H
 #define LSM_SVG_ELLIPSE_ELEMENT_H
 
-#include <lsmsvg.h>
+#include <lsmsvgtypes.h>
 #include <lsmsvgelement.h>
 
 G_BEGIN_DECLS
diff --git a/src/lsmsvgenums.c b/src/lsmsvgenums.c
index 7a50d19..467a9ea 100644
--- a/src/lsmsvgenums.c
+++ b/src/lsmsvgenums.c
@@ -1,4 +1,5 @@
-/*
+/* Lasem - SVG and Mathml library
+ *
  * Copyright © 2009 Emmanuel Pacaud
  *
  * This library is free software; you can redistribute it and/or
diff --git a/src/lsmsvgenums.h b/src/lsmsvgenums.h
index 4f92719..d4760a0 100644
--- a/src/lsmsvgenums.h
+++ b/src/lsmsvgenums.h
@@ -1,4 +1,5 @@
-/*
+/* Lasem - SVG and Mathml library
+ *
  * Copyright © 2009 Emmanuel Pacaud
  *
  * This library is free software; you can redistribute it and/or
@@ -23,7 +24,7 @@
 #ifndef LSM_SVG_ENUMS_H
 #define LSM_SVG_ENUMS_H
 
-#include <lsmsvg.h>
+#include <glib-object.h>
 
 G_BEGIN_DECLS
 
diff --git a/src/lsmsvgfilterelement.h b/src/lsmsvgfilterelement.h
index 95dde8d..ce46f56 100644
--- a/src/lsmsvgfilterelement.h
+++ b/src/lsmsvgfilterelement.h
@@ -23,7 +23,7 @@
 #ifndef LSM_SVG_FILTER_ELEMENT_H
 #define LSM_SVG_FILTER_ELEMENT_H
 
-#include <lsmsvg.h>
+#include <lsmsvgtypes.h>
 #include <lsmsvgelement.h>
 
 G_BEGIN_DECLS
diff --git a/src/lsmsvgfiltergaussianblur.h b/src/lsmsvgfiltergaussianblur.h
index c175f99..457961b 100644
--- a/src/lsmsvgfiltergaussianblur.h
+++ b/src/lsmsvgfiltergaussianblur.h
@@ -23,7 +23,7 @@
 #ifndef LSM_SVG_FILTER_GAUSSIAN_BLUR_H
 #define LSM_SVG_FILTER_GAUSSIAN_BLUR_H
 
-#include <lsmsvg.h>
+#include <lsmsvgtypes.h>
 #include <lsmsvgfilterprimitive.h>
 
 G_BEGIN_DECLS
diff --git a/src/lsmsvgfilterprimitive.c b/src/lsmsvgfilterprimitive.c
index 5028dfd..b0606c0 100644
--- a/src/lsmsvgfilterprimitive.c
+++ b/src/lsmsvgfilterprimitive.c
@@ -1,4 +1,5 @@
-/*
+/* Lasem - SVG and Mathml library
+ *
  * Copyright © 2010 Emmanuel Pacaud
  *
  * This library is free software; you can redistribute it and/or
diff --git a/src/lsmsvgfilterprimitive.h b/src/lsmsvgfilterprimitive.h
index 2ee8f93..9918389 100644
--- a/src/lsmsvgfilterprimitive.h
+++ b/src/lsmsvgfilterprimitive.h
@@ -1,4 +1,5 @@
-/*
+/* Lasem - SVG and Mathml library
+ *
  * Copyright © 2010 Emmanuel Pacaud
  *
  * This library is free software; you can redistribute it and/or
@@ -23,7 +24,7 @@
 #ifndef LSM_SVG_FILTER_PRIMITIVE_H
 #define LSM_SVG_FILTER_PRIMITIVE_H
 
-#include <lsmsvg.h>
+#include <lsmsvgtypes.h>
 #include <lsmsvgelement.h>
 
 G_BEGIN_DECLS
diff --git a/src/lsmsvggelement.h b/src/lsmsvggelement.h
index a084c14..91dfb9e 100644
--- a/src/lsmsvggelement.h
+++ b/src/lsmsvggelement.h
@@ -23,7 +23,7 @@
 #ifndef LSM_SVG_G_ELEMENT_H
 #define LSM_SVG_G_ELEMENT_H
 
-#include <lsmsvg.h>
+#include <lsmsvgtypes.h>
 #include <lsmsvgelement.h>
 
 G_BEGIN_DECLS
diff --git a/src/lsmsvggradientelement.c b/src/lsmsvggradientelement.c
index e0e9b44..28f145b 100644
--- a/src/lsmsvggradientelement.c
+++ b/src/lsmsvggradientelement.c
@@ -1,4 +1,5 @@
-/*
+/* Lasem - SVG and Mathml library
+ *
  * Copyright © 2009 Emmanuel Pacaud
  *
  * This library is free software; you can redistribute it and/or
diff --git a/src/lsmsvggradientelement.h b/src/lsmsvggradientelement.h
index bb811cd..b4d77bd 100644
--- a/src/lsmsvggradientelement.h
+++ b/src/lsmsvggradientelement.h
@@ -1,4 +1,5 @@
-/*
+/* Lasem - SVG and Mathml library
+ *
  * Copyright © 2009 Emmanuel Pacaud
  *
  * This library is free software; you can redistribute it and/or
@@ -23,7 +24,7 @@
 #ifndef LSM_SVG_GRADIENT_ELEMENT_H
 #define LSM_SVG_GRADIENT_ELEMENT_H
 
-#include <lsmsvg.h>
+#include <lsmsvgtypes.h>
 #include <lsmsvgelement.h>
 
 G_BEGIN_DECLS
diff --git a/src/lsmsvgimageelement.h b/src/lsmsvgimageelement.h
index f131b22..a291edc 100644
--- a/src/lsmsvgimageelement.h
+++ b/src/lsmsvgimageelement.h
@@ -23,7 +23,7 @@
 #ifndef LSM_SVG_IMAGE_ELEMENT_H
 #define LSM_SVG_IMAGE_ELEMENT_H
 
-#include <lsmsvg.h>
+#include <lsmsvgtypes.h>
 #include <lsmsvgelement.h>
 #include <gdk-pixbuf/gdk-pixbuf.h>
 
diff --git a/src/lsmsvglength.c b/src/lsmsvglength.c
index 8604227..a418ef8 100644
--- a/src/lsmsvglength.c
+++ b/src/lsmsvglength.c
@@ -1,4 +1,5 @@
-/*
+/* Lasem - SVG and Mathml library
+ *
  * Copyright © 2009 Emmanuel Pacaud
  *
  * This library is free software; you can redistribute it and/or
diff --git a/src/lsmsvglength.h b/src/lsmsvglength.h
index e6e1d8c..b03638f 100644
--- a/src/lsmsvglength.h
+++ b/src/lsmsvglength.h
@@ -1,4 +1,5 @@
-/*
+/* Lasem - SVG and Mathml library
+ *
  * Copyright © 2009 Emmanuel Pacaud
  *
  * This library is free software; you can redistribute it and/or
@@ -23,8 +24,8 @@
 #ifndef LSM_SVG_LENGTH
 #define LSM_SVG_LENGTH
 
-#include <lsmdomview.h>
-#include <lsmsvg.h>
+#include <lsmdom.h>
+#include <lsmsvgtypes.h>
 #include <lsmsvgenums.h>
 
 G_BEGIN_DECLS
diff --git a/src/lsmsvglineargradientelement.h b/src/lsmsvglineargradientelement.h
index 4be14ae..904d119 100644
--- a/src/lsmsvglineargradientelement.h
+++ b/src/lsmsvglineargradientelement.h
@@ -23,7 +23,7 @@
 #ifndef LSM_SVG_LINEAR_GRADIENT_ELEMENT_H
 #define LSM_SVG_LINEAR_GRADIENT_ELEMENT_H
 
-#include <lsmsvg.h>
+#include <lsmsvgtypes.h>
 #include <lsmsvggradientelement.h>
 
 G_BEGIN_DECLS
diff --git a/src/lsmsvglineelement.h b/src/lsmsvglineelement.h
index f8e8411..f8c3bf7 100644
--- a/src/lsmsvglineelement.h
+++ b/src/lsmsvglineelement.h
@@ -23,7 +23,7 @@
 #ifndef LSM_SVG_LINE_ELEMENT_H
 #define LSM_SVG_LINE_ELEMENT_H
 
-#include <lsmsvg.h>
+#include <lsmsvgtypes.h>
 #include <lsmsvgelement.h>
 
 G_BEGIN_DECLS
diff --git a/src/lsmsvgmarkerelement.h b/src/lsmsvgmarkerelement.h
index d5e798d..1542b53 100644
--- a/src/lsmsvgmarkerelement.h
+++ b/src/lsmsvgmarkerelement.h
@@ -23,7 +23,7 @@
 #ifndef LSM_SVG_MARKER_ELEMENT_H
 #define LSM_SVG_MARKER_ELEMENT_H
 
-#include <lsmsvg.h>
+#include <lsmsvgtypes.h>
 #include <lsmsvgelement.h>
 
 G_BEGIN_DECLS
diff --git a/src/lsmsvgmaskelement.h b/src/lsmsvgmaskelement.h
index 3aef204..a4751cc 100644
--- a/src/lsmsvgmaskelement.h
+++ b/src/lsmsvgmaskelement.h
@@ -23,7 +23,7 @@
 #ifndef LSM_SVG_MASK_ELEMENT_H
 #define LSM_SVG_MASK_ELEMENT_H
 
-#include <lsmsvg.h>
+#include <lsmsvgtypes.h>
 #include <lsmsvgelement.h>
 
 G_BEGIN_DECLS
diff --git a/src/lsmsvgmatrix.c b/src/lsmsvgmatrix.c
index b31e28a..a964981 100644
--- a/src/lsmsvgmatrix.c
+++ b/src/lsmsvgmatrix.c
@@ -1,4 +1,5 @@
-/*
+/* Lasem - SVG and Mathml library
+ *
  * Copyright © 2009 Emmanuel Pacaud
  *
  * This library is free software; you can redistribute it and/or
diff --git a/src/lsmsvgmatrix.h b/src/lsmsvgmatrix.h
index 42792e3..9246683 100644
--- a/src/lsmsvgmatrix.h
+++ b/src/lsmsvgmatrix.h
@@ -1,4 +1,5 @@
-/*
+/* Lasem - SVG and Mathml library
+ *
  * Copyright © 2009 Emmanuel Pacaud
  *
  * This library is free software; you can redistribute it and/or
@@ -23,7 +24,7 @@
 #ifndef LSM_SVG_MATRIX_H
 #define LSM_SVG_MATRIX_H
 
-#include <lsmsvg.h>
+#include <lsmsvgtypes.h>
 
 typedef enum {
 	LSM_SVG_MATRIX_FLAGS_IDENTITY = 1 << 0
diff --git a/src/lsmsvgpathelement.h b/src/lsmsvgpathelement.h
index b154754..5c244e4 100644
--- a/src/lsmsvgpathelement.h
+++ b/src/lsmsvgpathelement.h
@@ -23,7 +23,7 @@
 #ifndef LSM_SVG_PATH_ELEMENT_H
 #define LSM_SVG_PATH_ELEMENT_H
 
-#include <lsmsvg.h>
+#include <lsmsvgtypes.h>
 #include <lsmsvgelement.h>
 
 G_BEGIN_DECLS
diff --git a/src/lsmsvgpatternelement.h b/src/lsmsvgpatternelement.h
index af41071..e08e988 100644
--- a/src/lsmsvgpatternelement.h
+++ b/src/lsmsvgpatternelement.h
@@ -23,7 +23,7 @@
 #ifndef LSM_SVG_PATTERN_ELEMENT_H
 #define LSM_SVG_PATTERN_ELEMENT_H
 
-#include <lsmsvg.h>
+#include <lsmsvgtypes.h>
 #include <lsmsvgelement.h>
 
 G_BEGIN_DECLS
diff --git a/src/lsmsvgpolygonelement.h b/src/lsmsvgpolygonelement.h
index 3636069..0cf3049 100644
--- a/src/lsmsvgpolygonelement.h
+++ b/src/lsmsvgpolygonelement.h
@@ -23,7 +23,7 @@
 #ifndef LSM_SVG_POLYGON_ELEMENT_H
 #define LSM_SVG_POLYGON_ELEMENT_H
 
-#include <lsmsvg.h>
+#include <lsmsvgtypes.h>
 #include <lsmsvgelement.h>
 
 G_BEGIN_DECLS
diff --git a/src/lsmsvgpolylineelement.h b/src/lsmsvgpolylineelement.h
index 5c5172e..601857b 100644
--- a/src/lsmsvgpolylineelement.h
+++ b/src/lsmsvgpolylineelement.h
@@ -23,7 +23,7 @@
 #ifndef LSM_SVG_POLYLINE_ELEMENT_H
 #define LSM_SVG_POLYLINE_ELEMENT_H
 
-#include <lsmsvg.h>
+#include <lsmsvgtypes.h>
 #include <lsmsvgelement.h>
 
 G_BEGIN_DECLS
diff --git a/src/lsmsvgradialgradientelement.h b/src/lsmsvgradialgradientelement.h
index 450b833..f863df3 100644
--- a/src/lsmsvgradialgradientelement.h
+++ b/src/lsmsvgradialgradientelement.h
@@ -23,7 +23,7 @@
 #ifndef LSM_SVG_RADIAL_GRADIENT_ELEMENT_H
 #define LSM_SVG_RADIAL_GRADIENT_ELEMENT_H
 
-#include <lsmsvg.h>
+#include <lsmsvgtypes.h>
 #include <lsmsvggradientelement.h>
 
 G_BEGIN_DECLS
diff --git a/src/lsmsvgrectelement.h b/src/lsmsvgrectelement.h
index 88bbfad..6a2cfcf 100644
--- a/src/lsmsvgrectelement.h
+++ b/src/lsmsvgrectelement.h
@@ -23,7 +23,7 @@
 #ifndef LSM_SVG_RECT_ELEMENT_H
 #define LSM_SVG_RECT_ELEMENT_H
 
-#include <lsmsvg.h>
+#include <lsmsvgtypes.h>
 #include <lsmsvgelement.h>
 
 G_BEGIN_DECLS
diff --git a/src/lsmsvgstopelement.h b/src/lsmsvgstopelement.h
index 424f0de..82ce19d 100644
--- a/src/lsmsvgstopelement.h
+++ b/src/lsmsvgstopelement.h
@@ -23,7 +23,7 @@
 #ifndef LSM_SVG_STOP_ELEMENT_H
 #define LSM_SVG_STOP_ELEMENT_H
 
-#include <lsmsvg.h>
+#include <lsmsvgtypes.h>
 #include <lsmsvgelement.h>
 
 G_BEGIN_DECLS
diff --git a/src/lsmsvgstyle.c b/src/lsmsvgstyle.c
index 7360c61..3d93aa2 100644
--- a/src/lsmsvgstyle.c
+++ b/src/lsmsvgstyle.c
@@ -1,4 +1,5 @@
-/*
+/* Lasem - SVG and Mathml library
+ *
  * Copyright © 2009 Emmanuel Pacaud
  *
  * This library is free software; you can redistribute it and/or
@@ -23,7 +24,7 @@
 #include <lsmsvgstyle.h>
 #include <lsmsvgcolors.h>
 #include <lsmsvgtraits.h>
-#include <lsmstr.h>
+#include <lsm.h>
 #include <string.h>
 #include <math.h>
 
diff --git a/src/lsmsvgstyle.h b/src/lsmsvgstyle.h
index 944edaf..48d3513 100644
--- a/src/lsmsvgstyle.h
+++ b/src/lsmsvgstyle.h
@@ -1,4 +1,5 @@
-/*
+/* Lasem - SVG and Mathml library
+ *
  * Copyright © 2009 Emmanuel Pacaud
  *
  * This library is free software; you can redistribute it and/or
@@ -24,7 +25,7 @@
 #define LSM_SVG_STYLE_H
 
 #include <lsmsvgtraits.h>
-#include <lsmproperties.h>
+#include <lsm.h>
 
 G_BEGIN_DECLS
 
diff --git a/src/lsmsvgsvgelement.h b/src/lsmsvgsvgelement.h
index 880684e..848e946 100644
--- a/src/lsmsvgsvgelement.h
+++ b/src/lsmsvgsvgelement.h
@@ -23,7 +23,7 @@
 #ifndef LSM_SVG_SVG_ELEMENT_H
 #define LSM_SVG_SVG_ELEMENT_H
 
-#include <lsmsvg.h>
+#include <lsmsvgtypes.h>
 #include <lsmsvgelement.h>
 
 G_BEGIN_DECLS
diff --git a/src/lsmsvgsymbolelement.h b/src/lsmsvgsymbolelement.h
index c6260dd..a4482e4 100644
--- a/src/lsmsvgsymbolelement.h
+++ b/src/lsmsvgsymbolelement.h
@@ -23,7 +23,7 @@
 #ifndef LSM_SVG_SYMBOL_ELEMENT_H
 #define LSM_SVG_SYMBOL_ELEMENT_H
 
-#include <lsmsvg.h>
+#include <lsmsvgtypes.h>
 #include <lsmsvgelement.h>
 
 G_BEGIN_DECLS
diff --git a/src/lsmsvgtextelement.c b/src/lsmsvgtextelement.c
index 6d85c2e..b55d65e 100644
--- a/src/lsmsvgtextelement.c
+++ b/src/lsmsvgtextelement.c
@@ -1,4 +1,5 @@
-/*
+/* Lasem - SVG and Mathml library
+ *
  * Copyright © 2009 Emmanuel Pacaud
  *
  * This library is free software; you can redistribute it and/or
diff --git a/src/lsmsvgtextelement.h b/src/lsmsvgtextelement.h
index 4b57115..8b7d09f 100644
--- a/src/lsmsvgtextelement.h
+++ b/src/lsmsvgtextelement.h
@@ -1,4 +1,5 @@
-/*
+/* Lasem - SVG and Mathml library
+ *
  * Copyright © 2009 Emmanuel Pacaud
  *
  * This library is free software; you can redistribute it and/or
@@ -23,7 +24,7 @@
 #ifndef LSM_SVG_TEXT_ELEMENT_H
 #define LSM_SVG_TEXT_ELEMENT_H
 
-#include <lsmsvg.h>
+#include <lsmsvgtypes.h>
 #include <lsmsvgelement.h>
 
 G_BEGIN_DECLS
diff --git a/src/lsmsvgtraits.c b/src/lsmsvgtraits.c
index 3ec6a85..927350e 100644
--- a/src/lsmsvgtraits.c
+++ b/src/lsmsvgtraits.c
@@ -1,4 +1,5 @@
-/*
+/* Lasem - SVG and Mathml library
+ *
  * Copyright © 2009 Emmanuel Pacaud
  *
  * This library is free software; you can redistribute it and/or
diff --git a/src/lsmsvgtraits.h b/src/lsmsvgtraits.h
index 3e89038..cea8c79 100644
--- a/src/lsmsvgtraits.h
+++ b/src/lsmsvgtraits.h
@@ -1,4 +1,5 @@
-/*
+/* Lasem - SVG and Mathml library
+ *
  * Copyright © 2009 Emmanuel Pacaud
  *
  * This library is free software; you can redistribute it and/or
@@ -23,7 +24,7 @@
 #ifndef LSM_SVG_TRAITS_H
 #define LSM_SVG_TRAITS_H
 
-#include <lsmtraits.h>
+#include <lsm.h>
 #include <lsmsvglength.h>
 #include <lsmsvgmatrix.h>
 
diff --git a/src/lsmsvgtspanelement.h b/src/lsmsvgtspanelement.h
index a913feb..c8ac380 100644
--- a/src/lsmsvgtspanelement.h
+++ b/src/lsmsvgtspanelement.h
@@ -23,7 +23,7 @@
 #ifndef LSM_SVG_TSPAN_ELEMENT_H
 #define LSM_SVG_TSPAN_ELEMENT_H
 
-#include <lsmsvg.h>
+#include <lsmsvgtypes.h>
 #include <lsmsvgelement.h>
 
 G_BEGIN_DECLS
diff --git a/src/lsmsvgtypes.h b/src/lsmsvgtypes.h
new file mode 100644
index 0000000..7cb5b30
--- /dev/null
+++ b/src/lsmsvgtypes.h
@@ -0,0 +1,66 @@
+/* Lasem - SVG and Mathml library
+ *
+ * Copyright © 2010 Emmanuel Pacaud
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General
+ * Public License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
+ * Boston, MA 02111-1307, USA.
+ *
+ * Author:
+ * 	Emmanuel Pacaud <emmanuel gnome org>
+ */
+
+#ifndef LSM_SVG_TYPES_H
+#define LSM_SVG_TYPES_H
+
+#include <lsmsvgenums.h>
+
+G_BEGIN_DECLS
+
+typedef struct _LsmSvgDocument LsmSvgDocument;
+typedef struct _LsmSvgElement LsmSvgElement;
+typedef struct _LsmSvgGraphic LsmSvgGraphic;
+typedef struct _LsmSvgClipPathElement LsmSvgClipPathElement;
+typedef struct _LsmSvgSvgElement LsmSvgSvgElement;
+typedef struct _LsmSvgGElement LsmSvgGElement;
+typedef struct _LsmSvgDefsElement LsmSvgDefsElement;
+typedef struct _LsmSvgUseElement LsmSvgUseElement;
+typedef struct _LsmSvgImageElement LsmSvgImageElement;
+typedef struct _LsmSvgSymbolElement LsmSvgSymbolElement;
+typedef struct _LsmSvgMarkerElement LsmSvgMarkerElement;
+typedef struct _LsmSvgRectElement LsmSvgRectElement;
+typedef struct _LsmSvgCircleElement LsmSvgCircleElement;
+typedef struct _LsmSvgEllipseElement LsmSvgEllipseElement;
+typedef struct _LsmSvgLineElement LsmSvgLineElement;
+typedef struct _LsmSvgPolylineElement LsmSvgPolylineElement;
+typedef struct _LsmSvgPolygonElement LsmSvgPolygonElement;
+typedef struct _LsmSvgPathElement LsmSvgPathElement;
+typedef struct _LsmSvgTextElement LsmSvgTextElement;
+typedef struct _LsmSvgTspanElement LsmSvgTspanElement;
+typedef struct _LsmSvgGradientElement LsmSvgGradientElement;
+typedef struct _LsmSvgLinearGradientElement LsmSvgLinearGradientElement;
+typedef struct _LsmSvgRadialGradientElement LsmSvgRadialGradientElement;
+typedef struct _LsmSvgStopElement LsmSvgStopElement;
+typedef struct _LsmSvgPatternElement LsmSvgPatternElement;
+typedef struct _LsmSvgMaskElement LsmSvgMaskElement;
+typedef struct _LsmSvgFilterElement LsmSvgFilterElement;
+typedef struct _LsmSvgFilterPrimitive LsmSvgFilterPrimitive;
+typedef struct _LsmSvgFilterGaussianBlur LsmSvgFilterGaussianBlur;
+
+typedef struct _LsmSvgView LsmSvgView;
+typedef struct _LsmSvgStyle LsmSvgStyle;
+
+G_END_DECLS
+
+#endif
diff --git a/src/lsmsvguseelement.h b/src/lsmsvguseelement.h
index 6e0d7a1..834293e 100644
--- a/src/lsmsvguseelement.h
+++ b/src/lsmsvguseelement.h
@@ -23,7 +23,7 @@
 #ifndef LSM_SVG_USE_ELEMENT_H
 #define LSM_SVG_USE_ELEMENT_H
 
-#include <lsmsvg.h>
+#include <lsmsvgtypes.h>
 #include <lsmsvgelement.h>
 
 G_BEGIN_DECLS
diff --git a/src/lsmsvgview.c b/src/lsmsvgview.c
index b24274d..b04441b 100644
--- a/src/lsmsvgview.c
+++ b/src/lsmsvgview.c
@@ -1,4 +1,5 @@
-/*
+/* Lasem - SVG and Mathml library
+ *
  * Copyright © 2009 Emmanuel Pacaud
  *
  * This library is free software; you can redistribute it and/or
diff --git a/src/lsmsvgview.h b/src/lsmsvgview.h
index 85bffdc..1e0b8fc 100644
--- a/src/lsmsvgview.h
+++ b/src/lsmsvgview.h
@@ -1,4 +1,5 @@
-/*
+/* Lasem - SVG and Mathml library
+ *
  * Copyright © 2009 Emmanuel Pacaud
  *
  * This library is free software; you can redistribute it and/or
@@ -23,9 +24,9 @@
 #ifndef LSM_SVG_VIEW_H
 #define LSM_SVG_VIEW_H
 
-#include <lsmdomview.h>
+#include <lsmdom.h>
+#include <lsmsvgtypes.h>
 #include <lsmsvgelement.h>
-#include <lsmsvg.h>
 #include <gdk-pixbuf/gdk-pixbuf.h>
 
 G_BEGIN_DECLS



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]