]> Pileus Git - ~andy/gtk/commitdiff
0.6.0 - Federico
authorFederico Mena Quintero <federico@src.gnome.org>
Tue, 22 Feb 2000 00:29:00 +0000 (00:29 +0000)
committerFederico Mena Quintero <federico@src.gnome.org>
Tue, 22 Feb 2000 00:29:00 +0000 (00:29 +0000)
16 files changed:
docs/reference/gdk-pixbuf/Makefile.am
docs/reference/gdk-pixbuf/compiling.sgml [new file with mode: 0644]
docs/reference/gdk-pixbuf/gdk-pixbuf.sgml
gdk-pixbuf/ChangeLog
gdk-pixbuf/Makefile.am
gdk-pixbuf/gdk-pixbuf-io.c
gdk-pixbuf/io-bmp.c
gdk-pixbuf/io-gif.c
gdk-pixbuf/io-ico.c
gdk-pixbuf/io-jpeg.c
gdk-pixbuf/io-png.c
gdk-pixbuf/io-pnm.c
gdk-pixbuf/io-ras.c
gdk-pixbuf/io-tiff.c
gdk-pixbuf/io-xpm.c
gdk-pixbuf/pixops/Makefile.am

index eef777148eaab079c15ea62b5131603ab9636cc3..d9d18350c733b1348b2d46709cc2d9c66e129f34 100644 (file)
@@ -38,7 +38,12 @@ gdk_pixbuf_doc_DATA =                        \
        gdk-pixbuf-decl.txt             \
        gdk-pixbuf-sections.txt
 
-EXTRA_DIST = $(gdk_pixbuf_doc_DATA)
+content_files =                                \
+       compiling.sgml
+
+EXTRA_DIST =                           \
+       $(gdk_pixbuf_doc_DATA)          \
+       $(content_files)
 
 if ENABLE_GTK_DOC
 gdk-pixbuf.html: html/book1.html
@@ -47,7 +52,7 @@ else
 gdk-pixbuf.html:
 endif
 
-html/book1.html: sgml/gdk-pixbuf-doc.bottom
+html/book1.html: sgml/gdk-pixbuf-doc.bottom $(content_files)
        $(MAKE) html
 
 sgml/gdk-pixbuf-doc.bottom: $(tmpl_sources)
diff --git a/docs/reference/gdk-pixbuf/compiling.sgml b/docs/reference/gdk-pixbuf/compiling.sgml
new file mode 100644 (file)
index 0000000..5bc123f
--- /dev/null
@@ -0,0 +1,103 @@
+  <appendix id="compiling">
+    <title>Compiling the gdk-pixbuf library</title>
+
+    <para>
+      This appendix describes the special options you can use while
+      compiling the gdk-pixbuf library.
+    </para>
+
+    <sect1 id="building">
+      <title>Building the Library</title>
+      <para>
+       The gdk-pixbuf library uses the standard GNU build system,
+       using <productname>autoconf</productname> for package
+       configuration and resolving portability issues,
+       <productname>automake</productname> for building makefiles
+       that comply with the GNU Coding Standards, and
+       <productname>libtool</productname> for building shared
+       libraries on multiple platforms.  The normal sequence for
+       compiling and installing the gdk-pixbuf library is thus:
+
+       <literallayout>
+         <userinput>./configure</userinput>
+         <userinput>make</userinput>
+         <userinput>make install</userinput>
+       </literallayout>
+      </para>
+
+      <para>
+       The standard options provided by <productname>GNU
+       autoconf</productname> may be passed to the
+       <command>configure</command> script.  Please see the
+       <productname>autoconf</productname> documentation or run
+       <command>./configure --help</command> for information about
+       the standard options.
+      </para>
+    </sect1>
+
+    <sect1 id="extra-configuration-options">
+      <title>Extra Configuration Options</title>
+
+      <para>
+       In addition to the normal options, the
+       <command>configure</command> script in the gdk-pixbuf library
+       supports these additional arguments:
+
+       <cmdsynopsis>
+         <command>configure</command>
+
+         <group>
+           <arg>--disable-modules</arg>
+           <arg>--enable-modules</arg>
+         </group>
+
+         <group>
+           <arg>--disable-gtk-doc</arg>
+           <arg>--enable-gtk-doc</arg>
+         </group>
+       </cmdsynopsis>
+      </para>
+
+      <formalpara>
+       <title><systemitem>--disable-modules</systemitem> and
+         <systemitem>--enable-modules</systemitem></title>
+
+       <para>
+         Normally gdk-pixbuf will try to build the image file format
+         loaders as little shared libraries that are loaded on
+         demand.  The <systemitem>--disable-modules</systemitem>
+         argument indicates that they should all be built statically
+         into the gdk-pixbuf library instead.  This is useful for
+         people who need to produce statically-linked binaries.  If
+         neither <systemitem>--disable-modules</systemitem> nor
+         <systemitem>--enable-modules</systemitem> is specified, then
+         the <command>configure</command> script will try to
+         auto-detect whether shared modules work on your system.
+       </para>
+      </formalpara>
+
+      <formalpara>
+       <title><systemitem>--disable-gtk-doc</systemitem> and
+         <systemitem>--enable-gtk-doc</systemitem></title>
+
+       <para>
+         By default the <command>configure</command> script will try
+         to auto-detect whether the
+         <productname>gtk-doc</productname> package is installed.  If
+         it is, then it will use it to extract and build the
+         documentation for the gdk-pixbuf library.  These options can
+         be used to explicitly control whether gtk-doc should be used
+         or not.  If it is not used, the distributed, pre-generated
+         HTML files will be installed instead of building them on
+         your machine.
+       </para>
+      </formalpara>
+    </sect1>
+  </appendix>
+
+<!--
+Local variables:
+mode: sgml
+sgml-parent-document: ("gdk-pixbuf.sgml" "book" "book" "")
+End:
+-->
index 410a2cc3e776e9718be71384763b64db55e08256..900f4edb5a6d316fc843a3978a300a1fdd665ea1 100644 (file)
@@ -10,6 +10,7 @@
 <!entity gdk-pixbuf-animation SYSTEM "sgml/animation.sgml">
 <!entity GdkPixbufLoader SYSTEM "sgml/gdk-pixbuf-loader.sgml">
 <!entity GnomeCanvasPixbuf SYSTEM "sgml/gnome-canvas-pixbuf.sgml">
+<!entity Compiling SYSTEM "compiling.sgml">
 ]>
 
 <book>
@@ -57,4 +58,6 @@
     &GdkPixbufLoader;
     &GnomeCanvasPixbuf;
   </reference>
+
+  &Compiling;
 </book>
