~ubuntu-branches/ubuntu/jaunty/gimp/jaunty-security

« back to all changes in this revision

Viewing changes to libgimp/gimpmisc_pdb.c

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2007-05-02 16:33:03 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070502163303-bvzhjzbpw8qglc4y
Tags: 2.3.16-1ubuntu1
* Resynchronized with Debian, remaining Ubuntu changes:
  - debian/rules: i18n magic.
* debian/control.in:
  - Maintainer: Ubuntu Core Developers <ubuntu-devel@lists.ubuntu.com>
* debian/patches/02_help-message.patch,
  debian/patches/03_gimp.desktop.in.in.patch,
  debian/patches/10_dont_show_wizard.patch: updated.
* debian/patches/04_composite-signedness.patch,
  debian/patches/05_add-letter-spacing.patch: dropped, used upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 * Boston, MA 02111-1307, USA.
20
20
 */
21
21
 
22
 
/* NOTE: This file is autogenerated by pdbgen.pl */
 
22
/* NOTE: This file is auto-generated by pdbgen.pl */
23
23
 
24
24
#include "config.h"
25
25
 
28
28
/**
29
29
 * gimp_version:
30
30
 *
31
 
 * Returns the host gimp version.
 
31
 * Returns the host GIMP version.
32
32
 *
33
33
 * This procedure returns the version number of the currently running
34
 
 * gimp.
 
34
 * GIMP.
35
35
 *
36
 
 * Returns: The gimp version.
 
36
 * Returns: GIMP version number.
37
37
 */
38
38
gchar *
39
39
gimp_version (void)
42
42
  gint nreturn_vals;
43
43
  gchar *version = NULL;
44
44
 
45
 
  return_vals = gimp_run_procedure ("gimp_version",
46
 
                                    &nreturn_vals,
47
 
                                    GIMP_PDB_END);
 
45
  return_vals = gimp_run_procedure ("gimp-version",
 
46
                                    &nreturn_vals,
 
47
                                    GIMP_PDB_END);
48
48
 
49
49
  if (return_vals[0].data.d_status == GIMP_PDB_SUCCESS)
50
50
    version = g_strdup (return_vals[1].data.d_string);
53
53
 
54
54
  return version;
55
55
}
 
56
 
 
57
/**
 
58
 * gimp_getpid:
 
59
 *
 
60
 * Returns the PID of the host GIMP process.
 
61
 *
 
62
 * This procedure returns the process ID of the currently running GIMP.
 
63
 *
 
64
 * Returns: The PID.
 
65
 *
 
66
 * Since: GIMP 2.4
 
67
 */
 
68
gint
 
69
gimp_getpid (void)
 
70
{
 
71
  GimpParam *return_vals;
 
72
  gint nreturn_vals;
 
73
  gint pid = 0;
 
74
 
 
75
  return_vals = gimp_run_procedure ("gimp-getpid",
 
76
                                    &nreturn_vals,
 
77
                                    GIMP_PDB_END);
 
78
 
 
79
  if (return_vals[0].data.d_status == GIMP_PDB_SUCCESS)
 
80
    pid = return_vals[1].data.d_int32;
 
81
 
 
82
  gimp_destroy_params (return_vals, nreturn_vals);
 
83
 
 
84
  return pid;
 
85
}