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 __ORG_GNOME_IDENTITY_H__ 10 #define __ORG_GNOME_IDENTITY_H__ 11 12 #include <gio/gio.h> 13 14 G_BEGIN_DECLS 15 16 17 /* ------------------------------------------------------------------------ */ 18 /* Declarations for org.gnome.Identity.Manager */ 19 20 #define GOA_IDENTITY_SERVICE_TYPE_MANAGER (goa_identity_service_manager_get_type ()) 21 #define GOA_IDENTITY_SERVICE_MANAGER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GOA_IDENTITY_SERVICE_TYPE_MANAGER, GoaIdentityServiceManager)) 22 #define GOA_IDENTITY_SERVICE_IS_MANAGER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GOA_IDENTITY_SERVICE_TYPE_MANAGER)) 23 #define GOA_IDENTITY_SERVICE_MANAGER_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), GOA_IDENTITY_SERVICE_TYPE_MANAGER, GoaIdentityServiceManagerIface)) 24 25 struct _GoaIdentityServiceManager; 26 typedef struct _GoaIdentityServiceManager GoaIdentityServiceManager; 27 typedef struct _GoaIdentityServiceManagerIface GoaIdentityServiceManagerIface; 28 29 struct _GoaIdentityServiceManagerIface 30 { 31 GTypeInterface parent_iface; 32 33 gboolean (*handle_exchange_secret_keys) ( 34 GoaIdentityServiceManager *object, 35 GDBusMethodInvocation *invocation, 36 const gchar *arg_identifier, 37 const gchar *arg_input_key); 38 39 gboolean (*handle_sign_in) ( 40 GoaIdentityServiceManager *object, 41 GDBusMethodInvocation *invocation, 42 const gchar *arg_identifier, 43 GVariant *arg_details); 44 45 gboolean (*handle_sign_out) ( 46 GoaIdentityServiceManager *object, 47 GDBusMethodInvocation *invocation, 48 const gchar *arg_identity); 49 50 }; 51 52 GType goa_identity_service_manager_get_type (void) G_GNUC_CONST; 53 54 GDBusInterfaceInfo *goa_identity_service_manager_interface_info (void); 55 guint goa_identity_service_manager_override_properties (GObjectClass *klass, guint property_id_begin); 56 57 58 /* D-Bus method call completion functions: */ 59 void goa_identity_service_manager_complete_exchange_secret_keys ( 60 GoaIdentityServiceManager *object, 61 GDBusMethodInvocation *invocation, 62 const gchar *output_key); 63 64 void goa_identity_service_manager_complete_sign_in ( 65 GoaIdentityServiceManager *object, 66 GDBusMethodInvocation *invocation, 67 const gchar *identity_object_path); 68 69 void goa_identity_service_manager_complete_sign_out ( 70 GoaIdentityServiceManager *object, 71 GDBusMethodInvocation *invocation); 72 73 74 75 /* D-Bus method calls: */ 76 void goa_identity_service_manager_call_exchange_secret_keys ( 77 GoaIdentityServiceManager *proxy, 78 const gchar *arg_identifier, 79 const gchar *arg_input_key, 80 GCancellable *cancellable, 81 GAsyncReadyCallback callback, 82 gpointer user_data); 83 84 gboolean goa_identity_service_manager_call_exchange_secret_keys_finish ( 85 GoaIdentityServiceManager *proxy, 86 gchar **out_output_key, 87 GAsyncResult *res, 88 GError **error); 89 90 gboolean goa_identity_service_manager_call_exchange_secret_keys_sync ( 91 GoaIdentityServiceManager *proxy, 92 const gchar *arg_identifier, 93 const gchar *arg_input_key, 94 gchar **out_output_key, 95 GCancellable *cancellable, 96 GError **error); 97 98 void goa_identity_service_manager_call_sign_in ( 99 GoaIdentityServiceManager *proxy, 100 const gchar *arg_identifier, 101 GVariant *arg_details, 102 GCancellable *cancellable, 103 GAsyncReadyCallback callback, 104 gpointer user_data); 105 106 gboolean goa_identity_service_manager_call_sign_in_finish ( 107 GoaIdentityServiceManager *proxy, 108 gchar **out_identity_object_path, 109 GAsyncResult *res, 110 GError **error); 111 112 gboolean goa_identity_service_manager_call_sign_in_sync ( 113 GoaIdentityServiceManager *proxy, 114 const gchar *arg_identifier, 115 GVariant *arg_details, 116 gchar **out_identity_object_path, 117 GCancellable *cancellable, 118 GError **error); 119 120 void goa_identity_service_manager_call_sign_out ( 121 GoaIdentityServiceManager *proxy, 122 const gchar *arg_identity, 123 GCancellable *cancellable, 124 GAsyncReadyCallback callback, 125 gpointer user_data); 126 127 gboolean goa_identity_service_manager_call_sign_out_finish ( 128 GoaIdentityServiceManager *proxy, 129 GAsyncResult *res, 130 GError **error); 131 132 gboolean goa_identity_service_manager_call_sign_out_sync ( 133 GoaIdentityServiceManager *proxy, 134 const gchar *arg_identity, 135 GCancellable *cancellable, 136 GError **error); 137 138 139 140 /* ---- */ 141 142 #define GOA_IDENTITY_SERVICE_TYPE_MANAGER_PROXY (goa_identity_service_manager_proxy_get_type ()) 143 #define GOA_IDENTITY_SERVICE_MANAGER_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GOA_IDENTITY_SERVICE_TYPE_MANAGER_PROXY, GoaIdentityServiceManagerProxy)) 144 #define GOA_IDENTITY_SERVICE_MANAGER_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), GOA_IDENTITY_SERVICE_TYPE_MANAGER_PROXY, GoaIdentityServiceManagerProxyClass)) 145 #define GOA_IDENTITY_SERVICE_MANAGER_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GOA_IDENTITY_SERVICE_TYPE_MANAGER_PROXY, GoaIdentityServiceManagerProxyClass)) 146 #define GOA_IDENTITY_SERVICE_IS_MANAGER_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GOA_IDENTITY_SERVICE_TYPE_MANAGER_PROXY)) 147 #define GOA_IDENTITY_SERVICE_IS_MANAGER_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GOA_IDENTITY_SERVICE_TYPE_MANAGER_PROXY)) 148 149 typedef struct _GoaIdentityServiceManagerProxy GoaIdentityServiceManagerProxy; 150 typedef struct _GoaIdentityServiceManagerProxyClass GoaIdentityServiceManagerProxyClass; 151 typedef struct _GoaIdentityServiceManagerProxyPrivate GoaIdentityServiceManagerProxyPrivate; 152 153 struct _GoaIdentityServiceManagerProxy 154 { 155 /*< private >*/ 156 GDBusProxy parent_instance; 157 GoaIdentityServiceManagerProxyPrivate *priv; 158 }; 159 160 struct _GoaIdentityServiceManagerProxyClass 161 { 162 GDBusProxyClass parent_class; 163 }; 164 165 GType goa_identity_service_manager_proxy_get_type (void) G_GNUC_CONST; 166 167 #if GLIB_CHECK_VERSION(2, 44, 0) 168 G_DEFINE_AUTOPTR_CLEANUP_FUNC (GoaIdentityServiceManagerProxy, g_object_unref) 169 #endif 170 171 void goa_identity_service_manager_proxy_new ( 172 GDBusConnection *connection, 173 GDBusProxyFlags flags, 174 const gchar *name, 175 const gchar *object_path, 176 GCancellable *cancellable, 177 GAsyncReadyCallback callback, 178 gpointer user_data); 179 GoaIdentityServiceManager *goa_identity_service_manager_proxy_new_finish ( 180 GAsyncResult *res, 181 GError **error); 182 GoaIdentityServiceManager *goa_identity_service_manager_proxy_new_sync ( 183 GDBusConnection *connection, 184 GDBusProxyFlags flags, 185 const gchar *name, 186 const gchar *object_path, 187 GCancellable *cancellable, 188 GError **error); 189 190 void goa_identity_service_manager_proxy_new_for_bus ( 191 GBusType bus_type, 192 GDBusProxyFlags flags, 193 const gchar *name, 194 const gchar *object_path, 195 GCancellable *cancellable, 196 GAsyncReadyCallback callback, 197 gpointer user_data); 198 GoaIdentityServiceManager *goa_identity_service_manager_proxy_new_for_bus_finish ( 199 GAsyncResult *res, 200 GError **error); 201 GoaIdentityServiceManager *goa_identity_service_manager_proxy_new_for_bus_sync ( 202 GBusType bus_type, 203 GDBusProxyFlags flags, 204 const gchar *name, 205 const gchar *object_path, 206 GCancellable *cancellable, 207 GError **error); 208 209 210 /* ---- */ 211 212 #define GOA_IDENTITY_SERVICE_TYPE_MANAGER_SKELETON (goa_identity_service_manager_skeleton_get_type ()) 213 #define GOA_IDENTITY_SERVICE_MANAGER_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GOA_IDENTITY_SERVICE_TYPE_MANAGER_SKELETON, GoaIdentityServiceManagerSkeleton)) 214 #define GOA_IDENTITY_SERVICE_MANAGER_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), GOA_IDENTITY_SERVICE_TYPE_MANAGER_SKELETON, GoaIdentityServiceManagerSkeletonClass)) 215 #define GOA_IDENTITY_SERVICE_MANAGER_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GOA_IDENTITY_SERVICE_TYPE_MANAGER_SKELETON, GoaIdentityServiceManagerSkeletonClass)) 216 #define GOA_IDENTITY_SERVICE_IS_MANAGER_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GOA_IDENTITY_SERVICE_TYPE_MANAGER_SKELETON)) 217 #define GOA_IDENTITY_SERVICE_IS_MANAGER_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GOA_IDENTITY_SERVICE_TYPE_MANAGER_SKELETON)) 218 219 typedef struct _GoaIdentityServiceManagerSkeleton GoaIdentityServiceManagerSkeleton; 220 typedef struct _GoaIdentityServiceManagerSkeletonClass GoaIdentityServiceManagerSkeletonClass; 221 typedef struct _GoaIdentityServiceManagerSkeletonPrivate GoaIdentityServiceManagerSkeletonPrivate; 222 223 struct _GoaIdentityServiceManagerSkeleton 224 { 225 /*< private >*/ 226 GDBusInterfaceSkeleton parent_instance; 227 GoaIdentityServiceManagerSkeletonPrivate *priv; 228 }; 229 230 struct _GoaIdentityServiceManagerSkeletonClass 231 { 232 GDBusInterfaceSkeletonClass parent_class; 233 }; 234 235 GType goa_identity_service_manager_skeleton_get_type (void) G_GNUC_CONST; 236 237 #if GLIB_CHECK_VERSION(2, 44, 0) 238 G_DEFINE_AUTOPTR_CLEANUP_FUNC (GoaIdentityServiceManagerSkeleton, g_object_unref) 239 #endif 240 241 GoaIdentityServiceManager *goa_identity_service_manager_skeleton_new (void); 242 243 244 /* ------------------------------------------------------------------------ */ 245 /* Declarations for org.gnome.Identity */ 246 247 #define GOA_IDENTITY_SERVICE_TYPE_IDENTITY (goa_identity_service_identity_get_type ()) 248 #define GOA_IDENTITY_SERVICE_IDENTITY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GOA_IDENTITY_SERVICE_TYPE_IDENTITY, GoaIdentityServiceIdentity)) 249 #define GOA_IDENTITY_SERVICE_IS_IDENTITY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GOA_IDENTITY_SERVICE_TYPE_IDENTITY)) 250 #define GOA_IDENTITY_SERVICE_IDENTITY_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), GOA_IDENTITY_SERVICE_TYPE_IDENTITY, GoaIdentityServiceIdentityIface)) 251 252 struct _GoaIdentityServiceIdentity; 253 typedef struct _GoaIdentityServiceIdentity GoaIdentityServiceIdentity; 254 typedef struct _GoaIdentityServiceIdentityIface GoaIdentityServiceIdentityIface; 255 256 struct _GoaIdentityServiceIdentityIface 257 { 258 GTypeInterface parent_iface; 259 260 gint64 (*get_expiration_timestamp) (GoaIdentityServiceIdentity *object); 261 262 const gchar * (*get_identifier) (GoaIdentityServiceIdentity *object); 263 264 gboolean (*get_is_signed_in) (GoaIdentityServiceIdentity *object); 265 266 }; 267 268 GType goa_identity_service_identity_get_type (void) G_GNUC_CONST; 269 270 GDBusInterfaceInfo *goa_identity_service_identity_interface_info (void); 271 guint goa_identity_service_identity_override_properties (GObjectClass *klass, guint property_id_begin); 272 273 274 /* D-Bus property accessors: */ 275 const gchar *goa_identity_service_identity_get_identifier (GoaIdentityServiceIdentity *object); 276 gchar *goa_identity_service_identity_dup_identifier (GoaIdentityServiceIdentity *object); 277 void goa_identity_service_identity_set_identifier (GoaIdentityServiceIdentity *object, const gchar *value); 278 279 gint64 goa_identity_service_identity_get_expiration_timestamp (GoaIdentityServiceIdentity *object); 280 void goa_identity_service_identity_set_expiration_timestamp (GoaIdentityServiceIdentity *object, gint64 value); 281 282 gboolean goa_identity_service_identity_get_is_signed_in (GoaIdentityServiceIdentity *object); 283 void goa_identity_service_identity_set_is_signed_in (GoaIdentityServiceIdentity *object, gboolean value); 284 285 286 /* ---- */ 287 288 #define GOA_IDENTITY_SERVICE_TYPE_IDENTITY_PROXY (goa_identity_service_identity_proxy_get_type ()) 289 #define GOA_IDENTITY_SERVICE_IDENTITY_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GOA_IDENTITY_SERVICE_TYPE_IDENTITY_PROXY, GoaIdentityServiceIdentityProxy)) 290 #define GOA_IDENTITY_SERVICE_IDENTITY_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), GOA_IDENTITY_SERVICE_TYPE_IDENTITY_PROXY, GoaIdentityServiceIdentityProxyClass)) 291 #define GOA_IDENTITY_SERVICE_IDENTITY_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GOA_IDENTITY_SERVICE_TYPE_IDENTITY_PROXY, GoaIdentityServiceIdentityProxyClass)) 292 #define GOA_IDENTITY_SERVICE_IS_IDENTITY_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GOA_IDENTITY_SERVICE_TYPE_IDENTITY_PROXY)) 293 #define GOA_IDENTITY_SERVICE_IS_IDENTITY_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GOA_IDENTITY_SERVICE_TYPE_IDENTITY_PROXY)) 294 295 typedef struct _GoaIdentityServiceIdentityProxy GoaIdentityServiceIdentityProxy; 296 typedef struct _GoaIdentityServiceIdentityProxyClass GoaIdentityServiceIdentityProxyClass; 297 typedef struct _GoaIdentityServiceIdentityProxyPrivate GoaIdentityServiceIdentityProxyPrivate; 298 299 struct _GoaIdentityServiceIdentityProxy 300 { 301 /*< private >*/ 302 GDBusProxy parent_instance; 303 GoaIdentityServiceIdentityProxyPrivate *priv; 304 }; 305 306 struct _GoaIdentityServiceIdentityProxyClass 307 { 308 GDBusProxyClass parent_class; 309 }; 310 311 GType goa_identity_service_identity_proxy_get_type (void) G_GNUC_CONST; 312 313 #if GLIB_CHECK_VERSION(2, 44, 0) 314 G_DEFINE_AUTOPTR_CLEANUP_FUNC (GoaIdentityServiceIdentityProxy, g_object_unref) 315 #endif 316 317 void goa_identity_service_identity_proxy_new ( 318 GDBusConnection *connection, 319 GDBusProxyFlags flags, 320 const gchar *name, 321 const gchar *object_path, 322 GCancellable *cancellable, 323 GAsyncReadyCallback callback, 324 gpointer user_data); 325 GoaIdentityServiceIdentity *goa_identity_service_identity_proxy_new_finish ( 326 GAsyncResult *res, 327 GError **error); 328 GoaIdentityServiceIdentity *goa_identity_service_identity_proxy_new_sync ( 329 GDBusConnection *connection, 330 GDBusProxyFlags flags, 331 const gchar *name, 332 const gchar *object_path, 333 GCancellable *cancellable, 334 GError **error); 335 336 void goa_identity_service_identity_proxy_new_for_bus ( 337 GBusType bus_type, 338 GDBusProxyFlags flags, 339 const gchar *name, 340 const gchar *object_path, 341 GCancellable *cancellable, 342 GAsyncReadyCallback callback, 343 gpointer user_data); 344 GoaIdentityServiceIdentity *goa_identity_service_identity_proxy_new_for_bus_finish ( 345 GAsyncResult *res, 346 GError **error); 347 GoaIdentityServiceIdentity *goa_identity_service_identity_proxy_new_for_bus_sync ( 348 GBusType bus_type, 349 GDBusProxyFlags flags, 350 const gchar *name, 351 const gchar *object_path, 352 GCancellable *cancellable, 353 GError **error); 354 355 356 /* ---- */ 357 358 #define GOA_IDENTITY_SERVICE_TYPE_IDENTITY_SKELETON (goa_identity_service_identity_skeleton_get_type ()) 359 #define GOA_IDENTITY_SERVICE_IDENTITY_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GOA_IDENTITY_SERVICE_TYPE_IDENTITY_SKELETON, GoaIdentityServiceIdentitySkeleton)) 360 #define GOA_IDENTITY_SERVICE_IDENTITY_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), GOA_IDENTITY_SERVICE_TYPE_IDENTITY_SKELETON, GoaIdentityServiceIdentitySkeletonClass)) 361 #define GOA_IDENTITY_SERVICE_IDENTITY_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GOA_IDENTITY_SERVICE_TYPE_IDENTITY_SKELETON, GoaIdentityServiceIdentitySkeletonClass)) 362 #define GOA_IDENTITY_SERVICE_IS_IDENTITY_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GOA_IDENTITY_SERVICE_TYPE_IDENTITY_SKELETON)) 363 #define GOA_IDENTITY_SERVICE_IS_IDENTITY_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GOA_IDENTITY_SERVICE_TYPE_IDENTITY_SKELETON)) 364 365 typedef struct _GoaIdentityServiceIdentitySkeleton GoaIdentityServiceIdentitySkeleton; 366 typedef struct _GoaIdentityServiceIdentitySkeletonClass GoaIdentityServiceIdentitySkeletonClass; 367 typedef struct _GoaIdentityServiceIdentitySkeletonPrivate GoaIdentityServiceIdentitySkeletonPrivate; 368 369 struct _GoaIdentityServiceIdentitySkeleton 370 { 371 /*< private >*/ 372 GDBusInterfaceSkeleton parent_instance; 373 GoaIdentityServiceIdentitySkeletonPrivate *priv; 374 }; 375 376 struct _GoaIdentityServiceIdentitySkeletonClass 377 { 378 GDBusInterfaceSkeletonClass parent_class; 379 }; 380 381 GType goa_identity_service_identity_skeleton_get_type (void) G_GNUC_CONST; 382 383 #if GLIB_CHECK_VERSION(2, 44, 0) 384 G_DEFINE_AUTOPTR_CLEANUP_FUNC (GoaIdentityServiceIdentitySkeleton, g_object_unref) 385 #endif 386 387 GoaIdentityServiceIdentity *goa_identity_service_identity_skeleton_new (void); 388 389 390 /* ---- */ 391 392 #define GOA_IDENTITY_SERVICE_TYPE_OBJECT (goa_identity_service_object_get_type ()) 393 #define GOA_IDENTITY_SERVICE_OBJECT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GOA_IDENTITY_SERVICE_TYPE_OBJECT, GoaIdentityServiceObject)) 394 #define GOA_IDENTITY_SERVICE_IS_OBJECT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GOA_IDENTITY_SERVICE_TYPE_OBJECT)) 395 #define GOA_IDENTITY_SERVICE_OBJECT_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), GOA_IDENTITY_SERVICE_TYPE_OBJECT, GoaIdentityServiceObject)) 396 397 struct _GoaIdentityServiceObject; 398 typedef struct _GoaIdentityServiceObject GoaIdentityServiceObject; 399 typedef struct _GoaIdentityServiceObjectIface GoaIdentityServiceObjectIface; 400 401 struct _GoaIdentityServiceObjectIface 402 { 403 GTypeInterface parent_iface; 404 }; 405 406 GType goa_identity_service_object_get_type (void) G_GNUC_CONST; 407 408 GoaIdentityServiceManager *goa_identity_service_object_get_manager (GoaIdentityServiceObject *object); 409 GoaIdentityServiceIdentity *goa_identity_service_object_get_identity (GoaIdentityServiceObject *object); 410 GoaIdentityServiceManager *goa_identity_service_object_peek_manager (GoaIdentityServiceObject *object); 411 GoaIdentityServiceIdentity *goa_identity_service_object_peek_identity (GoaIdentityServiceObject *object); 412 413 #define GOA_IDENTITY_SERVICE_TYPE_OBJECT_PROXY (goa_identity_service_object_proxy_get_type ()) 414 #define GOA_IDENTITY_SERVICE_OBJECT_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GOA_IDENTITY_SERVICE_TYPE_OBJECT_PROXY, GoaIdentityServiceObjectProxy)) 415 #define GOA_IDENTITY_SERVICE_OBJECT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), GOA_IDENTITY_SERVICE_TYPE_OBJECT_PROXY, GoaIdentityServiceObjectProxyClass)) 416 #define GOA_IDENTITY_SERVICE_OBJECT_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GOA_IDENTITY_SERVICE_TYPE_OBJECT_PROXY, GoaIdentityServiceObjectProxyClass)) 417 #define GOA_IDENTITY_SERVICE_IS_OBJECT_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GOA_IDENTITY_SERVICE_TYPE_OBJECT_PROXY)) 418 #define GOA_IDENTITY_SERVICE_IS_OBJECT_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GOA_IDENTITY_SERVICE_TYPE_OBJECT_PROXY)) 419 420 typedef struct _GoaIdentityServiceObjectProxy GoaIdentityServiceObjectProxy; 421 typedef struct _GoaIdentityServiceObjectProxyClass GoaIdentityServiceObjectProxyClass; 422 typedef struct _GoaIdentityServiceObjectProxyPrivate GoaIdentityServiceObjectProxyPrivate; 423 424 struct _GoaIdentityServiceObjectProxy 425 { 426 /*< private >*/ 427 GDBusObjectProxy parent_instance; 428 GoaIdentityServiceObjectProxyPrivate *priv; 429 }; 430 431 struct _GoaIdentityServiceObjectProxyClass 432 { 433 GDBusObjectProxyClass parent_class; 434 }; 435 436 GType goa_identity_service_object_proxy_get_type (void) G_GNUC_CONST; 437 438 #if GLIB_CHECK_VERSION(2, 44, 0) 439 G_DEFINE_AUTOPTR_CLEANUP_FUNC (GoaIdentityServiceObjectProxy, g_object_unref) 440 #endif 441 442 GoaIdentityServiceObjectProxy *goa_identity_service_object_proxy_new (GDBusConnection *connection, const gchar *object_path); 443 444 #define GOA_IDENTITY_SERVICE_TYPE_OBJECT_SKELETON (goa_identity_service_object_skeleton_get_type ()) 445 #define GOA_IDENTITY_SERVICE_OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GOA_IDENTITY_SERVICE_TYPE_OBJECT_SKELETON, GoaIdentityServiceObjectSkeleton)) 446 #define GOA_IDENTITY_SERVICE_OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), GOA_IDENTITY_SERVICE_TYPE_OBJECT_SKELETON, GoaIdentityServiceObjectSkeletonClass)) 447 #define GOA_IDENTITY_SERVICE_OBJECT_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GOA_IDENTITY_SERVICE_TYPE_OBJECT_SKELETON, GoaIdentityServiceObjectSkeletonClass)) 448 #define GOA_IDENTITY_SERVICE_IS_OBJECT_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GOA_IDENTITY_SERVICE_TYPE_OBJECT_SKELETON)) 449 #define GOA_IDENTITY_SERVICE_IS_OBJECT_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GOA_IDENTITY_SERVICE_TYPE_OBJECT_SKELETON)) 450 451 typedef struct _GoaIdentityServiceObjectSkeleton GoaIdentityServiceObjectSkeleton; 452 typedef struct _GoaIdentityServiceObjectSkeletonClass GoaIdentityServiceObjectSkeletonClass; 453 typedef struct _GoaIdentityServiceObjectSkeletonPrivate GoaIdentityServiceObjectSkeletonPrivate; 454 455 struct _GoaIdentityServiceObjectSkeleton 456 { 457 /*< private >*/ 458 GDBusObjectSkeleton parent_instance; 459 GoaIdentityServiceObjectSkeletonPrivate *priv; 460 }; 461 462 struct _GoaIdentityServiceObjectSkeletonClass 463 { 464 GDBusObjectSkeletonClass parent_class; 465 }; 466 467 GType goa_identity_service_object_skeleton_get_type (void) G_GNUC_CONST; 468 469 #if GLIB_CHECK_VERSION(2, 44, 0) 470 G_DEFINE_AUTOPTR_CLEANUP_FUNC (GoaIdentityServiceObjectSkeleton, g_object_unref) 471 #endif 472 473 GoaIdentityServiceObjectSkeleton *goa_identity_service_object_skeleton_new (const gchar *object_path); 474 void goa_identity_service_object_skeleton_set_manager (GoaIdentityServiceObjectSkeleton *object, GoaIdentityServiceManager *interface_); 475 void goa_identity_service_object_skeleton_set_identity (GoaIdentityServiceObjectSkeleton *object, GoaIdentityServiceIdentity *interface_); 476 477 /* ---- */ 478 479 #define GOA_IDENTITY_SERVICE_TYPE_OBJECT_MANAGER_CLIENT (goa_identity_service_object_manager_client_get_type ()) 480 #define GOA_IDENTITY_SERVICE_OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GOA_IDENTITY_SERVICE_TYPE_OBJECT_MANAGER_CLIENT, GoaIdentityServiceObjectManagerClient)) 481 #define GOA_IDENTITY_SERVICE_OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), GOA_IDENTITY_SERVICE_TYPE_OBJECT_MANAGER_CLIENT, GoaIdentityServiceObjectManagerClientClass)) 482 #define GOA_IDENTITY_SERVICE_OBJECT_MANAGER_CLIENT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GOA_IDENTITY_SERVICE_TYPE_OBJECT_MANAGER_CLIENT, GoaIdentityServiceObjectManagerClientClass)) 483 #define GOA_IDENTITY_SERVICE_IS_OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GOA_IDENTITY_SERVICE_TYPE_OBJECT_MANAGER_CLIENT)) 484 #define GOA_IDENTITY_SERVICE_IS_OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GOA_IDENTITY_SERVICE_TYPE_OBJECT_MANAGER_CLIENT)) 485 486 typedef struct _GoaIdentityServiceObjectManagerClient GoaIdentityServiceObjectManagerClient; 487 typedef struct _GoaIdentityServiceObjectManagerClientClass GoaIdentityServiceObjectManagerClientClass; 488 typedef struct _GoaIdentityServiceObjectManagerClientPrivate GoaIdentityServiceObjectManagerClientPrivate; 489 490 struct _GoaIdentityServiceObjectManagerClient 491 { 492 /*< private >*/ 493 GDBusObjectManagerClient parent_instance; 494 GoaIdentityServiceObjectManagerClientPrivate *priv; 495 }; 496 497 struct _GoaIdentityServiceObjectManagerClientClass 498 { 499 GDBusObjectManagerClientClass parent_class; 500 }; 501 502 #if GLIB_CHECK_VERSION(2, 44, 0) 503 G_DEFINE_AUTOPTR_CLEANUP_FUNC (GoaIdentityServiceObjectManagerClient, g_object_unref) 504 #endif 505 506 GType goa_identity_service_object_manager_client_get_type (void) G_GNUC_CONST; 507 508 GType goa_identity_service_object_manager_client_get_proxy_type (GDBusObjectManagerClient *manager, const gchar *object_path, const gchar *interface_name, gpointer user_data); 509 510 void goa_identity_service_object_manager_client_new ( 511 GDBusConnection *connection, 512 GDBusObjectManagerClientFlags flags, 513 const gchar *name, 514 const gchar *object_path, 515 GCancellable *cancellable, 516 GAsyncReadyCallback callback, 517 gpointer user_data); 518 GDBusObjectManager *goa_identity_service_object_manager_client_new_finish ( 519 GAsyncResult *res, 520 GError **error); 521 GDBusObjectManager *goa_identity_service_object_manager_client_new_sync ( 522 GDBusConnection *connection, 523 GDBusObjectManagerClientFlags flags, 524 const gchar *name, 525 const gchar *object_path, 526 GCancellable *cancellable, 527 GError **error); 528 529 void goa_identity_service_object_manager_client_new_for_bus ( 530 GBusType bus_type, 531 GDBusObjectManagerClientFlags flags, 532 const gchar *name, 533 const gchar *object_path, 534 GCancellable *cancellable, 535 GAsyncReadyCallback callback, 536 gpointer user_data); 537 GDBusObjectManager *goa_identity_service_object_manager_client_new_for_bus_finish ( 538 GAsyncResult *res, 539 GError **error); 540 GDBusObjectManager *goa_identity_service_object_manager_client_new_for_bus_sync ( 541 GBusType bus_type, 542 GDBusObjectManagerClientFlags flags, 543 const gchar *name, 544 const gchar *object_path, 545 GCancellable *cancellable, 546 GError **error); 547 548 549 G_END_DECLS 550 551 #endif /* __ORG_GNOME_IDENTITY_H__ */ 552