2000-05-31 14:15:06 +08:00
|
|
|
/* LIBGIMP - The GIMP Library
|
2000-06-02 05:18:04 +08:00
|
|
|
* Copyright (C) 1995-2000 Peter Mattis and Spencer Kimball
|
2000-02-26 11:41:06 +08:00
|
|
|
*
|
2000-06-02 05:18:04 +08:00
|
|
|
* gimpparasite_pdb.c
|
2000-02-26 11:41:06 +08:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the
|
|
|
|
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
|
|
* Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
2000-05-31 14:15:06 +08:00
|
|
|
|
2000-06-02 05:18:04 +08:00
|
|
|
/* NOTE: This file is autogenerated by pdbgen.pl */
|
|
|
|
|
1998-10-30 18:21:33 +08:00
|
|
|
#include "gimp.h"
|
|
|
|
|
2000-05-27 06:28:40 +08:00
|
|
|
GimpParasite *
|
2000-06-02 05:18:04 +08:00
|
|
|
gimp_parasite_find (gchar *name)
|
1998-10-30 18:21:33 +08:00
|
|
|
{
|
|
|
|
GParam *return_vals;
|
2000-03-26 02:49:05 +08:00
|
|
|
gint nreturn_vals;
|
2000-06-02 05:18:04 +08:00
|
|
|
GimpParasite *parasite = NULL;
|
2000-05-31 21:24:14 +08:00
|
|
|
|
1999-10-17 08:07:55 +08:00
|
|
|
return_vals = gimp_run_procedure ("gimp_parasite_find",
|
1998-10-30 18:21:33 +08:00
|
|
|
&nreturn_vals,
|
|
|
|
PARAM_STRING, name,
|
|
|
|
PARAM_END);
|
|
|
|
|
|
|
|
if (return_vals[0].data.d_status == STATUS_SUCCESS)
|
2000-06-02 05:18:04 +08:00
|
|
|
parasite = parasite_copy (&return_vals[1].data.d_parasite);
|
1998-10-30 18:21:33 +08:00
|
|
|
|
|
|
|
gimp_destroy_params (return_vals, nreturn_vals);
|
2000-06-02 05:18:04 +08:00
|
|
|
|
1998-10-30 18:21:33 +08:00
|
|
|
return parasite;
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
2000-06-02 05:18:04 +08:00
|
|
|
gimp_parasite_attach (GimpParasite *parasite)
|
1998-10-30 18:21:33 +08:00
|
|
|
{
|
|
|
|
GParam *return_vals;
|
2000-03-26 02:49:05 +08:00
|
|
|
gint nreturn_vals;
|
1998-10-30 18:21:33 +08:00
|
|
|
|
1999-10-17 08:07:55 +08:00
|
|
|
return_vals = gimp_run_procedure ("gimp_parasite_attach",
|
1998-10-30 18:21:33 +08:00
|
|
|
&nreturn_vals,
|
2000-05-27 06:28:40 +08:00
|
|
|
PARAM_PARASITE, parasite,
|
1998-10-30 18:21:33 +08:00
|
|
|
PARAM_END);
|
|
|
|
|
|
|
|
gimp_destroy_params (return_vals, nreturn_vals);
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
2000-06-02 05:18:04 +08:00
|
|
|
gimp_parasite_detach (gchar *name)
|
1998-10-30 18:21:33 +08:00
|
|
|
{
|
|
|
|
GParam *return_vals;
|
2000-03-26 02:49:05 +08:00
|
|
|
gint nreturn_vals;
|
1998-10-30 18:21:33 +08:00
|
|
|
|
2000-06-01 05:16:11 +08:00
|
|
|
return_vals = gimp_run_procedure ("gimp_parasite_detach",
|
|
|
|
&nreturn_vals,
|
|
|
|
PARAM_STRING, name,
|
|
|
|
PARAM_END);
|
|
|
|
|
|
|
|
gimp_destroy_params (return_vals, nreturn_vals);
|
|
|
|
}
|
|
|
|
|
2000-06-02 05:18:04 +08:00
|
|
|
void
|
|
|
|
gimp_parasite_list (gint *num_parasites,
|
|
|
|
gchar **parasites)
|
|
|
|
{
|
|
|
|
GParam *return_vals;
|
|
|
|
gint nreturn_vals;
|
|
|
|
gint i;
|
|
|
|
|
|
|
|
return_vals = gimp_run_procedure ("gimp_parasite_list",
|
|
|
|
&nreturn_vals,
|
|
|
|
PARAM_END);
|
|
|
|
|
|
|
|
*num_parasites = 0;
|
|
|
|
*parasites = NULL;
|
|
|
|
if (return_vals[0].data.d_status == STATUS_SUCCESS)
|
|
|
|
{
|
|
|
|
*num_parasites = return_vals[1].data.d_int32;
|
|
|
|
parasites = g_new (gchar *, *num_parasites);
|
|
|
|
for (i = 0; i < *num_parasites; i++)
|
|
|
|
parasites[i] = g_strdup (return_vals[2].data.d_stringarray[i]);
|
|
|
|
}
|
2000-06-01 05:16:11 +08:00
|
|
|
|
2000-06-02 05:18:04 +08:00
|
|
|
gimp_destroy_params (return_vals, nreturn_vals);
|
|
|
|
}
|
|
|
|
|
|
|
|
GimpParasite *
|
|
|
|
gimp_drawable_parasite_find (gint32 drawable_ID,
|
|
|
|
gchar *name)
|
2000-06-01 05:16:11 +08:00
|
|
|
{
|
|
|
|
GParam *return_vals;
|
|
|
|
gint nreturn_vals;
|
2000-06-02 05:18:04 +08:00
|
|
|
GimpParasite *parasite = NULL;
|
|
|
|
|
2000-06-01 05:16:11 +08:00
|
|
|
return_vals = gimp_run_procedure ("gimp_drawable_parasite_find",
|
|
|
|
&nreturn_vals,
|
|
|
|
PARAM_DRAWABLE, drawable_ID,
|
|
|
|
PARAM_STRING, name,
|
|
|
|
PARAM_END);
|
|
|
|
|
|
|
|
if (return_vals[0].data.d_status == STATUS_SUCCESS)
|
2000-06-02 05:18:04 +08:00
|
|
|
parasite = parasite_copy (&return_vals[1].data.d_parasite);
|
2000-06-01 05:16:11 +08:00
|
|
|
|
|
|
|
gimp_destroy_params (return_vals, nreturn_vals);
|
2000-06-02 05:18:04 +08:00
|
|
|
|
2000-06-01 05:16:11 +08:00
|
|
|
return parasite;
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
2000-06-02 05:18:04 +08:00
|
|
|
gimp_drawable_parasite_attach (gint32 drawable_ID,
|
|
|
|
GimpParasite *parasite)
|
2000-06-01 05:16:11 +08:00
|
|
|
{
|
|
|
|
GParam *return_vals;
|
|
|
|
gint nreturn_vals;
|
|
|
|
|
|
|
|
return_vals = gimp_run_procedure ("gimp_drawable_parasite_attach",
|
1998-10-30 18:21:33 +08:00
|
|
|
&nreturn_vals,
|
2000-06-01 05:16:11 +08:00
|
|
|
PARAM_DRAWABLE, drawable_ID,
|
2000-05-31 21:24:14 +08:00
|
|
|
PARAM_PARASITE, parasite,
|
1998-10-30 18:21:33 +08:00
|
|
|
PARAM_END);
|
|
|
|
|
|
|
|
gimp_destroy_params (return_vals, nreturn_vals);
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
2000-06-02 05:18:04 +08:00
|
|
|
gimp_drawable_parasite_detach (gint32 drawable_ID,
|
|
|
|
gchar *name)
|
1998-10-30 18:21:33 +08:00
|
|
|
{
|
|
|
|
GParam *return_vals;
|
2000-03-26 02:49:05 +08:00
|
|
|
gint nreturn_vals;
|
1998-10-30 18:21:33 +08:00
|
|
|
|
2000-06-01 05:16:11 +08:00
|
|
|
return_vals = gimp_run_procedure ("gimp_drawable_parasite_detach",
|
|
|
|
&nreturn_vals,
|
|
|
|
PARAM_DRAWABLE, drawable_ID,
|
|
|
|
PARAM_STRING, name,
|
|
|
|
PARAM_END);
|
|
|
|
|
2000-06-02 05:18:04 +08:00
|
|
|
gimp_destroy_params (return_vals, nreturn_vals);
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
gimp_drawable_parasite_list (gint32 drawable_ID,
|
|
|
|
gint *num_parasites,
|
|
|
|
gchar **parasites)
|
|
|
|
|
|
|
|
{
|
|
|
|
GParam *return_vals;
|
|
|
|
gint nreturn_vals;
|
|
|
|
gint i;
|
|
|
|
|
|
|
|
return_vals = gimp_run_procedure ("gimp_drawable_parasite_list",
|
|
|
|
&nreturn_vals,
|
|
|
|
PARAM_DRAWABLE, drawable_ID,
|
|
|
|
PARAM_END);
|
|
|
|
|
|
|
|
*num_parasites = 0;
|
|
|
|
*parasites = NULL;
|
|
|
|
if (return_vals[0].data.d_status == STATUS_SUCCESS)
|
|
|
|
{
|
|
|
|
*num_parasites = return_vals[1].data.d_int32;
|
|
|
|
parasites = g_new (gchar *, *num_parasites);
|
|
|
|
for (i = 0; i < *num_parasites; i++)
|
|
|
|
parasites[i] = g_strdup (return_vals[2].data.d_stringarray[i]);
|
|
|
|
}
|
2000-06-01 05:16:11 +08:00
|
|
|
|
|
|
|
gimp_destroy_params (return_vals, nreturn_vals);
|
|
|
|
}
|
|
|
|
|
|
|
|
GimpParasite *
|
2000-06-02 05:18:04 +08:00
|
|
|
gimp_image_parasite_find (gint32 image_ID,
|
|
|
|
gchar *name)
|
2000-06-01 05:16:11 +08:00
|
|
|
{
|
|
|
|
GParam *return_vals;
|
|
|
|
gint nreturn_vals;
|
2000-06-01 22:59:22 +08:00
|
|
|
GimpParasite *parasite = NULL;
|
|
|
|
|
2000-06-01 05:16:11 +08:00
|
|
|
return_vals = gimp_run_procedure ("gimp_image_parasite_find",
|
|
|
|
&nreturn_vals,
|
|
|
|
PARAM_IMAGE, image_ID,
|
|
|
|
PARAM_STRING, name,
|
|
|
|
PARAM_END);
|
|
|
|
|
|
|
|
if (return_vals[0].data.d_status == STATUS_SUCCESS)
|
2000-06-02 05:18:04 +08:00
|
|
|
parasite = parasite_copy (&return_vals[1].data.d_parasite);
|
2000-06-01 05:16:11 +08:00
|
|
|
|
|
|
|
gimp_destroy_params (return_vals, nreturn_vals);
|
2000-06-02 05:18:04 +08:00
|
|
|
|
2000-06-01 05:16:11 +08:00
|
|
|
return parasite;
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
2000-06-02 05:18:04 +08:00
|
|
|
gimp_image_parasite_attach (gint32 image_ID,
|
|
|
|
GimpParasite *parasite)
|
2000-06-01 05:16:11 +08:00
|
|
|
{
|
|
|
|
GParam *return_vals;
|
|
|
|
gint nreturn_vals;
|
|
|
|
|
|
|
|
return_vals = gimp_run_procedure ("gimp_image_parasite_attach",
|
|
|
|
&nreturn_vals,
|
|
|
|
PARAM_IMAGE, image_ID,
|
|
|
|
PARAM_PARASITE, parasite,
|
|
|
|
PARAM_END);
|
|
|
|
|
|
|
|
gimp_destroy_params (return_vals, nreturn_vals);
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
2000-06-02 05:18:04 +08:00
|
|
|
gimp_image_parasite_detach (gint32 image_ID,
|
|
|
|
gchar *name)
|
2000-06-01 05:16:11 +08:00
|
|
|
{
|
|
|
|
GParam *return_vals;
|
|
|
|
gint nreturn_vals;
|
|
|
|
|
|
|
|
return_vals = gimp_run_procedure ("gimp_image_parasite_detach",
|
1998-10-30 18:21:33 +08:00
|
|
|
&nreturn_vals,
|
2000-06-01 05:16:11 +08:00
|
|
|
PARAM_IMAGE, image_ID,
|
1998-10-30 18:21:33 +08:00
|
|
|
PARAM_STRING, name,
|
|
|
|
PARAM_END);
|
|
|
|
|
|
|
|
gimp_destroy_params (return_vals, nreturn_vals);
|
|
|
|
}
|
2000-06-02 05:18:04 +08:00
|
|
|
|
|
|
|
void
|
|
|
|
gimp_image_parasite_list (gint32 image_ID,
|
|
|
|
gint *num_parasites,
|
|
|
|
gchar **parasites)
|
|
|
|
{
|
|
|
|
GParam *return_vals;
|
|
|
|
gint nreturn_vals;
|
|
|
|
gint i;
|
|
|
|
|
|
|
|
return_vals = gimp_run_procedure ("gimp_image_parasite_list",
|
|
|
|
&nreturn_vals,
|
|
|
|
PARAM_IMAGE, image_ID,
|
|
|
|
PARAM_END);
|
|
|
|
|
|
|
|
*num_parasites = 0;
|
|
|
|
*parasites = NULL;
|
|
|
|
if (return_vals[0].data.d_status == STATUS_SUCCESS)
|
|
|
|
{
|
|
|
|
*num_parasites = return_vals[1].data.d_int32;
|
|
|
|
parasites = g_new (gchar *, *num_parasites);
|
|
|
|
for (i = 0; i < *num_parasites; i++)
|
|
|
|
parasites[i] = g_strdup (return_vals[2].data.d_stringarray[i]);
|
|
|
|
}
|
|
|
|
|
|
|
|
gimp_destroy_params (return_vals, nreturn_vals);
|
|
|
|
}
|