home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 2002 April / pcpro0402.iso / essentials / graphics / Gimp / gimp-src-20001226.exe / src / gimp / libgimp / gimpmisc_pdb.c < prev    next >
Encoding:
C/C++ Source or Header  |  2000-08-25  |  1.5 KB  |  54 lines

  1. /* LIBGIMP - The GIMP Library
  2.  * Copyright (C) 1995-2000 Peter Mattis and Spencer Kimball
  3.  *
  4.  * gimpmisc_pdb.c
  5.  *
  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.
  10.  *
  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.
  15.  *
  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.
  20.  */
  21.  
  22. /* NOTE: This file is autogenerated by pdbgen.pl */
  23.  
  24. #include "gimp.h"
  25.  
  26. /**
  27.  * gimp_version:
  28.  *
  29.  * Returns the host gimp version.
  30.  *
  31.  * This procedure returns the version number of the currently running
  32.  * gimp.
  33.  *
  34.  * Returns: The gimp version.
  35.  */
  36. gchar *
  37. gimp_version (void)
  38. {
  39.   GimpParam *return_vals;
  40.   gint nreturn_vals;
  41.   gchar *version = NULL;
  42.  
  43.   return_vals = gimp_run_procedure ("gimp_version",
  44.                     &nreturn_vals,
  45.                     GIMP_PDB_END);
  46.  
  47.   if (return_vals[0].data.d_status == GIMP_PDB_SUCCESS)
  48.     version = g_strdup (return_vals[1].data.d_string);
  49.  
  50.   gimp_destroy_params (return_vals, nreturn_vals);
  51.  
  52.   return version;
  53. }
  54.