summaryrefslogtreecommitdiff
path: root/gdk-pixbuf/gdk-pixbuf-io.h
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2000-10-06 18:19:18 +0000
committerHavoc Pennington <hp@src.gnome.org>2000-10-06 18:19:18 +0000
commite2d006d742db93b187ccd6369249b89d84c2f97d (patch)
treed467e7a768afd9b84d84ddfcb183734c4db3435b /gdk-pixbuf/gdk-pixbuf-io.h
parent607c245a5b06fe91e4315022452940593bd746dc (diff)
downloadgdk-pixbuf-e2d006d742db93b187ccd6369249b89d84c2f97d.tar.gz
Pixbuf saving, patch from David Welton.
2000-10-05 Havoc Pennington <hp@redhat.com> Pixbuf saving, patch from David Welton. * Makefile.am (GDK_PIXBUF_LIBS): add INTLLIBS (libgdk_pixbuf_1_3_la_SOURCES): add gdk-pixbuf-i18n.h * gdk-pixbuf-i18n.h: Add _() to gdk-pixbuf * io-png.c (gdk_pixbuf__png_image_save): PNG save routine. * io-jpeg.c (gdk_pixbuf__jpeg_image_save): JPEG save routine. * gdk-pixbuf-io.c (gdk_pixbuf_save): (gdk_pixbuf_savev): Implement pixbuf saving routines * gdk-pixbuf.c (gdk_pixbuf_error_quark): pixbuf error quark function * gdk-pixbuf.h: Add public save routines; add pixbuf error types * gdk-pixbuf-io.h: Add save function to GdkPixbufModule 2000-10-05 Havoc Pennington <hp@redhat.com> * demos/testpixbuf-save.c: add pixbuf save test * demos/Makefile.am: add testpixbuf-save.c
Diffstat (limited to 'gdk-pixbuf/gdk-pixbuf-io.h')
-rw-r--r--gdk-pixbuf/gdk-pixbuf-io.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/gdk-pixbuf/gdk-pixbuf-io.h b/gdk-pixbuf/gdk-pixbuf-io.h
index af9fb40b8..3ce4d2f73 100644
--- a/gdk-pixbuf/gdk-pixbuf-io.h
+++ b/gdk-pixbuf/gdk-pixbuf-io.h
@@ -31,6 +31,7 @@
#include <gmodule.h>
#include <stdio.h>
#include "gdk-pixbuf.h"
+#include "gdk-pixbuf-i18n.h"
#ifdef __cplusplus
extern "C" {
@@ -64,11 +65,19 @@ struct _GdkPixbufModule {
ModuleFrameDoneNotifyFunc frame_done_func,
ModuleAnimationDoneNotifyFunc anim_done_func,
gpointer user_data);
- void (* stop_load) (gpointer context);
- gboolean (* load_increment) (gpointer context, const guchar *buf, guint size);
+ void (* stop_load) (gpointer context);
+ gboolean (* load_increment) (gpointer context,
+ const guchar *buf,
+ guint size);
/* Animation loading */
GdkPixbufAnimation *(* load_animation) (FILE *f);
+
+ gboolean (* save) (FILE *f,
+ GdkPixbuf *pixbuf,
+ gchar **param_keys,
+ gchar **param_values,
+ GError **err);
};