Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gdbusproxy.h
Go to the documentation of this file.
1/* GDBus - GLib D-Bus Library
2 *
3 * Copyright (C) 2008-2010 Red Hat, Inc.
4 *
5 * SPDX-License-Identifier: LGPL-2.1-or-later
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
11 *
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General
18 * Public License along with this library; if not, see <http://www.gnu.org/licenses/>.
19 *
20 * Author: David Zeuthen <davidz@redhat.com>
21 */
22
23#ifndef __G_DBUS_PROXY_H__
24#define __G_DBUS_PROXY_H__
25
26#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
27#error "Only <gio/gio.h> can be included directly."
28#endif
29
30#include <gio/giotypes.h>
32
34
35#define G_TYPE_DBUS_PROXY (g_dbus_proxy_get_type ())
36#define G_DBUS_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_DBUS_PROXY, GDBusProxy))
37#define G_DBUS_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), G_TYPE_DBUS_PROXY, GDBusProxyClass))
38#define G_DBUS_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_DBUS_PROXY, GDBusProxyClass))
39#define G_IS_DBUS_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_DBUS_PROXY))
40#define G_IS_DBUS_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_DBUS_PROXY))
41
43typedef struct _GDBusProxyPrivate GDBusProxyPrivate;
44
46{
47 /*< private >*/
50};
51
52/**
53 * GDBusProxyClass:
54 * @g_properties_changed: Signal class handler for the #GDBusProxy::g-properties-changed signal.
55 * @g_signal: Signal class handler for the #GDBusProxy::g-signal signal.
56 *
57 * Class structure for #GDBusProxy.
58 *
59 * Since: 2.26
60 */
62{
63 /*< private >*/
65
66 /*< public >*/
67 /* Signals */
69 GVariant *changed_properties,
70 const gchar* const *invalidated_properties);
71 void (*g_signal) (GDBusProxy *proxy,
72 const gchar *sender_name,
73 const gchar *signal_name,
74 GVariant *parameters);
75
76 /*< private >*/
77 /* Padding for future expansion */
79};
80
85 GDBusProxyFlags flags,
87 const gchar *name,
88 const gchar *object_path,
89 const gchar *interface_name,
90 GCancellable *cancellable,
91 GAsyncReadyCallback callback,
92 gpointer user_data);
95 GError **error);
98 GDBusProxyFlags flags,
100 const gchar *name,
101 const gchar *object_path,
102 const gchar *interface_name,
103 GCancellable *cancellable,
104 GError **error);
107 GDBusProxyFlags flags,
108 GDBusInterfaceInfo *info,
109 const gchar *name,
110 const gchar *object_path,
111 const gchar *interface_name,
112 GCancellable *cancellable,
113 GAsyncReadyCallback callback,
114 gpointer user_data);
117 GError **error);
120 GDBusProxyFlags flags,
121 GDBusInterfaceInfo *info,
122 const gchar *name,
123 const gchar *object_path,
124 const gchar *interface_name,
125 GCancellable *cancellable,
126 GError **error);
143 gint timeout_msec);
148 GDBusInterfaceInfo *info);
151 const gchar *property_name);
154 const gchar *property_name,
155 GVariant *value);
160 const gchar *method_name,
161 GVariant *parameters,
162 GDBusCallFlags flags,
163 gint timeout_msec,
164 GCancellable *cancellable,
165 GAsyncReadyCallback callback,
166 gpointer user_data);
169 GAsyncResult *res,
170 GError **error);
173 const gchar *method_name,
174 GVariant *parameters,
175 GDBusCallFlags flags,
176 gint timeout_msec,
177 GCancellable *cancellable,
178 GError **error);
179
180#ifdef G_OS_UNIX
181
184 const gchar *method_name,
185 GVariant *parameters,
186 GDBusCallFlags flags,
187 gint timeout_msec,
188 GUnixFDList *fd_list,
189 GCancellable *cancellable,
190 GAsyncReadyCallback callback,
191 gpointer user_data);
194 GUnixFDList **out_fd_list,
195 GAsyncResult *res,
196 GError **error);
199 const gchar *method_name,
200 GVariant *parameters,
201 GDBusCallFlags flags,
202 gint timeout_msec,
203 GUnixFDList *fd_list,
204 GUnixFDList **out_fd_list,
205 GCancellable *cancellable,
206 GError **error);
207
208#endif /* G_OS_UNIX */
209
211
212#endif /* __G_DBUS_PROXY_H__ */
GIO_AVAILABLE_IN_ALL const gchar * g_dbus_proxy_get_interface_name(GDBusProxy *proxy)
struct _GDBusProxyPrivate GDBusProxyPrivate
Definition gdbusproxy.h:43
GIO_AVAILABLE_IN_ALL GVariant * g_dbus_proxy_call_finish(GDBusProxy *proxy, GAsyncResult *res, GError **error)
GIO_AVAILABLE_IN_ALL const gchar * g_dbus_proxy_get_name(GDBusProxy *proxy)
GIO_AVAILABLE_IN_ALL void g_dbus_proxy_new(GDBusConnection *connection, GDBusProxyFlags flags, GDBusInterfaceInfo *info, const gchar *name, const gchar *object_path, const gchar *interface_name, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
GIO_AVAILABLE_IN_ALL void g_dbus_proxy_set_cached_property(GDBusProxy *proxy, const gchar *property_name, GVariant *value)
GIO_AVAILABLE_IN_ALL void g_dbus_proxy_set_default_timeout(GDBusProxy *proxy, gint timeout_msec)
GIO_AVAILABLE_IN_ALL gchar * g_dbus_proxy_get_name_owner(GDBusProxy *proxy)
GIO_AVAILABLE_IN_ALL GDBusProxy * g_dbus_proxy_new_for_bus_sync(GBusType bus_type, GDBusProxyFlags flags, GDBusInterfaceInfo *info, const gchar *name, const gchar *object_path, const gchar *interface_name, GCancellable *cancellable, GError **error)
GIO_AVAILABLE_IN_ALL GDBusProxy * g_dbus_proxy_new_sync(GDBusConnection *connection, GDBusProxyFlags flags, GDBusInterfaceInfo *info, const gchar *name, const gchar *object_path, const gchar *interface_name, GCancellable *cancellable, GError **error)
GIO_AVAILABLE_IN_ALL void g_dbus_proxy_call_with_unix_fd_list(GDBusProxy *proxy, const gchar *method_name, GVariant *parameters, GDBusCallFlags flags, gint timeout_msec, GUnixFDList *fd_list, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
GIO_AVAILABLE_IN_ALL void g_dbus_proxy_call(GDBusProxy *proxy, const gchar *method_name, GVariant *parameters, GDBusCallFlags flags, gint timeout_msec, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
GIO_AVAILABLE_IN_ALL GType g_dbus_proxy_get_type(void) G_GNUC_CONST
GIO_AVAILABLE_IN_ALL GVariant * g_dbus_proxy_get_cached_property(GDBusProxy *proxy, const gchar *property_name)
GIO_AVAILABLE_IN_ALL GDBusConnection * g_dbus_proxy_get_connection(GDBusProxy *proxy)
GIO_AVAILABLE_IN_ALL GDBusInterfaceInfo * g_dbus_proxy_get_interface_info(GDBusProxy *proxy)
GIO_AVAILABLE_IN_ALL GVariant * g_dbus_proxy_call_with_unix_fd_list_finish(GDBusProxy *proxy, GUnixFDList **out_fd_list, GAsyncResult *res, GError **error)
GIO_AVAILABLE_IN_ALL GVariant * g_dbus_proxy_call_with_unix_fd_list_sync(GDBusProxy *proxy, const gchar *method_name, GVariant *parameters, GDBusCallFlags flags, gint timeout_msec, GUnixFDList *fd_list, GUnixFDList **out_fd_list, GCancellable *cancellable, GError **error)
GIO_AVAILABLE_IN_ALL gint g_dbus_proxy_get_default_timeout(GDBusProxy *proxy)
GIO_AVAILABLE_IN_ALL void g_dbus_proxy_new_for_bus(GBusType bus_type, GDBusProxyFlags flags, GDBusInterfaceInfo *info, const gchar *name, const gchar *object_path, const gchar *interface_name, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data)
GIO_AVAILABLE_IN_ALL void g_dbus_proxy_set_interface_info(GDBusProxy *proxy, GDBusInterfaceInfo *info)
GIO_AVAILABLE_IN_ALL const gchar * g_dbus_proxy_get_object_path(GDBusProxy *proxy)
GIO_AVAILABLE_IN_ALL gchar ** g_dbus_proxy_get_cached_property_names(GDBusProxy *proxy)
GIO_AVAILABLE_IN_ALL GDBusProxy * g_dbus_proxy_new_for_bus_finish(GAsyncResult *res, GError **error)
GIO_AVAILABLE_IN_ALL GDBusProxy * g_dbus_proxy_new_finish(GAsyncResult *res, GError **error)
GIO_AVAILABLE_IN_ALL GDBusProxyFlags g_dbus_proxy_get_flags(GDBusProxy *proxy)
GIO_AVAILABLE_IN_ALL GVariant * g_dbus_proxy_call_sync(GDBusProxy *proxy, const gchar *method_name, GVariant *parameters, GDBusCallFlags flags, gint timeout_msec, GCancellable *cancellable, GError **error)
#define GIO_AVAILABLE_IN_ALL
GDBusProxyFlags
Definition gioenums.h:1046
GDBusCallFlags
Definition gioenums.h:1278
GBusType
Definition gioenums.h:977
struct _GDBusConnection GDBusConnection
Definition giotypes.h:468
struct _GAsyncResult GAsyncResult
Definition giotypes.h:36
void(* GAsyncReadyCallback)(GObject *source_object, GAsyncResult *res, gpointer data)
Definition giotypes.h:190
#define G_END_DECLS
Definition gmacros.h:910
#define G_BEGIN_DECLS
Definition gmacros.h:909
#define G_GNUC_CONST
Definition gmacros.h:637
gsize GType
Definition gtype.h:427
G_BEGIN_DECLS typedef char gchar
Definition gtypes.h:52
void * gpointer
Definition gtypes.h:109
int gint
Definition gtypes.h:55
typedefG_BEGIN_DECLS struct _GVariant GVariant
Definition gvariant.h:36
const char * name
Definition lsqlite3.c:2154
int value
Definition lsqlite3.c:2155
static void error(LoadState *S, const char *why)
void(* g_properties_changed)(GDBusProxy *proxy, GVariant *changed_properties, const gchar *const *invalidated_properties)
Definition gdbusproxy.h:68
void(* g_signal)(GDBusProxy *proxy, const gchar *sender_name, const gchar *signal_name, GVariant *parameters)
Definition gdbusproxy.h:71
gpointer padding[32]
Definition gdbusproxy.h:78
GObjectClass parent_class
Definition gdbusproxy.h:64
GObject parent_instance
Definition gdbusproxy.h:48
GDBusProxyPrivate * priv
Definition gdbusproxy.h:49