2000-05-31 13:24:14 +00:00
|
|
|
/* LIBGIMP - The GIMP Library
|
2000-06-01 21:18:04 +00:00
|
|
|
* Copyright (C) 1995-2000 Peter Mattis and Spencer Kimball
|
2000-05-31 13:24:14 +00:00
|
|
|
*
|
|
|
|
* gimpplugin_pdb.c
|
|
|
|
*
|
|
|
|
* 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
|
2000-06-01 21:18:04 +00:00
|
|
|
* Lesser General Public License for more details.
|
2000-05-31 13:24:14 +00:00
|
|
|
*
|
|
|
|
* 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-06-01 21:18:04 +00:00
|
|
|
/* NOTE: This file is autogenerated by pdbgen.pl */
|
2000-05-31 13:24:14 +00:00
|
|
|
|
2000-06-01 21:18:04 +00:00
|
|
|
#include "gimp.h"
|
2000-05-31 13:24:14 +00:00
|
|
|
|
|
|
|
void
|
|
|
|
gimp_progress_init (gchar *message)
|
|
|
|
{
|
2000-08-03 01:35:28 +00:00
|
|
|
GimpParam *return_vals;
|
2000-05-31 13:24:14 +00:00
|
|
|
gint nreturn_vals;
|
|
|
|
|
|
|
|
return_vals = gimp_run_procedure ("gimp_progress_init",
|
|
|
|
&nreturn_vals,
|
2000-08-03 01:35:28 +00:00
|
|
|
GIMP_PDB_STRING, message,
|
|
|
|
GIMP_PDB_INT32, gimp_default_display (),
|
|
|
|
GIMP_PDB_END);
|
2000-05-31 13:24:14 +00:00
|
|
|
|
|
|
|
gimp_destroy_params (return_vals, nreturn_vals);
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
gimp_progress_update (gdouble percentage)
|
|
|
|
{
|
2000-08-03 01:35:28 +00:00
|
|
|
GimpParam *return_vals;
|
2000-05-31 13:24:14 +00:00
|
|
|
gint nreturn_vals;
|
|
|
|
|
|
|
|
return_vals = gimp_run_procedure ("gimp_progress_update",
|
|
|
|
&nreturn_vals,
|
2000-08-03 01:35:28 +00:00
|
|
|
GIMP_PDB_FLOAT, percentage,
|
|
|
|
GIMP_PDB_END);
|
2000-05-31 13:24:14 +00:00
|
|
|
|
|
|
|
gimp_destroy_params (return_vals, nreturn_vals);
|
|
|
|
}
|
|
|
|
|
2000-06-01 21:18:04 +00:00
|
|
|
gchar *
|
|
|
|
gimp_temp_PDB_name (void)
|
|
|
|
{
|
2000-08-03 01:35:28 +00:00
|
|
|
GimpParam *return_vals;
|
2000-06-01 21:18:04 +00:00
|
|
|
gint nreturn_vals;
|
|
|
|
gchar *temp_name = NULL;
|
|
|
|
|
|
|
|
return_vals = gimp_run_procedure ("gimp_temp_PDB_name",
|
|
|
|
&nreturn_vals,
|
2000-08-03 01:35:28 +00:00
|
|
|
GIMP_PDB_END);
|
2000-06-01 21:18:04 +00:00
|
|
|
|
2000-08-03 01:35:28 +00:00
|
|
|
if (return_vals[0].data.d_status == GIMP_PDB_SUCCESS)
|
2000-06-01 21:18:04 +00:00
|
|
|
temp_name = g_strdup (return_vals[1].data.d_string);
|
|
|
|
|
|
|
|
gimp_destroy_params (return_vals, nreturn_vals);
|
|
|
|
|
|
|
|
return temp_name;
|
|
|
|
}
|
|
|
|
|
2000-05-31 13:24:14 +00:00
|
|
|
void
|
|
|
|
gimp_plugin_domain_register (gchar *domain_name,
|
|
|
|
gchar *domain_path)
|
|
|
|
{
|
2000-08-03 01:35:28 +00:00
|
|
|
GimpParam *return_vals;
|
2000-05-31 13:24:14 +00:00
|
|
|
gint nreturn_vals;
|
|
|
|
|
|
|
|
return_vals = gimp_run_procedure ("gimp_plugin_domain_register",
|
|
|
|
&nreturn_vals,
|
2000-08-03 01:35:28 +00:00
|
|
|
GIMP_PDB_STRING, domain_name,
|
|
|
|
GIMP_PDB_STRING, domain_path,
|
|
|
|
GIMP_PDB_END);
|
2000-05-31 13:24:14 +00:00
|
|
|
|
|
|
|
gimp_destroy_params (return_vals, nreturn_vals);
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
gimp_plugin_help_register (gchar *help_path)
|
|
|
|
{
|
2000-08-03 01:35:28 +00:00
|
|
|
GimpParam *return_vals;
|
2000-06-01 21:18:04 +00:00
|
|
|
gint nreturn_vals;
|
2000-05-31 13:24:14 +00:00
|
|
|
|
|
|
|
return_vals = gimp_run_procedure ("gimp_plugin_help_register",
|
2000-06-01 21:18:04 +00:00
|
|
|
&nreturn_vals,
|
2000-08-03 01:35:28 +00:00
|
|
|
GIMP_PDB_STRING, help_path,
|
|
|
|
GIMP_PDB_END);
|
2000-05-31 13:24:14 +00:00
|
|
|
|
|
|
|
gimp_destroy_params (return_vals, nreturn_vals);
|
|
|
|
}
|