Add sound manager initial source code
[staging/soundmanager.git] / sample / mediaplayer / binding / gdbus / lightmediascanner_interface.h
1 /*
2  * Generated by gdbus-codegen 2.52.0. DO NOT EDIT.
3  *
4  * The license of this code is the same as for the source it was derived from.
5  */
6
7 #ifndef __LIGHTMEDIASCANNER_INTERFACE_H__
8 #define __LIGHTMEDIASCANNER_INTERFACE_H__
9
10 #include <gio/gio.h>
11
12 G_BEGIN_DECLS
13
14
15 /* ------------------------------------------------------------------------ */
16 /* Declarations for org.freedesktop.DBus.Properties */
17
18 #define TYPE_ORG_FREEDESKTOP_DBUS_PROPERTIES (org_freedesktop_dbus_properties_get_type ())
19 #define ORG_FREEDESKTOP_DBUS_PROPERTIES(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_FREEDESKTOP_DBUS_PROPERTIES, OrgFreedesktopDBusProperties))
20 #define IS_ORG_FREEDESKTOP_DBUS_PROPERTIES(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_FREEDESKTOP_DBUS_PROPERTIES))
21 #define ORG_FREEDESKTOP_DBUS_PROPERTIES_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_FREEDESKTOP_DBUS_PROPERTIES, OrgFreedesktopDBusPropertiesIface))
22
23 struct _OrgFreedesktopDBusProperties;
24 typedef struct _OrgFreedesktopDBusProperties OrgFreedesktopDBusProperties;
25 typedef struct _OrgFreedesktopDBusPropertiesIface OrgFreedesktopDBusPropertiesIface;
26
27 struct _OrgFreedesktopDBusPropertiesIface
28 {
29   GTypeInterface parent_iface;
30
31
32   gboolean (*handle_get) (
33     OrgFreedesktopDBusProperties *object,
34     GDBusMethodInvocation *invocation,
35     const gchar *arg_interface_name,
36     const gchar *arg_property_name);
37
38   gboolean (*handle_get_all) (
39     OrgFreedesktopDBusProperties *object,
40     GDBusMethodInvocation *invocation,
41     const gchar *arg_interface_name);
42
43   gboolean (*handle_set) (
44     OrgFreedesktopDBusProperties *object,
45     GDBusMethodInvocation *invocation,
46     const gchar *arg_interface_name,
47     const gchar *arg_property_name,
48     GVariant *arg_value);
49
50   void (*properties_changed) (
51     OrgFreedesktopDBusProperties *object,
52     const gchar *arg_interface_name,
53     GVariant *arg_changed_properties,
54     const gchar *const *arg_invalidated_properties);
55
56 };
57
58 GType org_freedesktop_dbus_properties_get_type (void) G_GNUC_CONST;
59
60 GDBusInterfaceInfo *org_freedesktop_dbus_properties_interface_info (void);
61 guint org_freedesktop_dbus_properties_override_properties (GObjectClass *klass, guint property_id_begin);
62
63
64 /* D-Bus method call completion functions: */
65 void org_freedesktop_dbus_properties_complete_get (
66     OrgFreedesktopDBusProperties *object,
67     GDBusMethodInvocation *invocation,
68     GVariant *value);
69
70 void org_freedesktop_dbus_properties_complete_get_all (
71     OrgFreedesktopDBusProperties *object,
72     GDBusMethodInvocation *invocation,
73     GVariant *properties);
74
75 void org_freedesktop_dbus_properties_complete_set (
76     OrgFreedesktopDBusProperties *object,
77     GDBusMethodInvocation *invocation);
78
79
80
81 /* D-Bus signal emissions functions: */
82 void org_freedesktop_dbus_properties_emit_properties_changed (
83     OrgFreedesktopDBusProperties *object,
84     const gchar *arg_interface_name,
85     GVariant *arg_changed_properties,
86     const gchar *const *arg_invalidated_properties);
87
88
89
90 /* D-Bus method calls: */
91 void org_freedesktop_dbus_properties_call_get (
92     OrgFreedesktopDBusProperties *proxy,
93     const gchar *arg_interface_name,
94     const gchar *arg_property_name,
95     GCancellable *cancellable,
96     GAsyncReadyCallback callback,
97     gpointer user_data);
98
99 gboolean org_freedesktop_dbus_properties_call_get_finish (
100     OrgFreedesktopDBusProperties *proxy,
101     GVariant **out_value,
102     GAsyncResult *res,
103     GError **error);
104
105 gboolean org_freedesktop_dbus_properties_call_get_sync (
106     OrgFreedesktopDBusProperties *proxy,
107     const gchar *arg_interface_name,
108     const gchar *arg_property_name,
109     GVariant **out_value,
110     GCancellable *cancellable,
111     GError **error);
112
113 void org_freedesktop_dbus_properties_call_get_all (
114     OrgFreedesktopDBusProperties *proxy,
115     const gchar *arg_interface_name,
116     GCancellable *cancellable,
117     GAsyncReadyCallback callback,
118     gpointer user_data);
119
120 gboolean org_freedesktop_dbus_properties_call_get_all_finish (
121     OrgFreedesktopDBusProperties *proxy,
122     GVariant **out_properties,
123     GAsyncResult *res,
124     GError **error);
125
126 gboolean org_freedesktop_dbus_properties_call_get_all_sync (
127     OrgFreedesktopDBusProperties *proxy,
128     const gchar *arg_interface_name,
129     GVariant **out_properties,
130     GCancellable *cancellable,
131     GError **error);
132
133 void org_freedesktop_dbus_properties_call_set (
134     OrgFreedesktopDBusProperties *proxy,
135     const gchar *arg_interface_name,
136     const gchar *arg_property_name,
137     GVariant *arg_value,
138     GCancellable *cancellable,
139     GAsyncReadyCallback callback,
140     gpointer user_data);
141
142 gboolean org_freedesktop_dbus_properties_call_set_finish (
143     OrgFreedesktopDBusProperties *proxy,
144     GAsyncResult *res,
145     GError **error);
146
147 gboolean org_freedesktop_dbus_properties_call_set_sync (
148     OrgFreedesktopDBusProperties *proxy,
149     const gchar *arg_interface_name,
150     const gchar *arg_property_name,
151     GVariant *arg_value,
152     GCancellable *cancellable,
153     GError **error);
154
155
156
157 /* ---- */
158
159 #define TYPE_ORG_FREEDESKTOP_DBUS_PROPERTIES_PROXY (org_freedesktop_dbus_properties_proxy_get_type ())
160 #define ORG_FREEDESKTOP_DBUS_PROPERTIES_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_FREEDESKTOP_DBUS_PROPERTIES_PROXY, OrgFreedesktopDBusPropertiesProxy))
161 #define ORG_FREEDESKTOP_DBUS_PROPERTIES_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_FREEDESKTOP_DBUS_PROPERTIES_PROXY, OrgFreedesktopDBusPropertiesProxyClass))
162 #define ORG_FREEDESKTOP_DBUS_PROPERTIES_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_FREEDESKTOP_DBUS_PROPERTIES_PROXY, OrgFreedesktopDBusPropertiesProxyClass))
163 #define IS_ORG_FREEDESKTOP_DBUS_PROPERTIES_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_FREEDESKTOP_DBUS_PROPERTIES_PROXY))
164 #define IS_ORG_FREEDESKTOP_DBUS_PROPERTIES_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_FREEDESKTOP_DBUS_PROPERTIES_PROXY))
165
166 typedef struct _OrgFreedesktopDBusPropertiesProxy OrgFreedesktopDBusPropertiesProxy;
167 typedef struct _OrgFreedesktopDBusPropertiesProxyClass OrgFreedesktopDBusPropertiesProxyClass;
168 typedef struct _OrgFreedesktopDBusPropertiesProxyPrivate OrgFreedesktopDBusPropertiesProxyPrivate;
169
170 struct _OrgFreedesktopDBusPropertiesProxy
171 {
172   /*< private >*/
173   GDBusProxy parent_instance;
174   OrgFreedesktopDBusPropertiesProxyPrivate *priv;
175 };
176
177 struct _OrgFreedesktopDBusPropertiesProxyClass
178 {
179   GDBusProxyClass parent_class;
180 };
181
182 GType org_freedesktop_dbus_properties_proxy_get_type (void) G_GNUC_CONST;
183
184 #if GLIB_CHECK_VERSION(2, 44, 0)
185 G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgFreedesktopDBusPropertiesProxy, g_object_unref)
186 #endif
187
188 void org_freedesktop_dbus_properties_proxy_new (
189     GDBusConnection     *connection,
190     GDBusProxyFlags      flags,
191     const gchar         *name,
192     const gchar         *object_path,
193     GCancellable        *cancellable,
194     GAsyncReadyCallback  callback,
195     gpointer             user_data);
196 OrgFreedesktopDBusProperties *org_freedesktop_dbus_properties_proxy_new_finish (
197     GAsyncResult        *res,
198     GError             **error);
199 OrgFreedesktopDBusProperties *org_freedesktop_dbus_properties_proxy_new_sync (
200     GDBusConnection     *connection,
201     GDBusProxyFlags      flags,
202     const gchar         *name,
203     const gchar         *object_path,
204     GCancellable        *cancellable,
205     GError             **error);
206
207 void org_freedesktop_dbus_properties_proxy_new_for_bus (
208     GBusType             bus_type,
209     GDBusProxyFlags      flags,
210     const gchar         *name,
211     const gchar         *object_path,
212     GCancellable        *cancellable,
213     GAsyncReadyCallback  callback,
214     gpointer             user_data);
215 OrgFreedesktopDBusProperties *org_freedesktop_dbus_properties_proxy_new_for_bus_finish (
216     GAsyncResult        *res,
217     GError             **error);
218 OrgFreedesktopDBusProperties *org_freedesktop_dbus_properties_proxy_new_for_bus_sync (
219     GBusType             bus_type,
220     GDBusProxyFlags      flags,
221     const gchar         *name,
222     const gchar         *object_path,
223     GCancellable        *cancellable,
224     GError             **error);
225
226
227 /* ---- */
228
229 #define TYPE_ORG_FREEDESKTOP_DBUS_PROPERTIES_SKELETON (org_freedesktop_dbus_properties_skeleton_get_type ())
230 #define ORG_FREEDESKTOP_DBUS_PROPERTIES_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_FREEDESKTOP_DBUS_PROPERTIES_SKELETON, OrgFreedesktopDBusPropertiesSkeleton))
231 #define ORG_FREEDESKTOP_DBUS_PROPERTIES_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_FREEDESKTOP_DBUS_PROPERTIES_SKELETON, OrgFreedesktopDBusPropertiesSkeletonClass))
232 #define ORG_FREEDESKTOP_DBUS_PROPERTIES_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_FREEDESKTOP_DBUS_PROPERTIES_SKELETON, OrgFreedesktopDBusPropertiesSkeletonClass))
233 #define IS_ORG_FREEDESKTOP_DBUS_PROPERTIES_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_FREEDESKTOP_DBUS_PROPERTIES_SKELETON))
234 #define IS_ORG_FREEDESKTOP_DBUS_PROPERTIES_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_FREEDESKTOP_DBUS_PROPERTIES_SKELETON))
235
236 typedef struct _OrgFreedesktopDBusPropertiesSkeleton OrgFreedesktopDBusPropertiesSkeleton;
237 typedef struct _OrgFreedesktopDBusPropertiesSkeletonClass OrgFreedesktopDBusPropertiesSkeletonClass;
238 typedef struct _OrgFreedesktopDBusPropertiesSkeletonPrivate OrgFreedesktopDBusPropertiesSkeletonPrivate;
239
240 struct _OrgFreedesktopDBusPropertiesSkeleton
241 {
242   /*< private >*/
243   GDBusInterfaceSkeleton parent_instance;
244   OrgFreedesktopDBusPropertiesSkeletonPrivate *priv;
245 };
246
247 struct _OrgFreedesktopDBusPropertiesSkeletonClass
248 {
249   GDBusInterfaceSkeletonClass parent_class;
250 };
251
252 GType org_freedesktop_dbus_properties_skeleton_get_type (void) G_GNUC_CONST;
253
254 #if GLIB_CHECK_VERSION(2, 44, 0)
255 G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgFreedesktopDBusPropertiesSkeleton, g_object_unref)
256 #endif
257
258 OrgFreedesktopDBusProperties *org_freedesktop_dbus_properties_skeleton_new (void);
259
260
261 /* ------------------------------------------------------------------------ */
262 /* Declarations for org.freedesktop.DBus.Introspectable */
263
264 #define TYPE_ORG_FREEDESKTOP_DBUS_INTROSPECTABLE (org_freedesktop_dbus_introspectable_get_type ())
265 #define ORG_FREEDESKTOP_DBUS_INTROSPECTABLE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_FREEDESKTOP_DBUS_INTROSPECTABLE, OrgFreedesktopDBusIntrospectable))
266 #define IS_ORG_FREEDESKTOP_DBUS_INTROSPECTABLE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_FREEDESKTOP_DBUS_INTROSPECTABLE))
267 #define ORG_FREEDESKTOP_DBUS_INTROSPECTABLE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_FREEDESKTOP_DBUS_INTROSPECTABLE, OrgFreedesktopDBusIntrospectableIface))
268
269 struct _OrgFreedesktopDBusIntrospectable;
270 typedef struct _OrgFreedesktopDBusIntrospectable OrgFreedesktopDBusIntrospectable;
271 typedef struct _OrgFreedesktopDBusIntrospectableIface OrgFreedesktopDBusIntrospectableIface;
272
273 struct _OrgFreedesktopDBusIntrospectableIface
274 {
275   GTypeInterface parent_iface;
276
277   gboolean (*handle_introspect) (
278     OrgFreedesktopDBusIntrospectable *object,
279     GDBusMethodInvocation *invocation);
280
281 };
282
283 GType org_freedesktop_dbus_introspectable_get_type (void) G_GNUC_CONST;
284
285 GDBusInterfaceInfo *org_freedesktop_dbus_introspectable_interface_info (void);
286 guint org_freedesktop_dbus_introspectable_override_properties (GObjectClass *klass, guint property_id_begin);
287
288
289 /* D-Bus method call completion functions: */
290 void org_freedesktop_dbus_introspectable_complete_introspect (
291     OrgFreedesktopDBusIntrospectable *object,
292     GDBusMethodInvocation *invocation,
293     const gchar *xml_data);
294
295
296
297 /* D-Bus method calls: */
298 void org_freedesktop_dbus_introspectable_call_introspect (
299     OrgFreedesktopDBusIntrospectable *proxy,
300     GCancellable *cancellable,
301     GAsyncReadyCallback callback,
302     gpointer user_data);
303
304 gboolean org_freedesktop_dbus_introspectable_call_introspect_finish (
305     OrgFreedesktopDBusIntrospectable *proxy,
306     gchar **out_xml_data,
307     GAsyncResult *res,
308     GError **error);
309
310 gboolean org_freedesktop_dbus_introspectable_call_introspect_sync (
311     OrgFreedesktopDBusIntrospectable *proxy,
312     gchar **out_xml_data,
313     GCancellable *cancellable,
314     GError **error);
315
316
317
318 /* ---- */
319
320 #define TYPE_ORG_FREEDESKTOP_DBUS_INTROSPECTABLE_PROXY (org_freedesktop_dbus_introspectable_proxy_get_type ())
321 #define ORG_FREEDESKTOP_DBUS_INTROSPECTABLE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_FREEDESKTOP_DBUS_INTROSPECTABLE_PROXY, OrgFreedesktopDBusIntrospectableProxy))
322 #define ORG_FREEDESKTOP_DBUS_INTROSPECTABLE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_FREEDESKTOP_DBUS_INTROSPECTABLE_PROXY, OrgFreedesktopDBusIntrospectableProxyClass))
323 #define ORG_FREEDESKTOP_DBUS_INTROSPECTABLE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_FREEDESKTOP_DBUS_INTROSPECTABLE_PROXY, OrgFreedesktopDBusIntrospectableProxyClass))
324 #define IS_ORG_FREEDESKTOP_DBUS_INTROSPECTABLE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_FREEDESKTOP_DBUS_INTROSPECTABLE_PROXY))
325 #define IS_ORG_FREEDESKTOP_DBUS_INTROSPECTABLE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_FREEDESKTOP_DBUS_INTROSPECTABLE_PROXY))
326
327 typedef struct _OrgFreedesktopDBusIntrospectableProxy OrgFreedesktopDBusIntrospectableProxy;
328 typedef struct _OrgFreedesktopDBusIntrospectableProxyClass OrgFreedesktopDBusIntrospectableProxyClass;
329 typedef struct _OrgFreedesktopDBusIntrospectableProxyPrivate OrgFreedesktopDBusIntrospectableProxyPrivate;
330
331 struct _OrgFreedesktopDBusIntrospectableProxy
332 {
333   /*< private >*/
334   GDBusProxy parent_instance;
335   OrgFreedesktopDBusIntrospectableProxyPrivate *priv;
336 };
337
338 struct _OrgFreedesktopDBusIntrospectableProxyClass
339 {
340   GDBusProxyClass parent_class;
341 };
342
343 GType org_freedesktop_dbus_introspectable_proxy_get_type (void) G_GNUC_CONST;
344
345 #if GLIB_CHECK_VERSION(2, 44, 0)
346 G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgFreedesktopDBusIntrospectableProxy, g_object_unref)
347 #endif
348
349 void org_freedesktop_dbus_introspectable_proxy_new (
350     GDBusConnection     *connection,
351     GDBusProxyFlags      flags,
352     const gchar         *name,
353     const gchar         *object_path,
354     GCancellable        *cancellable,
355     GAsyncReadyCallback  callback,
356     gpointer             user_data);
357 OrgFreedesktopDBusIntrospectable *org_freedesktop_dbus_introspectable_proxy_new_finish (
358     GAsyncResult        *res,
359     GError             **error);
360 OrgFreedesktopDBusIntrospectable *org_freedesktop_dbus_introspectable_proxy_new_sync (
361     GDBusConnection     *connection,
362     GDBusProxyFlags      flags,
363     const gchar         *name,
364     const gchar         *object_path,
365     GCancellable        *cancellable,
366     GError             **error);
367
368 void org_freedesktop_dbus_introspectable_proxy_new_for_bus (
369     GBusType             bus_type,
370     GDBusProxyFlags      flags,
371     const gchar         *name,
372     const gchar         *object_path,
373     GCancellable        *cancellable,
374     GAsyncReadyCallback  callback,
375     gpointer             user_data);
376 OrgFreedesktopDBusIntrospectable *org_freedesktop_dbus_introspectable_proxy_new_for_bus_finish (
377     GAsyncResult        *res,
378     GError             **error);
379 OrgFreedesktopDBusIntrospectable *org_freedesktop_dbus_introspectable_proxy_new_for_bus_sync (
380     GBusType             bus_type,
381     GDBusProxyFlags      flags,
382     const gchar         *name,
383     const gchar         *object_path,
384     GCancellable        *cancellable,
385     GError             **error);
386
387
388 /* ---- */
389
390 #define TYPE_ORG_FREEDESKTOP_DBUS_INTROSPECTABLE_SKELETON (org_freedesktop_dbus_introspectable_skeleton_get_type ())
391 #define ORG_FREEDESKTOP_DBUS_INTROSPECTABLE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_FREEDESKTOP_DBUS_INTROSPECTABLE_SKELETON, OrgFreedesktopDBusIntrospectableSkeleton))
392 #define ORG_FREEDESKTOP_DBUS_INTROSPECTABLE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_FREEDESKTOP_DBUS_INTROSPECTABLE_SKELETON, OrgFreedesktopDBusIntrospectableSkeletonClass))
393 #define ORG_FREEDESKTOP_DBUS_INTROSPECTABLE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_FREEDESKTOP_DBUS_INTROSPECTABLE_SKELETON, OrgFreedesktopDBusIntrospectableSkeletonClass))
394 #define IS_ORG_FREEDESKTOP_DBUS_INTROSPECTABLE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_FREEDESKTOP_DBUS_INTROSPECTABLE_SKELETON))
395 #define IS_ORG_FREEDESKTOP_DBUS_INTROSPECTABLE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_FREEDESKTOP_DBUS_INTROSPECTABLE_SKELETON))
396
397 typedef struct _OrgFreedesktopDBusIntrospectableSkeleton OrgFreedesktopDBusIntrospectableSkeleton;
398 typedef struct _OrgFreedesktopDBusIntrospectableSkeletonClass OrgFreedesktopDBusIntrospectableSkeletonClass;
399 typedef struct _OrgFreedesktopDBusIntrospectableSkeletonPrivate OrgFreedesktopDBusIntrospectableSkeletonPrivate;
400
401 struct _OrgFreedesktopDBusIntrospectableSkeleton
402 {
403   /*< private >*/
404   GDBusInterfaceSkeleton parent_instance;
405   OrgFreedesktopDBusIntrospectableSkeletonPrivate *priv;
406 };
407
408 struct _OrgFreedesktopDBusIntrospectableSkeletonClass
409 {
410   GDBusInterfaceSkeletonClass parent_class;
411 };
412
413 GType org_freedesktop_dbus_introspectable_skeleton_get_type (void) G_GNUC_CONST;
414
415 #if GLIB_CHECK_VERSION(2, 44, 0)
416 G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgFreedesktopDBusIntrospectableSkeleton, g_object_unref)
417 #endif
418
419 OrgFreedesktopDBusIntrospectable *org_freedesktop_dbus_introspectable_skeleton_new (void);
420
421
422 /* ------------------------------------------------------------------------ */
423 /* Declarations for org.freedesktop.DBus.Peer */
424
425 #define TYPE_ORG_FREEDESKTOP_DBUS_PEER (org_freedesktop_dbus_peer_get_type ())
426 #define ORG_FREEDESKTOP_DBUS_PEER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_FREEDESKTOP_DBUS_PEER, OrgFreedesktopDBusPeer))
427 #define IS_ORG_FREEDESKTOP_DBUS_PEER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_FREEDESKTOP_DBUS_PEER))
428 #define ORG_FREEDESKTOP_DBUS_PEER_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_FREEDESKTOP_DBUS_PEER, OrgFreedesktopDBusPeerIface))
429
430 struct _OrgFreedesktopDBusPeer;
431 typedef struct _OrgFreedesktopDBusPeer OrgFreedesktopDBusPeer;
432 typedef struct _OrgFreedesktopDBusPeerIface OrgFreedesktopDBusPeerIface;
433
434 struct _OrgFreedesktopDBusPeerIface
435 {
436   GTypeInterface parent_iface;
437
438   gboolean (*handle_get_machine_id) (
439     OrgFreedesktopDBusPeer *object,
440     GDBusMethodInvocation *invocation);
441
442   gboolean (*handle_ping) (
443     OrgFreedesktopDBusPeer *object,
444     GDBusMethodInvocation *invocation);
445
446 };
447
448 GType org_freedesktop_dbus_peer_get_type (void) G_GNUC_CONST;
449
450 GDBusInterfaceInfo *org_freedesktop_dbus_peer_interface_info (void);
451 guint org_freedesktop_dbus_peer_override_properties (GObjectClass *klass, guint property_id_begin);
452
453
454 /* D-Bus method call completion functions: */
455 void org_freedesktop_dbus_peer_complete_ping (
456     OrgFreedesktopDBusPeer *object,
457     GDBusMethodInvocation *invocation);
458
459 void org_freedesktop_dbus_peer_complete_get_machine_id (
460     OrgFreedesktopDBusPeer *object,
461     GDBusMethodInvocation *invocation,
462     const gchar *machine_uuid);
463
464
465
466 /* D-Bus method calls: */
467 void org_freedesktop_dbus_peer_call_ping (
468     OrgFreedesktopDBusPeer *proxy,
469     GCancellable *cancellable,
470     GAsyncReadyCallback callback,
471     gpointer user_data);
472
473 gboolean org_freedesktop_dbus_peer_call_ping_finish (
474     OrgFreedesktopDBusPeer *proxy,
475     GAsyncResult *res,
476     GError **error);
477
478 gboolean org_freedesktop_dbus_peer_call_ping_sync (
479     OrgFreedesktopDBusPeer *proxy,
480     GCancellable *cancellable,
481     GError **error);
482
483 void org_freedesktop_dbus_peer_call_get_machine_id (
484     OrgFreedesktopDBusPeer *proxy,
485     GCancellable *cancellable,
486     GAsyncReadyCallback callback,
487     gpointer user_data);
488
489 gboolean org_freedesktop_dbus_peer_call_get_machine_id_finish (
490     OrgFreedesktopDBusPeer *proxy,
491     gchar **out_machine_uuid,
492     GAsyncResult *res,
493     GError **error);
494
495 gboolean org_freedesktop_dbus_peer_call_get_machine_id_sync (
496     OrgFreedesktopDBusPeer *proxy,
497     gchar **out_machine_uuid,
498     GCancellable *cancellable,
499     GError **error);
500
501
502
503 /* ---- */
504
505 #define TYPE_ORG_FREEDESKTOP_DBUS_PEER_PROXY (org_freedesktop_dbus_peer_proxy_get_type ())
506 #define ORG_FREEDESKTOP_DBUS_PEER_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_FREEDESKTOP_DBUS_PEER_PROXY, OrgFreedesktopDBusPeerProxy))
507 #define ORG_FREEDESKTOP_DBUS_PEER_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_FREEDESKTOP_DBUS_PEER_PROXY, OrgFreedesktopDBusPeerProxyClass))
508 #define ORG_FREEDESKTOP_DBUS_PEER_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_FREEDESKTOP_DBUS_PEER_PROXY, OrgFreedesktopDBusPeerProxyClass))
509 #define IS_ORG_FREEDESKTOP_DBUS_PEER_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_FREEDESKTOP_DBUS_PEER_PROXY))
510 #define IS_ORG_FREEDESKTOP_DBUS_PEER_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_FREEDESKTOP_DBUS_PEER_PROXY))
511
512 typedef struct _OrgFreedesktopDBusPeerProxy OrgFreedesktopDBusPeerProxy;
513 typedef struct _OrgFreedesktopDBusPeerProxyClass OrgFreedesktopDBusPeerProxyClass;
514 typedef struct _OrgFreedesktopDBusPeerProxyPrivate OrgFreedesktopDBusPeerProxyPrivate;
515
516 struct _OrgFreedesktopDBusPeerProxy
517 {
518   /*< private >*/
519   GDBusProxy parent_instance;
520   OrgFreedesktopDBusPeerProxyPrivate *priv;
521 };
522
523 struct _OrgFreedesktopDBusPeerProxyClass
524 {
525   GDBusProxyClass parent_class;
526 };
527
528 GType org_freedesktop_dbus_peer_proxy_get_type (void) G_GNUC_CONST;
529
530 #if GLIB_CHECK_VERSION(2, 44, 0)
531 G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgFreedesktopDBusPeerProxy, g_object_unref)
532 #endif
533
534 void org_freedesktop_dbus_peer_proxy_new (
535     GDBusConnection     *connection,
536     GDBusProxyFlags      flags,
537     const gchar         *name,
538     const gchar         *object_path,
539     GCancellable        *cancellable,
540     GAsyncReadyCallback  callback,
541     gpointer             user_data);
542 OrgFreedesktopDBusPeer *org_freedesktop_dbus_peer_proxy_new_finish (
543     GAsyncResult        *res,
544     GError             **error);
545 OrgFreedesktopDBusPeer *org_freedesktop_dbus_peer_proxy_new_sync (
546     GDBusConnection     *connection,
547     GDBusProxyFlags      flags,
548     const gchar         *name,
549     const gchar         *object_path,
550     GCancellable        *cancellable,
551     GError             **error);
552
553 void org_freedesktop_dbus_peer_proxy_new_for_bus (
554     GBusType             bus_type,
555     GDBusProxyFlags      flags,
556     const gchar         *name,
557     const gchar         *object_path,
558     GCancellable        *cancellable,
559     GAsyncReadyCallback  callback,
560     gpointer             user_data);
561 OrgFreedesktopDBusPeer *org_freedesktop_dbus_peer_proxy_new_for_bus_finish (
562     GAsyncResult        *res,
563     GError             **error);
564 OrgFreedesktopDBusPeer *org_freedesktop_dbus_peer_proxy_new_for_bus_sync (
565     GBusType             bus_type,
566     GDBusProxyFlags      flags,
567     const gchar         *name,
568     const gchar         *object_path,
569     GCancellable        *cancellable,
570     GError             **error);
571
572
573 /* ---- */
574
575 #define TYPE_ORG_FREEDESKTOP_DBUS_PEER_SKELETON (org_freedesktop_dbus_peer_skeleton_get_type ())
576 #define ORG_FREEDESKTOP_DBUS_PEER_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_FREEDESKTOP_DBUS_PEER_SKELETON, OrgFreedesktopDBusPeerSkeleton))
577 #define ORG_FREEDESKTOP_DBUS_PEER_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_FREEDESKTOP_DBUS_PEER_SKELETON, OrgFreedesktopDBusPeerSkeletonClass))
578 #define ORG_FREEDESKTOP_DBUS_PEER_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_FREEDESKTOP_DBUS_PEER_SKELETON, OrgFreedesktopDBusPeerSkeletonClass))
579 #define IS_ORG_FREEDESKTOP_DBUS_PEER_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_FREEDESKTOP_DBUS_PEER_SKELETON))
580 #define IS_ORG_FREEDESKTOP_DBUS_PEER_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_FREEDESKTOP_DBUS_PEER_SKELETON))
581
582 typedef struct _OrgFreedesktopDBusPeerSkeleton OrgFreedesktopDBusPeerSkeleton;
583 typedef struct _OrgFreedesktopDBusPeerSkeletonClass OrgFreedesktopDBusPeerSkeletonClass;
584 typedef struct _OrgFreedesktopDBusPeerSkeletonPrivate OrgFreedesktopDBusPeerSkeletonPrivate;
585
586 struct _OrgFreedesktopDBusPeerSkeleton
587 {
588   /*< private >*/
589   GDBusInterfaceSkeleton parent_instance;
590   OrgFreedesktopDBusPeerSkeletonPrivate *priv;
591 };
592
593 struct _OrgFreedesktopDBusPeerSkeletonClass
594 {
595   GDBusInterfaceSkeletonClass parent_class;
596 };
597
598 GType org_freedesktop_dbus_peer_skeleton_get_type (void) G_GNUC_CONST;
599
600 #if GLIB_CHECK_VERSION(2, 44, 0)
601 G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgFreedesktopDBusPeerSkeleton, g_object_unref)
602 #endif
603
604 OrgFreedesktopDBusPeer *org_freedesktop_dbus_peer_skeleton_new (void);
605
606
607 /* ------------------------------------------------------------------------ */
608 /* Declarations for org.lightmediascanner.Scanner1 */
609
610 #define TYPE_SCANNER1 (scanner1_get_type ())
611 #define SCANNER1(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SCANNER1, Scanner1))
612 #define IS_SCANNER1(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SCANNER1))
613 #define SCANNER1_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_SCANNER1, Scanner1Iface))
614
615 struct _Scanner1;
616 typedef struct _Scanner1 Scanner1;
617 typedef struct _Scanner1Iface Scanner1Iface;
618
619 struct _Scanner1Iface
620 {
621   GTypeInterface parent_iface;
622
623
624
625   gboolean (*handle_release_write_lock) (
626     Scanner1 *object,
627     GDBusMethodInvocation *invocation);
628
629   gboolean (*handle_request_write_lock) (
630     Scanner1 *object,
631     GDBusMethodInvocation *invocation);
632
633   gboolean (*handle_scan) (
634     Scanner1 *object,
635     GDBusMethodInvocation *invocation,
636     GVariant *arg_specification);
637
638   gboolean (*handle_stop) (
639     Scanner1 *object,
640     GDBusMethodInvocation *invocation);
641
642   GVariant * (*get_categories) (Scanner1 *object);
643
644   const gchar * (*get_data_base_path) (Scanner1 *object);
645
646   gboolean  (*get_is_scanning) (Scanner1 *object);
647
648   guint64  (*get_update_id) (Scanner1 *object);
649
650   gboolean  (*get_write_locked) (Scanner1 *object);
651
652   void (*scan_progress) (
653     Scanner1 *object,
654     const gchar *arg_Category,
655     const gchar *arg_Path,
656     guint64 arg_UpToDate,
657     guint64 arg_Processed,
658     guint64 arg_Deleted,
659     guint64 arg_Skipped,
660     guint64 arg_Errors);
661
662 };
663
664 GType scanner1_get_type (void) G_GNUC_CONST;
665
666 GDBusInterfaceInfo *scanner1_interface_info (void);
667 guint scanner1_override_properties (GObjectClass *klass, guint property_id_begin);
668
669
670 /* D-Bus method call completion functions: */
671 void scanner1_complete_scan (
672     Scanner1 *object,
673     GDBusMethodInvocation *invocation);
674
675 void scanner1_complete_stop (
676     Scanner1 *object,
677     GDBusMethodInvocation *invocation);
678
679 void scanner1_complete_request_write_lock (
680     Scanner1 *object,
681     GDBusMethodInvocation *invocation);
682
683 void scanner1_complete_release_write_lock (
684     Scanner1 *object,
685     GDBusMethodInvocation *invocation);
686
687
688
689 /* D-Bus signal emissions functions: */
690 void scanner1_emit_scan_progress (
691     Scanner1 *object,
692     const gchar *arg_Category,
693     const gchar *arg_Path,
694     guint64 arg_UpToDate,
695     guint64 arg_Processed,
696     guint64 arg_Deleted,
697     guint64 arg_Skipped,
698     guint64 arg_Errors);
699
700
701
702 /* D-Bus method calls: */
703 void scanner1_call_scan (
704     Scanner1 *proxy,
705     GVariant *arg_specification,
706     GCancellable *cancellable,
707     GAsyncReadyCallback callback,
708     gpointer user_data);
709
710 gboolean scanner1_call_scan_finish (
711     Scanner1 *proxy,
712     GAsyncResult *res,
713     GError **error);
714
715 gboolean scanner1_call_scan_sync (
716     Scanner1 *proxy,
717     GVariant *arg_specification,
718     GCancellable *cancellable,
719     GError **error);
720
721 void scanner1_call_stop (
722     Scanner1 *proxy,
723     GCancellable *cancellable,
724     GAsyncReadyCallback callback,
725     gpointer user_data);
726
727 gboolean scanner1_call_stop_finish (
728     Scanner1 *proxy,
729     GAsyncResult *res,
730     GError **error);
731
732 gboolean scanner1_call_stop_sync (
733     Scanner1 *proxy,
734     GCancellable *cancellable,
735     GError **error);
736
737 void scanner1_call_request_write_lock (
738     Scanner1 *proxy,
739     GCancellable *cancellable,
740     GAsyncReadyCallback callback,
741     gpointer user_data);
742
743 gboolean scanner1_call_request_write_lock_finish (
744     Scanner1 *proxy,
745     GAsyncResult *res,
746     GError **error);
747
748 gboolean scanner1_call_request_write_lock_sync (
749     Scanner1 *proxy,
750     GCancellable *cancellable,
751     GError **error);
752
753 void scanner1_call_release_write_lock (
754     Scanner1 *proxy,
755     GCancellable *cancellable,
756     GAsyncReadyCallback callback,
757     gpointer user_data);
758
759 gboolean scanner1_call_release_write_lock_finish (
760     Scanner1 *proxy,
761     GAsyncResult *res,
762     GError **error);
763
764 gboolean scanner1_call_release_write_lock_sync (
765     Scanner1 *proxy,
766     GCancellable *cancellable,
767     GError **error);
768
769
770
771 /* D-Bus property accessors: */
772 const gchar *scanner1_get_data_base_path (Scanner1 *object);
773 gchar *scanner1_dup_data_base_path (Scanner1 *object);
774 void scanner1_set_data_base_path (Scanner1 *object, const gchar *value);
775
776 gboolean scanner1_get_is_scanning (Scanner1 *object);
777 void scanner1_set_is_scanning (Scanner1 *object, gboolean value);
778
779 gboolean scanner1_get_write_locked (Scanner1 *object);
780 void scanner1_set_write_locked (Scanner1 *object, gboolean value);
781
782 guint64 scanner1_get_update_id (Scanner1 *object);
783 void scanner1_set_update_id (Scanner1 *object, guint64 value);
784
785 GVariant *scanner1_get_categories (Scanner1 *object);
786 GVariant *scanner1_dup_categories (Scanner1 *object);
787 void scanner1_set_categories (Scanner1 *object, GVariant *value);
788
789
790 /* ---- */
791
792 #define TYPE_SCANNER1_PROXY (scanner1_proxy_get_type ())
793 #define SCANNER1_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SCANNER1_PROXY, Scanner1Proxy))
794 #define SCANNER1_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SCANNER1_PROXY, Scanner1ProxyClass))
795 #define SCANNER1_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SCANNER1_PROXY, Scanner1ProxyClass))
796 #define IS_SCANNER1_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SCANNER1_PROXY))
797 #define IS_SCANNER1_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SCANNER1_PROXY))
798
799 typedef struct _Scanner1Proxy Scanner1Proxy;
800 typedef struct _Scanner1ProxyClass Scanner1ProxyClass;
801 typedef struct _Scanner1ProxyPrivate Scanner1ProxyPrivate;
802
803 struct _Scanner1Proxy
804 {
805   /*< private >*/
806   GDBusProxy parent_instance;
807   Scanner1ProxyPrivate *priv;
808 };
809
810 struct _Scanner1ProxyClass
811 {
812   GDBusProxyClass parent_class;
813 };
814
815 GType scanner1_proxy_get_type (void) G_GNUC_CONST;
816
817 #if GLIB_CHECK_VERSION(2, 44, 0)
818 G_DEFINE_AUTOPTR_CLEANUP_FUNC (Scanner1Proxy, g_object_unref)
819 #endif
820
821 void scanner1_proxy_new (
822     GDBusConnection     *connection,
823     GDBusProxyFlags      flags,
824     const gchar         *name,
825     const gchar         *object_path,
826     GCancellable        *cancellable,
827     GAsyncReadyCallback  callback,
828     gpointer             user_data);
829 Scanner1 *scanner1_proxy_new_finish (
830     GAsyncResult        *res,
831     GError             **error);
832 Scanner1 *scanner1_proxy_new_sync (
833     GDBusConnection     *connection,
834     GDBusProxyFlags      flags,
835     const gchar         *name,
836     const gchar         *object_path,
837     GCancellable        *cancellable,
838     GError             **error);
839
840 void scanner1_proxy_new_for_bus (
841     GBusType             bus_type,
842     GDBusProxyFlags      flags,
843     const gchar         *name,
844     const gchar         *object_path,
845     GCancellable        *cancellable,
846     GAsyncReadyCallback  callback,
847     gpointer             user_data);
848 Scanner1 *scanner1_proxy_new_for_bus_finish (
849     GAsyncResult        *res,
850     GError             **error);
851 Scanner1 *scanner1_proxy_new_for_bus_sync (
852     GBusType             bus_type,
853     GDBusProxyFlags      flags,
854     const gchar         *name,
855     const gchar         *object_path,
856     GCancellable        *cancellable,
857     GError             **error);
858
859
860 /* ---- */
861
862 #define TYPE_SCANNER1_SKELETON (scanner1_skeleton_get_type ())
863 #define SCANNER1_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_SCANNER1_SKELETON, Scanner1Skeleton))
864 #define SCANNER1_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_SCANNER1_SKELETON, Scanner1SkeletonClass))
865 #define SCANNER1_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_SCANNER1_SKELETON, Scanner1SkeletonClass))
866 #define IS_SCANNER1_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_SCANNER1_SKELETON))
867 #define IS_SCANNER1_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_SCANNER1_SKELETON))
868
869 typedef struct _Scanner1Skeleton Scanner1Skeleton;
870 typedef struct _Scanner1SkeletonClass Scanner1SkeletonClass;
871 typedef struct _Scanner1SkeletonPrivate Scanner1SkeletonPrivate;
872
873 struct _Scanner1Skeleton
874 {
875   /*< private >*/
876   GDBusInterfaceSkeleton parent_instance;
877   Scanner1SkeletonPrivate *priv;
878 };
879
880 struct _Scanner1SkeletonClass
881 {
882   GDBusInterfaceSkeletonClass parent_class;
883 };
884
885 GType scanner1_skeleton_get_type (void) G_GNUC_CONST;
886
887 #if GLIB_CHECK_VERSION(2, 44, 0)
888 G_DEFINE_AUTOPTR_CLEANUP_FUNC (Scanner1Skeleton, g_object_unref)
889 #endif
890
891 Scanner1 *scanner1_skeleton_new (void);
892
893
894 G_END_DECLS
895
896 #endif /* __LIGHTMEDIASCANNER_INTERFACE_H__ */