1 /* 2 * This file is generated by gdbus-codegen, do not modify it. 3 * 4 * The license of this code is the same as for the D-Bus interface description 5 * it was derived from. Note that it links to GLib, so must comply with the 6 * LGPL linking clauses. 7 */ 8 9 #ifndef __UP_DAEMON_GENERATED_H__ 10 #define __UP_DAEMON_GENERATED_H__ 11 12 #include <gio/gio.h> 13 14 G_BEGIN_DECLS 15 16 17 /* ------------------------------------------------------------------------ */ 18 /* Declarations for org.freedesktop.UPower */ 19 20 #define UP_TYPE_EXPORTED_DAEMON (up_exported_daemon_get_type ()) 21 #define UP_EXPORTED_DAEMON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), UP_TYPE_EXPORTED_DAEMON, UpExportedDaemon)) 22 #define UP_IS_EXPORTED_DAEMON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), UP_TYPE_EXPORTED_DAEMON)) 23 #define UP_EXPORTED_DAEMON_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), UP_TYPE_EXPORTED_DAEMON, UpExportedDaemonIface)) 24 25 struct _UpExportedDaemon; 26 typedef struct _UpExportedDaemon UpExportedDaemon; 27 typedef struct _UpExportedDaemonIface UpExportedDaemonIface; 28 29 struct _UpExportedDaemonIface 30 { 31 GTypeInterface parent_iface; 32 33 34 35 gboolean (*handle_enumerate_devices) ( 36 UpExportedDaemon *object, 37 GDBusMethodInvocation *invocation); 38 39 gboolean (*handle_get_critical_action) ( 40 UpExportedDaemon *object, 41 GDBusMethodInvocation *invocation); 42 43 gboolean (*handle_get_display_device) ( 44 UpExportedDaemon *object, 45 GDBusMethodInvocation *invocation); 46 47 const gchar * (*get_daemon_version) (UpExportedDaemon *object); 48 49 gboolean (*get_lid_is_closed) (UpExportedDaemon *object); 50 51 gboolean (*get_lid_is_present) (UpExportedDaemon *object); 52 53 gboolean (*get_on_battery) (UpExportedDaemon *object); 54 55 void (*device_added) ( 56 UpExportedDaemon *object, 57 const gchar *arg_device); 58 59 void (*device_removed) ( 60 UpExportedDaemon *object, 61 const gchar *arg_device); 62 63 }; 64 65 GType up_exported_daemon_get_type (void) G_GNUC_CONST; 66 67 GDBusInterfaceInfo *up_exported_daemon_interface_info (void); 68 guint up_exported_daemon_override_properties (GObjectClass *klass, guint property_id_begin); 69 70 71 /* D-Bus method call completion functions: */ 72 void up_exported_daemon_complete_enumerate_devices ( 73 UpExportedDaemon *object, 74 GDBusMethodInvocation *invocation, 75 const gchar *const *devices); 76 77 void up_exported_daemon_complete_get_display_device ( 78 UpExportedDaemon *object, 79 GDBusMethodInvocation *invocation, 80 const gchar *device); 81 82 void up_exported_daemon_complete_get_critical_action ( 83 UpExportedDaemon *object, 84 GDBusMethodInvocation *invocation, 85 const gchar *action); 86 87 88 89 /* D-Bus signal emissions functions: */ 90 void up_exported_daemon_emit_device_added ( 91 UpExportedDaemon *object, 92 const gchar *arg_device); 93 94 void up_exported_daemon_emit_device_removed ( 95 UpExportedDaemon *object, 96 const gchar *arg_device); 97 98 99 100 /* D-Bus method calls: */ 101 void up_exported_daemon_call_enumerate_devices ( 102 UpExportedDaemon *proxy, 103 GCancellable *cancellable, 104 GAsyncReadyCallback callback, 105 gpointer user_data); 106 107 gboolean up_exported_daemon_call_enumerate_devices_finish ( 108 UpExportedDaemon *proxy, 109 gchar ***out_devices, 110 GAsyncResult *res, 111 GError **error); 112 113 gboolean up_exported_daemon_call_enumerate_devices_sync ( 114 UpExportedDaemon *proxy, 115 gchar ***out_devices, 116 GCancellable *cancellable, 117 GError **error); 118 119 void up_exported_daemon_call_get_display_device ( 120 UpExportedDaemon *proxy, 121 GCancellable *cancellable, 122 GAsyncReadyCallback callback, 123 gpointer user_data); 124 125 gboolean up_exported_daemon_call_get_display_device_finish ( 126 UpExportedDaemon *proxy, 127 gchar **out_device, 128 GAsyncResult *res, 129 GError **error); 130 131 gboolean up_exported_daemon_call_get_display_device_sync ( 132 UpExportedDaemon *proxy, 133 gchar **out_device, 134 GCancellable *cancellable, 135 GError **error); 136 137 void up_exported_daemon_call_get_critical_action ( 138 UpExportedDaemon *proxy, 139 GCancellable *cancellable, 140 GAsyncReadyCallback callback, 141 gpointer user_data); 142 143 gboolean up_exported_daemon_call_get_critical_action_finish ( 144 UpExportedDaemon *proxy, 145 gchar **out_action, 146 GAsyncResult *res, 147 GError **error); 148 149 gboolean up_exported_daemon_call_get_critical_action_sync ( 150 UpExportedDaemon *proxy, 151 gchar **out_action, 152 GCancellable *cancellable, 153 GError **error); 154 155 156 157 /* D-Bus property accessors: */ 158 const gchar *up_exported_daemon_get_daemon_version (UpExportedDaemon *object); 159 gchar *up_exported_daemon_dup_daemon_version (UpExportedDaemon *object); 160 void up_exported_daemon_set_daemon_version (UpExportedDaemon *object, const gchar *value); 161 162 gboolean up_exported_daemon_get_on_battery (UpExportedDaemon *object); 163 void up_exported_daemon_set_on_battery (UpExportedDaemon *object, gboolean value); 164 165 gboolean up_exported_daemon_get_lid_is_closed (UpExportedDaemon *object); 166 void up_exported_daemon_set_lid_is_closed (UpExportedDaemon *object, gboolean value); 167 168 gboolean up_exported_daemon_get_lid_is_present (UpExportedDaemon *object); 169 void up_exported_daemon_set_lid_is_present (UpExportedDaemon *object, gboolean value); 170 171 172 /* ---- */ 173 174 #define UP_TYPE_EXPORTED_DAEMON_PROXY (up_exported_daemon_proxy_get_type ()) 175 #define UP_EXPORTED_DAEMON_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), UP_TYPE_EXPORTED_DAEMON_PROXY, UpExportedDaemonProxy)) 176 #define UP_EXPORTED_DAEMON_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), UP_TYPE_EXPORTED_DAEMON_PROXY, UpExportedDaemonProxyClass)) 177 #define UP_EXPORTED_DAEMON_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), UP_TYPE_EXPORTED_DAEMON_PROXY, UpExportedDaemonProxyClass)) 178 #define UP_IS_EXPORTED_DAEMON_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), UP_TYPE_EXPORTED_DAEMON_PROXY)) 179 #define UP_IS_EXPORTED_DAEMON_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), UP_TYPE_EXPORTED_DAEMON_PROXY)) 180 181 typedef struct _UpExportedDaemonProxy UpExportedDaemonProxy; 182 typedef struct _UpExportedDaemonProxyClass UpExportedDaemonProxyClass; 183 typedef struct _UpExportedDaemonProxyPrivate UpExportedDaemonProxyPrivate; 184 185 struct _UpExportedDaemonProxy 186 { 187 /*< private >*/ 188 GDBusProxy parent_instance; 189 UpExportedDaemonProxyPrivate *priv; 190 }; 191 192 struct _UpExportedDaemonProxyClass 193 { 194 GDBusProxyClass parent_class; 195 }; 196 197 GType up_exported_daemon_proxy_get_type (void) G_GNUC_CONST; 198 199 #if GLIB_CHECK_VERSION(2, 44, 0) 200 G_DEFINE_AUTOPTR_CLEANUP_FUNC (UpExportedDaemonProxy, g_object_unref) 201 #endif 202 203 void up_exported_daemon_proxy_new ( 204 GDBusConnection *connection, 205 GDBusProxyFlags flags, 206 const gchar *name, 207 const gchar *object_path, 208 GCancellable *cancellable, 209 GAsyncReadyCallback callback, 210 gpointer user_data); 211 UpExportedDaemon *up_exported_daemon_proxy_new_finish ( 212 GAsyncResult *res, 213 GError **error); 214 UpExportedDaemon *up_exported_daemon_proxy_new_sync ( 215 GDBusConnection *connection, 216 GDBusProxyFlags flags, 217 const gchar *name, 218 const gchar *object_path, 219 GCancellable *cancellable, 220 GError **error); 221 222 void up_exported_daemon_proxy_new_for_bus ( 223 GBusType bus_type, 224 GDBusProxyFlags flags, 225 const gchar *name, 226 const gchar *object_path, 227 GCancellable *cancellable, 228 GAsyncReadyCallback callback, 229 gpointer user_data); 230 UpExportedDaemon *up_exported_daemon_proxy_new_for_bus_finish ( 231 GAsyncResult *res, 232 GError **error); 233 UpExportedDaemon *up_exported_daemon_proxy_new_for_bus_sync ( 234 GBusType bus_type, 235 GDBusProxyFlags flags, 236 const gchar *name, 237 const gchar *object_path, 238 GCancellable *cancellable, 239 GError **error); 240 241 242 /* ---- */ 243 244 #define UP_TYPE_EXPORTED_DAEMON_SKELETON (up_exported_daemon_skeleton_get_type ()) 245 #define UP_EXPORTED_DAEMON_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), UP_TYPE_EXPORTED_DAEMON_SKELETON, UpExportedDaemonSkeleton)) 246 #define UP_EXPORTED_DAEMON_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), UP_TYPE_EXPORTED_DAEMON_SKELETON, UpExportedDaemonSkeletonClass)) 247 #define UP_EXPORTED_DAEMON_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), UP_TYPE_EXPORTED_DAEMON_SKELETON, UpExportedDaemonSkeletonClass)) 248 #define UP_IS_EXPORTED_DAEMON_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), UP_TYPE_EXPORTED_DAEMON_SKELETON)) 249 #define UP_IS_EXPORTED_DAEMON_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), UP_TYPE_EXPORTED_DAEMON_SKELETON)) 250 251 typedef struct _UpExportedDaemonSkeleton UpExportedDaemonSkeleton; 252 typedef struct _UpExportedDaemonSkeletonClass UpExportedDaemonSkeletonClass; 253 typedef struct _UpExportedDaemonSkeletonPrivate UpExportedDaemonSkeletonPrivate; 254 255 struct _UpExportedDaemonSkeleton 256 { 257 /*< private >*/ 258 GDBusInterfaceSkeleton parent_instance; 259 UpExportedDaemonSkeletonPrivate *priv; 260 }; 261 262 struct _UpExportedDaemonSkeletonClass 263 { 264 GDBusInterfaceSkeletonClass parent_class; 265 }; 266 267 GType up_exported_daemon_skeleton_get_type (void) G_GNUC_CONST; 268 269 #if GLIB_CHECK_VERSION(2, 44, 0) 270 G_DEFINE_AUTOPTR_CLEANUP_FUNC (UpExportedDaemonSkeleton, g_object_unref) 271 #endif 272 273 UpExportedDaemon *up_exported_daemon_skeleton_new (void); 274 275 276 G_END_DECLS 277 278 #endif /* __UP_DAEMON_GENERATED_H__ */ 279