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.
This commit is contained in:
Sven Neumann 2000-08-23 11:22:08 +00:00 committed by Sven Neumann
parent d4cdc5ccf3
commit 78123e8646
5 changed files with 36 additions and 28 deletions

View File

@ -1,3 +1,9 @@
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

View File

@ -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 *

View File

@ -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
}

View File

@ -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);
}

View File

@ -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);