Commit 78123e86 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

libgimp/gimpimage.[ch] pass the return value of the PDB call through the

2000-08-23  Sven Neumann  <sven@gimp.org>

	* libgimp/gimpimage.[ch]
	* libgimp/gimpproceduraldb.[ch]: pass the return value of the
	PDB call through the wrapper functions.
parent d4cdc5cc
2000-08-23 Sven Neumann <sven@gimp.org>
* libgimp/gimpimage.[ch]
* libgimp/gimpproceduraldb.[ch]: pass the return value of the
PDB call through the wrapper functions.
2000-08-23 Sven Neumann <sven@gimp.org>
* plug-ins/helpbrowser/helpbrowser.c
......
......@@ -37,14 +37,14 @@ gimp_image_get_cmap (gint32 image_ID,
return cmap;
}
void
gboolean
gimp_image_set_cmap (gint32 image_ID,
guchar *cmap,
gint num_colors)
{
_gimp_image_set_cmap (image_ID,
num_colors * 3,
cmap);
return _gimp_image_set_cmap (image_ID,
num_colors * 3,
cmap);
}
guchar *
......
......@@ -34,17 +34,17 @@ extern "C" {
#define gimp_image_duplicate gimp_channel_ops_duplicate
guchar * gimp_image_get_cmap (gint32 image_ID,
gint *num_colors);
void gimp_image_set_cmap (gint32 image_ID,
guchar *cmap,
gint num_colors);
guchar * gimp_image_get_thumbnail_data (gint32 image_ID,
gint *width,
gint *height,
gint *bpp);
guchar * gimp_image_get_cmap (gint32 image_ID,
gint *num_colors);
gboolean gimp_image_set_cmap (gint32 image_ID,
guchar *cmap,
gint num_colors);
guchar * gimp_image_get_thumbnail_data (gint32 image_ID,
gint *width,
gint *height,
gint *bpp);
#ifdef __cplusplus
}
......
......@@ -86,30 +86,32 @@ gimp_procedural_db_proc_info (gchar *procedure,
return success;
}
void
gboolean
gimp_procedural_db_get_data (gchar *identifier,
gpointer data)
{
gint size;
guint8 *hack;
_gimp_procedural_db_get_data (identifier,
&size,
&hack);
gint size;
guint8 *hack;
gboolean success;
success = _gimp_procedural_db_get_data (identifier,
&size,
&hack);
if (hack)
{
memcpy (data, (gpointer) hack, size * sizeof (guint8));
g_free (hack);
}
return success;
}
void
gboolean
gimp_procedural_db_set_data (gchar *identifier,
gpointer data,
guint32 bytes)
{
_gimp_procedural_db_set_data (identifier,
bytes,
data);
return _gimp_procedural_db_set_data (identifier,
bytes,
data);
}
......@@ -40,9 +40,9 @@ gboolean gimp_procedural_db_proc_info (gchar *procedure,
gint *num_values,
GimpParamDef **params,
GimpParamDef **return_vals);
void gimp_procedural_db_get_data (gchar *identifier,
gboolean gimp_procedural_db_get_data (gchar *identifier,
gpointer data);
void gimp_procedural_db_set_data (gchar *identifier,
gboolean gimp_procedural_db_set_data (gchar *identifier,
gpointer data,
guint32 length);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment