babl r376 - in trunk: . babl



Author: martinn
Date: Sat Jan 17 14:35:56 2009
New Revision: 376
URL: http://svn.gnome.org/viewvc/babl?rev=376&view=rev

Log:
Make babl.h look clean.

* babl/babl-introspect.h: New installed header for babl_name() and
babl_introspect().

* babl/babl.h: Include it.

* babl/Makefile.am: Add it.


Added:
   trunk/babl/babl-introspect.h
Modified:
   trunk/ChangeLog
   trunk/babl/Makefile.am
   trunk/babl/babl.h

Modified: trunk/babl/Makefile.am
==============================================================================
--- trunk/babl/Makefile.am	(original)
+++ trunk/babl/Makefile.am	Sat Jan 17 14:35:56 2009
@@ -38,6 +38,7 @@
 	babl-db.h			\
 	babl-ids.h			\
 	babl-internal.h			\
+	babl-introspect.h		\
 	babl-macros.h			\
 	babl-main.h			\
 	babl-memory.h			\
@@ -57,6 +58,7 @@
 	babl-fish.h			\
 	babl-format.h			\
 	babl-image.h			\
+	babl-introspect.h		\
 	babl-macros.h			\
 	babl-main.h			\
 	babl-model.h			\

Added: trunk/babl/babl-introspect.h
==============================================================================
--- (empty file)
+++ trunk/babl/babl-introspect.h	Sat Jan 17 14:35:56 2009
@@ -0,0 +1,40 @@
+/* babl - dynamically extendable universal pixel conversion library.
+ * Copyright (C) 2005-2008, Ãyvind KolÃs and others.
+ *
+ * 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 3 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, see
+ * <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef _BABL_INTROSPECT_H
+#define _BABL_INTROSPECT_H
+
+#ifndef _BABL_H
+#error  this file is only to be included by babl.h
+#endif
+
+
+/**
+ * babl_name:
+ *
+ * Return a string decsribing a BablInstance, might work better than
+ * babl->instance.name when a good human readable name is desired.
+ *
+ * Returns: a name describing the instance.
+ */
+const char * babl_name       (const Babl *babl);
+
+void         babl_introspect (Babl       *babl); /* introspect a given BablObject     */
+
+
+#endif

Modified: trunk/babl/babl.h
==============================================================================
--- trunk/babl/babl.h	(original)
+++ trunk/babl/babl.h	Sat Jan 17 14:35:56 2009
@@ -35,19 +35,7 @@
 #include "babl-macros.h"
 #include "babl-main.h"
 #include "babl-class.h"
-
-/**
- * babl_name:
- *
- * Return a string decsribing a BablInstance, might work better than
- * babl->instance.name when a good human readable name is desired.
- *
- * Returns: a name describing the instance.
- */
-const char * babl_name       (const Babl *babl);
-
-void         babl_introspect (Babl       *babl); /* introspect a given BablObject     */
-
+#include "babl-introspect.h"
 #include "babl-version.h"
 #include "babl-type.h"
 #include "babl-sampling.h"



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