[gegl] Add gegl-extension-handler-private.h



commit cb03f0b5ce8a8645219ef58aa667864f9da8de9a
Author: Daniel Sabo <DanielSabo gmail com>
Date:   Tue Nov 19 17:02:13 2013 -0800

    Add gegl-extension-handler-private.h

 gegl/gegl-init.c                                |    2 +-
 gegl/operation/Makefile.am                      |    3 +-
 gegl/operation/gegl-extension-handler-private.h |   24 +++++++++++++++++++++++
 gegl/operation/gegl-extension-handler.c         |    1 +
 gegl/operation/gegl-extension-handler.h         |    3 --
 5 files changed, 28 insertions(+), 5 deletions(-)
---
diff --git a/gegl/gegl-init.c b/gegl/gegl-init.c
index e7fa4fe..185796f 100644
--- a/gegl/gegl-init.c
+++ b/gegl/gegl-init.c
@@ -95,7 +95,7 @@ guint gegl_debug_flags = 0;
 #include "buffer/gegl-buffer.h"
 #include "operation/gegl-operation.h"
 #include "operation/gegl-operations.h"
-#include "operation/gegl-extension-handler.h"
+#include "operation/gegl-extension-handler-private.h"
 #include "buffer/gegl-buffer-private.h"
 #include "buffer/gegl-buffer-iterator-private.h"
 #include "buffer/gegl-tile-backend-ram.h"
diff --git a/gegl/operation/Makefile.am b/gegl/operation/Makefile.am
index d5dd70f..b503fc0 100644
--- a/gegl/operation/Makefile.am
+++ b/gegl/operation/Makefile.am
@@ -14,6 +14,7 @@ AM_CFLAGS = $(DEP_CFLAGS) $(BABL_CFLAGS)
 liboperation_publicdir = $(includedir)/gegl-$(GEGL_API_VERSION)/operation
 
 liboperation_public_HEADERS = \
+       gegl-extension-handler.h         \
        gegl-operation.h                 \
        gegl-operation-area-filter.h     \
        gegl-operation-composer.h        \
@@ -31,6 +32,7 @@ liboperation_public_HEADERS = \
 
 liboperation_sources = \
        gegl-extension-handler.c                \
+       gegl-extension-handler-private.h \
        gegl-operation.c                        \
        gegl-operation-area-filter.c            \
        gegl-operation-composer.c               \
@@ -47,7 +49,6 @@ liboperation_sources = \
        gegl-operation-context.c                \
        gegl-operation-context-private.h \
        gegl-operations.c                       \
-       gegl-extension-handler.h                \
        gegl-operations.h
 
 noinst_LTLIBRARIES = liboperation.la
diff --git a/gegl/operation/gegl-extension-handler-private.h b/gegl/operation/gegl-extension-handler-private.h
new file mode 100644
index 0000000..7c54454
--- /dev/null
+++ b/gegl/operation/gegl-extension-handler-private.h
@@ -0,0 +1,24 @@
+/* This file is part of GEGL
+ *
+ * GEGL 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 3 of the License, or (at your option) any later version.
+ *
+ * GEGL 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 GEGL; if not, see <http://www.gnu.org/licenses/>.
+ *
+ * Copyright 2006 Øyvind Kolås <pippin gimp org>
+ */
+
+#ifndef __GEGL_EXTENSION_HANDLER_PRIVATE_H__
+#define __GEGL_EXTENSION_HANDLER_PRIVATE_H__
+
+void          gegl_extension_handler_cleanup        (void);
+
+#endif /* __GEGL_EXTENSION_HANDLER_PRIVATE_H__ */
\ No newline at end of file
diff --git a/gegl/operation/gegl-extension-handler.c b/gegl/operation/gegl-extension-handler.c
index 354b277..3cdf70a 100644
--- a/gegl/operation/gegl-extension-handler.c
+++ b/gegl/operation/gegl-extension-handler.c
@@ -19,6 +19,7 @@
 #include "config.h"
 #include <glib.h>
 #include "gegl-extension-handler.h"
+#include "gegl-extension-handler-private.h"
 
 static GHashTable *load_handlers = NULL;
 static GHashTable *save_handlers = NULL;
diff --git a/gegl/operation/gegl-extension-handler.h b/gegl/operation/gegl-extension-handler.h
index bb6219f..1a86f3a 100644
--- a/gegl/operation/gegl-extension-handler.h
+++ b/gegl/operation/gegl-extension-handler.h
@@ -19,14 +19,11 @@
 #ifndef __GEGL_EXTENSION_HANDLER_H__
 #define __GEGL_EXTENSION_HANDLER_H__
 
-#include <glib.h>
-
 void          gegl_extension_handler_register       (const gchar *extension,
                                                      const gchar *handler);
 void          gegl_extension_handler_register_saver (const gchar *extension,
                                                      const gchar *handler);
 const gchar * gegl_extension_handler_get            (const gchar *extension);
 const gchar * gegl_extension_handler_get_saver      (const gchar *extension);
-void          gegl_extension_handler_cleanup        (void);
 
 #endif


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