~ubuntu-branches/debian/sid/glib2.0/sid

« back to all changes in this revision

Viewing changes to gio/gdbusconnection.h

  • Committer: Package Import Robot
  • Author(s): Martin Pitt
  • Date: 2013-05-08 06:25:57 UTC
  • mfrom: (1.27.14) (3.1.181 experimental)
  • Revision ID: package-import@ubuntu.com-20130508062557-i7gbku66mls70gi2
Tags: 2.36.1-2
Merge experimental branch, upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 * Author: David Zeuthen <davidz@redhat.com>
21
21
 */
22
22
 
 
23
#ifndef __G_DBUS_CONNECTION_H__
 
24
#define __G_DBUS_CONNECTION_H__
 
25
 
23
26
#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
24
27
#error "Only <gio/gio.h> can be included directly."
25
28
#endif
26
29
 
27
 
#ifndef __G_DBUS_CONNECTION_H__
28
 
#define __G_DBUS_CONNECTION_H__
29
 
 
30
30
#include <gio/giotypes.h>
31
31
 
32
32
G_BEGIN_DECLS
35
35
#define G_DBUS_CONNECTION(o)           (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_DBUS_CONNECTION, GDBusConnection))
36
36
#define G_IS_DBUS_CONNECTION(o)        (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_DBUS_CONNECTION))
37
37
 
 
38
GLIB_AVAILABLE_IN_ALL
38
39
GType            g_dbus_connection_get_type                   (void) G_GNUC_CONST;
39
40
 
40
41
/* ---------------------------------------------------------------------------------------------------- */
41
42
 
 
43
GLIB_AVAILABLE_IN_ALL
42
44
void              g_bus_get                    (GBusType             bus_type,
43
45
                                                GCancellable        *cancellable,
44
46
                                                GAsyncReadyCallback  callback,
45
47
                                                gpointer             user_data);
 
48
GLIB_AVAILABLE_IN_ALL
46
49
GDBusConnection  *g_bus_get_finish             (GAsyncResult        *res,
47
50
                                                GError             **error);
 
51
GLIB_AVAILABLE_IN_ALL
48
52
GDBusConnection  *g_bus_get_sync               (GBusType            bus_type,
49
53
                                                GCancellable       *cancellable,
50
54
                                                GError            **error);
51
55
 
52
56
/* ---------------------------------------------------------------------------------------------------- */
53
57
 
 
58
GLIB_AVAILABLE_IN_ALL
54
59
void             g_dbus_connection_new                        (GIOStream              *stream,
55
60
                                                               const gchar            *guid,
56
61
                                                               GDBusConnectionFlags    flags,
58
63
                                                               GCancellable           *cancellable,
59
64
                                                               GAsyncReadyCallback     callback,
60
65
                                                               gpointer                user_data);
 
66
GLIB_AVAILABLE_IN_ALL
61
67
GDBusConnection *g_dbus_connection_new_finish                 (GAsyncResult           *res,
62
68
                                                               GError                **error);
 
69
GLIB_AVAILABLE_IN_ALL
63
70
GDBusConnection *g_dbus_connection_new_sync                   (GIOStream              *stream,
64
71
                                                               const gchar            *guid,
65
72
                                                               GDBusConnectionFlags    flags,
67
74
                                                               GCancellable           *cancellable,
68
75
                                                               GError                **error);
69
76
 
 
77
GLIB_AVAILABLE_IN_ALL
70
78
void             g_dbus_connection_new_for_address            (const gchar            *address,
71
79
                                                               GDBusConnectionFlags    flags,
72
80
                                                               GDBusAuthObserver      *observer,
73
81
                                                               GCancellable           *cancellable,
74
82
                                                               GAsyncReadyCallback     callback,
75
83
                                                               gpointer                user_data);
 
84
GLIB_AVAILABLE_IN_ALL
76
85
GDBusConnection *g_dbus_connection_new_for_address_finish     (GAsyncResult           *res,
77
86
                                                               GError                **error);
 
