1
/* LIBGIMP - The GIMP Library
2
* Copyright (C) 1995-2003 Peter Mattis and Spencer Kimball
6
* This library is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU Lesser General Public
8
* License as published by the Free Software Foundation; either
9
* version 2 of the License, or (at your option) any later version.
11
* This library is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
* Lesser General Public License for more details.
16
* You should have received a copy of the GNU Lesser General Public
17
* License along with this library; if not, write to the
18
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19
* Boston, MA 02111-1307, USA.
22
/* NOTE: This file is auto-generated by pdbgen.pl */
31
* Returns the host GIMP version.
33
* This procedure returns the version number of the currently running
36
* Returns: GIMP version number.
41
GimpParam *return_vals;
43
gchar *version = NULL;
45
return_vals = gimp_run_procedure ("gimp-version",
49
if (return_vals[0].data.d_status == GIMP_PDB_SUCCESS)
50
version = g_strdup (return_vals[1].data.d_string);
52
gimp_destroy_params (return_vals, nreturn_vals);
60
* Returns the PID of the host GIMP process.
62
* This procedure returns the process ID of the currently running GIMP.
71
GimpParam *return_vals;
75
return_vals = gimp_run_procedure ("gimp-getpid",
79
if (return_vals[0].data.d_status == GIMP_PDB_SUCCESS)
80
pid = return_vals[1].data.d_int32;
82
gimp_destroy_params (return_vals, nreturn_vals);