+1999-11-02 Elliot Lee <sopwith@redhat.com>
+ * src/gdk-pixbuf-loader.[ch], src/gdk-pixbuf-io.h: Make the arguments to the
+ write/load_increment operations const-correct.
+
1999-11-02 Federico Mena Quintero <federico@redhat.com>
* src/gnome-canvas-pixbuf.c (gnome_canvas_pixbuf_point):
/* Incremental loading */
gpointer (* begin_load) (ModulePreparedNotifyFunc func, gpointer user_data);
void (* stop_load) (gpointer context);
- gboolean (* load_increment)(gpointer context, guchar *buf, guint size);
+ gboolean (* load_increment)(gpointer context, const gchar *buf, guint size);
};
}
static int
-gdk_pixbuf_loader_eat_header_write (GdkPixbufLoader *loader, guchar *buf, size_t count)
+gdk_pixbuf_loader_eat_header_write (GdkPixbufLoader *loader, const gchar *buf, size_t count)
{
int nbytes;
GdkPixbufLoaderPrivate *priv = loader->private;
* cannot parse the buf.
**/
gboolean
-gdk_pixbuf_loader_write (GdkPixbufLoader *loader, guchar *buf, size_t count)
+gdk_pixbuf_loader_write (GdkPixbufLoader *loader, const gchar *buf, size_t count)
{
GdkPixbufLoaderPrivate *priv;
GtkType gdk_pixbuf_loader_get_type (void);
GdkPixbufLoader *gdk_pixbuf_loader_new (void);
-gboolean gdk_pixbuf_loader_write (GdkPixbufLoader *loader, guchar *buf, size_t count);
+gboolean gdk_pixbuf_loader_write (GdkPixbufLoader *loader, const gchar *buf, size_t count);
GdkPixbuf *gdk_pixbuf_loader_get_pixbuf (GdkPixbufLoader *loader);
void gdk_pixbuf_loader_close (GdkPixbufLoader *loader);
}
static int
-gdk_pixbuf_loader_eat_header_write (GdkPixbufLoader *loader, guchar *buf, size_t count)
+gdk_pixbuf_loader_eat_header_write (GdkPixbufLoader *loader, const gchar *buf, size_t count)
{
int nbytes;
GdkPixbufLoaderPrivate *priv = loader->private;
* cannot parse the buf.
**/
gboolean
-gdk_pixbuf_loader_write (GdkPixbufLoader *loader, guchar *buf, size_t count)
+gdk_pixbuf_loader_write (GdkPixbufLoader *loader, const gchar *buf, size_t count)
{
GdkPixbufLoaderPrivate *priv;
GtkType gdk_pixbuf_loader_get_type (void);
GdkPixbufLoader *gdk_pixbuf_loader_new (void);
-gboolean gdk_pixbuf_loader_write (GdkPixbufLoader *loader, guchar *buf, size_t count);
+gboolean gdk_pixbuf_loader_write (GdkPixbufLoader *loader, const gchar *buf, size_t count);
GdkPixbuf *gdk_pixbuf_loader_get_pixbuf (GdkPixbufLoader *loader);
void gdk_pixbuf_loader_close (GdkPixbufLoader *loader);