87
GLIB_AVAILABLE_IN_ALL
78
88
GDBusConnection *g_dbus_connection_new_for_address_sync       (const gchar            *address,
79
89
                                                               GDBusConnectionFlags    flags,
80
90
                                                               GDBusAuthObserver      *observer,
83
93
 
84
94
/* ---------------------------------------------------------------------------------------------------- */
85
95
 
 
96
GLIB_AVAILABLE_IN_ALL
86
97
void             g_dbus_connection_start_message_processing   (GDBusConnection    *connection);
 
98
GLIB_AVAILABLE_IN_ALL
87
99
gboolean         g_dbus_connection_is_closed                  (GDBusConnection    *connection);
 
100
GLIB_AVAILABLE_IN_ALL
88
101
GIOStream       *g_dbus_connection_get_stream                 (GDBusConnection    *connection);
 
102
GLIB_AVAILABLE_IN_ALL
89
103
const gchar     *g_dbus_connection_get_guid                   (GDBusConnection    *connection);
 
104
GLIB_AVAILABLE_IN_ALL
90
105
const gchar     *g_dbus_connection_get_unique_name            (GDBusConnection    *connection);
 
106
GLIB_AVAILABLE_IN_ALL
91
107
GCredentials    *g_dbus_connection_get_peer_credentials       (GDBusConnection    *connection);
 
108
 
 
109
GLIB_AVAILABLE_IN_2_34
 
110
guint32          g_dbus_connection_get_last_serial            (GDBusConnection    *connection);
 
111
 
 
112
GLIB_AVAILABLE_IN_ALL
92
113
gboolean         g_dbus_connection_get_exit_on_close          (GDBusConnection    *connection);
 
114
GLIB_AVAILABLE_IN_ALL
93
115
void             g_dbus_connection_set_exit_on_close          (GDBusConnection    *connection,
94
116
                                                               gboolean            exit_on_close);
 
117
GLIB_AVAILABLE_IN_ALL
95
118
GDBusCapabilityFlags  g_dbus_connection_get_capabilities      (GDBusConnection    *connection);
96
119
 
97
120
/* ---------------------------------------------------------------------------------------------------- */
98
121
 
 
122
GLIB_AVAILABLE_IN_ALL
99
123
void             g_dbus_connection_close                          (GDBusConnection     *connection,
100
124
                                                                   GCancellable        *cancellable,
101
125
                                                                   GAsyncReadyCallback  callback,
102
126
                                                                   gpointer             user_data);
 
127
GLIB_AVAILABLE_IN_ALL
103
128
gboolean         g_dbus_connection_close_finish                   (GDBusConnection     *connection,
104
129
                                                                   GAsyncResult        *res,
105
130
                                                                   GError             **error);
 
131
GLIB_AVAILABLE_IN_ALL
106
132
gboolean         g_dbus_connection_close_sync                     (GDBusConnection     *connection,
107
133
                                                                   GCancellable        *cancellable,
108
134
                                                                   GError             **error);
109
135
 
110
136
/* ---------------------------------------------------------------------------------------------------- */
111
137
 
 
138
GLIB_AVAILABLE_IN_ALL
112
139
void             g_dbus_connection_flush                          (GDBusConnection     *connection,
113
140
                                                                   GCancellable        *cancellable,
114
141
                                                                   GAsyncReadyCallback  callback,
115
142
                                                                   gpointer             user_data);
 
143
GLIB_AVAILABLE_IN_ALL
116
144
gboolean         g_dbus_connection_flush_finish                   (GDBusConnection     *connection,
117
145
                                                                   GAsyncResult        *res,
118
146
                                                                   GError             **error);
 
147
GLIB_AVAILABLE_IN_ALL
119
148
gboolean         g_dbus_connection_flush_sync                     (GDBusConnection     *connection,
120
149
                                                                   GCancellable        *cancellable,
121
150
                                                                   GError             **error);
122
151
 
123
152
/* ---------------------------------------------------------------------------------------------------- */
124
153
 
 
154
GLIB_AVAILABLE_IN_ALL
125
155
gboolean         g_dbus_connection_send_message                   (GDBusConnection     *connection,
126
156
                                                                   GDBusMessage        *message,
127
157
                                                                   GDBusSendMessageFlags flags,
128
158
                                                                   volatile guint32    *out_serial,
129
159
                                                                   GError             **error);
 
160
GLIB_AVAILABLE_IN_ALL
130
161
void             g_dbus_connection_send_message_with_reply        (GDBusConnection     *connection,
131
162
                                                                   GDBusMessage        *message,
132
163
                                                                   GDBusSendMessageFlags flags,
135
166
                                                                   GCancellable        *cancellable,
136
167
                                                                   GAsyncReadyCallback  callback,
137
168
                                                                   gpointer             user_data);
 
169
GLIB_AVAILABLE_IN_ALL
138
170
GDBusMessage    *g_dbus_connection_send_message_with_reply_finish (GDBusConnection     *connection,
139
171
                                                                   GAsyncResult        *res,
140
172
                                                                   GError             **error);
 
173
GLIB_AVAILABLE_IN_ALL
141
174
GDBusMessage    *g_dbus_connection_send_message_with_reply_sync   (GDBusConnection     *connection,
142
175
                                                                   GDBusMessage        *message,
143
176
                                                                   GDBusSendMessageFlags flags,
148
181
 
149
182
/* ---------------------------------------------------------------------------------------------------- */
150
183
 
 
184
GLIB_AVAILABLE_IN_ALL
151
185
gboolean  g_dbus_connection_emit_signal                       (GDBusConnection    *connection,
152
186
                                                               const gchar        *destination_bus_name,
153
187
                                                               const gchar        *object_path,
155
189
                                                               const gchar        *signal_name,
156
190
                                                               GVariant           *parameters,
157
191
                                                               GError            **error);
 
192
GLIB_AVAILABLE_IN_ALL
158
193
void      g_dbus_connection_call                              (GDBusConnection    *connection,
159
194
                                                               const gchar        *bus_name,
160
195
                                                               const gchar        *object_path,
167
202
                                                               GCancellable       *cancellable,
168
203
                                                               GAsyncReadyCallback callback,
169
204
                                                               gpointer            user_data);
 
205
GLIB_AVAILABLE_IN_ALL
170
206
GVariant *g_dbus_connection_call_finish                       (GDBusConnection    *connection,
171
207
                                                               GAsyncResult       *res,
172
208
                                                               GError            **error);
 
209
GLIB_AVAILABLE_IN_ALL
173
210
GVariant *g_dbus_connection_call_sync                         (GDBusConnection    *connection,
174
211
                                                               const gchar        *bus_name,
175
212
                                                               const gchar        *object_path,
323
360
  gpointer padding[8];
324
361
};
325
362
 
 
363
GLIB_AVAILABLE_IN_ALL
326
364
guint            g_dbus_connection_register_object            (GDBusConnection            *connection,
327
365
                                                               const gchar                *object_path,
328
366
                                                               GDBusInterfaceInfo         *interface_info,
330
368
                                                               gpointer                    user_data,
331
369
                                                               GDestroyNotify              user_data_free_func,
332
370
                                                               GError                    **error);
 
371
GLIB_AVAILABLE_IN_ALL
333
372
gboolean         g_dbus_connection_unregister_object          (GDBusConnection            *connection,
334
373
                                                               guint                       registration_id);
335
374
 
451
490
  gpointer padding[8];
452
491
};
453
492
 
 
493
GLIB_AVAILABLE_IN_ALL
454
494
guint            g_dbus_connection_register_subtree           (GDBusConnection            *connection,
455
495
                                                               const gchar                *object_path,
456
496
                                                               const GDBusSubtreeVTable   *vtable,
458
498
                                                               gpointer                    user_data,
459
499
                                                               GDestroyNotify              user_data_free_func,
460
500
                                                               GError                    **error);
 
501
GLIB_AVAILABLE_IN_ALL
461
502
gboolean         g_dbus_connection_unregister_subtree         (GDBusConnection            *connection,
462
503
                                                               guint                       registration_id);
463
504
 
485
526
                                     GVariant         *parameters,
486
527
                                     gpointer          user_data);