index a78beb6bb2846809b1a70a25b2c3338ecac9d9e0..df4045466da46b1a2ce350937d18322b4b052767 100644 (file)
@@ -1,3 +1,94 @@
+2000-02-21  Federico Mena Quintero  <federico@helixcode.com>
+
+       * configure.in (GDK_PIXBUF_MINOR): Bumped version number to 0.6.0.
+
+       * doc/compiling.sgml: New appendix documenting the gdk-pixbuf
+       library's particular options to configure.in.
+
+       * doc/gdk-pixbuf.sgml: Include compiling.sgml appendix via an
+       entity.
+
+       * doc/Makefile.am (gdk-pixbuf.html): Added compiling.sgml.
+
+       * gdk-pixbuf/io-ico.c (gdk_pixbuf__ico_image_load_increment):
+       Fixed typo in prototype name.
+
+       * configure.in: Changed duplicated AC_MSG_CHECKING message to
+       something more meaningful; now it is "checking whether dynamic
+       modules work".
+
+       * gdk-pixbuf/pixops/Makefile.am (noinst_PROGRAMS): Do not install
+       the timescale program.
+
+       Integrated Miguel de Icaza's <miguel@gnu.org> patch for optionally
+       creating a single static library with all the image format modules
+       in it.
+
+2000-02-20  Miguel de Icaza  <miguel@gnu.org>
+
+       * gdk-pixbuf/io-xpm.c (gdk_pixbuf__xpm_image_load): Add prefix.
+       (gdk_pixbuf__xpm_image_load_xpm_data): Add prefix.
+
+       * gdk-pixbuf/io-tiff.c (gdk_pixbuf__tiff_image_load_real): Add prefix.
+       (gdk_pixbuf__tiff_image_stop_load): Add prefix.
+       (gdk_pixbuf__tiff_image_load_increment): Add prefix.
+       (gdk_pixbuf__tiff_image_load): Add prefix.
+       (gdk_pixbuf__tiff_image_stop_load): Update invocation.
+       (gdk_pixbuf__tiff_image_begin_load): Add prefix.
+
+       * gdk-pixbuf/io-ras.c (gdk_pixbuf__ras_image_load): Add prefix.
+       (gdk_pixbuf__ras_image_load): Updated invocation.
+       (gdk_pixbuf__ras_image_begin_load): Add prefix.
+       (gdk_pixbuf__ras_image_stop_load): Add prefix.
+       (gdk_pixbuf__ras_image_load_increment): Add prefix.
+
+       * gdk-pixbuf/io-pnm.c (gdk_pixbuf__pnm_image_begin_load): Add prefix.
+       (gdk_pixbuf__pnm_image_stop_load): Add prefix.
+       (gdk_pixbuf__pnm_image_load_increment): Add prefix
+       (gdk_pixbuf__pnm_image_load): Add prefix.
+
+       * gdk-pixbuf/io-jpeg.c (gdk_pixbuf__jpeg_image_load): Add prefix.
+       (gdk_pixbuf__jpeg_image_load_increment): Add prefix.
+       (gdk_pixbuf__jpeg_image_begin_load): Add prefix.
+       (gdk_pixbuf__jpeg_image_stop_load): Add prefix.
+
+       * gdk-pixbuf/io-ico.c (gdk_pixbuf__ico_image_load): Add prefix.
+       (gdk_pixbuf__ico_image_load): update invocation.
+       (gdk_pixbuf__ico_image_load_increment): Add prefix.
+       (gdk_pixbuf__ico_image_load): update invocation.
+       (gdk_pixbuf__ico_image_begin_load): Add prefix.
+       (gdk_pixbuf__ico_image_load): update invocation.
+       (gdk_pixbuf__ico_image_stop_load): Add prefix.
+
+       * gdk-pixbuf/io-gif.c (gdk_pixbuf__gif_image_load_animation): Add prefix.
+       (gdk_pixbuf__gif_image_load): Add prefix.
+       (gdk_pixbuf__gif_image_begin_load): Add prefix.
+       (gdk_pixbuf__gif_image_load_increment): Add prefix.
+       (gdk_pixbuf__gif_image_load_animation): Add prefix.
+       (gdk_pixbuf__gif_image_stop_load): Add prefix.
+
+       * gdk-pixbuf/io-bmp.c (gdk_pixbuf__bmp_image_load): Add prefix.
+       (gdk_pixbuf__bmp_image_load): Rename function called.
+       (gdk_pixbuf__bmp_image_load_increment): Add prefix
+
+       * gdk-pixbuf/io-png.c (gdk_pixbuf__png_image_load): Add prefix.
+       (gdk_pixbuf__png_image_begin_load): Add prefix.
+       (gdk_pixbuf__png_image_stop_load): Add prefix.
+       (gdk_pixbuf__png_image_load_increment): Add prefix.
+
+       * gdk-pixbuf/gdk-pixbuf-io.c (file_formats): Make this static.
+       (gdk_pixbuf_load_module): Load the shared library entry points
+       using a "gdk_pixbuf__$module_name" prefix.
+       (pixbuf_module_symbol): Wrapper routine that uses the module
+       prefix for the modules to load the information.
+
+       * configure.in (GDK_PIXBUF_VERSION): New option --disable-modules
+       lets the user specify that gdk-pixbuf should link all image loader
+       code into the library instaed of creating shared library modules.
+       
+       (dynworks): Renamed the automake conditional DYNAMIC_MODULES_WORK
+       to BUILD_DYNAMIC_MODULES.
+
 2000-02-19  Jonathan Blandford  <jrb@redhat.com>
 
        * gdk-pixbuf/io-gif.c (new_context): fix case where initial
index deae075fe3e2a333210ab6dc32daaeeea872c3bc..4a628fae8b5a8eb924ff6208bd9b380a3de1c762 100644 (file)
@@ -19,6 +19,69 @@ libgnomecanvaspixbuf_la_LDFLAGS = $(EXTRA_GNOME_LIBS)
 
 libexecdir = $(libdir)/gdk-pixbuf/loaders
 
+#
+# The PNG plugin.
+#
+libpixbuf_png_la_SOURCES = io-png.c
+libpixbuf_png_la_LDFLAGS = -avoid-version -module
+libpixbuf_png_la_LIBADD = $(LIBPNG)
+
+#
+# The JPEG loader
+#
+libpixbuf_jpeg_la_SOURCES = io-jpeg.c
+libpixbuf_jpeg_la_LDFLAGS = -avoid-version -module
+libpixbuf_jpeg_la_LIBADD = $(LIBJPEG)
+
+#
+# The XPM loader
+#
+libpixbuf_xpm_la_SOURCES = io-xpm.c
+libpixbuf_xpm_la_LDFLAGS = -avoid-version -module
+libpixbuf_xpm_la_LIBADD =
+
+#
+# The GIF loader
+#
+libpixbuf_gif_la_SOURCES = io-gif.c
+libpixbuf_gif_la_LDFLAGS = -avoid-version -module
+libpixbuf_gif_la_LIBADD =
+
+#
+# The ICO loader
+#
+libpixbuf_ico_la_SOURCES = io-ico.c
+libpixbuf_ico_la_LDFLAGS = -avoid-version -module
+libpixbuf_ico_la_LIBADD =
+
+#
+# The RAS loader
+#
+libpixbuf_ras_la_SOURCES = io-ras.c
+libpixbuf_ras_la_LDFLAGS = -avoid-version -module
+libpixbuf_ras_la_LIBADD =
+
+#
+# The TIFF loader
+#
+libpixbuf_tiff_la_SOURCES = io-tiff.c
+libpixbuf_tiff_la_LDFLAGS = -avoid-version -module
+libpixbuf_tiff_la_LIBADD = $(LIBTIFF)
+
+#
+# The PNM loader
+#
+libpixbuf_pnm_la_SOURCES = io-pnm.c
+libpixbuf_pnm_la_LDFLAGS = -avoid-version -module
+libpixbuf_pnm_la_LIBADD =
+
+#
+# The BMP loader
+#
+libpixbuf_bmp_la_SOURCES = io-bmp.c
+libpixbuf_bmp_la_LDFLAGS = -avoid-version -module
+libpixbuf_bmp_la_LIBADD =
+
 if HAVE_PNG
 PNG_LIB =      libpixbuf-png.la
 endif
