~kroq-gar78/ubuntu/precise/gnome-control-center/fix-885947

« back to all changes in this revision

Viewing changes to capplets/about-me/marshal.c

  • Committer: Bazaar Package Importer
  • Author(s): Rodrigo Moya
  • Date: 2011-05-17 10:47:27 UTC
  • mfrom: (0.1.11 experimental) (1.1.45 upstream)
  • Revision ID: james.westby@ubuntu.com-20110517104727-lqel6m8vhfw5jby1
Tags: 1:3.0.1.1-1ubuntu1
* Rebase on Debian, remaining Ubuntu changes:
* debian/control:
  - Build-Depend on hardening-wrapper, dpkg-dev and dh-autoreconf
  - Add dependency on ubuntu-system-service
  - Remove dependency on gnome-icon-theme-symbolic
  - Move dependency on apg, gnome-icon-theme-symbolic and accountsservice to
    be a Recommends: until we get them in main
* debian/rules:
  - Use autoreconf
  - Add binary-post-install rule for gnome-control-center-data
  - Run dh-autoreconf
* debian/gnome-control-center.dirs:
* debian/gnome-control-center.links:
  - Add a link to the control center shell for indicators
* debian/patches/00_disable-nm.patch:
  - Temporary patch to disable building with NetworkManager until we get
    the new one in the archive
* debian/patches/01_git_remove_gettext_calls.patch:
  - Remove calls to AM_GNU_GETTEXT, IT_PROG_INTLTOOL should be enough
* debian/patches/01_git_kill_warning.patch:
  - Kill warning
* debian/patches/50_ubuntu_systemwide_prefs.patch:
  - Ubuntu specific proxy preferences
* debian/patches/51_ubuntu_system_keyboard.patch:
  - Implement the global keyboard spec at https://wiki.ubuntu.com/DefaultKeyboardSettings

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
 
#ifndef __fprintd_marshal_MARSHAL_H__
3
 
#define __fprintd_marshal_MARSHAL_H__
4
 
 
5
 
#include        <glib-object.h>
6
 
 
7
 
G_BEGIN_DECLS
8
 
 
9
 
#ifdef G_ENABLE_DEBUG
10
 
#define g_marshal_value_peek_boolean(v)  g_value_get_boolean (v)
11
 
#define g_marshal_value_peek_char(v)     g_value_get_char (v)
12
 
#define g_marshal_value_peek_uchar(v)    g_value_get_uchar (v)
13
 
#define g_marshal_value_peek_int(v)      g_value_get_int (v)
14
 
#define g_marshal_value_peek_uint(v)     g_value_get_uint (v)
15
 
#define g_marshal_value_peek_long(v)     g_value_get_long (v)
16
 
#define g_marshal_value_peek_ulong(v)    g_value_get_ulong (v)
17
 
#define g_marshal_value_peek_int64(v)    g_value_get_int64 (v)
18
 
#define g_marshal_value_peek_uint64(v)   g_value_get_uint64 (v)
19
 
#define g_marshal_value_peek_enum(v)     g_value_get_enum (v)
20
 
#define g_marshal_value_peek_flags(v)    g_value_get_flags (v)
21
 
#define g_marshal_value_peek_float(v)    g_value_get_float (v)
22
 
#define g_marshal_value_peek_double(v)   g_value_get_double (v)
23
 
#define g_marshal_value_peek_string(v)   (char*) g_value_get_string (v)
24
 
#define g_marshal_value_peek_param(v)    g_value_get_param (v)
25
 
#define g_marshal_value_peek_boxed(v)    g_value_get_boxed (v)
26
 
#define g_marshal_value_peek_pointer(v)  g_value_get_pointer (v)
27
 
#define g_marshal_value_peek_object(v)   g_value_get_object (v)
28
 
#define g_marshal_value_peek_variant(v)  g_value_get_variant (v)
29
 
#else /* !G_ENABLE_DEBUG */
30
 
/* WARNING: This code accesses GValues directly, which is UNSUPPORTED API.
31
 
 *          Do not access GValues directly in your code. Instead, use the
32
 
 *          g_value_get_*() functions
33
 
 */
