1 /* 2 * Generated by gdbus-codegen 2.58.1 from org.xfce.Power.Manager.xml. DO NOT EDIT. 3 * 4 * The license of this code is the same as for the D-Bus interface description 5 * it was derived from. 6 */ 7 8 #ifndef __XFCE_POWER_MANAGER_DBUS_H__ 9 #define __XFCE_POWER_MANAGER_DBUS_H__ 10 11 #include <gio/gio.h> 12 13 G_BEGIN_DECLS 14 15 16 /* ------------------------------------------------------------------------ */ 17 /* Declarations for org.xfce.Power.Manager */ 18 19 #define XFPM_TYPE_POWER_MANAGER (xfpm_power_manager_get_type ()) 20 #define XFPM_POWER_MANAGER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), XFPM_TYPE_POWER_MANAGER, XfpmPowerManager)) 21 #define XFPM_IS_POWER_MANAGER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), XFPM_TYPE_POWER_MANAGER)) 22 #define XFPM_POWER_MANAGER_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), XFPM_TYPE_POWER_MANAGER, XfpmPowerManagerIface)) 23 24 struct _XfpmPowerManager; 25 typedef struct _XfpmPowerManager XfpmPowerManager; 26 typedef struct _XfpmPowerManagerIface XfpmPowerManagerIface; 27 28 struct _XfpmPowerManagerIface 29 { 30 GTypeInterface parent_iface; 31 32 gboolean (*handle_get_config) ( 33 XfpmPowerManager *object, 34 GDBusMethodInvocation *invocation); 35 36 gboolean (*handle_get_info) ( 37 XfpmPowerManager *object, 38 GDBusMethodInvocation *invocation); 39 40 gboolean (*handle_quit) ( 41 XfpmPowerManager *object, 42 GDBusMethodInvocation *invocation); 43 44 gboolean (*handle_restart) ( 45 XfpmPowerManager *object, 46 GDBusMethodInvocation *invocation); 47 48 }; 49 50 GType xfpm_power_manager_get_type (void) G_GNUC_CONST; 51 52 GDBusInterfaceInfo *xfpm_power_manager_interface_info (void); 53 guint xfpm_power_manager_override_properties (GObjectClass *klass, guint property_id_begin); 54 55 56 /* D-Bus method call completion functions: */ 57 void xfpm_power_manager_complete_quit ( 58 XfpmPowerManager *object, 59 GDBusMethodInvocation *invocation); 60 61 void xfpm_power_manager_complete_restart ( 62 XfpmPowerManager *object, 63 GDBusMethodInvocation *invocation); 64 65 void xfpm_power_manager_complete_get_config ( 66 XfpmPowerManager *object, 67 GDBusMethodInvocation *invocation, 68 GVariant *config); 69 70 void xfpm_power_manager_complete_get_info ( 71 XfpmPowerManager *object, 72 GDBusMethodInvocation *invocation, 73 const gchar *name, 74 const gchar *version, 75 const gchar *vendor); 76 77 78 79 /* D-Bus method calls: */ 80 void xfpm_power_manager_call_quit ( 81 XfpmPowerManager *proxy, 82 GCancellable *cancellable, 83 GAsyncReadyCallback callback, 84 gpointer user_data); 85 86 gboolean xfpm_power_manager_call_quit_finish ( 87 XfpmPowerManager *proxy, 88 GAsyncResult *res, 89 GError **error); 90 91 gboolean xfpm_power_manager_call_quit_sync ( 92 XfpmPowerManager *proxy, 93 GCancellable *cancellable, 94 GError **error); 95 96 void xfpm_power_manager_call_restart ( 97 XfpmPowerManager *proxy, 98 GCancellable *cancellable, 99 GAsyncReadyCallback callback, 100 gpointer user_data); 101 102 gboolean xfpm_power_manager_call_restart_finish ( 103 XfpmPowerManager *proxy, 104 GAsyncResult *res, 105 GError **error); 106 107 gboolean xfpm_power_manager_call_restart_sync ( 108 XfpmPowerManager *proxy, 109 GCancellable *cancellable, 110 GError **error); 111 112 void xfpm_power_manager_call_get_config ( 113 XfpmPowerManager *proxy, 114 GCancellable *cancellable, 115 GAsyncReadyCallback callback, 116 gpointer user_data); 117 118 gboolean xfpm_power_manager_call_get_config_finish ( 119 XfpmPowerManager *proxy, 120 GVariant **out_config, 121 GAsyncResult *res, 122 GError **error); 123 124 gboolean xfpm_power_manager_call_get_config_sync ( 125 XfpmPowerManager *proxy, 126 GVariant **out_config, 127 GCancellable *cancellable, 128 GError **error); 129 130 void xfpm_power_manager_call_get_info ( 131 XfpmPowerManager *proxy, 132 GCancellable *cancellable, 133 GAsyncReadyCallback callback, 134 gpointer user_data); 135 136 gboolean xfpm_power_manager_call_get_info_finish ( 137 XfpmPowerManager *proxy, 138 gchar **out_name, 139 gchar **out_version, 140 gchar **out_vendor, 141 GAsyncResult *res, 142 GError **error); 143 144 gboolean xfpm_power_manager_call_get_info_sync ( 145 XfpmPowerManager *proxy, 146 gchar **out_name, 147 gchar **out_version, 148 gchar **out_vendor, 149 GCancellable *cancellable, 150 GError **error); 151 152 153 154 /* ---- */ 155 156 #define XFPM_TYPE_POWER_MANAGER_PROXY (xfpm_power_manager_proxy_get_type ()) 157 #define XFPM_POWER_MANAGER_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), XFPM_TYPE_POWER_MANAGER_PROXY, XfpmPowerManagerProxy)) 158 #define XFPM_POWER_MANAGER_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), XFPM_TYPE_POWER_MANAGER_PROXY, XfpmPowerManagerProxyClass)) 159 #define XFPM_POWER_MANAGER_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), XFPM_TYPE_POWER_MANAGER_PROXY, XfpmPowerManagerProxyClass)) 160 #define XFPM_IS_POWER_MANAGER_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), XFPM_TYPE_POWER_MANAGER_PROXY)) 161 #define XFPM_IS_POWER_MANAGER_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), XFPM_TYPE_POWER_MANAGER_PROXY)) 162 163 typedef struct _XfpmPowerManagerProxy XfpmPowerManagerProxy; 164 typedef struct _XfpmPowerManagerProxyClass XfpmPowerManagerProxyClass; 165 typedef struct _XfpmPowerManagerProxyPrivate XfpmPowerManagerProxyPrivate; 166 167 struct _XfpmPowerManagerProxy 168 { 169 /*< private >*/ 170 GDBusProxy parent_instance; 171 XfpmPowerManagerProxyPrivate *priv; 172 }; 173 174 struct _XfpmPowerManagerProxyClass 175 { 176 GDBusProxyClass parent_class; 177 }; 178 179 GType xfpm_power_manager_proxy_get_type (void) G_GNUC_CONST; 180 181 #if GLIB_CHECK_VERSION(2, 44, 0) 182 G_DEFINE_AUTOPTR_CLEANUP_FUNC (XfpmPowerManagerProxy, g_object_unref) 183 #endif 184 185 void xfpm_power_manager_proxy_new ( 186 GDBusConnection *connection, 187 GDBusProxyFlags flags, 188 const gchar *name, 189 const gchar *object_path, 190 GCancellable *cancellable, 191 GAsyncReadyCallback callback, 192 gpointer user_data); 193 XfpmPowerManager *xfpm_power_manager_proxy_new_finish ( 194 GAsyncResult *res, 195 GError **error); 196 XfpmPowerManager *xfpm_power_manager_proxy_new_sync ( 197 GDBusConnection *connection, 198 GDBusProxyFlags flags, 199 const gchar *name, 200 const gchar *object_path, 201 GCancellable *cancellable, 202 GError **error); 203 204 void xfpm_power_manager_proxy_new_for_bus ( 205 GBusType bus_type, 206 GDBusProxyFlags flags, 207 const gchar *name, 208 const gchar *object_path, 209 GCancellable *cancellable, 210 GAsyncReadyCallback callback, 211 gpointer user_data); 212 XfpmPowerManager *xfpm_power_manager_proxy_new_for_bus_finish ( 213 GAsyncResult *res, 214 GError **error); 215 XfpmPowerManager *xfpm_power_manager_proxy_new_for_bus_sync ( 216 GBusType bus_type, 217 GDBusProxyFlags flags, 218 const gchar *name, 219 const gchar *object_path, 220 GCancellable *cancellable, 221 GError **error); 222 223 224 /* ---- */ 225 226 #define XFPM_TYPE_POWER_MANAGER_SKELETON (xfpm_power_manager_skeleton_get_type ()) 227 #define XFPM_POWER_MANAGER_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), XFPM_TYPE_POWER_MANAGER_SKELETON, XfpmPowerManagerSkeleton)) 228 #define XFPM_POWER_MANAGER_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), XFPM_TYPE_POWER_MANAGER_SKELETON, XfpmPowerManagerSkeletonClass)) 229 #define XFPM_POWER_MANAGER_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), XFPM_TYPE_POWER_MANAGER_SKELETON, XfpmPowerManagerSkeletonClass)) 230 #define XFPM_IS_POWER_MANAGER_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), XFPM_TYPE_POWER_MANAGER_SKELETON)) 231 #define XFPM_IS_POWER_MANAGER_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), XFPM_TYPE_POWER_MANAGER_SKELETON)) 232 233 typedef struct _XfpmPowerManagerSkeleton XfpmPowerManagerSkeleton; 234 typedef struct _XfpmPowerManagerSkeletonClass XfpmPowerManagerSkeletonClass; 235 typedef struct _XfpmPowerManagerSkeletonPrivate XfpmPowerManagerSkeletonPrivate; 236 237 struct _XfpmPowerManagerSkeleton 238 { 239 /*< private >*/ 240 GDBusInterfaceSkeleton parent_instance; 241 XfpmPowerManagerSkeletonPrivate *priv; 242 }; 243 244 struct _XfpmPowerManagerSkeletonClass 245 { 246 GDBusInterfaceSkeletonClass parent_class; 247 }; 248 249 GType xfpm_power_manager_skeleton_get_type (void) G_GNUC_CONST; 250 251 #if GLIB_CHECK_VERSION(2, 44, 0) 252 G_DEFINE_AUTOPTR_CLEANUP_FUNC (XfpmPowerManagerSkeleton, g_object_unref) 253 #endif 254 255 XfpmPowerManager *xfpm_power_manager_skeleton_new (void); 256 257 258 G_END_DECLS 259 260 #endif /* __XFCE_POWER_MANAGER_DBUS_H__ */ 261