@@ -43,7 +106,9 @@ PNM_LIB =    libpixbuf-pnm.la
 
 BMP_LIB =      libpixbuf-bmp.la
 
-libexec_LTLIBRARIES =          \
+if BUILD_DYNAMIC_MODULES
+
+libexec_LTLIBRARIES =  \
        $(PNG_LIB)      \
        $(JPEG_LIB)     \
        $(GIF_LIB)      \
@@ -54,6 +119,25 @@ libexec_LTLIBRARIES =               \
        $(PNM_LIB)      \
        $(BMP_LIB)
 
+
+extra_sources = 
+
+else
+libexec_LTLIBRARIES = 
+
+extra_sources = $(libpixbuf_png_la_SOURCES)    \
+               $(libpixbuf_jpeg_la_SOURCES)    \
+               $(libpixbuf_xpm_la_SOURCES)     \
+               $(libpixbuf_gif_la_SOURCES)     \
+               $(libpixbuf_ico_la_SOURCES)     \
+               $(libpixbuf_ras_la_SOURCES)     \
+               $(libpixbuf_tiff_la_SOURCES)    \
+               $(libpixbuf_pnm_la_SOURCES)     \
+               $(libpixbuf_bmp_la_SOURCES)
+
+builtin_libraries = 
+endif
+
 noinst_PROGRAMS = testpixbuf testpixbuf-drawable testanimation testpixbuf-scale
 
 DEPS = libgdk_pixbuf.la
@@ -63,7 +147,7 @@ INCLUDES = -I$(top_srcdir) -I$(top_builddir) \
        $(GLIB_CFLAGS) $(LIBART_CFLAGS) $(GTK_CFLAGS)
 AM_CPPFLAGS = "-DPIXBUF_LIBDIR=\"$(libexecdir)\""
 
-LDADDS = libgdk_pixbuf.la $(LIBART_LIBS) $(GLIB_LIBS) $(GTK_LIBS)
+LDADDS = libgdk_pixbuf.la $(LIBART_LIBS) $(GLIB_LIBS) $(GTK_LIBS) $(STATIC_LIB_DEPS)
 
 if INSIDE_GNOME_LIBS
 testpixbuf_LDADD = $(LDADDS) $(LIBART_LIBS) -lgmodule
@@ -95,10 +179,11 @@ libgdk_pixbuf_la_SOURCES =         \
        gdk-pixbuf-loader.c     \
        gdk-pixbuf-render.c     \
        gdk-pixbuf-scale.c      \
-       gdk-pixbuf-util.c
+       gdk-pixbuf-util.c       \
+       $(extra_sources)
 
 libgdk_pixbuf_la_LDFLAGS = -version-info 1:0:0 $(LIBART_LIBS) $(GLIB_LIBS) $(GTK_LIBS)
-libgdk_pixbuf_la_LIBADD = pixops/libpixops.la
+libgdk_pixbuf_la_LIBADD = pixops/libpixops.la 
 
 libgdk_pixbufinclude_HEADERS = \
        gdk-pixbuf.h            \
@@ -109,65 +194,3 @@ libgdk_pixbufinclude_HEADERS =     \
 noinst_HEADERS = \
        gdk-pixbuf-io.h
 
-#
-# The PNG plugin.
-#
-libpixbuf_png_la_SOURCES = io-png.c
-libpixbuf_png_la_LDFLAGS = -avoid-version -module
-libpixbuf_png_la_LIBADD = $(LIBPNG)
-
-#
-# The JPEG loader
-#
-libpixbuf_jpeg_la_SOURCES = io-jpeg.c
-libpixbuf_jpeg_la_LDFLAGS = -avoid-version -module
-libpixbuf_jpeg_la_LIBADD = $(LIBJPEG)
-
-#
-# The XPM loader
-#
-libpixbuf_xpm_la_SOURCES = io-xpm.c
-libpixbuf_xpm_la_LDFLAGS = -avoid-version -module
-libpixbuf_xpm_la_LIBADD =
-
-#
-# The GIF loader
-#
-libpixbuf_gif_la_SOURCES = io-gif.c
-libpixbuf_gif_la_LDFLAGS = -avoid-version -module
-libpixbuf_gif_la_LIBADD =
-
-#
-# The ICO loader
-#
-libpixbuf_ico_la_SOURCES = io-ico.c
-libpixbuf_ico_la_LDFLAGS = -avoid-version -module
-libpixbuf_ico_la_LIBADD =
-
-#
-# The RAS loader
-#
-libpixbuf_ras_la_SOURCES = io-ras.c
-libpixbuf_ras_la_LDFLAGS = -avoid-version -module
-libpixbuf_ras_la_LIBADD =
-
-#
-# The TIFF loader
-#
-libpixbuf_tiff_la_SOURCES = io-tiff.c
-libpixbuf_tiff_la_LDFLAGS = -avoid-version -module
-libpixbuf_tiff_la_LIBADD = $(LIBTIFF)
-
-#
-# The PNM loader
-#
-libpixbuf_pnm_la_SOURCES = io-pnm.c
-libpixbuf_pnm_la_LDFLAGS = -avoid-version -module
-libpixbuf_pnm_la_LIBADD =
-
-#
-# The BMP loader
-#
-libpixbuf_bmp_la_SOURCES = io-bmp.c
-libpixbuf_bmp_la_LDFLAGS = -avoid-version -module
-libpixbuf_bmp_la_LIBADD =
index 71fcf81b74afe79dc46041cfc5819445d9e3ad3c..491543a277525806f9c98c0d819e05b4121d7fc4 100644 (file)
@@ -166,8 +166,7 @@ pixbuf_check_bmp (guchar *buffer, int size)
        return TRUE;
 }
 