487
528
 
 
529
GLIB_AVAILABLE_IN_ALL
488
530
guint            g_dbus_connection_signal_subscribe           (GDBusConnection     *connection,
489
531
                                                               const gchar         *sender,
490
532
                                                               const gchar         *interface_name,
495
537
                                                               GDBusSignalCallback  callback,
496
538
                                                               gpointer             user_data,
497
539
                                                               GDestroyNotify       user_data_free_func);
 
540
GLIB_AVAILABLE_IN_ALL
498
541
void             g_dbus_connection_signal_unsubscribe         (GDBusConnection     *connection,
499
542
                                                               guint                subscription_id);
500
543
 
579
622
                                                     gboolean         incoming,
580
623
                                                     gpointer         user_data);
581
624
 
 
625
GLIB_AVAILABLE_IN_ALL
582
626
guint g_dbus_connection_add_filter (GDBusConnection            *connection,
583
627
                                    GDBusMessageFilterFunction  filter_function,
584
628
                                    gpointer                    user_data,
585
629
                                    GDestroyNotify              user_data_free_func);
586
630
 
 
631
GLIB_AVAILABLE_IN_ALL
587
632
void  g_dbus_connection_remove_filter (GDBusConnection    *connection,
588
633
                                       guint               filter_id);
589
634