~walkerlee/totem/pre-interview

« back to all changes in this revision

Viewing changes to browser-plugin/marshal.c

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2013-05-26 00:07:51 UTC
  • mfrom: (1.6.1) (24.1.4 experimental)
  • Revision ID: package-import@ubuntu.com-20130526000751-kv8ap3x1di4qq8j2
Tags: 3.8.2-0ubuntu1
* Sync with Debian. Remaining changes: 
* debian/control.in:
  - Drop build-depends on libepc-ui-dev and libgrilo-0.2-dev (in universe)
  - Drop libxtst-dev build-depends so that the (redundant) fake key presses
    for inhibiting the screensaver are disabled (LP: #1007438)
  - Build-depend on libzeitgeist-dev
  - Suggest rather than recommend gstreamer components in universe
  - Add totem-plugins-extra
  - Add XB-Npp-Description and XB-Npp-Filename header to the 
    totem-mozilla package to improve ubufox/ubuntu plugin db integration 
  - Refer to Firefox in totem-mozilla description instead of Iceweasel
  - Don't have totem-mozilla recommend any particular browser
  - Drop obsolete python library dependencies since iplayer is no longer
    included
* debian/totem-common.install, debian/source_totem.py:
  - Install Ubuntu apport debugging hook
* debian/totem-plugins-extra.install:
  - Universe plugins split out of totem-plugins (currently only gromit)
* debian/totem-plugins.install:    
  - Skip the plugins split to -extra and add the zeitgeist plugin
* debian/rules:
  - Build with --fail-missing, to ensure we install everything. 
    + Ignore libtotem.{,l}a since we delibrately don't install these.
  - Re-enable hardening, make sure both PIE and BINDNOW are used
    by setting hardening=+all. (LP: #1039604)
* debian/patches/91_quicklist_entries.patch:
  - Add static quicklist
* debian/patches/92_gst-plugins-good.patch:
  - Build without unnecessary gstreamer1.0-bad dependency
* debian/patches/93_grilo_optional.patch:
  - Allow building without grilo while grilo MIR is still pending
* debian/patches/correct_desktop_mimetypes.patch:
  - Don't list the mimetypes after the unity lists
* debian/patches/revert_shell_menu.patch: 
  - revert the use of a shell menu until indicator-appmenu can handle
    the mixed shell/traditional menus itself
* New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
 
#ifndef __totempluginviewer_marshal_MARSHAL_H__
3
 
#define __totempluginviewer_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:UINT,UINT (marshal.list:1) */
57
 
G_GNUC_INTERNAL void totempluginviewer_marshal_VOID__UINT_UINT (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
 
totempluginviewer_marshal_VOID__UINT_UINT (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__UINT_UINT) (gpointer     data1,
72
 
                                                guint        arg_1,
73
 
                                                guint        arg_2,
74
 
                                                gpointer     data2);
75
 
  register GMarshalFunc_VOID__UINT_UINT 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__UINT_UINT) (marshal_data ? marshal_data : cc->callback);
92
 
 
93
 
  callback (data1,
94
 
            g_marshal_value_peek_uint (param_values + 1),
95
 
            g_marshal_value_peek_uint (param_values + 2),
96
 
            data2);
97
 
}
98
 
 
99
 
/* VOID:UINT,UINT,STRING (marshal.list:2) */
100
 
G_GNUC_INTERNAL void totempluginviewer_marshal_VOID__UINT_UINT_STRING (GClosure     *closure,
101
 
                                                                       GValue       *return_value,
102
 
                                                                       guint         n_param_values,
103
 
                                                                       const GValue *param_values,
104
 
                                                                       gpointer      invocation_hint,
105
 
                                                                       gpointer      marshal_data);
106
 
void
107
 
totempluginviewer_marshal_VOID__UINT_UINT_STRING (GClosure     *closure,
108
 
                                                  GValue       *return_value G_GNUC_UNUSED,
109
 
                                                  guint         n_param_values,
110
 
                                                  const GValue *param_values,
111
 
                                                  gpointer      invocation_hint G_GNUC_UNUSED,
112
 
                                                  gpointer      marshal_data)
113
 
{
114
 
  typedef void (*GMarshalFunc_VOID__UINT_UINT_STRING) (gpointer     data1,
115
 
                                                       guint        arg_1,
116
 
                                                       guint        arg_2,
117
 
                                                       gpointer     arg_3,
118
 
                                                       gpointer     data2);
119
 
  register GMarshalFunc_VOID__UINT_UINT_STRING callback;
120
 
  register GCClosure *cc = (GCClosure*) closure;
121
 
  register gpointer data1, data2;
122
 
 
123
 
  g_return_if_fail (n_param_values == 4);
124
 
 
125
 
  if (G_CCLOSURE_SWAP_DATA (closure))
126
 
    {
127
 
      data1 = closure->data;
128
 
      data2 = g_value_peek_pointer (param_values + 0);
129
 
    }
130
 
  else
131
 
    {
132
 
      data1 = g_value_peek_pointer (param_values + 0);
133
 
      data2 = closure->data;
134
 
    }
135
 
  callback = (GMarshalFunc_VOID__UINT_UINT_STRING) (marshal_data ? marshal_data : cc->callback);
136
 
 
137
 
  callback (data1,
138
 
            g_marshal_value_peek_uint (param_values + 1),
139
 
            g_marshal_value_peek_uint (param_values + 2),
140
 
            g_marshal_value_peek_string (param_values + 3),
141
 
            data2);
142
 
}
143
 
 
144
 
/* VOID:STRING,BOXED (marshal.list:3) */
145
 
G_GNUC_INTERNAL void totempluginviewer_marshal_VOID__STRING_BOXED (GClosure     *closure,
146
 
                                                                   GValue       *return_value,
147
 
                                                                   guint         n_param_values,
148
 
                                                                   const GValue *param_values,
149
 
                                                                   gpointer      invocation_hint,
150
 
                                                                   gpointer      marshal_data);
151
 
void
152
 
totempluginviewer_marshal_VOID__STRING_BOXED (GClosure     *closure,
153
 
                                              GValue       *return_value G_GNUC_UNUSED,
154
 
                                              guint         n_param_values,
155
 
                                              const GValue *param_values,
156
 
                                              gpointer      invocation_hint G_GNUC_UNUSED,
157
 
                                              gpointer      marshal_data)
158
 
{
159
 
  typedef void (*GMarshalFunc_VOID__STRING_BOXED) (gpointer     data1,
160
 
                                                   gpointer     arg_1,
161
 
                                                   gpointer     arg_2,
162
 
                                                   gpointer     data2);
163
 
  register GMarshalFunc_VOID__STRING_BOXED callback;
164
 
  register GCClosure *cc = (GCClosure*) closure;
165
 
  register gpointer data1, data2;
166
 
 
167
 
  g_return_if_fail (n_param_values == 3);
168
 
 
169
 
  if (G_CCLOSURE_SWAP_DATA (closure))
170
 
    {
171
 
      data1 = closure->data;
172
 
      data2 = g_value_peek_pointer (param_values + 0);
173
 
    }
174
 
  else
175
 
    {
176
 
      data1 = g_value_peek_pointer (param_values + 0);
177
 
      data2 = closure->data;
178
 
    }
179
 
  callback = (GMarshalFunc_VOID__STRING_BOXED) (marshal_data ? marshal_data : cc->callback);
180
 
 
181
 
  callback (data1,
182
 
            g_marshal_value_peek_string (param_values + 1),
183
 
            g_marshal_value_peek_boxed (param_values + 2),
184
 
            data2);
185
 
}
186
 
 
187
 
G_END_DECLS
188
 
 
189
 
#endif /* __totempluginviewer_marshal_MARSHAL_H__ */
190