34
 
#define g_marshal_value_peek_boolean(v)  (v)->data[0].v_int
35
 
#define g_marshal_value_peek_char(v)     (v)->data[0].v_int
36
 
#define g_marshal_value_peek_uchar(v)    (v)->data[0].v_uint
37
 
#define g_marshal_value_peek_int(v)      (v)->data[0].v_int
38
 
#define g_marshal_value_peek_uint(v)     (v)->data[0].v_uint
39
 
#define g_marshal_value_peek_long(v)     (v)->data[0].v_long
40
 
#define g_marshal_value_peek_ulong(v)    (v)->data[0].v_ulong
41
 
#define g_marshal_value_peek_int64(v)    (v)->data[0].v_int64
42
 
#define g_marshal_value_peek_uint64(v)   (v)->data[0].v_uint64
43
 
#define g_marshal_value_peek_enum(v)     (v)->data[0].v_long
44
 
#define g_marshal_value_peek_flags(v)    (v)->data[0].v_ulong
45
 
#define g_marshal_value_peek_float(v)    (v)->data[0].v_float
46
 
#define g_marshal_value_peek_double(v)   (v)->data[0].v_double
47
 
#define g_marshal_value_peek_string(v)   (v)->data[0].v_pointer
48
 
#define g_marshal_value_peek_param(v)    (v)->data[0].v_pointer
49
 
#define g_marshal_value_peek_boxed(v)    (v)->data[0].v_pointer
50
 
#define g_marshal_value_peek_pointer(v)  (v)->data[0].v_pointer
51
 
#define g_marshal_value_peek_object(v)   (v)->data[0].v_pointer
52
 
#define g_marshal_value_peek_variant(v)  (v)->data[0].v_pointer
53
 
#endif /* !G_ENABLE_DEBUG */
54
 
 
55
 
 
56
 
/* VOID:STRING,BOOLEAN (fprintd-marshal.list:1) */
57
 
extern void fprintd_marshal_VOID__STRING_BOOLEAN (GClosure     *closure,
58
 
                                                  GValue       *return_value,
59
 
                                                  guint         n_param_values,
60
 
                                                  const GValue *param_values,
61
 
                                                  gpointer      invocation_hint,
62
 
                                                  gpointer      marshal_data);
63
 
void
64
 
fprintd_marshal_VOID__STRING_BOOLEAN (GClosure     *closure,
65
 
                                      GValue       *return_value G_GNUC_UNUSED,
66
 
                                      guint         n_param_values,
67
 
                                      const GValue *param_values,
68
 
                                      gpointer      invocation_hint G_GNUC_UNUSED,
69
 
                                      gpointer      marshal_data)
70
 
{
71
 
  typedef void (*GMarshalFunc_VOID__STRING_BOOLEAN) (gpointer     data1,
72
 
                                                     gpointer     arg_1,
73
 
                                                     gboolean     arg_2,
74
 
                                                     gpointer     data2);
75
 
  register GMarshalFunc_VOID__STRING_BOOLEAN callback;
76
 
  register GCClosure *cc = (GCClosure*) closure;
77
 
  register gpointer data1, data2;
78
 
 
79
 
  g_return_if_fail (n_param_values == 3);
80
 
 
81
 
  if (G_CCLOSURE_SWAP_DATA (closure))
82
 
    {
83
 
      data1 = closure->data;
84
 
      data2 = g_value_peek_pointer (param_values + 0);
85
 
    }
86
 
  else
87
 
    {
88
 
      data1 = g_value_peek_pointer (param_values + 0);
89
 
      data2 = closure->data;
90
 
    }
91
 
  callback = (GMarshalFunc_VOID__STRING_BOOLEAN) (marshal_data ? marshal_data : cc->callback);
92
 
 
93
 
  callback (data1,
94
 
            g_marshal_value_peek_string (param_values + 1),
95
 
            g_marshal_value_peek_boolean (param_values + 2),
96
 
            data2);
97
 
}
98
 
 
99
 
G_END_DECLS
100
 
 
101
 
#endif /* __fprintd_marshal_MARSHAL_H__ */
102