~ubuntu-branches/ubuntu/utopic/xfce4-power-manager/utopic-proposed

« back to all changes in this revision

Viewing changes to src/xfce-power-manager-dbus-server.h

  • Committer: Package Import Robot
  • Author(s): Lionel Le Folgoc
  • Date: 2012-04-03 22:15:05 UTC
  • mfrom: (2.3.8)
  • Revision ID: package-import@ubuntu.com-20120403221505-2dvza7w2d97zb7qn
Tags: 1.0.11-0ubuntu1
* New upstream bugfix release.
* debian/patches:
  - 0001-Solaris-specific-code-for-determining-the-start-time.patch,
    02_fix-notify-detect.patch,
    07_fix_broken_empty_icon_battery.patch: dropped, included upstream.
  - xubuntu_fix-status-icon-other-devices.patch: refreshed to apply cleanly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
100
100
  g_value_set_boolean (return_value, v_return);
101
101
}
102
102
 
 
103
/* BOOLEAN:POINTER,POINTER */
 
104
extern void dbus_glib_marshal_xfpm_manager_BOOLEAN__POINTER_POINTER (GClosure     *closure,
 
105
                                                                     GValue       *return_value,
 
106
                                                                     guint         n_param_values,
 
107
                                                                     const GValue *param_values,
 
108
                                                                     gpointer      invocation_hint,
 
109
                                                                     gpointer      marshal_data);
 
110
void
 
111
dbus_glib_marshal_xfpm_manager_BOOLEAN__POINTER_POINTER (GClosure     *closure,
 
112
                                                         GValue       *return_value G_GNUC_UNUSED,
 
113
                                                         guint         n_param_values,
 
114
                                                         const GValue *param_values,
 
115
                                                         gpointer      invocation_hint G_GNUC_UNUSED,
 
116
                                                         gpointer      marshal_data)
 
117
{
 
118
  typedef gboolean (*GMarshalFunc_BOOLEAN__POINTER_POINTER) (gpointer     data1,
 
119
                                                             gpointer     arg_1,
 
120
                                                             gpointer     arg_2,
 
121
                                                             gpointer     data2);
 
122
  register GMarshalFunc_BOOLEAN__POINTER_POINTER callback;
 
123
  register GCClosure *cc = (GCClosure*) closure;
 
124
  register gpointer data1, data2;
 
125
  gboolean v_return;
 
126
 
 
127
  g_return_if_fail (return_value != NULL);
 
128
  g_return_if_fail (n_param_values == 3);
 
129
 
 
130
  if (G_CCLOSURE_SWAP_DATA (closure))
 
131
    {
 
132
      data1 = closure->data;
 
133
      data2 = g_value_peek_pointer (param_values + 0);
 
134
    }
 
135
  else
 
136
    {
 
137
      data1 = g_value_peek_pointer (param_values + 0);
 
138
      data2 = closure->data;
 
139
    }
 
140
  callback = (GMarshalFunc_BOOLEAN__POINTER_POINTER) (marshal_data ? marshal_data : cc->callback);
 
141
 
 
142
  v_return = callback (data1,
 
143
                       g_marshal_value_peek_pointer (param_values + 1),
 
144
                       g_marshal_value_peek_pointer (param_values + 2),
 
145
                       data2);
 
146
 
 
147
  g_value_set_boolean (return_value, v_return);
 
148
}
 
149
 
103
150
/* BOOLEAN:POINTER,POINTER,POINTER,POINTER */
104
151
extern void dbus_glib_marshal_xfpm_manager_BOOLEAN__POINTER_POINTER_POINTER_POINTER (GClosure     *closure,
105
152
                                                                                     GValue       *return_value,
151
198
  g_value_set_boolean (return_value, v_return);
152
199
}
153
200
 
154
 
/* BOOLEAN:POINTER,POINTER */
155
 
extern void dbus_glib_marshal_xfpm_manager_BOOLEAN__POINTER_POINTER (GClosure     *closure,
156
 
                                                                     GValue       *return_value,
157
 
                                                                     guint         n_param_values,
158
 
                                                                     const GValue *param_values,
159
 
                                                                     gpointer      invocation_hint,
160
 
                                                                     gpointer      marshal_data);
161
 
void
162
 
dbus_glib_marshal_xfpm_manager_BOOLEAN__POINTER_POINTER (GClosure     *closure,
163
 
                                                         GValue       *return_value G_GNUC_UNUSED,
164
 
                                                         guint         n_param_values,
165
 
                                                         const GValue *param_values,
166
 
                                                         gpointer      invocation_hint G_GNUC_UNUSED,
167
 
                                                         gpointer      marshal_data)
168
 
{
169
 
  typedef gboolean (*GMarshalFunc_BOOLEAN__POINTER_POINTER) (gpointer     data1,
170
 
                                                             gpointer     arg_1,
171
 
                                                             gpointer     arg_2,
172
 
                                                             gpointer     data2);
173
 
  register GMarshalFunc_BOOLEAN__POINTER_POINTER callback;
174
 
  register GCClosure *cc = (GCClosure*) closure;
175
 
  register gpointer data1, data2;
176
 
  gboolean v_return;
177
 
 
178
 
  g_return_if_fail (return_value != NULL);
179
 
  g_return_if_fail (n_param_values == 3);
180
 
 
181
 
  if (G_CCLOSURE_SWAP_DATA (closure))
182
 
    {
183
 
      data1 = closure->data;
184
 
      data2 = g_value_peek_pointer (param_values + 0);
185
 
    }
186
 
  else
187
 
    {
188
 
      data1 = g_value_peek_pointer (param_values + 0);
189
 
      data2 = closure->data;
190
 
    }
191
 
  callback = (GMarshalFunc_BOOLEAN__POINTER_POINTER) (marshal_data ? marshal_data : cc->callback);
192
 
 
193
 
  v_return = callback (data1,
194
 
                       g_marshal_value_peek_pointer (param_values + 1),
195
 
                       g_marshal_value_peek_pointer (param_values + 2),
196
 
                       data2);
197
 
 
198
 
  g_value_set_boolean (return_value, v_return);
199
 
}
200
 
 
201
201
G_END_DECLS
202
202
 
203
203
#endif /* __dbus_glib_marshal_xfpm_manager_MARSHAL_H__ */