File indexing completed on 2025-01-18 09:59:55
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023 #ifndef __G_DBUS_PROXY_H__
0024 #define __G_DBUS_PROXY_H__
0025
0026 #if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
0027 #error "Only <gio/gio.h> can be included directly."
0028 #endif
0029
0030 #include <gio/giotypes.h>
0031 #include <gio/gdbusintrospection.h>
0032
0033 G_BEGIN_DECLS
0034
0035 #define G_TYPE_DBUS_PROXY (g_dbus_proxy_get_type ())
0036 #define G_DBUS_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_DBUS_PROXY, GDBusProxy))
0037 #define G_DBUS_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), G_TYPE_DBUS_PROXY, GDBusProxyClass))
0038 #define G_DBUS_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_DBUS_PROXY, GDBusProxyClass))
0039 #define G_IS_DBUS_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_DBUS_PROXY))
0040 #define G_IS_DBUS_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_DBUS_PROXY))
0041
0042 typedef struct _GDBusProxyClass GDBusProxyClass;
0043 typedef struct _GDBusProxyPrivate GDBusProxyPrivate;
0044
0045 struct _GDBusProxy
0046 {
0047
0048 GObject parent_instance;
0049 GDBusProxyPrivate *priv;
0050 };
0051
0052
0053
0054
0055
0056
0057
0058
0059
0060
0061 struct _GDBusProxyClass
0062 {
0063
0064 GObjectClass parent_class;
0065
0066
0067
0068 void (*g_properties_changed) (GDBusProxy *proxy,
0069 GVariant *changed_properties,
0070 const gchar* const *invalidated_properties);
0071 void (*g_signal) (GDBusProxy *proxy,
0072 const gchar *sender_name,
0073 const gchar *signal_name,
0074 GVariant *parameters);
0075
0076
0077
0078 gpointer padding[32];
0079 };
0080
0081 GIO_AVAILABLE_IN_ALL
0082 GType g_dbus_proxy_get_type (void) G_GNUC_CONST;
0083 GIO_AVAILABLE_IN_ALL
0084 void g_dbus_proxy_new (GDBusConnection *connection,
0085 GDBusProxyFlags flags,
0086 GDBusInterfaceInfo *info,
0087 const gchar *name,
0088 const gchar *object_path,
0089 const gchar *interface_name,
0090 GCancellable *cancellable,
0091 GAsyncReadyCallback callback,
0092 gpointer user_data);
0093 GIO_AVAILABLE_IN_ALL
0094 GDBusProxy *g_dbus_proxy_new_finish (GAsyncResult *res,
0095 GError **error);
0096 GIO_AVAILABLE_IN_ALL
0097 GDBusProxy *g_dbus_proxy_new_sync (GDBusConnection *connection,
0098 GDBusProxyFlags flags,
0099 GDBusInterfaceInfo *info,
0100 const gchar *name,
0101 const gchar *object_path,
0102 const gchar *interface_name,
0103 GCancellable *cancellable,
0104 GError **error);
0105 GIO_AVAILABLE_IN_ALL
0106 void g_dbus_proxy_new_for_bus (GBusType bus_type,
0107 GDBusProxyFlags flags,
0108 GDBusInterfaceInfo *info,
0109 const gchar *name,
0110 const gchar *object_path,
0111 const gchar *interface_name,
0112 GCancellable *cancellable,
0113 GAsyncReadyCallback callback,
0114 gpointer user_data);
0115 GIO_AVAILABLE_IN_ALL
0116 GDBusProxy *g_dbus_proxy_new_for_bus_finish (GAsyncResult *res,
0117 GError **error);
0118 GIO_AVAILABLE_IN_ALL
0119 GDBusProxy *g_dbus_proxy_new_for_bus_sync (GBusType bus_type,
0120 GDBusProxyFlags flags,
0121 GDBusInterfaceInfo *info,
0122 const gchar *name,
0123 const gchar *object_path,
0124 const gchar *interface_name,
0125 GCancellable *cancellable,
0126 GError **error);
0127 GIO_AVAILABLE_IN_ALL
0128 GDBusConnection *g_dbus_proxy_get_connection (GDBusProxy *proxy);
0129 GIO_AVAILABLE_IN_ALL
0130 GDBusProxyFlags g_dbus_proxy_get_flags (GDBusProxy *proxy);
0131 GIO_AVAILABLE_IN_ALL
0132 const gchar *g_dbus_proxy_get_name (GDBusProxy *proxy);
0133 GIO_AVAILABLE_IN_ALL
0134 gchar *g_dbus_proxy_get_name_owner (GDBusProxy *proxy);
0135 GIO_AVAILABLE_IN_ALL
0136 const gchar *g_dbus_proxy_get_object_path (GDBusProxy *proxy);
0137 GIO_AVAILABLE_IN_ALL
0138 const gchar *g_dbus_proxy_get_interface_name (GDBusProxy *proxy);
0139 GIO_AVAILABLE_IN_ALL
0140 gint g_dbus_proxy_get_default_timeout (GDBusProxy *proxy);
0141 GIO_AVAILABLE_IN_ALL
0142 void g_dbus_proxy_set_default_timeout (GDBusProxy *proxy,
0143 gint timeout_msec);
0144 GIO_AVAILABLE_IN_ALL
0145 GDBusInterfaceInfo *g_dbus_proxy_get_interface_info (GDBusProxy *proxy);
0146 GIO_AVAILABLE_IN_ALL
0147 void g_dbus_proxy_set_interface_info (GDBusProxy *proxy,
0148 GDBusInterfaceInfo *info);
0149 GIO_AVAILABLE_IN_ALL
0150 GVariant *g_dbus_proxy_get_cached_property (GDBusProxy *proxy,
0151 const gchar *property_name);
0152 GIO_AVAILABLE_IN_ALL
0153 void g_dbus_proxy_set_cached_property (GDBusProxy *proxy,
0154 const gchar *property_name,
0155 GVariant *value);
0156 GIO_AVAILABLE_IN_ALL
0157 gchar **g_dbus_proxy_get_cached_property_names (GDBusProxy *proxy);
0158 GIO_AVAILABLE_IN_ALL
0159 void g_dbus_proxy_call (GDBusProxy *proxy,
0160 const gchar *method_name,
0161 GVariant *parameters,
0162 GDBusCallFlags flags,
0163 gint timeout_msec,
0164 GCancellable *cancellable,
0165 GAsyncReadyCallback callback,
0166 gpointer user_data);
0167 GIO_AVAILABLE_IN_ALL
0168 GVariant *g_dbus_proxy_call_finish (GDBusProxy *proxy,
0169 GAsyncResult *res,
0170 GError **error);
0171 GIO_AVAILABLE_IN_ALL
0172 GVariant *g_dbus_proxy_call_sync (GDBusProxy *proxy,
0173 const gchar *method_name,
0174 GVariant *parameters,
0175 GDBusCallFlags flags,
0176 gint timeout_msec,
0177 GCancellable *cancellable,
0178 GError **error);
0179
0180 #ifdef G_OS_UNIX
0181
0182 GIO_AVAILABLE_IN_ALL
0183 void g_dbus_proxy_call_with_unix_fd_list (GDBusProxy *proxy,
0184 const gchar *method_name,
0185 GVariant *parameters,
0186 GDBusCallFlags flags,
0187 gint timeout_msec,
0188 GUnixFDList *fd_list,
0189 GCancellable *cancellable,
0190 GAsyncReadyCallback callback,
0191 gpointer user_data);
0192 GIO_AVAILABLE_IN_ALL
0193 GVariant *g_dbus_proxy_call_with_unix_fd_list_finish (GDBusProxy *proxy,
0194 GUnixFDList **out_fd_list,
0195 GAsyncResult *res,
0196 GError **error);
0197 GIO_AVAILABLE_IN_ALL
0198 GVariant *g_dbus_proxy_call_with_unix_fd_list_sync (GDBusProxy *proxy,
0199 const gchar *method_name,
0200 GVariant *parameters,
0201 GDBusCallFlags flags,
0202 gint timeout_msec,
0203 GUnixFDList *fd_list,
0204 GUnixFDList **out_fd_list,
0205 GCancellable *cancellable,
0206 GError **error);
0207
0208 #endif
0209
0210 G_END_DECLS
0211
0212 #endif