-
-GdkPixbufModule file_formats [] = {
+static GdkPixbufModule file_formats [] = {
        { "png",  pixbuf_check_png, NULL,  NULL, NULL, NULL, NULL, NULL },
        { "jpeg", pixbuf_check_jpeg, NULL, NULL, NULL, NULL, NULL, NULL },
        { "tiff", pixbuf_check_tiff, NULL, NULL, NULL, NULL, NULL, NULL },
@@ -181,6 +180,18 @@ GdkPixbufModule file_formats [] = {
        { NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL }
 };
 
+#ifdef USE_GMODULE 
+static gboolean
+pixbuf_module_symbol (GModule *module, const char *module_name, const char *symbol_name, gpointer *symbol)
+{
+       char *full_symbol_name = g_strconcat ("gdk_pixbuf__", module_name, "_", symbol_name, NULL);
+       gboolean return_value;
+
+       return_value = g_module_symbol (module, full_symbol_name, symbol);
+       g_free (full_symbol_name);
+       
+       return return_value;
+}
 
 /* actually load the image handler - gdk_pixbuf_get_module only get a */
 /* reference to the module to load, it doesn't actually load it       */
@@ -192,10 +203,13 @@ gdk_pixbuf_load_module (GdkPixbufModule *image_module)
        char *path;
        GModule *module;
        gpointer load_sym;
-
+       char *name;
+       
         g_return_if_fail (image_module->module == NULL);
 
-       module_name = g_strconcat ("pixbuf-", image_module->module_name, NULL);
+       name = image_module->module_name;
+       
+       module_name = g_strconcat ("pixbuf-", name, NULL);
        path = g_module_build_path (PIXBUF_LIBDIR, module_name);
 
        module = g_module_open (path, G_MODULE_BIND_LAZY);
@@ -220,24 +234,150 @@ gdk_pixbuf_load_module (GdkPixbufModule *image_module)
 
        image_module->module = module;
 
-       if (g_module_symbol (module, "image_load", &load_sym))
+       if (pixbuf_module_symbol (module, name, "image_load", &load_sym))
                image_module->load = load_sym;
 
-        if (g_module_symbol (module, "image_load_xpm_data", &load_sym))
+        if (pixbuf_module_symbol (module, name, "image_load_xpm_data", &load_sym))
                image_module->load_xpm_data = load_sym;
 
-        if (g_module_symbol (module, "image_begin_load", &load_sym))
+        if (pixbuf_module_symbol (module, name, "image_begin_load", &load_sym))
                image_module->begin_load = load_sym;
 
-        if (g_module_symbol (module, "image_stop_load", &load_sym))
+        if (pixbuf_module_symbol (module, name, "image_stop_load", &load_sym))
                image_module->stop_load = load_sym;
 
-        if (g_module_symbol (module, "image_load_increment", &load_sym))
+        if (pixbuf_module_symbol (module, name, "image_load_increment", &load_sym))
                image_module->load_increment = load_sym;
 
-        if (g_module_symbol (module, "image_load_animation", &load_sym))
+        if (pixbuf_module_symbol (module, name, "image_load_animation", &load_sym))
                image_module->load_animation = load_sym;
 }
+#else
+
+#define mname(type,fn) gdk_pixbuf__ ## type ## _image_ ##fn
+#define m_load(type)  extern GdkPixbuf * mname(type,load) (FILE *f);
+#define m_load_xpm_data(type)  extern GdkPixbuf * mname(type,load_xpm_data) (const char **data);
+#define m_begin_load(type)  \
+   extern gpointer mname(type,begin_load) (ModulePreparedNotifyFunc prepare_func, \
+                                ModuleUpdatedNotifyFunc update_func, \
+                                ModuleFrameDoneNotifyFunc frame_done_func,\
+                                ModuleAnimationDoneNotifyFunc anim_done_func,\
+                                gpointer user_data);
+#define m_stop_load(type)  extern void mname(type,stop_load) (gpointer context);
+#define m_load_increment(type)  extern gboolean mname(type,load_increment) (gpointer context, const guchar *buf, guint size);
+#define m_load_animation(type)  extern GdkPixbufAnimation * mname(type,load_animation) (FILE *f);
+
+m_load (png);
+m_begin_load (png);
+m_load_increment (png);
+m_stop_load (png);
+m_load (bmp);
+m_begin_load (bmp);
+m_load_increment (bmp);
+m_stop_load (bmp);
+m_load (gif);
+m_begin_load (gif);
+m_load_increment (gif);
+m_stop_load (gif);
+m_load_animation (gif);
+m_load (ico);
+m_begin_load (ico);
+m_load_increment (ico);
+m_stop_load (ico);
+m_load (jpeg);
+m_begin_load (jpeg);
+m_load_increment (jpeg);
+m_stop_load (jpeg);
+m_load (pnm);
+m_begin_load (pnm);
+m_load_increment (pnm);
+m_stop_load (pnm);
+m_load (ras);
+m_begin_load (ras);
+m_load_increment (ras);
+m_stop_load (ras);
+m_load (tiff);
+m_begin_load (tiff);
+m_load_increment (tiff);
+m_stop_load (tiff);
+m_load (xpm);
+m_load_xpm_data (xpm);
+
+void
+gdk_pixbuf_load_module (GdkPixbufModule *image_module)
+{
+       image_module->module = (void *) 1;
+       
+       if (strcmp (image_module->module_name, "png") == 0){
+               image_module->load           = mname (png,load);
+               image_module->begin_load     = mname (png,begin_load);
+               image_module->load_increment = mname (png,load_increment);
+               image_module->stop_load      = mname (png,stop_load);
+               return;
+       }
+
+       if (strcmp (image_module->module_name, "bmp") == 0){
+               image_module->load           = mname (bmp,load);
+               image_module->begin_load     = mname (bmp,begin_load);
+               image_module->load_increment = mname (bmp,load_increment);
+               image_module->stop_load      = mname (bmp,stop_load);
+               return;
+       }
+
+       if (strcmp (image_module->module_name, "gif") == 0){
+               image_module->load           = mname (gif,load);
+               image_module->begin_load     = mname (gif,begin_load);
+               image_module->load_increment = mname (gif,load_increment);
+               image_module->stop_load      = mname (gif,stop_load);
+               image_module->load_animation = mname (gif,load_animation);
+               return;
+       }
+
+       if (strcmp (image_module->module_name, "ico") == 0){
+               image_module->load           = mname (ico,load);
+               image_module->begin_load     = mname (ico,begin_load);
+               image_module->load_increment = mname (ico,load_increment);
+               image_module->stop_load      = mname (ico,stop_load);
+               return;
+       }
+
+       if (strcmp (image_module->module_name, "jpeg") == 0){
+               image_module->load           = mname (jpeg,load);
+               image_module->begin_load     = mname (jpeg,begin_load);
+               image_module->load_increment = mname (jpeg,load_increment);
+               image_module->stop_load      = mname (jpeg,stop_load);
+               return;
+       }
+       if (strcmp (image_module->module_name, "pnm") == 0){
+               image_module->load           = mname (pnm,load);
+               image_module->begin_load     = mname (pnm,begin_load);
+               image_module->load_increment = mname (pnm,load_increment);
+               image_module->stop_load      = mname (pnm,stop_load);
+               return;
+       }
+       if (strcmp (image_module->module_name, "ras") == 0){
+               image_module->load           = mname (ras,load);
+               image_module->begin_load     = mname (ras,begin_load);
+               image_module->load_increment = mname (ras,load_increment);
+               image_module->stop_load      = mname (ras,stop_load);
+               return;
+       }
+       if (strcmp (image_module->module_name, "tiff") == 0){
+               image_module->load           = mname (tiff,load);
+               image_module->begin_load     = mname (tiff,begin_load);
+               image_module->load_increment = mname (tiff,load_increment);
+               image_module->stop_load      = mname (tiff,stop_load);
+               return;
+       }
+       if (strcmp (image_module->module_name, "xpm") == 0){
+               image_module->load           = mname (xpm,load);
+               image_module->load_xpm_data  = mname (xpm,load_xpm_data);
+               return;
+       }
+}
+
+
+#endif
 
 \f
 
index 65d65f1be3eca1f87e0da05401330000c5384ee7..13a173824b6c22d007b2139678bb0e9e4b5acf3e 100644 (file)
@@ -172,19 +172,20 @@ struct bmp_progressive_state {
 };
 
 gpointer
-image_begin_load(ModulePreparedNotifyFunc prepared_func,
-                ModuleUpdatedNotifyFunc updated_func,
-                ModuleFrameDoneNotifyFunc frame_done_func,
-                ModuleAnimationDoneNotifyFunc anim_done_func,
-                gpointer user_data);
-void image_stop_load(gpointer data);
-gboolean image_load_increment(gpointer data, guchar * buf, guint size);
+gdk_pixbuf__bmp_image_begin_load(ModulePreparedNotifyFunc prepared_func,
+                                ModuleUpdatedNotifyFunc updated_func,
+                                ModuleFrameDoneNotifyFunc frame_done_func,
+                                ModuleAnimationDoneNotifyFunc anim_done_func,
+                                gpointer user_data);
+
+void gdk_pixbuf__bmp_image_stop_load(gpointer data);
+gboolean gdk_pixbuf__bmp_image_load_increment(gpointer data, guchar * buf, guint size);
 
 
 
 /* Shared library entry point --> This should be removed when
    generic_image_load enters gdk-pixbuf-io. */
-GdkPixbuf *image_load(FILE * f)
+GdkPixbuf *gdk_pixbuf__bmp_image_load(FILE * f)
 {
        guchar *membuf;
        size_t length;
@@ -192,7 +193,7 @@ GdkPixbuf *image_load(FILE * f)
 
        GdkPixbuf *pb;
 
-       State = image_begin_load(NULL, NULL, NULL, NULL, NULL);
+       State = gdk_pixbuf__bmp_image_begin_load(NULL, NULL, NULL, NULL, NULL);
        membuf = g_malloc(4096);
 
        g_assert(membuf != NULL);
@@ -201,7 +202,7 @@ GdkPixbuf *image_load(FILE * f)
        while (feof(f) == 0) {
                length = fread(membuf, 1, 4096, f);
                if (length > 0)
-                       (void) image_load_increment(State, membuf, length);
+                       (void) gdk_pixbuf__bmp_image_load_increment(State, membuf, length);
 
        }
        g_free(membuf);
@@ -210,7 +211,7 @@ GdkPixbuf *image_load(FILE * f)
 
        pb = State->pixbuf;
 
-       image_stop_load(State);
+       gdk_pixbuf__bmp_image_stop_load(State);
        return pb;
 }
 
@@ -305,11 +306,11 @@ static void DecodeHeader(unsigned char *BFH, unsigned char *BIH,
  */
 
 gpointer
-image_begin_load(ModulePreparedNotifyFunc prepared_func,
-                ModuleUpdatedNotifyFunc updated_func,
-                ModuleFrameDoneNotifyFunc frame_done_func,
-                ModuleAnimationDoneNotifyFunc anim_done_func,
-                gpointer user_data)
+gdk_pixbuf__bmp_image_begin_load(ModulePreparedNotifyFunc prepared_func,
+                                ModuleUpdatedNotifyFunc updated_func,
+                                ModuleFrameDoneNotifyFunc frame_done_func,
+                                ModuleAnimationDoneNotifyFunc anim_done_func,
+                                gpointer user_data)
 {
        struct bmp_progressive_state *context;
 
@@ -347,7 +348,7 @@ image_begin_load(ModulePreparedNotifyFunc prepared_func,
  *
  * free context, unref gdk_pixbuf
  */
-void image_stop_load(gpointer data)
+void gdk_pixbuf__bmp_image_stop_load(gpointer data)
 {
        struct bmp_progressive_state *context =
            (struct bmp_progressive_state *) data;
@@ -658,7 +659,7 @@ void DoCompressedByte(struct bmp_progressive_state *context, guchar ** buf,
  *
  * append image data onto inrecrementally built output image
  */
-gboolean image_load_increment(gpointer data, guchar * buf, guint size)
+gboolean gdk_pixbuf__bmp_image_load_increment(gpointer data, guchar * buf, guint size)
 {
        struct bmp_progressive_state *context =
            (struct bmp_progressive_state *) data;
index 1f139831677d268790f476db8fbda557bc6e66a3..71c6288cb91b526f96ecb062af32621ab5aa83e6 100644 (file)
@@ -1084,7 +1084,7 @@ new_context (void)
 }
 /* Shared library entry point */
 GdkPixbuf *
-image_load (FILE *file)
+gdk_pixbuf__gif_image_load (FILE *file)
 {
        GifContext *context;
 
@@ -1099,11 +1099,11 @@ image_load (FILE *file)
 }
 
 gpointer
-image_begin_load (ModulePreparedNotifyFunc prepare_func,
-                 ModuleUpdatedNotifyFunc update_func,
-                 ModuleFrameDoneNotifyFunc frame_done_func,
-                 ModuleAnimationDoneNotifyFunc anim_done_func,
-                 gpointer user_data)
+gdk_pixbuf__gif_image_begin_load (ModulePreparedNotifyFunc prepare_func,
+                                 ModuleUpdatedNotifyFunc update_func,
+                                 ModuleFrameDoneNotifyFunc frame_done_func,
+                                 ModuleAnimationDoneNotifyFunc anim_done_func,
+                                 gpointer user_data)
 {
        GifContext *context;
 
@@ -1121,7 +1121,7 @@ image_begin_load (ModulePreparedNotifyFunc prepare_func,
 }
 
 void
-image_stop_load (gpointer data)
+gdk_pixbuf__gif_image_stop_load (gpointer data)
 {
        GifContext *context = (GifContext *) data;
 
@@ -1136,7 +1136,7 @@ image_stop_load (gpointer data)
 }
 
 gboolean
-image_load_increment (gpointer data, guchar *buf, guint size)
+gdk_pixbuf__gif_image_load_increment (gpointer data, guchar *buf, guint size)
 {
        gint retval;
        GifContext *context = (GifContext *) data;
@@ -1194,7 +1194,7 @@ image_load_increment (gpointer data, guchar *buf, guint size)
 }
 
 GdkPixbufAnimation *
-image_load_animation (FILE *file)
+gdk_pixbuf__gif_image_load_animation (FILE *file)
 {
        GifContext *context;
 
index 22d1769ee7bbdc31c25ddbbd6ab9368620e61e90..4cb699576e621fd26a80525195a0543143cf8c3e 100644 (file)
@@ -153,19 +153,20 @@ struct ico_progressive_state {
 };
 
 gpointer
-image_begin_load(ModulePreparedNotifyFunc prepared_func,
-                ModuleUpdatedNotifyFunc updated_func,
-                ModuleFrameDoneNotifyFunc frame_done_func,
-                ModuleAnimationDoneNotifyFunc anim_done_func,
-                gpointer user_data);
-void image_stop_load(gpointer data);
-gboolean image_load_increment(gpointer data, guchar * buf, guint size);
+gdk_pixbuf__ico_image_begin_load(ModulePreparedNotifyFunc prepared_func,
+                                ModuleUpdatedNotifyFunc updated_func,
+                                ModuleFrameDoneNotifyFunc frame_done_func,
+                                ModuleAnimationDoneNotifyFunc anim_done_func,
+                                gpointer user_data);
+void gdk_pixbuf__ico_image_stop_load(gpointer data);
+gboolean gdk_pixbuf__ico_image_load_increment(gpointer data, guchar * buf, guint size);
 
 
 
 /* Shared library entry point --> Can go when generic_image_load
    enters gdk-pixbuf-io */
-GdkPixbuf *image_load(FILE * f)
+GdkPixbuf *
+gdk_pixbuf__ico_image_load(FILE * f)
 {
        guchar *membuf;
        size_t length;
@@ -173,16 +174,15 @@ GdkPixbuf *image_load(FILE * f)
 
        GdkPixbuf *pb;
 
-       State = image_begin_load(NULL, NULL, NULL, NULL, NULL);
+       State = gdk_pixbuf__ico_image_begin_load(NULL, NULL, NULL, NULL, NULL);
        membuf = g_malloc(4096);
 
        g_assert(membuf != NULL);
 
-
        while (feof(f) == 0) {
                length = fread(membuf, 1, 4096, f);
                if (length > 0)
-                       (void)image_load_increment(State, membuf, length);
+                       gdk_pixbuf__ico_image_load_increment(State, membuf, length);
 
        }
        g_free(membuf);
@@ -191,7 +191,7 @@ GdkPixbuf *image_load(FILE * f)
 
        pb = State->pixbuf;
 
-       image_stop_load(State);
+       gdk_pixbuf__ico_image_stop_load(State);
        return pb;
 }
 
@@ -365,11 +365,11 @@ static void DecodeHeader(guchar *Data, gint Bytes,
  */
 
 gpointer
-image_begin_load(ModulePreparedNotifyFunc prepared_func,
-                ModuleUpdatedNotifyFunc updated_func,
-                ModuleFrameDoneNotifyFunc frame_done_func,
-                ModuleAnimationDoneNotifyFunc anim_done_func,
-                gpointer user_data)
+gdk_pixbuf__ico_image_begin_load(ModulePreparedNotifyFunc prepared_func,
+                                ModuleUpdatedNotifyFunc updated_func,
+                                ModuleFrameDoneNotifyFunc frame_done_func,
+                                ModuleAnimationDoneNotifyFunc anim_done_func,
+                                gpointer user_data)
 {
        struct ico_progressive_state *context;
 
@@ -405,7 +405,7 @@ image_begin_load(ModulePreparedNotifyFunc prepared_func,
  *
  * free context, unref gdk_pixbuf
  */
-void image_stop_load(gpointer data)
+void gdk_pixbuf__ico_image_stop_load(gpointer data)
 {
        struct ico_progressive_state *context =
            (struct ico_progressive_state *) data;
@@ -631,7 +631,8 @@ static void OneLine(struct ico_progressive_state *context)
  *
  * append image data onto inrecrementally built output image
  */
-gboolean image_load_increment(gpointer data, guchar * buf, guint size)
+gboolean
+gdk_pixbuf__ico_image_load_increment(gpointer data, guchar * buf, guint size)
 {
        struct ico_progressive_state *context =
            (struct ico_progressive_state *) data;
index 4cea124e0908614618ffe1713befdcec68a53d6c..0845a3dc3ca17710e5926b23935cb3b73481f80a 100644 (file)
@@ -87,14 +87,14 @@ typedef struct {
        struct error_handler_data     jerr;
 } JpegProgContext;
 
-GdkPixbuf *image_load (FILE *f);
-gpointer image_begin_load (ModulePreparedNotifyFunc func, 
-                          ModuleUpdatedNotifyFunc func2,
-                          ModuleFrameDoneNotifyFunc func3,
-                          ModuleAnimationDoneNotifyFunc func4,
-                          gpointer user_data);
-void image_stop_load (gpointer context);
-gboolean image_load_increment(gpointer context, guchar *buf, guint size);
+GdkPixbuf *gdk_pixbuf__jpeg_image_load (FILE *f);
+gpointer gdk_pixbuf__jpeg_image_begin_load (ModulePreparedNotifyFunc func, 
+                                           ModuleUpdatedNotifyFunc func2,
+                                           ModuleFrameDoneNotifyFunc func3,
+                                           ModuleAnimationDoneNotifyFunc func4,
+                                           gpointer user_data);
+void gdk_pixbuf__jpeg_image_stop_load (gpointer context);
+gboolean gdk_pixbuf__jpeg_image_load_increment(gpointer context, guchar *buf, guint size);
 
 
 static void
@@ -151,7 +151,7 @@ explode_gray_into_buf (struct jpeg_decompress_struct *cinfo,
 
 /* Shared library entry point */
 GdkPixbuf *
-image_load (FILE *f)
+gdk_pixbuf__jpeg_image_load (FILE *f)
 {
        gint w, h, i;
        guchar *pixels = NULL;
@@ -275,11 +275,11 @@ skip_input_data (j_decompress_ptr cinfo, long num_bytes)
  */
 
 gpointer
-image_begin_load (ModulePreparedNotifyFunc prepared_func, 
-                 ModuleUpdatedNotifyFunc  updated_func,
-                 ModuleFrameDoneNotifyFunc frame_func,
-                 ModuleAnimationDoneNotifyFunc anim_done_func,
-                 gpointer user_data)
+gdk_pixbuf__jpeg_image_begin_load (ModulePreparedNotifyFunc prepared_func, 
+                                  ModuleUpdatedNotifyFunc  updated_func,
+                                  ModuleFrameDoneNotifyFunc frame_func,
+                                  ModuleAnimationDoneNotifyFunc anim_done_func,
+                                  gpointer user_data)
 {
        JpegProgContext *context;
        my_source_mgr   *src;
@@ -319,7 +319,7 @@ image_begin_load (ModulePreparedNotifyFunc prepared_func,
  * free context, unref gdk_pixbuf
  */
 void
-image_stop_load (gpointer data)
+gdk_pixbuf__jpeg_image_stop_load (gpointer data)
 {
        JpegProgContext *context = (JpegProgContext *) data;
 
@@ -351,7 +351,7 @@ image_stop_load (gpointer data)
  * append image data onto inrecrementally built output image
  */
 gboolean
-image_load_increment (gpointer data, guchar *buf, guint size)
+gdk_pixbuf__jpeg_image_load_increment (gpointer data, guchar *buf, guint size)
 {
        JpegProgContext *context = (JpegProgContext *)data;
        struct jpeg_decompress_struct *cinfo;
index 84a2a0acb6ac6f1f9a07f9ca5211f35bb0a2e583..3ad9bb3fd2638490e5f7b71965aa98c0717acbe0 100644 (file)
@@ -148,7 +148,7 @@ free_buffer (gpointer user_data, gpointer data)
 
 /* Shared library entry point */
 GdkPixbuf *
-image_load (FILE *f)
+gdk_pixbuf__png_image_load (FILE *f)
 {
        png_structp png_ptr;
        png_infop info_ptr, end_info;
@@ -274,11 +274,11 @@ struct _LoadContext {
 };
 
 gpointer
-image_begin_load (ModulePreparedNotifyFunc prepare_func,
-                 ModuleUpdatedNotifyFunc update_func,
-                 ModuleFrameDoneNotifyFunc frame_done_func,
-                 ModuleAnimationDoneNotifyFunc anim_done_func,
-                 gpointer user_data)
+gdk_pixbuf__png_image_begin_load (ModulePreparedNotifyFunc prepare_func,
+                                 ModuleUpdatedNotifyFunc update_func,
+                                 ModuleFrameDoneNotifyFunc frame_done_func,
+                                 ModuleAnimationDoneNotifyFunc anim_done_func,
+                                 gpointer user_data)
 {
         LoadContext* lc;
         
@@ -329,7 +329,7 @@ image_begin_load (ModulePreparedNotifyFunc prepare_func,
 }
 
 void
-image_stop_load (gpointer context)
+gdk_pixbuf__png_image_stop_load (gpointer context)
 {
         LoadContext* lc = context;
 
@@ -342,7 +342,7 @@ image_stop_load (gpointer context)
 }
 
 gboolean
-image_load_increment(gpointer context, guchar *buf, guint size)
+gdk_pixbuf__png_image_load_increment(gpointer context, guchar *buf, guint size)
 {
         LoadContext* lc = context;
 
index c0b0b1df24de89691904d28973432cd7268daf05..c3ac215fa52346164142d43839449a0e8768e418 100644 (file)
@@ -75,14 +75,14 @@ typedef struct {
        gboolean                 got_header;  /* have we loaded jpeg header? */
 } PnmLoaderContext;
 
-GdkPixbuf *image_load (FILE *f);
-gpointer image_begin_load (ModulePreparedNotifyFunc func, 
-                          ModuleUpdatedNotifyFunc func2,
-                          ModuleFrameDoneNotifyFunc frame_done_func,
-                          ModuleAnimationDoneNotifyFunc anim_done_func,
-                          gpointer user_data);
-void image_stop_load (gpointer context);
-gboolean image_load_increment(gpointer context, guchar *buf, guint size);
+GdkPixbuf *gdk_pixbuf__pnm_image_load (FILE *f);
+gpointer gdk_pixbuf__pnm_image_begin_load (ModulePreparedNotifyFunc func, 
+                                          ModuleUpdatedNotifyFunc func2,
+                                          ModuleFrameDoneNotifyFunc frame_done_func,
+                                          ModuleAnimationDoneNotifyFunc anim_done_func,
+                                          gpointer user_data);
+void gdk_pixbuf__pnm_image_stop_load (gpointer context);
+gboolean gdk_pixbuf__pnm_image_load_increment(gpointer context, guchar *buf, guint size);
 
 static void explode_bitmap_into_buf (PnmLoaderContext *context);
 static void explode_gray_into_buf (PnmLoaderContext *context);
@@ -580,7 +580,7 @@ pnm_read_scanline (PnmLoaderContext *context)
 
 /* Shared library entry point */
 GdkPixbuf *
-image_load (FILE *f)
+gdk_pixbuf__pnm_image_load (FILE *f)
 {
        gint  nbytes;
        gint   rc;
@@ -688,11 +688,11 @@ image_load (FILE *f)
  */
 
 gpointer
-image_begin_load (ModulePreparedNotifyFunc prepared_func, 
-                 ModuleUpdatedNotifyFunc  updated_func,
-                 ModuleFrameDoneNotifyFunc frame_done_func,
-                 ModuleAnimationDoneNotifyFunc anim_done_func,
-                 gpointer user_data)
+gdk_pixbuf__pnm_image_begin_load (ModulePreparedNotifyFunc prepared_func, 
+                                 ModuleUpdatedNotifyFunc  updated_func,
+                                 ModuleFrameDoneNotifyFunc frame_done_func,
+                                 ModuleAnimationDoneNotifyFunc anim_done_func,
+                                 gpointer user_data)
 {
        PnmLoaderContext *context;
 
@@ -717,7 +717,7 @@ image_begin_load (ModulePreparedNotifyFunc prepared_func,
  * free context, unref gdk_pixbuf
  */
 void
-image_stop_load (gpointer data)
+gdk_pixbuf__pnm_image_stop_load (gpointer data)
 {
        PnmLoaderContext *context = (PnmLoaderContext *) data;
 
@@ -740,7 +740,7 @@ image_stop_load (gpointer data)
  * append image data onto inrecrementally built output image
  */
 gboolean
-image_load_increment (gpointer data, guchar *buf, guint size)
+gdk_pixbuf__pnm_image_load_increment (gpointer data, guchar *buf, guint size)
 {
        PnmLoaderContext *context = (PnmLoaderContext *)data;
        PnmIOBuffer      *inbuf;
index 17a45942d44c4d5aa533d8e56a53d5cd3e3e8e8d..f14fea33996792d3a9371bb9cf3db2a96a546d86 100644 (file)
@@ -93,18 +93,18 @@ struct ras_progressive_state {
 };
 
 gpointer
-image_begin_load(ModulePreparedNotifyFunc prepared_func,
-                ModuleUpdatedNotifyFunc updated_func,
-                ModuleFrameDoneNotifyFunc frame_done_func,
-                ModuleAnimationDoneNotifyFunc anim_done_func,
-                gpointer user_data);
-void image_stop_load(gpointer data);
-gboolean image_load_increment(gpointer data, guchar * buf, guint size);
+gdk_pixbuf__ras_image_begin_load(ModulePreparedNotifyFunc prepared_func,
+                                ModuleUpdatedNotifyFunc updated_func,
+                                ModuleFrameDoneNotifyFunc frame_done_func,
+                                ModuleAnimationDoneNotifyFunc anim_done_func,
+                                gpointer user_data);
+void gdk_pixbuf__ras_image_stop_load(gpointer data);
+gboolean gdk_pixbuf__ras_image_load_increment(gpointer data, guchar * buf, guint size);
 
 
 
 /* Shared library entry point */
-GdkPixbuf *image_load(FILE * f)
+GdkPixbuf *gdk_pixbuf__ras_image_load(FILE * f)
 {
        guchar *membuf;
        size_t length;
@@ -112,7 +112,7 @@ GdkPixbuf *image_load(FILE * f)
        
        GdkPixbuf *pb;
        
-       State = image_begin_load(NULL, NULL, NULL, NULL, NULL);
+       State = gdk_pixbuf__ras_image_begin_load(NULL, NULL, NULL, NULL, NULL);
        
        membuf = g_malloc(4096);
        
@@ -120,7 +120,7 @@ GdkPixbuf *image_load(FILE * f)
        
        while (feof(f) == 0) {
                length = fread(membuf, 1, 4096, f);
-               (void)image_load_increment(State, membuf, length);
+               (void)gdk_pixbuf__ras_image_load_increment(State, membuf, length);
        } 
        g_free(membuf);
        if (State->pixbuf != NULL)
@@ -128,7 +128,7 @@ GdkPixbuf *image_load(FILE * f)
 
        pb = State->pixbuf;
 
-       image_stop_load(State);
+       gdk_pixbuf__ras_image_stop_load(State);
        return pb;
 }
 
@@ -208,11 +208,11 @@ static void RAS2State(struct rasterfile *RAS,
  */
 
 gpointer
-image_begin_load(ModulePreparedNotifyFunc prepared_func,
-                ModuleUpdatedNotifyFunc updated_func,
-                ModuleFrameDoneNotifyFunc frame_done_func,
-                ModuleAnimationDoneNotifyFunc anim_done_func,
-                gpointer user_data)
+gdk_pixbuf__ras_image_begin_load(ModulePreparedNotifyFunc prepared_func,
+                                ModuleUpdatedNotifyFunc updated_func,
+                                ModuleFrameDoneNotifyFunc frame_done_func,
+                                ModuleAnimationDoneNotifyFunc anim_done_func,
+                                gpointer user_data)
 {
        struct ras_progressive_state *context;
 
@@ -247,7 +247,8 @@ image_begin_load(ModulePreparedNotifyFunc prepared_func,
  *
  * free context, unref gdk_pixbuf
  */
-void image_stop_load(gpointer data)
+void
+gdk_pixbuf__ras_image_stop_load(gpointer data)
 {
        struct ras_progressive_state *context =
            (struct ras_progressive_state *) data;
@@ -386,7 +387,8 @@ static void OneLine(struct ras_progressive_state *context)
  *
  * append image data onto inrecrementally built output image
  */
-gboolean image_load_increment(gpointer data, guchar * buf, guint size)
+gboolean
+gdk_pixbuf__ras_image_load_increment(gpointer data, guchar * buf, guint size)
 {
        struct ras_progressive_state *context =
            (struct ras_progressive_state *) data;
index a45a0b1149b9389171b8eba947acfff442a0b658..587ecf8558def23f4284b2b4d7e05bee8b68936e 100644 (file)
@@ -50,7 +50,7 @@ struct _TiffData
 \f
 
 GdkPixbuf *
-image_load_real (FILE *f, TiffData *context)
+gdk_pixbuf__tiff_image_load_real (FILE *f, TiffData *context)
 {
        TIFF *tiff;
        guchar *pixels = NULL;
@@ -123,9 +123,9 @@ image_load_real (FILE *f, TiffData *context)
 /* Static loader */
 
 GdkPixbuf *
-image_load (FILE *f)
+gdk_pixbuf__tiff_image_load (FILE *f)
 {
-       return image_load_real (f, NULL);
+       return gdk_pixbuf__tiff_image_load_real (f, NULL);
 }
 
 \f
@@ -138,11 +138,11 @@ image_load (FILE *f)
 
 
 gpointer
-image_begin_load (ModulePreparedNotifyFunc prepare_func,
-                 ModuleUpdatedNotifyFunc update_func,
-                 ModuleFrameDoneNotifyFunc frame_done_func,
-                 ModuleAnimationDoneNotifyFunc anim_done_func,
-                 gpointer user_data)
+gdk_pixbuf__tiff_image_begin_load (ModulePreparedNotifyFunc prepare_func,
+                                  ModuleUpdatedNotifyFunc update_func,
+                                  ModuleFrameDoneNotifyFunc frame_done_func,
+                                  ModuleAnimationDoneNotifyFunc anim_done_func,
+                                  gpointer user_data)
 {
        TiffData *context;
        gint fd;
@@ -169,7 +169,7 @@ image_begin_load (ModulePreparedNotifyFunc prepare_func,
 }
 
 void
-image_stop_load (gpointer data)
+gdk_pixbuf__tiff_image_stop_load (gpointer data)
 {
        TiffData *context = (TiffData*) data;
 
@@ -178,7 +178,7 @@ image_stop_load (gpointer data)
        fflush (context->file);
        rewind (context->file);
        if (context->all_okay)
-               image_load_real (context->file, context);
+               gdk_pixbuf__tiff_image_load_real (context->file, context);
 
        fclose (context->file);
        unlink (context->tempname);
@@ -186,7 +186,7 @@ image_stop_load (gpointer data)
 }
 
 gboolean
-image_load_increment (gpointer data, guchar *buf, guint size)
+gdk_pixbuf__tiff_image_load_increment (gpointer data, guchar *buf, guint size)
 {
        TiffData *context = (TiffData *) data;
 
index dcc4a8c30a264f16f0ea5af54ebf18f5fce9cfd9..f6fd6a9be3ca003ba03910335c0a49b653eccc97 100644 (file)
@@ -436,7 +436,7 @@ pixbuf_create_from_xpm (const gchar * (*get_buf) (enum buf_op op, gpointer handl
 
 /* Shared library entry point for file loading */
 GdkPixbuf *
-image_load (FILE *f)
+gdk_pixbuf__xpm_image_load (FILE *f)
 {
        GdkPixbuf *pixbuf;
        struct file_handle h;
@@ -451,7 +451,7 @@ image_load (FILE *f)
 
 /* Shared library entry point for memory loading */
 GdkPixbuf *
-image_load_xpm_data (const gchar **data)
+gdk_pixbuf__xpm_image_load_xpm_data (const gchar **data)
 {
         GdkPixbuf *pixbuf;
         struct mem_handle h;
index 1b7f88850223fc696759f6fb696d3d16587f5cf3..9cdb3b31978a6ada3d6176cb61447a0922f89817 100644 (file)
@@ -2,7 +2,7 @@ noinst_LTLIBRARIES = libpixops.la
 
 INCLUDES = $(GLIB_CFLAGS) $(LIBART_CFLAGS)
 
-bin_PROGRAMS = timescale
+noinst_PROGRAMS = timescale
 
 timescale_SOURCES = timescale.c
 timescale_LDADD = libpixops.la $(GLIB_LIBS) -lm