Back to index

indicator-session  12.10.0
dbus-consolekit-session.c
Go to the documentation of this file.
00001 /*
00002  * Generated by gdbus-codegen 2.33.3. DO NOT EDIT.
00003  *
00004  * The license of this code is the same as for the source it was derived from.
00005  */
00006 
00007 #ifdef HAVE_CONFIG_H
00008 #  include "config.h"
00009 #endif
00010 
00011 #include "dbus-consolekit-session.h"
00012 
00013 #include <string.h>
00014 #ifdef G_OS_UNIX
00015 #  include <gio/gunixfdlist.h>
00016 #endif
00017 
00018 typedef struct
00019 {
00020   GDBusArgInfo parent_struct;
00021   gboolean use_gvariant;
00022 } _ExtendedGDBusArgInfo;
00023 
00024 typedef struct
00025 {
00026   GDBusMethodInfo parent_struct;
00027   const gchar *signal_name;
00028   gboolean pass_fdlist;
00029 } _ExtendedGDBusMethodInfo;
00030 
00031 typedef struct
00032 {
00033   GDBusSignalInfo parent_struct;
00034   const gchar *signal_name;
00035 } _ExtendedGDBusSignalInfo;
00036 
00037 typedef struct
00038 {
00039   GDBusPropertyInfo parent_struct;
00040   const gchar *hyphen_name;
00041   gboolean use_gvariant;
00042 } _ExtendedGDBusPropertyInfo;
00043 
00044 typedef struct
00045 {
00046   GDBusInterfaceInfo parent_struct;
00047   const gchar *hyphen_name;
00048 } _ExtendedGDBusInterfaceInfo;
00049 
00050 typedef struct
00051 {
00052   const _ExtendedGDBusPropertyInfo *info;
00053   guint prop_id;
00054   GValue orig_value; /* the value before the change */
00055 } ChangedProperty;
00056 
00057 static void
00058 _changed_property_free (ChangedProperty *data)
00059 {
00060   g_value_unset (&data->orig_value);
00061   g_free (data);
00062 }
00063 
00064 static gboolean
00065 _g_strv_equal0 (gchar **a, gchar **b)
00066 {
00067   gboolean ret = FALSE;
00068   guint n;
00069   if (a == NULL && b == NULL)
00070     {
00071       ret = TRUE;
00072       goto out;
00073     }
00074   if (a == NULL || b == NULL)
00075     goto out;
00076   if (g_strv_length (a) != g_strv_length (b))
00077     goto out;
00078   for (n = 0; a[n] != NULL; n++)
00079     if (g_strcmp0 (a[n], b[n]) != 0)
00080       goto out;
00081   ret = TRUE;
00082 out:
00083   return ret;
00084 }
00085 
00086 static gboolean
00087 _g_variant_equal0 (GVariant *a, GVariant *b)
00088 {
00089   gboolean ret = FALSE;
00090   if (a == NULL && b == NULL)
00091     {
00092       ret = TRUE;
00093       goto out;
00094     }
00095   if (a == NULL || b == NULL)
00096     goto out;
00097   ret = g_variant_equal (a, b);
00098 out:
00099   return ret;
00100 }
00101 
00102 G_GNUC_UNUSED static gboolean
00103 _g_value_equal (const GValue *a, const GValue *b)
00104 {
00105   gboolean ret = FALSE;
00106   g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b));
00107   switch (G_VALUE_TYPE (a))
00108     {
00109       case G_TYPE_BOOLEAN:
00110         ret = (g_value_get_boolean (a) == g_value_get_boolean (b));
00111         break;
00112       case G_TYPE_UCHAR:
00113         ret = (g_value_get_uchar (a) == g_value_get_uchar (b));
00114         break;
00115       case G_TYPE_INT:
00116         ret = (g_value_get_int (a) == g_value_get_int (b));
00117         break;
00118       case G_TYPE_UINT:
00119         ret = (g_value_get_uint (a) == g_value_get_uint (b));
00120         break;
00121       case G_TYPE_INT64:
00122         ret = (g_value_get_int64 (a) == g_value_get_int64 (b));
00123         break;
00124       case G_TYPE_UINT64:
00125         ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b));
00126         break;
00127       case G_TYPE_DOUBLE:
00128         {
00129           /* Avoid -Wfloat-equal warnings by doing a direct bit compare */
00130           gdouble da = g_value_get_double (a);
00131           gdouble db = g_value_get_double (b);
00132           ret = memcmp (&da, &db, sizeof (gdouble)) == 0;
00133         }
00134         break;
00135       case G_TYPE_STRING:
00136         ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0);
00137         break;
00138       case G_TYPE_VARIANT:
00139         ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b));
00140         break;
00141       default:
00142         if (G_VALUE_TYPE (a) == G_TYPE_STRV)
00143           ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b));
00144         else
00145           g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a)));
00146         break;
00147     }
00148   return ret;
00149 }
00150 
00151 /* ------------------------------------------------------------------------
00152  * Code for interface org.freedesktop.ConsoleKit.Session
00153  * ------------------------------------------------------------------------
00154  */
00155 
00164 /* ---- Introspection data for org.freedesktop.ConsoleKit.Session ---- */
00165 
00166 static const _ExtendedGDBusArgInfo _console_kit_session_method_info_get_id_OUT_ARG_ssid =
00167 {
00168   {
00169     -1,
00170     (gchar *) "ssid",
00171     (gchar *) "o",
00172     NULL
00173   },
00174   FALSE
00175 };
00176 
00177 static const _ExtendedGDBusArgInfo * const _console_kit_session_method_info_get_id_OUT_ARG_pointers[] =
00178 {
00179   &_console_kit_session_method_info_get_id_OUT_ARG_ssid,
00180   NULL
00181 };
00182 
00183 static const _ExtendedGDBusMethodInfo _console_kit_session_method_info_get_id =
00184 {
00185   {
00186     -1,
00187     (gchar *) "GetId",
00188     NULL,
00189     (GDBusArgInfo **) &_console_kit_session_method_info_get_id_OUT_ARG_pointers,
00190     NULL
00191   },
00192   "handle-get-id",
00193   FALSE
00194 };
00195 
00196 static const _ExtendedGDBusArgInfo _console_kit_session_method_info_get_seat_id_OUT_ARG_sid =
00197 {
00198   {
00199     -1,
00200     (gchar *) "sid",
00201     (gchar *) "o",
00202     NULL
00203   },
00204   FALSE
00205 };
00206 
00207 static const _ExtendedGDBusArgInfo * const _console_kit_session_method_info_get_seat_id_OUT_ARG_pointers[] =
00208 {
00209   &_console_kit_session_method_info_get_seat_id_OUT_ARG_sid,
00210   NULL
00211 };
00212 
00213 static const _ExtendedGDBusMethodInfo _console_kit_session_method_info_get_seat_id =
00214 {
00215   {
00216     -1,
00217     (gchar *) "GetSeatId",
00218     NULL,
00219     (GDBusArgInfo **) &_console_kit_session_method_info_get_seat_id_OUT_ARG_pointers,
00220     NULL
00221   },
00222   "handle-get-seat-id",
00223   FALSE
00224 };
00225 
00226 static const _ExtendedGDBusArgInfo _console_kit_session_method_info_get_session_type_OUT_ARG_type =
00227 {
00228   {
00229     -1,
00230     (gchar *) "type",
00231     (gchar *) "s",
00232     NULL
00233   },
00234   FALSE
00235 };
00236 
00237 static const _ExtendedGDBusArgInfo * const _console_kit_session_method_info_get_session_type_OUT_ARG_pointers[] =
00238 {
00239   &_console_kit_session_method_info_get_session_type_OUT_ARG_type,
00240   NULL
00241 };
00242 
00243 static const _ExtendedGDBusMethodInfo _console_kit_session_method_info_get_session_type =
00244 {
00245   {
00246     -1,
00247     (gchar *) "GetSessionType",
00248     NULL,
00249     (GDBusArgInfo **) &_console_kit_session_method_info_get_session_type_OUT_ARG_pointers,
00250     NULL
00251   },
00252   "handle-get-session-type",
00253   FALSE
00254 };
00255 
00256 static const _ExtendedGDBusArgInfo _console_kit_session_method_info_get_user_OUT_ARG_uid =
00257 {
00258   {
00259     -1,
00260     (gchar *) "uid",
00261     (gchar *) "u",
00262     NULL
00263   },
00264   FALSE
00265 };
00266 
00267 static const _ExtendedGDBusArgInfo * const _console_kit_session_method_info_get_user_OUT_ARG_pointers[] =
00268 {
00269   &_console_kit_session_method_info_get_user_OUT_ARG_uid,
00270   NULL
00271 };
00272 
00273 static const _ExtendedGDBusMethodInfo _console_kit_session_method_info_get_user =
00274 {
00275   {
00276     -1,
00277     (gchar *) "GetUser",
00278     NULL,
00279     (GDBusArgInfo **) &_console_kit_session_method_info_get_user_OUT_ARG_pointers,
00280     NULL
00281   },
00282   "handle-get-user",
00283   FALSE
00284 };
00285 
00286 static const _ExtendedGDBusArgInfo _console_kit_session_method_info_get_unix_user_OUT_ARG_uid =
00287 {
00288   {
00289     -1,
00290     (gchar *) "uid",
00291     (gchar *) "u",
00292     NULL
00293   },
00294   FALSE
00295 };
00296 
00297 static const _ExtendedGDBusArgInfo * const _console_kit_session_method_info_get_unix_user_OUT_ARG_pointers[] =
00298 {
00299   &_console_kit_session_method_info_get_unix_user_OUT_ARG_uid,
00300   NULL
00301 };
00302 
00303 static const _ExtendedGDBusMethodInfo _console_kit_session_method_info_get_unix_user =
00304 {
00305   {
00306     -1,
00307     (gchar *) "GetUnixUser",
00308     NULL,
00309     (GDBusArgInfo **) &_console_kit_session_method_info_get_unix_user_OUT_ARG_pointers,
00310     NULL
00311   },
00312   "handle-get-unix-user",
00313   FALSE
00314 };
00315 
00316 static const _ExtendedGDBusArgInfo _console_kit_session_method_info_get_x11_display_OUT_ARG_display =
00317 {
00318   {
00319     -1,
00320     (gchar *) "display",
00321     (gchar *) "s",
00322     NULL
00323   },
00324   FALSE
00325 };
00326 
00327 static const _ExtendedGDBusArgInfo * const _console_kit_session_method_info_get_x11_display_OUT_ARG_pointers[] =
00328 {
00329   &_console_kit_session_method_info_get_x11_display_OUT_ARG_display,
00330   NULL
00331 };
00332 
00333 static const _ExtendedGDBusMethodInfo _console_kit_session_method_info_get_x11_display =
00334 {
00335   {
00336     -1,
00337     (gchar *) "GetX11Display",
00338     NULL,
00339     (GDBusArgInfo **) &_console_kit_session_method_info_get_x11_display_OUT_ARG_pointers,
00340     NULL
00341   },
00342   "handle-get-x11-display",
00343   FALSE
00344 };
00345 
00346 static const _ExtendedGDBusArgInfo _console_kit_session_method_info_get_x11_display_device_OUT_ARG_x11_display_device =
00347 {
00348   {
00349     -1,
00350     (gchar *) "x11_display_device",
00351     (gchar *) "s",
00352     NULL
00353   },
00354   FALSE
00355 };
00356 
00357 static const _ExtendedGDBusArgInfo * const _console_kit_session_method_info_get_x11_display_device_OUT_ARG_pointers[] =
00358 {
00359   &_console_kit_session_method_info_get_x11_display_device_OUT_ARG_x11_display_device,
00360   NULL
00361 };
00362 
00363 static const _ExtendedGDBusMethodInfo _console_kit_session_method_info_get_x11_display_device =
00364 {
00365   {
00366     -1,
00367     (gchar *) "GetX11DisplayDevice",
00368     NULL,
00369     (GDBusArgInfo **) &_console_kit_session_method_info_get_x11_display_device_OUT_ARG_pointers,
00370     NULL
00371   },
00372   "handle-get-x11-display-device",
00373   FALSE
00374 };
00375 
00376 static const _ExtendedGDBusArgInfo _console_kit_session_method_info_get_display_device_OUT_ARG_display_device =
00377 {
00378   {
00379     -1,
00380     (gchar *) "display_device",
00381     (gchar *) "s",
00382     NULL
00383   },
00384   FALSE
00385 };
00386 
00387 static const _ExtendedGDBusArgInfo * const _console_kit_session_method_info_get_display_device_OUT_ARG_pointers[] =
00388 {
00389   &_console_kit_session_method_info_get_display_device_OUT_ARG_display_device,
00390   NULL
00391 };
00392 
00393 static const _ExtendedGDBusMethodInfo _console_kit_session_method_info_get_display_device =
00394 {
00395   {
00396     -1,
00397     (gchar *) "GetDisplayDevice",
00398     NULL,
00399     (GDBusArgInfo **) &_console_kit_session_method_info_get_display_device_OUT_ARG_pointers,
00400     NULL
00401   },
00402   "handle-get-display-device",
00403   FALSE
00404 };
00405 
00406 static const _ExtendedGDBusArgInfo _console_kit_session_method_info_get_remote_host_name_OUT_ARG_remote_host_name =
00407 {
00408   {
00409     -1,
00410     (gchar *) "remote_host_name",
00411     (gchar *) "s",
00412     NULL
00413   },
00414   FALSE
00415 };
00416 
00417 static const _ExtendedGDBusArgInfo * const _console_kit_session_method_info_get_remote_host_name_OUT_ARG_pointers[] =
00418 {
00419   &_console_kit_session_method_info_get_remote_host_name_OUT_ARG_remote_host_name,
00420   NULL
00421 };
00422 
00423 static const _ExtendedGDBusMethodInfo _console_kit_session_method_info_get_remote_host_name =
00424 {
00425   {
00426     -1,
00427     (gchar *) "GetRemoteHostName",
00428     NULL,
00429     (GDBusArgInfo **) &_console_kit_session_method_info_get_remote_host_name_OUT_ARG_pointers,
00430     NULL
00431   },
00432   "handle-get-remote-host-name",
00433   FALSE
00434 };
00435 
00436 static const _ExtendedGDBusArgInfo _console_kit_session_method_info_get_login_session_id_OUT_ARG_login_session_id =
00437 {
00438   {
00439     -1,
00440     (gchar *) "login_session_id",
00441     (gchar *) "s",
00442     NULL
00443   },
00444   FALSE
00445 };
00446 
00447 static const _ExtendedGDBusArgInfo * const _console_kit_session_method_info_get_login_session_id_OUT_ARG_pointers[] =
00448 {
00449   &_console_kit_session_method_info_get_login_session_id_OUT_ARG_login_session_id,
00450   NULL
00451 };
00452 
00453 static const _ExtendedGDBusMethodInfo _console_kit_session_method_info_get_login_session_id =
00454 {
00455   {
00456     -1,
00457     (gchar *) "GetLoginSessionId",
00458     NULL,
00459     (GDBusArgInfo **) &_console_kit_session_method_info_get_login_session_id_OUT_ARG_pointers,
00460     NULL
00461   },
00462   "handle-get-login-session-id",
00463   FALSE
00464 };
00465 
00466 static const _ExtendedGDBusArgInfo _console_kit_session_method_info_is_active_OUT_ARG_active =
00467 {
00468   {
00469     -1,
00470     (gchar *) "active",
00471     (gchar *) "b",
00472     NULL
00473   },
00474   FALSE
00475 };
00476 
00477 static const _ExtendedGDBusArgInfo * const _console_kit_session_method_info_is_active_OUT_ARG_pointers[] =
00478 {
00479   &_console_kit_session_method_info_is_active_OUT_ARG_active,
00480   NULL
00481 };
00482 
00483 static const _ExtendedGDBusMethodInfo _console_kit_session_method_info_is_active =
00484 {
00485   {
00486     -1,
00487     (gchar *) "IsActive",
00488     NULL,
00489     (GDBusArgInfo **) &_console_kit_session_method_info_is_active_OUT_ARG_pointers,
00490     NULL
00491   },
00492   "handle-is-active",
00493   FALSE
00494 };
00495 
00496 static const _ExtendedGDBusArgInfo _console_kit_session_method_info_is_local_OUT_ARG_local =
00497 {
00498   {
00499     -1,
00500     (gchar *) "local",
00501     (gchar *) "b",
00502     NULL
00503   },
00504   FALSE
00505 };
00506 
00507 static const _ExtendedGDBusArgInfo * const _console_kit_session_method_info_is_local_OUT_ARG_pointers[] =
00508 {
00509   &_console_kit_session_method_info_is_local_OUT_ARG_local,
00510   NULL
00511 };
00512 
00513 static const _ExtendedGDBusMethodInfo _console_kit_session_method_info_is_local =
00514 {
00515   {
00516     -1,
00517     (gchar *) "IsLocal",
00518     NULL,
00519     (GDBusArgInfo **) &_console_kit_session_method_info_is_local_OUT_ARG_pointers,
00520     NULL
00521   },
00522   "handle-is-local",
00523   FALSE
00524 };
00525 
00526 static const _ExtendedGDBusArgInfo _console_kit_session_method_info_get_creation_time_OUT_ARG_iso8601_datetime =
00527 {
00528   {
00529     -1,
00530     (gchar *) "iso8601_datetime",
00531     (gchar *) "s",
00532     NULL
00533   },
00534   FALSE
00535 };
00536 
00537 static const _ExtendedGDBusArgInfo * const _console_kit_session_method_info_get_creation_time_OUT_ARG_pointers[] =
00538 {
00539   &_console_kit_session_method_info_get_creation_time_OUT_ARG_iso8601_datetime,
00540   NULL
00541 };
00542 
00543 static const _ExtendedGDBusMethodInfo _console_kit_session_method_info_get_creation_time =
00544 {
00545   {
00546     -1,
00547     (gchar *) "GetCreationTime",
00548     NULL,
00549     (GDBusArgInfo **) &_console_kit_session_method_info_get_creation_time_OUT_ARG_pointers,
00550     NULL
00551   },
00552   "handle-get-creation-time",
00553   FALSE
00554 };
00555 
00556 static const GDBusAnnotationInfo _console_kit_session_method_activate_annotation_info_0 =
00557 {
00558   -1,
00559   (gchar *) "org.freedesktop.DBus.GLib.Async",
00560   (gchar *) "",
00561   NULL
00562 };
00563 
00564 static const GDBusAnnotationInfo * const _console_kit_session_method_activate_annotation_info_pointers[] =
00565 {
00566   &_console_kit_session_method_activate_annotation_info_0,
00567   NULL
00568 };
00569 
00570 static const _ExtendedGDBusMethodInfo _console_kit_session_method_info_activate =
00571 {
00572   {
00573     -1,
00574     (gchar *) "Activate",
00575     NULL,
00576     NULL,
00577     (GDBusAnnotationInfo **) &_console_kit_session_method_activate_annotation_info_pointers
00578   },
00579   "handle-activate",
00580   FALSE
00581 };
00582 
00583 static const GDBusAnnotationInfo _console_kit_session_method_lock_annotation_info_0 =
00584 {
00585   -1,
00586   (gchar *) "org.freedesktop.DBus.GLib.Async",
00587   (gchar *) "",
00588   NULL
00589 };
00590 
00591 static const GDBusAnnotationInfo * const _console_kit_session_method_lock_annotation_info_pointers[] =
00592 {
00593   &_console_kit_session_method_lock_annotation_info_0,
00594   NULL
00595 };
00596 
00597 static const _ExtendedGDBusMethodInfo _console_kit_session_method_info_lock =
00598 {
00599   {
00600     -1,
00601     (gchar *) "Lock",
00602     NULL,
00603     NULL,
00604     (GDBusAnnotationInfo **) &_console_kit_session_method_lock_annotation_info_pointers
00605   },
00606   "handle-lock",
00607   FALSE
00608 };
00609 
00610 static const GDBusAnnotationInfo _console_kit_session_method_unlock_annotation_info_0 =
00611 {
00612   -1,
00613   (gchar *) "org.freedesktop.DBus.GLib.Async",
00614   (gchar *) "",
00615   NULL
00616 };
00617 
00618 static const GDBusAnnotationInfo * const _console_kit_session_method_unlock_annotation_info_pointers[] =
00619 {
00620   &_console_kit_session_method_unlock_annotation_info_0,
00621   NULL
00622 };
00623 
00624 static const _ExtendedGDBusMethodInfo _console_kit_session_method_info_unlock =
00625 {
00626   {
00627     -1,
00628     (gchar *) "Unlock",
00629     NULL,
00630     NULL,
00631     (GDBusAnnotationInfo **) &_console_kit_session_method_unlock_annotation_info_pointers
00632   },
00633   "handle-unlock",
00634   FALSE
00635 };
00636 
00637 static const _ExtendedGDBusArgInfo _console_kit_session_method_info_get_idle_hint_OUT_ARG_idle_hint =
00638 {
00639   {
00640     -1,
00641     (gchar *) "idle_hint",
00642     (gchar *) "b",
00643     NULL
00644   },
00645   FALSE
00646 };
00647 
00648 static const _ExtendedGDBusArgInfo * const _console_kit_session_method_info_get_idle_hint_OUT_ARG_pointers[] =
00649 {
00650   &_console_kit_session_method_info_get_idle_hint_OUT_ARG_idle_hint,
00651   NULL
00652 };
00653 
00654 static const _ExtendedGDBusMethodInfo _console_kit_session_method_info_get_idle_hint =
00655 {
00656   {
00657     -1,
00658     (gchar *) "GetIdleHint",
00659     NULL,
00660     (GDBusArgInfo **) &_console_kit_session_method_info_get_idle_hint_OUT_ARG_pointers,
00661     NULL
00662   },
00663   "handle-get-idle-hint",
00664   FALSE
00665 };
00666 
00667 static const _ExtendedGDBusArgInfo _console_kit_session_method_info_get_idle_since_hint_OUT_ARG_iso8601_datetime =
00668 {
00669   {
00670     -1,
00671     (gchar *) "iso8601_datetime",
00672     (gchar *) "s",
00673     NULL
00674   },
00675   FALSE
00676 };
00677 
00678 static const _ExtendedGDBusArgInfo * const _console_kit_session_method_info_get_idle_since_hint_OUT_ARG_pointers[] =
00679 {
00680   &_console_kit_session_method_info_get_idle_since_hint_OUT_ARG_iso8601_datetime,
00681   NULL
00682 };
00683 
00684 static const _ExtendedGDBusMethodInfo _console_kit_session_method_info_get_idle_since_hint =
00685 {
00686   {
00687     -1,
00688     (gchar *) "GetIdleSinceHint",
00689     NULL,
00690     (GDBusArgInfo **) &_console_kit_session_method_info_get_idle_since_hint_OUT_ARG_pointers,
00691     NULL
00692   },
00693   "handle-get-idle-since-hint",
00694   FALSE
00695 };
00696 
00697 static const _ExtendedGDBusArgInfo _console_kit_session_method_info_set_idle_hint_IN_ARG_idle_hint =
00698 {
00699   {
00700     -1,
00701     (gchar *) "idle_hint",
00702     (gchar *) "b",
00703     NULL
00704   },
00705   FALSE
00706 };
00707 
00708 static const _ExtendedGDBusArgInfo * const _console_kit_session_method_info_set_idle_hint_IN_ARG_pointers[] =
00709 {
00710   &_console_kit_session_method_info_set_idle_hint_IN_ARG_idle_hint,
00711   NULL
00712 };
00713 
00714 static const GDBusAnnotationInfo _console_kit_session_method_set_idle_hint_annotation_info_0 =
00715 {
00716   -1,
00717   (gchar *) "org.freedesktop.DBus.GLib.Async",
00718   (gchar *) "",
00719   NULL
00720 };
00721 
00722 static const GDBusAnnotationInfo * const _console_kit_session_method_set_idle_hint_annotation_info_pointers[] =
00723 {
00724   &_console_kit_session_method_set_idle_hint_annotation_info_0,
00725   NULL
00726 };
00727 
00728 static const _ExtendedGDBusMethodInfo _console_kit_session_method_info_set_idle_hint =
00729 {
00730   {
00731     -1,
00732     (gchar *) "SetIdleHint",
00733     (GDBusArgInfo **) &_console_kit_session_method_info_set_idle_hint_IN_ARG_pointers,
00734     NULL,
00735     (GDBusAnnotationInfo **) &_console_kit_session_method_set_idle_hint_annotation_info_pointers
00736   },
00737   "handle-set-idle-hint",
00738   FALSE
00739 };
00740 
00741 static const _ExtendedGDBusMethodInfo * const _console_kit_session_method_info_pointers[] =
00742 {
00743   &_console_kit_session_method_info_get_id,
00744   &_console_kit_session_method_info_get_seat_id,
00745   &_console_kit_session_method_info_get_session_type,
00746   &_console_kit_session_method_info_get_user,
00747   &_console_kit_session_method_info_get_unix_user,
00748   &_console_kit_session_method_info_get_x11_display,
00749   &_console_kit_session_method_info_get_x11_display_device,
00750   &_console_kit_session_method_info_get_display_device,
00751   &_console_kit_session_method_info_get_remote_host_name,
00752   &_console_kit_session_method_info_get_login_session_id,
00753   &_console_kit_session_method_info_is_active,
00754   &_console_kit_session_method_info_is_local,
00755   &_console_kit_session_method_info_get_creation_time,
00756   &_console_kit_session_method_info_activate,
00757   &_console_kit_session_method_info_lock,
00758   &_console_kit_session_method_info_unlock,
00759   &_console_kit_session_method_info_get_idle_hint,
00760   &_console_kit_session_method_info_get_idle_since_hint,
00761   &_console_kit_session_method_info_set_idle_hint,
00762   NULL
00763 };
00764 
00765 static const _ExtendedGDBusArgInfo _console_kit_session_signal_info_active_changed_ARG_is_active =
00766 {
00767   {
00768     -1,
00769     (gchar *) "is_active",
00770     (gchar *) "b",
00771     NULL
00772   },
00773   FALSE
00774 };
00775 
00776 static const _ExtendedGDBusArgInfo * const _console_kit_session_signal_info_active_changed_ARG_pointers[] =
00777 {
00778   &_console_kit_session_signal_info_active_changed_ARG_is_active,
00779   NULL
00780 };
00781 
00782 static const _ExtendedGDBusSignalInfo _console_kit_session_signal_info_active_changed =
00783 {
00784   {
00785     -1,
00786     (gchar *) "ActiveChanged",
00787     (GDBusArgInfo **) &_console_kit_session_signal_info_active_changed_ARG_pointers,
00788     NULL
00789   },
00790   "active-changed"
00791 };
00792 
00793 static const _ExtendedGDBusArgInfo _console_kit_session_signal_info_idle_hint_changed_ARG_hint =
00794 {
00795   {
00796     -1,
00797     (gchar *) "hint",
00798     (gchar *) "b",
00799     NULL
00800   },
00801   FALSE
00802 };
00803 
00804 static const _ExtendedGDBusArgInfo * const _console_kit_session_signal_info_idle_hint_changed_ARG_pointers[] =
00805 {
00806   &_console_kit_session_signal_info_idle_hint_changed_ARG_hint,
00807   NULL
00808 };
00809 
00810 static const _ExtendedGDBusSignalInfo _console_kit_session_signal_info_idle_hint_changed =
00811 {
00812   {
00813     -1,
00814     (gchar *) "IdleHintChanged",
00815     (GDBusArgInfo **) &_console_kit_session_signal_info_idle_hint_changed_ARG_pointers,
00816     NULL
00817   },
00818   "idle-hint-changed"
00819 };
00820 
00821 static const _ExtendedGDBusSignalInfo _console_kit_session_signal_info_lock =
00822 {
00823   {
00824     -1,
00825     (gchar *) "Lock",
00826     NULL,
00827     NULL
00828   },
00829   "lock"
00830 };
00831 
00832 static const _ExtendedGDBusSignalInfo _console_kit_session_signal_info_unlock =
00833 {
00834   {
00835     -1,
00836     (gchar *) "Unlock",
00837     NULL,
00838     NULL
00839   },
00840   "unlock"
00841 };
00842 
00843 static const _ExtendedGDBusSignalInfo * const _console_kit_session_signal_info_pointers[] =
00844 {
00845   &_console_kit_session_signal_info_active_changed,
00846   &_console_kit_session_signal_info_idle_hint_changed,
00847   &_console_kit_session_signal_info_lock,
00848   &_console_kit_session_signal_info_unlock,
00849   NULL
00850 };
00851 
00852 static const _ExtendedGDBusPropertyInfo _console_kit_session_property_info_unix_user =
00853 {
00854   {
00855     -1,
00856     (gchar *) "unix-user",
00857     (gchar *) "u",
00858     G_DBUS_PROPERTY_INFO_FLAGS_READABLE | G_DBUS_PROPERTY_INFO_FLAGS_WRITABLE,
00859     NULL
00860   },
00861   "unix-user",
00862   FALSE
00863 };
00864 
00865 static const _ExtendedGDBusPropertyInfo _console_kit_session_property_info_user =
00866 {
00867   {
00868     -1,
00869     (gchar *) "user",
00870     (gchar *) "u",
00871     G_DBUS_PROPERTY_INFO_FLAGS_READABLE | G_DBUS_PROPERTY_INFO_FLAGS_WRITABLE,
00872     NULL
00873   },
00874   "user",
00875   FALSE
00876 };
00877 
00878 static const _ExtendedGDBusPropertyInfo _console_kit_session_property_info_session_type =
00879 {
00880   {
00881     -1,
00882     (gchar *) "session-type",
00883     (gchar *) "s",
00884     G_DBUS_PROPERTY_INFO_FLAGS_READABLE | G_DBUS_PROPERTY_INFO_FLAGS_WRITABLE,
00885     NULL
00886   },
00887   "session-type",
00888   FALSE
00889 };
00890 
00891 static const _ExtendedGDBusPropertyInfo _console_kit_session_property_info_remote_host_name =
00892 {
00893   {
00894     -1,
00895     (gchar *) "remote-host-name",
00896     (gchar *) "s",
00897     G_DBUS_PROPERTY_INFO_FLAGS_READABLE | G_DBUS_PROPERTY_INFO_FLAGS_WRITABLE,
00898     NULL
00899   },
00900   "remote-host-name",
00901   FALSE
00902 };
00903 
00904 static const _ExtendedGDBusPropertyInfo _console_kit_session_property_info_display_device =
00905 {
00906   {
00907     -1,
00908     (gchar *) "display-device",
00909     (gchar *) "s",
00910     G_DBUS_PROPERTY_INFO_FLAGS_READABLE | G_DBUS_PROPERTY_INFO_FLAGS_WRITABLE,
00911     NULL
00912   },
00913   "display-device",
00914   FALSE
00915 };
00916 
00917 static const _ExtendedGDBusPropertyInfo _console_kit_session_property_info_x11_display =
00918 {
00919   {
00920     -1,
00921     (gchar *) "x11-display",
00922     (gchar *) "s",
00923     G_DBUS_PROPERTY_INFO_FLAGS_READABLE | G_DBUS_PROPERTY_INFO_FLAGS_WRITABLE,
00924     NULL
00925   },
00926   "x11-display",
00927   FALSE
00928 };
00929 
00930 static const _ExtendedGDBusPropertyInfo _console_kit_session_property_info_x11_display_device =
00931 {
00932   {
00933     -1,
00934     (gchar *) "x11-display-device",
00935     (gchar *) "s",
00936     G_DBUS_PROPERTY_INFO_FLAGS_READABLE | G_DBUS_PROPERTY_INFO_FLAGS_WRITABLE,
00937     NULL
00938   },
00939   "x11-display-device",
00940   FALSE
00941 };
00942 
00943 static const _ExtendedGDBusPropertyInfo _console_kit_session_property_info_active =
00944 {
00945   {
00946     -1,
00947     (gchar *) "active",
00948     (gchar *) "b",
00949     G_DBUS_PROPERTY_INFO_FLAGS_READABLE | G_DBUS_PROPERTY_INFO_FLAGS_WRITABLE,
00950     NULL
00951   },
00952   "active",
00953   FALSE
00954 };
00955 
00956 static const _ExtendedGDBusPropertyInfo _console_kit_session_property_info_is_local =
00957 {
00958   {
00959     -1,
00960     (gchar *) "is-local",
00961     (gchar *) "b",
00962     G_DBUS_PROPERTY_INFO_FLAGS_READABLE | G_DBUS_PROPERTY_INFO_FLAGS_WRITABLE,
00963     NULL
00964   },
00965   "is-local",
00966   FALSE
00967 };
00968 
00969 static const _ExtendedGDBusPropertyInfo _console_kit_session_property_info_idle_hint =
00970 {
00971   {
00972     -1,
00973     (gchar *) "idle-hint",
00974     (gchar *) "b",
00975     G_DBUS_PROPERTY_INFO_FLAGS_READABLE | G_DBUS_PROPERTY_INFO_FLAGS_WRITABLE,
00976     NULL
00977   },
00978   "idle-hint",
00979   FALSE
00980 };
00981 
00982 static const _ExtendedGDBusPropertyInfo * const _console_kit_session_property_info_pointers[] =
00983 {
00984   &_console_kit_session_property_info_unix_user,
00985   &_console_kit_session_property_info_user,
00986   &_console_kit_session_property_info_session_type,
00987   &_console_kit_session_property_info_remote_host_name,
00988   &_console_kit_session_property_info_display_device,
00989   &_console_kit_session_property_info_x11_display,
00990   &_console_kit_session_property_info_x11_display_device,
00991   &_console_kit_session_property_info_active,
00992   &_console_kit_session_property_info_is_local,
00993   &_console_kit_session_property_info_idle_hint,
00994   NULL
00995 };
00996 
00997 static const _ExtendedGDBusInterfaceInfo _console_kit_session_interface_info =
00998 {
00999   {
01000     -1,
01001     (gchar *) "org.freedesktop.ConsoleKit.Session",
01002     (GDBusMethodInfo **) &_console_kit_session_method_info_pointers,
01003     (GDBusSignalInfo **) &_console_kit_session_signal_info_pointers,
01004     (GDBusPropertyInfo **) &_console_kit_session_property_info_pointers,
01005     NULL
01006   },
01007   "console-kit-session",
01008 };
01009 
01010 
01018 GDBusInterfaceInfo *
01019 console_kit_session_interface_info (void)
01020 {
01021   return (GDBusInterfaceInfo *) &_console_kit_session_interface_info;
01022 }
01023 
01034 guint
01035 console_kit_session_override_properties (GObjectClass *klass, guint property_id_begin)
01036 {
01037   g_object_class_override_property (klass, property_id_begin++, "unix-user");
01038   g_object_class_override_property (klass, property_id_begin++, "user");
01039   g_object_class_override_property (klass, property_id_begin++, "session-type");
01040   g_object_class_override_property (klass, property_id_begin++, "remote-host-name");
01041   g_object_class_override_property (klass, property_id_begin++, "display-device");
01042   g_object_class_override_property (klass, property_id_begin++, "x11-display");
01043   g_object_class_override_property (klass, property_id_begin++, "x11-display-device");
01044   g_object_class_override_property (klass, property_id_begin++, "active");
01045   g_object_class_override_property (klass, property_id_begin++, "is-local");
01046   g_object_class_override_property (klass, property_id_begin++, "idle-hint");
01047   return property_id_begin - 1;
01048 }
01049 
01050 
01051 
01098 static void
01099 console_kit_session_default_init (ConsoleKitSessionIface *iface)
01100 {
01101   /* GObject signals for incoming D-Bus method calls: */
01113   g_signal_new ("handle-get-id",
01114     G_TYPE_FROM_INTERFACE (iface),
01115     G_SIGNAL_RUN_LAST,
01116     G_STRUCT_OFFSET (ConsoleKitSessionIface, handle_get_id),
01117     g_signal_accumulator_true_handled,
01118     NULL,
01119     g_cclosure_marshal_generic,
01120     G_TYPE_BOOLEAN,
01121     1,
01122     G_TYPE_DBUS_METHOD_INVOCATION);
01123 
01135   g_signal_new ("handle-get-seat-id",
01136     G_TYPE_FROM_INTERFACE (iface),
01137     G_SIGNAL_RUN_LAST,
01138     G_STRUCT_OFFSET (ConsoleKitSessionIface, handle_get_seat_id),
01139     g_signal_accumulator_true_handled,
01140     NULL,
01141     g_cclosure_marshal_generic,
01142     G_TYPE_BOOLEAN,
01143     1,
01144     G_TYPE_DBUS_METHOD_INVOCATION);
01145 
01157   g_signal_new ("handle-get-session-type",
01158     G_TYPE_FROM_INTERFACE (iface),
01159     G_SIGNAL_RUN_LAST,
01160     G_STRUCT_OFFSET (ConsoleKitSessionIface, handle_get_session_type),
01161     g_signal_accumulator_true_handled,
01162     NULL,
01163     g_cclosure_marshal_generic,
01164     G_TYPE_BOOLEAN,
01165     1,
01166     G_TYPE_DBUS_METHOD_INVOCATION);
01167 
01179   g_signal_new ("handle-get-user",
01180     G_TYPE_FROM_INTERFACE (iface),
01181     G_SIGNAL_RUN_LAST,
01182     G_STRUCT_OFFSET (ConsoleKitSessionIface, handle_get_user),
01183     g_signal_accumulator_true_handled,
01184     NULL,
01185     g_cclosure_marshal_generic,
01186     G_TYPE_BOOLEAN,
01187     1,
01188     G_TYPE_DBUS_METHOD_INVOCATION);
01189 
01201   g_signal_new ("handle-get-unix-user",
01202     G_TYPE_FROM_INTERFACE (iface),
01203     G_SIGNAL_RUN_LAST,
01204     G_STRUCT_OFFSET (ConsoleKitSessionIface, handle_get_unix_user),
01205     g_signal_accumulator_true_handled,
01206     NULL,
01207     g_cclosure_marshal_generic,
01208     G_TYPE_BOOLEAN,
01209     1,
01210     G_TYPE_DBUS_METHOD_INVOCATION);
01211 
01223   g_signal_new ("handle-get-x11-display",
01224     G_TYPE_FROM_INTERFACE (iface),
01225     G_SIGNAL_RUN_LAST,
01226     G_STRUCT_OFFSET (ConsoleKitSessionIface, handle_get_x11_display),
01227     g_signal_accumulator_true_handled,
01228     NULL,
01229     g_cclosure_marshal_generic,
01230     G_TYPE_BOOLEAN,
01231     1,
01232     G_TYPE_DBUS_METHOD_INVOCATION);
01233 
01245   g_signal_new ("handle-get-x11-display-device",
01246     G_TYPE_FROM_INTERFACE (iface),
01247     G_SIGNAL_RUN_LAST,
01248     G_STRUCT_OFFSET (ConsoleKitSessionIface, handle_get_x11_display_device),
01249     g_signal_accumulator_true_handled,
01250     NULL,
01251     g_cclosure_marshal_generic,
01252     G_TYPE_BOOLEAN,
01253     1,
01254     G_TYPE_DBUS_METHOD_INVOCATION);
01255 
01267   g_signal_new ("handle-get-display-device",
01268     G_TYPE_FROM_INTERFACE (iface),
01269     G_SIGNAL_RUN_LAST,
01270     G_STRUCT_OFFSET (ConsoleKitSessionIface, handle_get_display_device),
01271     g_signal_accumulator_true_handled,
01272     NULL,
01273     g_cclosure_marshal_generic,
01274     G_TYPE_BOOLEAN,
01275     1,
01276     G_TYPE_DBUS_METHOD_INVOCATION);
01277 
01289   g_signal_new ("handle-get-remote-host-name",
01290     G_TYPE_FROM_INTERFACE (iface),
01291     G_SIGNAL_RUN_LAST,
01292     G_STRUCT_OFFSET (ConsoleKitSessionIface, handle_get_remote_host_name),
01293     g_signal_accumulator_true_handled,
01294     NULL,
01295     g_cclosure_marshal_generic,
01296     G_TYPE_BOOLEAN,
01297     1,
01298     G_TYPE_DBUS_METHOD_INVOCATION);
01299 
01311   g_signal_new ("handle-get-login-session-id",
01312     G_TYPE_FROM_INTERFACE (iface),
01313     G_SIGNAL_RUN_LAST,
01314     G_STRUCT_OFFSET (ConsoleKitSessionIface, handle_get_login_session_id),
01315     g_signal_accumulator_true_handled,
01316     NULL,
01317     g_cclosure_marshal_generic,
01318     G_TYPE_BOOLEAN,
01319     1,
01320     G_TYPE_DBUS_METHOD_INVOCATION);
01321 
01333   g_signal_new ("handle-is-active",
01334     G_TYPE_FROM_INTERFACE (iface),
01335     G_SIGNAL_RUN_LAST,
01336     G_STRUCT_OFFSET (ConsoleKitSessionIface, handle_is_active),
01337     g_signal_accumulator_true_handled,
01338     NULL,
01339     g_cclosure_marshal_generic,
01340     G_TYPE_BOOLEAN,
01341     1,
01342     G_TYPE_DBUS_METHOD_INVOCATION);
01343 
01355   g_signal_new ("handle-is-local",
01356     G_TYPE_FROM_INTERFACE (iface),
01357     G_SIGNAL_RUN_LAST,
01358     G_STRUCT_OFFSET (ConsoleKitSessionIface, handle_is_local),
01359     g_signal_accumulator_true_handled,
01360     NULL,
01361     g_cclosure_marshal_generic,
01362     G_TYPE_BOOLEAN,
01363     1,
01364     G_TYPE_DBUS_METHOD_INVOCATION);
01365 
01377   g_signal_new ("handle-get-creation-time",
01378     G_TYPE_FROM_INTERFACE (iface),
01379     G_SIGNAL_RUN_LAST,
01380     G_STRUCT_OFFSET (ConsoleKitSessionIface, handle_get_creation_time),
01381     g_signal_accumulator_true_handled,
01382     NULL,
01383     g_cclosure_marshal_generic,
01384     G_TYPE_BOOLEAN,
01385     1,
01386     G_TYPE_DBUS_METHOD_INVOCATION);
01387 
01399   g_signal_new ("handle-activate",
01400     G_TYPE_FROM_INTERFACE (iface),
01401     G_SIGNAL_RUN_LAST,
01402     G_STRUCT_OFFSET (ConsoleKitSessionIface, handle_activate),
01403     g_signal_accumulator_true_handled,
01404     NULL,
01405     g_cclosure_marshal_generic,
01406     G_TYPE_BOOLEAN,
01407     1,
01408     G_TYPE_DBUS_METHOD_INVOCATION);
01409 
01421   g_signal_new ("handle-lock",
01422     G_TYPE_FROM_INTERFACE (iface),
01423     G_SIGNAL_RUN_LAST,
01424     G_STRUCT_OFFSET (ConsoleKitSessionIface, handle_lock),
01425     g_signal_accumulator_true_handled,
01426     NULL,
01427     g_cclosure_marshal_generic,
01428     G_TYPE_BOOLEAN,
01429     1,
01430     G_TYPE_DBUS_METHOD_INVOCATION);
01431 
01443   g_signal_new ("handle-unlock",
01444     G_TYPE_FROM_INTERFACE (iface),
01445     G_SIGNAL_RUN_LAST,
01446     G_STRUCT_OFFSET (ConsoleKitSessionIface, handle_unlock),
01447     g_signal_accumulator_true_handled,
01448     NULL,
01449     g_cclosure_marshal_generic,
01450     G_TYPE_BOOLEAN,
01451     1,
01452     G_TYPE_DBUS_METHOD_INVOCATION);
01453 
01465   g_signal_new ("handle-get-idle-hint",
01466     G_TYPE_FROM_INTERFACE (iface),
01467     G_SIGNAL_RUN_LAST,
01468     G_STRUCT_OFFSET (ConsoleKitSessionIface, handle_get_idle_hint),
01469     g_signal_accumulator_true_handled,
01470     NULL,
01471     g_cclosure_marshal_generic,
01472     G_TYPE_BOOLEAN,
01473     1,
01474     G_TYPE_DBUS_METHOD_INVOCATION);
01475 
01487   g_signal_new ("handle-get-idle-since-hint",
01488     G_TYPE_FROM_INTERFACE (iface),
01489     G_SIGNAL_RUN_LAST,
01490     G_STRUCT_OFFSET (ConsoleKitSessionIface, handle_get_idle_since_hint),
01491     g_signal_accumulator_true_handled,
01492     NULL,
01493     g_cclosure_marshal_generic,
01494     G_TYPE_BOOLEAN,
01495     1,
01496     G_TYPE_DBUS_METHOD_INVOCATION);
01497 
01510   g_signal_new ("handle-set-idle-hint",
01511     G_TYPE_FROM_INTERFACE (iface),
01512     G_SIGNAL_RUN_LAST,
01513     G_STRUCT_OFFSET (ConsoleKitSessionIface, handle_set_idle_hint),
01514     g_signal_accumulator_true_handled,
01515     NULL,
01516     g_cclosure_marshal_generic,
01517     G_TYPE_BOOLEAN,
01518     2,
01519     G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_BOOLEAN);
01520 
01521   /* GObject signals for received D-Bus signals: */
01531   g_signal_new ("active-changed",
01532     G_TYPE_FROM_INTERFACE (iface),
01533     G_SIGNAL_RUN_LAST,
01534     G_STRUCT_OFFSET (ConsoleKitSessionIface, active_changed),
01535     NULL,
01536     NULL,
01537     g_cclosure_marshal_generic,
01538     G_TYPE_NONE,
01539     1, G_TYPE_BOOLEAN);
01540 
01550   g_signal_new ("idle-hint-changed",
01551     G_TYPE_FROM_INTERFACE (iface),
01552     G_SIGNAL_RUN_LAST,
01553     G_STRUCT_OFFSET (ConsoleKitSessionIface, idle_hint_changed),
01554     NULL,
01555     NULL,
01556     g_cclosure_marshal_generic,
01557     G_TYPE_NONE,
01558     1, G_TYPE_BOOLEAN);
01559 
01568   g_signal_new ("lock",
01569     G_TYPE_FROM_INTERFACE (iface),
01570     G_SIGNAL_RUN_LAST,
01571     G_STRUCT_OFFSET (ConsoleKitSessionIface, lock),
01572     NULL,
01573     NULL,
01574     g_cclosure_marshal_generic,
01575     G_TYPE_NONE,
01576     0);
01577 
01586   g_signal_new ("unlock",
01587     G_TYPE_FROM_INTERFACE (iface),
01588     G_SIGNAL_RUN_LAST,
01589     G_STRUCT_OFFSET (ConsoleKitSessionIface, unlock),
01590     NULL,
01591     NULL,
01592     g_cclosure_marshal_generic,
01593     G_TYPE_NONE,
01594     0);
01595 
01596   /* GObject properties for D-Bus properties: */
01604   g_object_interface_install_property (iface,
01605     g_param_spec_uint ("unix-user", "unix-user", "unix-user", 0, G_MAXUINT32, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
01613   g_object_interface_install_property (iface,
01614     g_param_spec_uint ("user", "user", "user", 0, G_MAXUINT32, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
01622   g_object_interface_install_property (iface,
01623     g_param_spec_string ("session-type", "session-type", "session-type", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
01631   g_object_interface_install_property (iface,
01632     g_param_spec_string ("remote-host-name", "remote-host-name", "remote-host-name", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
01640   g_object_interface_install_property (iface,
01641     g_param_spec_string ("display-device", "display-device", "display-device", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
01649   g_object_interface_install_property (iface,
01650     g_param_spec_string ("x11-display", "x11-display", "x11-display", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
01658   g_object_interface_install_property (iface,
01659     g_param_spec_string ("x11-display-device", "x11-display-device", "x11-display-device", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
01667   g_object_interface_install_property (iface,
01668     g_param_spec_boolean ("active", "active", "active", FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
01676   g_object_interface_install_property (iface,
01677     g_param_spec_boolean ("is-local", "is-local", "is-local", FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
01685   g_object_interface_install_property (iface,
01686     g_param_spec_boolean ("idle-hint", "idle-hint", "idle-hint", FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
01687 }
01688 
01689 typedef ConsoleKitSessionIface ConsoleKitSessionInterface;
01690 G_DEFINE_INTERFACE (ConsoleKitSession, console_kit_session, G_TYPE_OBJECT);
01691 
01702 guint 
01703 console_kit_session_get_unix_user (ConsoleKitSession *object)
01704 {
01705   return CONSOLE_KIT_SESSION_GET_IFACE (object)->get_unix_user (object);
01706 }
01707 
01717 void
01718 console_kit_session_set_unix_user (ConsoleKitSession *object, guint value)
01719 {
01720   g_object_set (G_OBJECT (object), "unix-user", value, NULL);
01721 }
01722 
01733 guint 
01734 console_kit_session_get_user (ConsoleKitSession *object)
01735 {
01736   return CONSOLE_KIT_SESSION_GET_IFACE (object)->get_user (object);
01737 }
01738 
01748 void
01749 console_kit_session_set_user (ConsoleKitSession *object, guint value)
01750 {
01751   g_object_set (G_OBJECT (object), "user", value, NULL);
01752 }
01753 
01766 const gchar *
01767 console_kit_session_get_session_type (ConsoleKitSession *object)
01768 {
01769   return CONSOLE_KIT_SESSION_GET_IFACE (object)->get_session_type (object);
01770 }
01771 
01782 gchar *
01783 console_kit_session_dup_session_type (ConsoleKitSession *object)
01784 {
01785   gchar *value;
01786   g_object_get (G_OBJECT (object), "session-type", &value, NULL);
01787   return value;
01788 }
01789 
01799 void
01800 console_kit_session_set_session_type (ConsoleKitSession *object, const gchar *value)
01801 {
01802   g_object_set (G_OBJECT (object), "session-type", value, NULL);
01803 }
01804 
01817 const gchar *
01818 console_kit_session_get_remote_host_name (ConsoleKitSession *object)
01819 {
01820   return CONSOLE_KIT_SESSION_GET_IFACE (object)->get_remote_host_name (object);
01821 }
01822 
01833 gchar *
01834 console_kit_session_dup_remote_host_name (ConsoleKitSession *object)
01835 {
01836   gchar *value;
01837   g_object_get (G_OBJECT (object), "remote-host-name", &value, NULL);
01838   return value;
01839 }
01840 
01850 void
01851 console_kit_session_set_remote_host_name (ConsoleKitSession *object, const gchar *value)
01852 {
01853   g_object_set (G_OBJECT (object), "remote-host-name", value, NULL);
01854 }
01855 
01868 const gchar *
01869 console_kit_session_get_display_device (ConsoleKitSession *object)
01870 {
01871   return CONSOLE_KIT_SESSION_GET_IFACE (object)->get_display_device (object);
01872 }
01873 
01884 gchar *
01885 console_kit_session_dup_display_device (ConsoleKitSession *object)
01886 {
01887   gchar *value;
01888   g_object_get (G_OBJECT (object), "display-device", &value, NULL);
01889   return value;
01890 }
01891 
01901 void
01902 console_kit_session_set_display_device (ConsoleKitSession *object, const gchar *value)
01903 {
01904   g_object_set (G_OBJECT (object), "display-device", value, NULL);
01905 }
01906 
01919 const gchar *
01920 console_kit_session_get_x11_display (ConsoleKitSession *object)
01921 {
01922   return CONSOLE_KIT_SESSION_GET_IFACE (object)->get_x11_display (object);
01923 }
01924 
01935 gchar *
01936 console_kit_session_dup_x11_display (ConsoleKitSession *object)
01937 {
01938   gchar *value;
01939   g_object_get (G_OBJECT (object), "x11-display", &value, NULL);
01940   return value;
01941 }
01942 
01952 void
01953 console_kit_session_set_x11_display (ConsoleKitSession *object, const gchar *value)
01954 {
01955   g_object_set (G_OBJECT (object), "x11-display", value, NULL);
01956 }
01957 
01970 const gchar *
01971 console_kit_session_get_x11_display_device (ConsoleKitSession *object)
01972 {
01973   return CONSOLE_KIT_SESSION_GET_IFACE (object)->get_x11_display_device (object);
01974 }
01975 
01986 gchar *
01987 console_kit_session_dup_x11_display_device (ConsoleKitSession *object)
01988 {
01989   gchar *value;
01990   g_object_get (G_OBJECT (object), "x11-display-device", &value, NULL);
01991   return value;
01992 }
01993 
02003 void
02004 console_kit_session_set_x11_display_device (ConsoleKitSession *object, const gchar *value)
02005 {
02006   g_object_set (G_OBJECT (object), "x11-display-device", value, NULL);
02007 }
02008 
02019 gboolean 
02020 console_kit_session_get_active (ConsoleKitSession *object)
02021 {
02022   return CONSOLE_KIT_SESSION_GET_IFACE (object)->get_active (object);
02023 }
02024 
02034 void
02035 console_kit_session_set_active (ConsoleKitSession *object, gboolean value)
02036 {
02037   g_object_set (G_OBJECT (object), "active", value, NULL);
02038 }
02039 
02050 gboolean 
02051 console_kit_session_get_is_local (ConsoleKitSession *object)
02052 {
02053   return CONSOLE_KIT_SESSION_GET_IFACE (object)->get_is_local (object);
02054 }
02055 
02065 void
02066 console_kit_session_set_is_local (ConsoleKitSession *object, gboolean value)
02067 {
02068   g_object_set (G_OBJECT (object), "is-local", value, NULL);
02069 }
02070 
02081 gboolean 
02082 console_kit_session_get_idle_hint (ConsoleKitSession *object)
02083 {
02084   return CONSOLE_KIT_SESSION_GET_IFACE (object)->get_idle_hint (object);
02085 }
02086 
02096 void
02097 console_kit_session_set_idle_hint (ConsoleKitSession *object, gboolean value)
02098 {
02099   g_object_set (G_OBJECT (object), "idle-hint", value, NULL);
02100 }
02101 
02109 void
02110 console_kit_session_emit_active_changed (
02111     ConsoleKitSession *object,
02112     gboolean arg_is_active)
02113 {
02114   g_signal_emit_by_name (object, "active-changed", arg_is_active);
02115 }
02116 
02124 void
02125 console_kit_session_emit_idle_hint_changed (
02126     ConsoleKitSession *object,
02127     gboolean arg_hint)
02128 {
02129   g_signal_emit_by_name (object, "idle-hint-changed", arg_hint);
02130 }
02131 
02138 void
02139 console_kit_session_emit_lock (
02140     ConsoleKitSession *object)
02141 {
02142   g_signal_emit_by_name (object, "lock");
02143 }
02144 
02151 void
02152 console_kit_session_emit_unlock (
02153     ConsoleKitSession *object)
02154 {
02155   g_signal_emit_by_name (object, "unlock");
02156 }
02157 
02171 void
02172 console_kit_session_call_get_id (
02173     ConsoleKitSession *proxy,
02174     GCancellable *cancellable,
02175     GAsyncReadyCallback callback,
02176     gpointer user_data)
02177 {
02178   g_dbus_proxy_call (G_DBUS_PROXY (proxy),
02179     "GetId",
02180     g_variant_new ("()"),
02181     G_DBUS_CALL_FLAGS_NONE,
02182     -1,
02183     cancellable,
02184     callback,
02185     user_data);
02186 }
02187 
02199 gboolean
02200 console_kit_session_call_get_id_finish (
02201     ConsoleKitSession *proxy,
02202     gchar **out_ssid,
02203     GAsyncResult *res,
02204     GError **error)
02205 {
02206   GVariant *_ret;
02207   _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
02208   if (_ret == NULL)
02209     goto _out;
02210   g_variant_get (_ret,
02211                  "(o)",
02212                  out_ssid);
02213   g_variant_unref (_ret);
02214 _out:
02215   return _ret != NULL;
02216 }
02217 
02231 gboolean
02232 console_kit_session_call_get_id_sync (
02233     ConsoleKitSession *proxy,
02234     gchar **out_ssid,
02235     GCancellable *cancellable,
02236     GError **error)
02237 {
02238   GVariant *_ret;
02239   _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
02240     "GetId",
02241     g_variant_new ("()"),
02242     G_DBUS_CALL_FLAGS_NONE,
02243     -1,
02244     cancellable,
02245     error);
02246   if (_ret == NULL)
02247     goto _out;
02248   g_variant_get (_ret,
02249                  "(o)",
02250                  out_ssid);
02251   g_variant_unref (_ret);
02252 _out:
02253   return _ret != NULL;
02254 }
02255 
02269 void
02270 console_kit_session_call_get_seat_id (
02271     ConsoleKitSession *proxy,
02272     GCancellable *cancellable,
02273     GAsyncReadyCallback callback,
02274     gpointer user_data)
02275 {
02276   g_dbus_proxy_call (G_DBUS_PROXY (proxy),
02277     "GetSeatId",
02278     g_variant_new ("()"),
02279     G_DBUS_CALL_FLAGS_NONE,
02280     -1,
02281     cancellable,
02282     callback,
02283     user_data);
02284 }
02285 
02297 gboolean
02298 console_kit_session_call_get_seat_id_finish (
02299     ConsoleKitSession *proxy,
02300     gchar **out_sid,
02301     GAsyncResult *res,
02302     GError **error)
02303 {
02304   GVariant *_ret;
02305   _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
02306   if (_ret == NULL)
02307     goto _out;
02308   g_variant_get (_ret,
02309                  "(o)",
02310                  out_sid);
02311   g_variant_unref (_ret);
02312 _out:
02313   return _ret != NULL;
02314 }
02315 
02329 gboolean
02330 console_kit_session_call_get_seat_id_sync (
02331     ConsoleKitSession *proxy,
02332     gchar **out_sid,
02333     GCancellable *cancellable,
02334     GError **error)
02335 {
02336   GVariant *_ret;
02337   _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
02338     "GetSeatId",
02339     g_variant_new ("()"),
02340     G_DBUS_CALL_FLAGS_NONE,
02341     -1,
02342     cancellable,
02343     error);
02344   if (_ret == NULL)
02345     goto _out;
02346   g_variant_get (_ret,
02347                  "(o)",
02348                  out_sid);
02349   g_variant_unref (_ret);
02350 _out:
02351   return _ret != NULL;
02352 }
02353 
02367 void
02368 console_kit_session_call_get_session_type (
02369     ConsoleKitSession *proxy,
02370     GCancellable *cancellable,
02371     GAsyncReadyCallback callback,
02372     gpointer user_data)
02373 {
02374   g_dbus_proxy_call (G_DBUS_PROXY (proxy),
02375     "GetSessionType",
02376     g_variant_new ("()"),
02377     G_DBUS_CALL_FLAGS_NONE,
02378     -1,
02379     cancellable,
02380     callback,
02381     user_data);
02382 }
02383 
02395 gboolean
02396 console_kit_session_call_get_session_type_finish (
02397     ConsoleKitSession *proxy,
02398     gchar **out_type,
02399     GAsyncResult *res,
02400     GError **error)
02401 {
02402   GVariant *_ret;
02403   _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
02404   if (_ret == NULL)
02405     goto _out;
02406   g_variant_get (_ret,
02407                  "(s)",
02408                  out_type);
02409   g_variant_unref (_ret);
02410 _out:
02411   return _ret != NULL;
02412 }
02413 
02427 gboolean
02428 console_kit_session_call_get_session_type_sync (
02429     ConsoleKitSession *proxy,
02430     gchar **out_type,
02431     GCancellable *cancellable,
02432     GError **error)
02433 {
02434   GVariant *_ret;
02435   _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
02436     "GetSessionType",
02437     g_variant_new ("()"),
02438     G_DBUS_CALL_FLAGS_NONE,
02439     -1,
02440     cancellable,
02441     error);
02442   if (_ret == NULL)
02443     goto _out;
02444   g_variant_get (_ret,
02445                  "(s)",
02446                  out_type);
02447   g_variant_unref (_ret);
02448 _out:
02449   return _ret != NULL;
02450 }
02451 
02465 void
02466 console_kit_session_call_get_user (
02467     ConsoleKitSession *proxy,
02468     GCancellable *cancellable,
02469     GAsyncReadyCallback callback,
02470     gpointer user_data)
02471 {
02472   g_dbus_proxy_call (G_DBUS_PROXY (proxy),
02473     "GetUser",
02474     g_variant_new ("()"),
02475     G_DBUS_CALL_FLAGS_NONE,
02476     -1,
02477     cancellable,
02478     callback,
02479     user_data);
02480 }
02481 
02493 gboolean
02494 console_kit_session_call_get_user_finish (
02495     ConsoleKitSession *proxy,
02496     guint *out_uid,
02497     GAsyncResult *res,
02498     GError **error)
02499 {
02500   GVariant *_ret;
02501   _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
02502   if (_ret == NULL)
02503     goto _out;
02504   g_variant_get (_ret,
02505                  "(u)",
02506                  out_uid);
02507   g_variant_unref (_ret);
02508 _out:
02509   return _ret != NULL;
02510 }
02511 
02525 gboolean
02526 console_kit_session_call_get_user_sync (
02527     ConsoleKitSession *proxy,
02528     guint *out_uid,
02529     GCancellable *cancellable,
02530     GError **error)
02531 {
02532   GVariant *_ret;
02533   _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
02534     "GetUser",
02535     g_variant_new ("()"),
02536     G_DBUS_CALL_FLAGS_NONE,
02537     -1,
02538     cancellable,
02539     error);
02540   if (_ret == NULL)
02541     goto _out;
02542   g_variant_get (_ret,
02543                  "(u)",
02544                  out_uid);
02545   g_variant_unref (_ret);
02546 _out:
02547   return _ret != NULL;
02548 }
02549 
02563 void
02564 console_kit_session_call_get_unix_user (
02565     ConsoleKitSession *proxy,
02566     GCancellable *cancellable,
02567     GAsyncReadyCallback callback,
02568     gpointer user_data)
02569 {
02570   g_dbus_proxy_call (G_DBUS_PROXY (proxy),
02571     "GetUnixUser",
02572     g_variant_new ("()"),
02573     G_DBUS_CALL_FLAGS_NONE,
02574     -1,
02575     cancellable,
02576     callback,
02577     user_data);
02578 }
02579 
02591 gboolean
02592 console_kit_session_call_get_unix_user_finish (
02593     ConsoleKitSession *proxy,
02594     guint *out_uid,
02595     GAsyncResult *res,
02596     GError **error)
02597 {
02598   GVariant *_ret;
02599   _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
02600   if (_ret == NULL)
02601     goto _out;
02602   g_variant_get (_ret,
02603                  "(u)",
02604                  out_uid);
02605   g_variant_unref (_ret);
02606 _out:
02607   return _ret != NULL;
02608 }
02609 
02623 gboolean
02624 console_kit_session_call_get_unix_user_sync (
02625     ConsoleKitSession *proxy,
02626     guint *out_uid,
02627     GCancellable *cancellable,
02628     GError **error)
02629 {
02630   GVariant *_ret;
02631   _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
02632     "GetUnixUser",
02633     g_variant_new ("()"),
02634     G_DBUS_CALL_FLAGS_NONE,
02635     -1,
02636     cancellable,
02637     error);
02638   if (_ret == NULL)
02639     goto _out;
02640   g_variant_get (_ret,
02641                  "(u)",
02642                  out_uid);
02643   g_variant_unref (_ret);
02644 _out:
02645   return _ret != NULL;
02646 }
02647 
02661 void
02662 console_kit_session_call_get_x11_display (
02663     ConsoleKitSession *proxy,
02664     GCancellable *cancellable,
02665     GAsyncReadyCallback callback,
02666     gpointer user_data)
02667 {
02668   g_dbus_proxy_call (G_DBUS_PROXY (proxy),
02669     "GetX11Display",
02670     g_variant_new ("()"),
02671     G_DBUS_CALL_FLAGS_NONE,
02672     -1,
02673     cancellable,
02674     callback,
02675     user_data);
02676 }
02677 
02689 gboolean
02690 console_kit_session_call_get_x11_display_finish (
02691     ConsoleKitSession *proxy,
02692     gchar **out_display,
02693     GAsyncResult *res,
02694     GError **error)
02695 {
02696   GVariant *_ret;
02697   _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
02698   if (_ret == NULL)
02699     goto _out;
02700   g_variant_get (_ret,
02701                  "(s)",
02702                  out_display);
02703   g_variant_unref (_ret);
02704 _out:
02705   return _ret != NULL;
02706 }
02707 
02721 gboolean
02722 console_kit_session_call_get_x11_display_sync (
02723     ConsoleKitSession *proxy,
02724     gchar **out_display,
02725     GCancellable *cancellable,
02726     GError **error)
02727 {
02728   GVariant *_ret;
02729   _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
02730     "GetX11Display",
02731     g_variant_new ("()"),
02732     G_DBUS_CALL_FLAGS_NONE,
02733     -1,
02734     cancellable,
02735     error);
02736   if (_ret == NULL)
02737     goto _out;
02738   g_variant_get (_ret,
02739                  "(s)",
02740                  out_display);
02741   g_variant_unref (_ret);
02742 _out:
02743   return _ret != NULL;
02744 }
02745 
02759 void
02760 console_kit_session_call_get_x11_display_device (
02761     ConsoleKitSession *proxy,
02762     GCancellable *cancellable,
02763     GAsyncReadyCallback callback,
02764     gpointer user_data)
02765 {
02766   g_dbus_proxy_call (G_DBUS_PROXY (proxy),
02767     "GetX11DisplayDevice",
02768     g_variant_new ("()"),
02769     G_DBUS_CALL_FLAGS_NONE,
02770     -1,
02771     cancellable,
02772     callback,
02773     user_data);
02774 }
02775 
02787 gboolean
02788 console_kit_session_call_get_x11_display_device_finish (
02789     ConsoleKitSession *proxy,
02790     gchar **out_x11_display_device,
02791     GAsyncResult *res,
02792     GError **error)
02793 {
02794   GVariant *_ret;
02795   _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
02796   if (_ret == NULL)
02797     goto _out;
02798   g_variant_get (_ret,
02799                  "(s)",
02800                  out_x11_display_device);
02801   g_variant_unref (_ret);
02802 _out:
02803   return _ret != NULL;
02804 }
02805 
02819 gboolean
02820 console_kit_session_call_get_x11_display_device_sync (
02821     ConsoleKitSession *proxy,
02822     gchar **out_x11_display_device,
02823     GCancellable *cancellable,
02824     GError **error)
02825 {
02826   GVariant *_ret;
02827   _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
02828     "GetX11DisplayDevice",
02829     g_variant_new ("()"),
02830     G_DBUS_CALL_FLAGS_NONE,
02831     -1,
02832     cancellable,
02833     error);
02834   if (_ret == NULL)
02835     goto _out;
02836   g_variant_get (_ret,
02837                  "(s)",
02838                  out_x11_display_device);
02839   g_variant_unref (_ret);
02840 _out:
02841   return _ret != NULL;
02842 }
02843 
02857 void
02858 console_kit_session_call_get_display_device (
02859     ConsoleKitSession *proxy,
02860     GCancellable *cancellable,
02861     GAsyncReadyCallback callback,
02862     gpointer user_data)
02863 {
02864   g_dbus_proxy_call (G_DBUS_PROXY (proxy),
02865     "GetDisplayDevice",
02866     g_variant_new ("()"),
02867     G_DBUS_CALL_FLAGS_NONE,
02868     -1,
02869     cancellable,
02870     callback,
02871     user_data);
02872 }
02873 
02885 gboolean
02886 console_kit_session_call_get_display_device_finish (
02887     ConsoleKitSession *proxy,
02888     gchar **out_display_device,
02889     GAsyncResult *res,
02890     GError **error)
02891 {
02892   GVariant *_ret;
02893   _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
02894   if (_ret == NULL)
02895     goto _out;
02896   g_variant_get (_ret,
02897                  "(s)",
02898                  out_display_device);
02899   g_variant_unref (_ret);
02900 _out:
02901   return _ret != NULL;
02902 }
02903 
02917 gboolean
02918 console_kit_session_call_get_display_device_sync (
02919     ConsoleKitSession *proxy,
02920     gchar **out_display_device,
02921     GCancellable *cancellable,
02922     GError **error)
02923 {
02924   GVariant *_ret;
02925   _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
02926     "GetDisplayDevice",
02927     g_variant_new ("()"),
02928     G_DBUS_CALL_FLAGS_NONE,
02929     -1,
02930     cancellable,
02931     error);
02932   if (_ret == NULL)
02933     goto _out;
02934   g_variant_get (_ret,
02935                  "(s)",
02936                  out_display_device);
02937   g_variant_unref (_ret);
02938 _out:
02939   return _ret != NULL;
02940 }
02941 
02955 void
02956 console_kit_session_call_get_remote_host_name (
02957     ConsoleKitSession *proxy,
02958     GCancellable *cancellable,
02959     GAsyncReadyCallback callback,
02960     gpointer user_data)
02961 {
02962   g_dbus_proxy_call (G_DBUS_PROXY (proxy),
02963     "GetRemoteHostName",
02964     g_variant_new ("()"),
02965     G_DBUS_CALL_FLAGS_NONE,
02966     -1,
02967     cancellable,
02968     callback,
02969     user_data);
02970 }
02971 
02983 gboolean
02984 console_kit_session_call_get_remote_host_name_finish (
02985     ConsoleKitSession *proxy,
02986     gchar **out_remote_host_name,
02987     GAsyncResult *res,
02988     GError **error)
02989 {
02990   GVariant *_ret;
02991   _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
02992   if (_ret == NULL)
02993     goto _out;
02994   g_variant_get (_ret,
02995                  "(s)",
02996                  out_remote_host_name);
02997   g_variant_unref (_ret);
02998 _out:
02999   return _ret != NULL;
03000 }
03001 
03015 gboolean
03016 console_kit_session_call_get_remote_host_name_sync (
03017     ConsoleKitSession *proxy,
03018     gchar **out_remote_host_name,
03019     GCancellable *cancellable,
03020     GError **error)
03021 {
03022   GVariant *_ret;
03023   _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
03024     "GetRemoteHostName",
03025     g_variant_new ("()"),
03026     G_DBUS_CALL_FLAGS_NONE,
03027     -1,
03028     cancellable,
03029     error);
03030   if (_ret == NULL)
03031     goto _out;
03032   g_variant_get (_ret,
03033                  "(s)",
03034                  out_remote_host_name);
03035   g_variant_unref (_ret);
03036 _out:
03037   return _ret != NULL;
03038 }
03039 
03053 void
03054 console_kit_session_call_get_login_session_id (
03055     ConsoleKitSession *proxy,
03056     GCancellable *cancellable,
03057     GAsyncReadyCallback callback,
03058     gpointer user_data)
03059 {
03060   g_dbus_proxy_call (G_DBUS_PROXY (proxy),
03061     "GetLoginSessionId",
03062     g_variant_new ("()"),
03063     G_DBUS_CALL_FLAGS_NONE,
03064     -1,
03065     cancellable,
03066     callback,
03067     user_data);
03068 }
03069 
03081 gboolean
03082 console_kit_session_call_get_login_session_id_finish (
03083     ConsoleKitSession *proxy,
03084     gchar **out_login_session_id,
03085     GAsyncResult *res,
03086     GError **error)
03087 {
03088   GVariant *_ret;
03089   _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
03090   if (_ret == NULL)
03091     goto _out;
03092   g_variant_get (_ret,
03093                  "(s)",
03094                  out_login_session_id);
03095   g_variant_unref (_ret);
03096 _out:
03097   return _ret != NULL;
03098 }
03099 
03113 gboolean
03114 console_kit_session_call_get_login_session_id_sync (
03115     ConsoleKitSession *proxy,
03116     gchar **out_login_session_id,
03117     GCancellable *cancellable,
03118     GError **error)
03119 {
03120   GVariant *_ret;
03121   _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
03122     "GetLoginSessionId",
03123     g_variant_new ("()"),
03124     G_DBUS_CALL_FLAGS_NONE,
03125     -1,
03126     cancellable,
03127     error);
03128   if (_ret == NULL)
03129     goto _out;
03130   g_variant_get (_ret,
03131                  "(s)",
03132                  out_login_session_id);
03133   g_variant_unref (_ret);
03134 _out:
03135   return _ret != NULL;
03136 }
03137 
03151 void
03152 console_kit_session_call_is_active (
03153     ConsoleKitSession *proxy,
03154     GCancellable *cancellable,
03155     GAsyncReadyCallback callback,
03156     gpointer user_data)
03157 {
03158   g_dbus_proxy_call (G_DBUS_PROXY (proxy),
03159     "IsActive",
03160     g_variant_new ("()"),
03161     G_DBUS_CALL_FLAGS_NONE,
03162     -1,
03163     cancellable,
03164     callback,
03165     user_data);
03166 }
03167 
03179 gboolean
03180 console_kit_session_call_is_active_finish (
03181     ConsoleKitSession *proxy,
03182     gboolean *out_active,
03183     GAsyncResult *res,
03184     GError **error)
03185 {
03186   GVariant *_ret;
03187   _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
03188   if (_ret == NULL)
03189     goto _out;
03190   g_variant_get (_ret,
03191                  "(b)",
03192                  out_active);
03193   g_variant_unref (_ret);
03194 _out:
03195   return _ret != NULL;
03196 }
03197 
03211 gboolean
03212 console_kit_session_call_is_active_sync (
03213     ConsoleKitSession *proxy,
03214     gboolean *out_active,
03215     GCancellable *cancellable,
03216     GError **error)
03217 {
03218   GVariant *_ret;
03219   _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
03220     "IsActive",
03221     g_variant_new ("()"),
03222     G_DBUS_CALL_FLAGS_NONE,
03223     -1,
03224     cancellable,
03225     error);
03226   if (_ret == NULL)
03227     goto _out;
03228   g_variant_get (_ret,
03229                  "(b)",
03230                  out_active);
03231   g_variant_unref (_ret);
03232 _out:
03233   return _ret != NULL;
03234 }
03235 
03249 void
03250 console_kit_session_call_is_local (
03251     ConsoleKitSession *proxy,
03252     GCancellable *cancellable,
03253     GAsyncReadyCallback callback,
03254     gpointer user_data)
03255 {
03256   g_dbus_proxy_call (G_DBUS_PROXY (proxy),
03257     "IsLocal",
03258     g_variant_new ("()"),
03259     G_DBUS_CALL_FLAGS_NONE,
03260     -1,
03261     cancellable,
03262     callback,
03263     user_data);
03264 }
03265 
03277 gboolean
03278 console_kit_session_call_is_local_finish (
03279     ConsoleKitSession *proxy,
03280     gboolean *out_local,
03281     GAsyncResult *res,
03282     GError **error)
03283 {
03284   GVariant *_ret;
03285   _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
03286   if (_ret == NULL)
03287     goto _out;
03288   g_variant_get (_ret,
03289                  "(b)",
03290                  out_local);
03291   g_variant_unref (_ret);
03292 _out:
03293   return _ret != NULL;
03294 }
03295 
03309 gboolean
03310 console_kit_session_call_is_local_sync (
03311     ConsoleKitSession *proxy,
03312     gboolean *out_local,
03313     GCancellable *cancellable,
03314     GError **error)
03315 {
03316   GVariant *_ret;
03317   _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
03318     "IsLocal",
03319     g_variant_new ("()"),
03320     G_DBUS_CALL_FLAGS_NONE,
03321     -1,
03322     cancellable,
03323     error);
03324   if (_ret == NULL)
03325     goto _out;
03326   g_variant_get (_ret,
03327                  "(b)",
03328                  out_local);
03329   g_variant_unref (_ret);
03330 _out:
03331   return _ret != NULL;
03332 }
03333 
03347 void
03348 console_kit_session_call_get_creation_time (
03349     ConsoleKitSession *proxy,
03350     GCancellable *cancellable,
03351     GAsyncReadyCallback callback,
03352     gpointer user_data)
03353 {
03354   g_dbus_proxy_call (G_DBUS_PROXY (proxy),
03355     "GetCreationTime",
03356     g_variant_new ("()"),
03357     G_DBUS_CALL_FLAGS_NONE,
03358     -1,
03359     cancellable,
03360     callback,
03361     user_data);
03362 }
03363 
03375 gboolean
03376 console_kit_session_call_get_creation_time_finish (
03377     ConsoleKitSession *proxy,
03378     gchar **out_iso8601_datetime,
03379     GAsyncResult *res,
03380     GError **error)
03381 {
03382   GVariant *_ret;
03383   _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
03384   if (_ret == NULL)
03385     goto _out;
03386   g_variant_get (_ret,
03387                  "(s)",
03388                  out_iso8601_datetime);
03389   g_variant_unref (_ret);
03390 _out:
03391   return _ret != NULL;
03392 }
03393 
03407 gboolean
03408 console_kit_session_call_get_creation_time_sync (
03409     ConsoleKitSession *proxy,
03410     gchar **out_iso8601_datetime,
03411     GCancellable *cancellable,
03412     GError **error)
03413 {
03414   GVariant *_ret;
03415   _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
03416     "GetCreationTime",
03417     g_variant_new ("()"),
03418     G_DBUS_CALL_FLAGS_NONE,
03419     -1,
03420     cancellable,
03421     error);
03422   if (_ret == NULL)
03423     goto _out;
03424   g_variant_get (_ret,
03425                  "(s)",
03426                  out_iso8601_datetime);
03427   g_variant_unref (_ret);
03428 _out:
03429   return _ret != NULL;
03430 }
03431 
03445 void
03446 console_kit_session_call_activate (
03447     ConsoleKitSession *proxy,
03448     GCancellable *cancellable,
03449     GAsyncReadyCallback callback,
03450     gpointer user_data)
03451 {
03452   g_dbus_proxy_call (G_DBUS_PROXY (proxy),
03453     "Activate",
03454     g_variant_new ("()"),
03455     G_DBUS_CALL_FLAGS_NONE,
03456     -1,
03457     cancellable,
03458     callback,
03459     user_data);
03460 }
03461 
03472 gboolean
03473 console_kit_session_call_activate_finish (
03474     ConsoleKitSession *proxy,
03475     GAsyncResult *res,
03476     GError **error)
03477 {
03478   GVariant *_ret;
03479   _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
03480   if (_ret == NULL)
03481     goto _out;
03482   g_variant_get (_ret,
03483                  "()");
03484   g_variant_unref (_ret);
03485 _out:
03486   return _ret != NULL;
03487 }
03488 
03501 gboolean
03502 console_kit_session_call_activate_sync (
03503     ConsoleKitSession *proxy,
03504     GCancellable *cancellable,
03505     GError **error)
03506 {
03507   GVariant *_ret;
03508   _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
03509     "Activate",
03510     g_variant_new ("()"),
03511     G_DBUS_CALL_FLAGS_NONE,
03512     -1,
03513     cancellable,
03514     error);
03515   if (_ret == NULL)
03516     goto _out;
03517   g_variant_get (_ret,
03518                  "()");
03519   g_variant_unref (_ret);
03520 _out:
03521   return _ret != NULL;
03522 }
03523 
03537 void
03538 console_kit_session_call_lock (
03539     ConsoleKitSession *proxy,
03540     GCancellable *cancellable,
03541     GAsyncReadyCallback callback,
03542     gpointer user_data)
03543 {
03544   g_dbus_proxy_call (G_DBUS_PROXY (proxy),
03545     "Lock",
03546     g_variant_new ("()"),
03547     G_DBUS_CALL_FLAGS_NONE,
03548     -1,
03549     cancellable,
03550     callback,
03551     user_data);
03552 }
03553 
03564 gboolean
03565 console_kit_session_call_lock_finish (
03566     ConsoleKitSession *proxy,
03567     GAsyncResult *res,
03568     GError **error)
03569 {
03570   GVariant *_ret;
03571   _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
03572   if (_ret == NULL)
03573     goto _out;
03574   g_variant_get (_ret,
03575                  "()");
03576   g_variant_unref (_ret);
03577 _out:
03578   return _ret != NULL;
03579 }
03580 
03593 gboolean
03594 console_kit_session_call_lock_sync (
03595     ConsoleKitSession *proxy,
03596     GCancellable *cancellable,
03597     GError **error)
03598 {
03599   GVariant *_ret;
03600   _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
03601     "Lock",
03602     g_variant_new ("()"),
03603     G_DBUS_CALL_FLAGS_NONE,
03604     -1,
03605     cancellable,
03606     error);
03607   if (_ret == NULL)
03608     goto _out;
03609   g_variant_get (_ret,
03610                  "()");
03611   g_variant_unref (_ret);
03612 _out:
03613   return _ret != NULL;
03614 }
03615 
03629 void
03630 console_kit_session_call_unlock (
03631     ConsoleKitSession *proxy,
03632     GCancellable *cancellable,
03633     GAsyncReadyCallback callback,
03634     gpointer user_data)
03635 {
03636   g_dbus_proxy_call (G_DBUS_PROXY (proxy),
03637     "Unlock",
03638     g_variant_new ("()"),
03639     G_DBUS_CALL_FLAGS_NONE,
03640     -1,
03641     cancellable,
03642     callback,
03643     user_data);
03644 }
03645 
03656 gboolean
03657 console_kit_session_call_unlock_finish (
03658     ConsoleKitSession *proxy,
03659     GAsyncResult *res,
03660     GError **error)
03661 {
03662   GVariant *_ret;
03663   _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
03664   if (_ret == NULL)
03665     goto _out;
03666   g_variant_get (_ret,
03667                  "()");
03668   g_variant_unref (_ret);
03669 _out:
03670   return _ret != NULL;
03671 }
03672 
03685 gboolean
03686 console_kit_session_call_unlock_sync (
03687     ConsoleKitSession *proxy,
03688     GCancellable *cancellable,
03689     GError **error)
03690 {
03691   GVariant *_ret;
03692   _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
03693     "Unlock",
03694     g_variant_new ("()"),
03695     G_DBUS_CALL_FLAGS_NONE,
03696     -1,
03697     cancellable,
03698     error);
03699   if (_ret == NULL)
03700     goto _out;
03701   g_variant_get (_ret,
03702                  "()");
03703   g_variant_unref (_ret);
03704 _out:
03705   return _ret != NULL;
03706 }
03707 
03721 void
03722 console_kit_session_call_get_idle_hint (
03723     ConsoleKitSession *proxy,
03724     GCancellable *cancellable,
03725     GAsyncReadyCallback callback,
03726     gpointer user_data)
03727 {
03728   g_dbus_proxy_call (G_DBUS_PROXY (proxy),
03729     "GetIdleHint",
03730     g_variant_new ("()"),
03731     G_DBUS_CALL_FLAGS_NONE,
03732     -1,
03733     cancellable,
03734     callback,
03735     user_data);
03736 }
03737 
03749 gboolean
03750 console_kit_session_call_get_idle_hint_finish (
03751     ConsoleKitSession *proxy,
03752     gboolean *out_idle_hint,
03753     GAsyncResult *res,
03754     GError **error)
03755 {
03756   GVariant *_ret;
03757   _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
03758   if (_ret == NULL)
03759     goto _out;
03760   g_variant_get (_ret,
03761                  "(b)",
03762                  out_idle_hint);
03763   g_variant_unref (_ret);
03764 _out:
03765   return _ret != NULL;
03766 }
03767 
03781 gboolean
03782 console_kit_session_call_get_idle_hint_sync (
03783     ConsoleKitSession *proxy,
03784     gboolean *out_idle_hint,
03785     GCancellable *cancellable,
03786     GError **error)
03787 {
03788   GVariant *_ret;
03789   _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
03790     "GetIdleHint",
03791     g_variant_new ("()"),
03792     G_DBUS_CALL_FLAGS_NONE,
03793     -1,
03794     cancellable,
03795     error);
03796   if (_ret == NULL)
03797     goto _out;
03798   g_variant_get (_ret,
03799                  "(b)",
03800                  out_idle_hint);
03801   g_variant_unref (_ret);
03802 _out:
03803   return _ret != NULL;
03804 }
03805 
03819 void
03820 console_kit_session_call_get_idle_since_hint (
03821     ConsoleKitSession *proxy,
03822     GCancellable *cancellable,
03823     GAsyncReadyCallback callback,
03824     gpointer user_data)
03825 {
03826   g_dbus_proxy_call (G_DBUS_PROXY (proxy),
03827     "GetIdleSinceHint",
03828     g_variant_new ("()"),
03829     G_DBUS_CALL_FLAGS_NONE,
03830     -1,
03831     cancellable,
03832     callback,
03833     user_data);
03834 }
03835 
03847 gboolean
03848 console_kit_session_call_get_idle_since_hint_finish (
03849     ConsoleKitSession *proxy,
03850     gchar **out_iso8601_datetime,
03851     GAsyncResult *res,
03852     GError **error)
03853 {
03854   GVariant *_ret;
03855   _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
03856   if (_ret == NULL)
03857     goto _out;
03858   g_variant_get (_ret,
03859                  "(s)",
03860                  out_iso8601_datetime);
03861   g_variant_unref (_ret);
03862 _out:
03863   return _ret != NULL;
03864 }
03865 
03879 gboolean
03880 console_kit_session_call_get_idle_since_hint_sync (
03881     ConsoleKitSession *proxy,
03882     gchar **out_iso8601_datetime,
03883     GCancellable *cancellable,
03884     GError **error)
03885 {
03886   GVariant *_ret;
03887   _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
03888     "GetIdleSinceHint",
03889     g_variant_new ("()"),
03890     G_DBUS_CALL_FLAGS_NONE,
03891     -1,
03892     cancellable,
03893     error);
03894   if (_ret == NULL)
03895     goto _out;
03896   g_variant_get (_ret,
03897                  "(s)",
03898                  out_iso8601_datetime);
03899   g_variant_unref (_ret);
03900 _out:
03901   return _ret != NULL;
03902 }
03903 
03918 void
03919 console_kit_session_call_set_idle_hint (
03920     ConsoleKitSession *proxy,
03921     gboolean arg_idle_hint,
03922     GCancellable *cancellable,
03923     GAsyncReadyCallback callback,
03924     gpointer user_data)
03925 {
03926   g_dbus_proxy_call (G_DBUS_PROXY (proxy),
03927     "SetIdleHint",
03928     g_variant_new ("(b)",
03929                    arg_idle_hint),
03930     G_DBUS_CALL_FLAGS_NONE,
03931     -1,
03932     cancellable,
03933     callback,
03934     user_data);
03935 }
03936 
03947 gboolean
03948 console_kit_session_call_set_idle_hint_finish (
03949     ConsoleKitSession *proxy,
03950     GAsyncResult *res,
03951     GError **error)
03952 {
03953   GVariant *_ret;
03954   _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
03955   if (_ret == NULL)
03956     goto _out;
03957   g_variant_get (_ret,
03958                  "()");
03959   g_variant_unref (_ret);
03960 _out:
03961   return _ret != NULL;
03962 }
03963 
03977 gboolean
03978 console_kit_session_call_set_idle_hint_sync (
03979     ConsoleKitSession *proxy,
03980     gboolean arg_idle_hint,
03981     GCancellable *cancellable,
03982     GError **error)
03983 {
03984   GVariant *_ret;
03985   _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
03986     "SetIdleHint",
03987     g_variant_new ("(b)",
03988                    arg_idle_hint),
03989     G_DBUS_CALL_FLAGS_NONE,
03990     -1,
03991     cancellable,
03992     error);
03993   if (_ret == NULL)
03994     goto _out;
03995   g_variant_get (_ret,
03996                  "()");
03997   g_variant_unref (_ret);
03998 _out:
03999   return _ret != NULL;
04000 }
04001 
04012 void
04013 console_kit_session_complete_get_id (
04014     ConsoleKitSession *object,
04015     GDBusMethodInvocation *invocation,
04016     const gchar *ssid)
04017 {
04018   g_dbus_method_invocation_return_value (invocation,
04019     g_variant_new ("(o)",
04020                    ssid));
04021 }
04022 
04033 void
04034 console_kit_session_complete_get_seat_id (
04035     ConsoleKitSession *object,
04036     GDBusMethodInvocation *invocation,
04037     const gchar *sid)
04038 {
04039   g_dbus_method_invocation_return_value (invocation,
04040     g_variant_new ("(o)",
04041                    sid));
04042 }
04043 
04054 void
04055 console_kit_session_complete_get_session_type (
04056     ConsoleKitSession *object,
04057     GDBusMethodInvocation *invocation,
04058     const gchar *type)
04059 {
04060   g_dbus_method_invocation_return_value (invocation,
04061     g_variant_new ("(s)",
04062                    type));
04063 }
04064 
04075 void
04076 console_kit_session_complete_get_user (
04077     ConsoleKitSession *object,
04078     GDBusMethodInvocation *invocation,
04079     guint uid)
04080 {
04081   g_dbus_method_invocation_return_value (invocation,
04082     g_variant_new ("(u)",
04083                    uid));
04084 }
04085 
04096 void
04097 console_kit_session_complete_get_unix_user (
04098     ConsoleKitSession *object,
04099     GDBusMethodInvocation *invocation,
04100     guint uid)
04101 {
04102   g_dbus_method_invocation_return_value (invocation,
04103     g_variant_new ("(u)",
04104                    uid));
04105 }
04106 
04117 void
04118 console_kit_session_complete_get_x11_display (
04119     ConsoleKitSession *object,
04120     GDBusMethodInvocation *invocation,
04121     const gchar *display)
04122 {
04123   g_dbus_method_invocation_return_value (invocation,
04124     g_variant_new ("(s)",
04125                    display));
04126 }
04127 
04138 void
04139 console_kit_session_complete_get_x11_display_device (
04140     ConsoleKitSession *object,
04141     GDBusMethodInvocation *invocation,
04142     const gchar *x11_display_device)
04143 {
04144   g_dbus_method_invocation_return_value (invocation,
04145     g_variant_new ("(s)",
04146                    x11_display_device));
04147 }
04148 
04159 void
04160 console_kit_session_complete_get_display_device (
04161     ConsoleKitSession *object,
04162     GDBusMethodInvocation *invocation,
04163     const gchar *display_device)
04164 {
04165   g_dbus_method_invocation_return_value (invocation,
04166     g_variant_new ("(s)",
04167                    display_device));
04168 }
04169 
04180 void
04181 console_kit_session_complete_get_remote_host_name (
04182     ConsoleKitSession *object,
04183     GDBusMethodInvocation *invocation,
04184     const gchar *remote_host_name)
04185 {
04186   g_dbus_method_invocation_return_value (invocation,
04187     g_variant_new ("(s)",
04188                    remote_host_name));
04189 }
04190 
04201 void
04202 console_kit_session_complete_get_login_session_id (
04203     ConsoleKitSession *object,
04204     GDBusMethodInvocation *invocation,
04205     const gchar *login_session_id)
04206 {
04207   g_dbus_method_invocation_return_value (invocation,
04208     g_variant_new ("(s)",
04209                    login_session_id));
04210 }
04211 
04222 void
04223 console_kit_session_complete_is_active (
04224     ConsoleKitSession *object,
04225     GDBusMethodInvocation *invocation,
04226     gboolean active)
04227 {
04228   g_dbus_method_invocation_return_value (invocation,
04229     g_variant_new ("(b)",
04230                    active));
04231 }
04232 
04243 void
04244 console_kit_session_complete_is_local (
04245     ConsoleKitSession *object,
04246     GDBusMethodInvocation *invocation,
04247     gboolean local)
04248 {
04249   g_dbus_method_invocation_return_value (invocation,
04250     g_variant_new ("(b)",
04251                    local));
04252 }
04253 
04264 void
04265 console_kit_session_complete_get_creation_time (
04266     ConsoleKitSession *object,
04267     GDBusMethodInvocation *invocation,
04268     const gchar *iso8601_datetime)
04269 {
04270   g_dbus_method_invocation_return_value (invocation,
04271     g_variant_new ("(s)",
04272                    iso8601_datetime));
04273 }
04274 
04284 void
04285 console_kit_session_complete_activate (
04286     ConsoleKitSession *object,
04287     GDBusMethodInvocation *invocation)
04288 {
04289   g_dbus_method_invocation_return_value (invocation,
04290     g_variant_new ("()"));
04291 }
04292 
04302 void
04303 console_kit_session_complete_lock (
04304     ConsoleKitSession *object,
04305     GDBusMethodInvocation *invocation)
04306 {
04307   g_dbus_method_invocation_return_value (invocation,
04308     g_variant_new ("()"));
04309 }
04310 
04320 void
04321 console_kit_session_complete_unlock (
04322     ConsoleKitSession *object,
04323     GDBusMethodInvocation *invocation)
04324 {
04325   g_dbus_method_invocation_return_value (invocation,
04326     g_variant_new ("()"));
04327 }
04328 
04339 void
04340 console_kit_session_complete_get_idle_hint (
04341     ConsoleKitSession *object,
04342     GDBusMethodInvocation *invocation,
04343     gboolean idle_hint)
04344 {
04345   g_dbus_method_invocation_return_value (invocation,
04346     g_variant_new ("(b)",
04347                    idle_hint));
04348 }
04349 
04360 void
04361 console_kit_session_complete_get_idle_since_hint (
04362     ConsoleKitSession *object,
04363     GDBusMethodInvocation *invocation,
04364     const gchar *iso8601_datetime)
04365 {
04366   g_dbus_method_invocation_return_value (invocation,
04367     g_variant_new ("(s)",
04368                    iso8601_datetime));
04369 }
04370 
04380 void
04381 console_kit_session_complete_set_idle_hint (
04382     ConsoleKitSession *object,
04383     GDBusMethodInvocation *invocation)
04384 {
04385   g_dbus_method_invocation_return_value (invocation,
04386     g_variant_new ("()"));
04387 }
04388 
04389 /* ------------------------------------------------------------------------ */
04390 
04404 struct _ConsoleKitSessionProxyPrivate
04405 {
04406   GData *qdata;
04407 };
04408 
04409 static void console_kit_session_proxy_iface_init (ConsoleKitSessionIface *iface);
04410 
04411 G_DEFINE_TYPE_WITH_CODE (ConsoleKitSessionProxy, console_kit_session_proxy, G_TYPE_DBUS_PROXY,
04412                          G_IMPLEMENT_INTERFACE (TYPE_CONSOLE_KIT_SESSION, console_kit_session_proxy_iface_init));
04413 
04414 static void
04415 console_kit_session_proxy_finalize (GObject *object)
04416 {
04417   ConsoleKitSessionProxy *proxy = CONSOLE_KIT_SESSION_PROXY (object);
04418   g_datalist_clear (&proxy->priv->qdata);
04419   G_OBJECT_CLASS (console_kit_session_proxy_parent_class)->finalize (object);
04420 }
04421 
04422 static void
04423 console_kit_session_proxy_get_property (GObject      *object,
04424   guint         prop_id,
04425   GValue       *value,
04426   GParamSpec   *pspec)
04427 {
04428   const _ExtendedGDBusPropertyInfo *info;
04429   GVariant *variant;
04430   g_assert (prop_id != 0 && prop_id - 1 < 10);
04431   info = _console_kit_session_property_info_pointers[prop_id - 1];
04432   variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name);
04433   if (info->use_gvariant)
04434     {
04435       g_value_set_variant (value, variant);
04436     }
04437   else
04438     {
04439       if (variant != NULL)
04440         g_dbus_gvariant_to_gvalue (variant, value);
04441     }
04442   if (variant != NULL)
04443     g_variant_unref (variant);
04444 }
04445 
04446 static void
04447 console_kit_session_proxy_set_property_cb (GDBusProxy *proxy,
04448   GAsyncResult *res,
04449   gpointer      user_data)
04450 {
04451   const _ExtendedGDBusPropertyInfo *info = user_data;
04452   GError *error;
04453   error = NULL;
04454   if (!g_dbus_proxy_call_finish (proxy, res, &error))
04455     {
04456       g_warning ("Error setting property `%s' on interface org.freedesktop.ConsoleKit.Session: %s (%s, %d)",
04457                  info->parent_struct.name, 
04458                  error->message, g_quark_to_string (error->domain), error->code);
04459       g_error_free (error);
04460     }
04461 }
04462 
04463 static void
04464 console_kit_session_proxy_set_property (GObject      *object,
04465   guint         prop_id,
04466   const GValue *value,
04467   GParamSpec   *pspec)
04468 {
04469   const _ExtendedGDBusPropertyInfo *info;
04470   GVariant *variant;
04471   g_assert (prop_id != 0 && prop_id - 1 < 10);
04472   info = _console_kit_session_property_info_pointers[prop_id - 1];
04473   variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature));
04474   g_dbus_proxy_call (G_DBUS_PROXY (object),
04475     "org.freedesktop.DBus.Properties.Set",
04476     g_variant_new ("(ssv)", "org.freedesktop.ConsoleKit.Session", info->parent_struct.name, variant),
04477     G_DBUS_CALL_FLAGS_NONE,
04478     -1,
04479     NULL, (GAsyncReadyCallback) console_kit_session_proxy_set_property_cb, (gpointer) info);
04480   g_variant_unref (variant);
04481 }
04482 
04483 static void
04484 console_kit_session_proxy_g_signal (GDBusProxy *proxy,
04485   const gchar *sender_name,
04486   const gchar *signal_name,
04487   GVariant *parameters)
04488 {
04489   _ExtendedGDBusSignalInfo *info;
04490   GVariantIter iter;
04491   GVariant *child;
04492   GValue *paramv;
04493   guint num_params;
04494   guint n;
04495   guint signal_id;
04496   info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_console_kit_session_interface_info, signal_name);
04497   if (info == NULL)
04498     return;
04499   num_params = g_variant_n_children (parameters);
04500   paramv = g_new0 (GValue, num_params + 1);
04501   g_value_init (&paramv[0], TYPE_CONSOLE_KIT_SESSION);
04502   g_value_set_object (&paramv[0], proxy);
04503   g_variant_iter_init (&iter, parameters);
04504   n = 1;
04505   while ((child = g_variant_iter_next_value (&iter)) != NULL)
04506     {
04507       _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1];
04508       if (arg_info->use_gvariant)
04509         {
04510           g_value_init (&paramv[n], G_TYPE_VARIANT);
04511           g_value_set_variant (&paramv[n], child);
04512           n++;
04513         }
04514       else
04515         g_dbus_gvariant_to_gvalue (child, &paramv[n++]);
04516       g_variant_unref (child);
04517     }
04518   signal_id = g_signal_lookup (info->signal_name, TYPE_CONSOLE_KIT_SESSION);
04519   g_signal_emitv (paramv, signal_id, 0, NULL);
04520   for (n = 0; n < num_params + 1; n++)
04521     g_value_unset (&paramv[n]);
04522   g_free (paramv);
04523 }
04524 
04525 static void
04526 console_kit_session_proxy_g_properties_changed (GDBusProxy *_proxy,
04527   GVariant *changed_properties,
04528   const gchar *const *invalidated_properties)
04529 {
04530   ConsoleKitSessionProxy *proxy = CONSOLE_KIT_SESSION_PROXY (_proxy);
04531   guint n;
04532   const gchar *key;
04533   GVariantIter *iter;
04534   _ExtendedGDBusPropertyInfo *info;
04535   g_variant_get (changed_properties, "a{sv}", &iter);
04536   while (g_variant_iter_next (iter, "{&sv}", &key, NULL))
04537     {
04538       info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_console_kit_session_interface_info, key);
04539       g_datalist_remove_data (&proxy->priv->qdata, key);
04540       if (info != NULL)
04541         g_object_notify (G_OBJECT (proxy), info->hyphen_name);
04542     }
04543   g_variant_iter_free (iter);
04544   for (n = 0; invalidated_properties[n] != NULL; n++)
04545     {
04546       info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_console_kit_session_interface_info, invalidated_properties[n]);
04547       g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]);
04548       if (info != NULL)
04549         g_object_notify (G_OBJECT (proxy), info->hyphen_name);
04550     }
04551 }
04552 
04553 static guint 
04554 console_kit_session_proxy_get_unix_user (ConsoleKitSession *object)
04555 {
04556   ConsoleKitSessionProxy *proxy = CONSOLE_KIT_SESSION_PROXY (object);
04557   GVariant *variant;
04558   guint value = 0;
04559   variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "unix-user");
04560   if (variant != NULL)
04561     {
04562       value = g_variant_get_uint32 (variant);
04563       g_variant_unref (variant);
04564     }
04565   return value;
04566 }
04567 
04568 static guint 
04569 console_kit_session_proxy_get_user (ConsoleKitSession *object)
04570 {
04571   ConsoleKitSessionProxy *proxy = CONSOLE_KIT_SESSION_PROXY (object);
04572   GVariant *variant;
04573   guint value = 0;
04574   variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "user");
04575   if (variant != NULL)
04576     {
04577       value = g_variant_get_uint32 (variant);
04578       g_variant_unref (variant);
04579     }
04580   return value;
04581 }
04582 
04583 static const gchar *
04584 console_kit_session_proxy_get_session_type (ConsoleKitSession *object)
04585 {
04586   ConsoleKitSessionProxy *proxy = CONSOLE_KIT_SESSION_PROXY (object);
04587   GVariant *variant;
04588   const gchar *value = NULL;
04589   variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "session-type");
04590   if (variant != NULL)
04591     {
04592       value = g_variant_get_string (variant, NULL);
04593       g_variant_unref (variant);
04594     }
04595   return value;
04596 }
04597 
04598 static const gchar *
04599 console_kit_session_proxy_get_remote_host_name (ConsoleKitSession *object)
04600 {
04601   ConsoleKitSessionProxy *proxy = CONSOLE_KIT_SESSION_PROXY (object);
04602   GVariant *variant;
04603   const gchar *value = NULL;
04604   variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "remote-host-name");
04605   if (variant != NULL)
04606     {
04607       value = g_variant_get_string (variant, NULL);
04608       g_variant_unref (variant);
04609     }
04610   return value;
04611 }
04612 
04613 static const gchar *
04614 console_kit_session_proxy_get_display_device (ConsoleKitSession *object)
04615 {
04616   ConsoleKitSessionProxy *proxy = CONSOLE_KIT_SESSION_PROXY (object);
04617   GVariant *variant;
04618   const gchar *value = NULL;
04619   variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "display-device");
04620   if (variant != NULL)
04621     {
04622       value = g_variant_get_string (variant, NULL);
04623       g_variant_unref (variant);
04624     }
04625   return value;
04626 }
04627 
04628 static const gchar *
04629 console_kit_session_proxy_get_x11_display (ConsoleKitSession *object)
04630 {
04631   ConsoleKitSessionProxy *proxy = CONSOLE_KIT_SESSION_PROXY (object);
04632   GVariant *variant;
04633   const gchar *value = NULL;
04634   variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "x11-display");
04635   if (variant != NULL)
04636     {
04637       value = g_variant_get_string (variant, NULL);
04638       g_variant_unref (variant);
04639     }
04640   return value;
04641 }
04642 
04643 static const gchar *
04644 console_kit_session_proxy_get_x11_display_device (ConsoleKitSession *object)
04645 {
04646   ConsoleKitSessionProxy *proxy = CONSOLE_KIT_SESSION_PROXY (object);
04647   GVariant *variant;
04648   const gchar *value = NULL;
04649   variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "x11-display-device");
04650   if (variant != NULL)
04651     {
04652       value = g_variant_get_string (variant, NULL);
04653       g_variant_unref (variant);
04654     }
04655   return value;
04656 }
04657 
04658 static gboolean 
04659 console_kit_session_proxy_get_active (ConsoleKitSession *object)
04660 {
04661   ConsoleKitSessionProxy *proxy = CONSOLE_KIT_SESSION_PROXY (object);
04662   GVariant *variant;
04663   gboolean value = 0;
04664   variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "active");
04665   if (variant != NULL)
04666     {
04667       value = g_variant_get_boolean (variant);
04668       g_variant_unref (variant);
04669     }
04670   return value;
04671 }
04672 
04673 static gboolean 
04674 console_kit_session_proxy_get_is_local (ConsoleKitSession *object)
04675 {
04676   ConsoleKitSessionProxy *proxy = CONSOLE_KIT_SESSION_PROXY (object);
04677   GVariant *variant;
04678   gboolean value = 0;
04679   variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "is-local");
04680   if (variant != NULL)
04681     {
04682       value = g_variant_get_boolean (variant);
04683       g_variant_unref (variant);
04684     }
04685   return value;
04686 }
04687 
04688 static gboolean 
04689 console_kit_session_proxy_get_idle_hint (ConsoleKitSession *object)
04690 {
04691   ConsoleKitSessionProxy *proxy = CONSOLE_KIT_SESSION_PROXY (object);
04692   GVariant *variant;
04693   gboolean value = 0;
04694   variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "idle-hint");
04695   if (variant != NULL)
04696     {
04697       value = g_variant_get_boolean (variant);
04698       g_variant_unref (variant);
04699     }
04700   return value;
04701 }
04702 
04703 static void
04704 console_kit_session_proxy_init (ConsoleKitSessionProxy *proxy)
04705 {
04706   proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_CONSOLE_KIT_SESSION_PROXY, ConsoleKitSessionProxyPrivate);
04707   g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), console_kit_session_interface_info ());
04708 }
04709 
04710 static void
04711 console_kit_session_proxy_class_init (ConsoleKitSessionProxyClass *klass)
04712 {
04713   GObjectClass *gobject_class;
04714   GDBusProxyClass *proxy_class;
04715 
04716   g_type_class_add_private (klass, sizeof (ConsoleKitSessionProxyPrivate));
04717 
04718   gobject_class = G_OBJECT_CLASS (klass);
04719   gobject_class->finalize     = console_kit_session_proxy_finalize;
04720   gobject_class->get_property = console_kit_session_proxy_get_property;
04721   gobject_class->set_property = console_kit_session_proxy_set_property;
04722 
04723   proxy_class = G_DBUS_PROXY_CLASS (klass);
04724   proxy_class->g_signal = console_kit_session_proxy_g_signal;
04725   proxy_class->g_properties_changed = console_kit_session_proxy_g_properties_changed;
04726 
04727 
04728   console_kit_session_override_properties (gobject_class, 1);
04729 }
04730 
04731 static void
04732 console_kit_session_proxy_iface_init (ConsoleKitSessionIface *iface)
04733 {
04734   iface->get_unix_user = console_kit_session_proxy_get_unix_user;
04735   iface->get_user = console_kit_session_proxy_get_user;
04736   iface->get_session_type = console_kit_session_proxy_get_session_type;
04737   iface->get_remote_host_name = console_kit_session_proxy_get_remote_host_name;
04738   iface->get_display_device = console_kit_session_proxy_get_display_device;
04739   iface->get_x11_display = console_kit_session_proxy_get_x11_display;
04740   iface->get_x11_display_device = console_kit_session_proxy_get_x11_display_device;
04741   iface->get_active = console_kit_session_proxy_get_active;
04742   iface->get_is_local = console_kit_session_proxy_get_is_local;
04743   iface->get_idle_hint = console_kit_session_proxy_get_idle_hint;
04744 }
04745 
04763 void
04764 console_kit_session_proxy_new (
04765     GDBusConnection     *connection,
04766     GDBusProxyFlags      flags,
04767     const gchar         *name,
04768     const gchar         *object_path,
04769     GCancellable        *cancellable,
04770     GAsyncReadyCallback  callback,
04771     gpointer             user_data)
04772 {
04773   g_async_initable_new_async (TYPE_CONSOLE_KIT_SESSION_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.freedesktop.ConsoleKit.Session", NULL);
04774 }
04775 
04785 ConsoleKitSession *
04786 console_kit_session_proxy_new_finish (
04787     GAsyncResult        *res,
04788     GError             **error)
04789 {
04790   GObject *ret;
04791   GObject *source_object;
04792   source_object = g_async_result_get_source_object (res);
04793   ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error);
04794   g_object_unref (source_object);
04795   if (ret != NULL)
04796     return CONSOLE_KIT_SESSION (ret);
04797   else
04798     return NULL;
04799 }
04800 
04818 ConsoleKitSession *
04819 console_kit_session_proxy_new_sync (
04820     GDBusConnection     *connection,
04821     GDBusProxyFlags      flags,
04822     const gchar         *name,
04823     const gchar         *object_path,
04824     GCancellable        *cancellable,
04825     GError             **error)
04826 {
04827   GInitable *ret;
04828   ret = g_initable_new (TYPE_CONSOLE_KIT_SESSION_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.freedesktop.ConsoleKit.Session", NULL);
04829   if (ret != NULL)
04830     return CONSOLE_KIT_SESSION (ret);
04831   else
04832     return NULL;
04833 }
04834 
04835 
04853 void
04854 console_kit_session_proxy_new_for_bus (
04855     GBusType             bus_type,
04856     GDBusProxyFlags      flags,
04857     const gchar         *name,
04858     const gchar         *object_path,
04859     GCancellable        *cancellable,
04860     GAsyncReadyCallback  callback,
04861     gpointer             user_data)
04862 {
04863   g_async_initable_new_async (TYPE_CONSOLE_KIT_SESSION_PROXY, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.freedesktop.ConsoleKit.Session", NULL);
04864 }
04865 
04875 ConsoleKitSession *
04876 console_kit_session_proxy_new_for_bus_finish (
04877     GAsyncResult        *res,
04878     GError             **error)
04879 {
04880   GObject *ret;
04881   GObject *source_object;
04882   source_object = g_async_result_get_source_object (res);
04883   ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error);
04884   g_object_unref (source_object);
04885   if (ret != NULL)
04886     return CONSOLE_KIT_SESSION (ret);
04887   else
04888     return NULL;
04889 }
04890 
04908 ConsoleKitSession *
04909 console_kit_session_proxy_new_for_bus_sync (
04910     GBusType             bus_type,
04911     GDBusProxyFlags      flags,
04912     const gchar         *name,
04913     const gchar         *object_path,
04914     GCancellable        *cancellable,
04915     GError             **error)
04916 {
04917   GInitable *ret;
04918   ret = g_initable_new (TYPE_CONSOLE_KIT_SESSION_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.freedesktop.ConsoleKit.Session", NULL);
04919   if (ret != NULL)
04920     return CONSOLE_KIT_SESSION (ret);
04921   else
04922     return NULL;
04923 }
04924 
04925 
04926 /* ------------------------------------------------------------------------ */
04927 
04941 struct _ConsoleKitSessionSkeletonPrivate
04942 {
04943   GValue *properties;
04944   GList *changed_properties;
04945   GSource *changed_properties_idle_source;
04946   GMainContext *context;
04947   GMutex lock;
04948 };
04949 
04950 static void
04951 _console_kit_session_skeleton_handle_method_call (
04952   GDBusConnection *connection,
04953   const gchar *sender,
04954   const gchar *object_path,
04955   const gchar *interface_name,
04956   const gchar *method_name,
04957   GVariant *parameters,
04958   GDBusMethodInvocation *invocation,
04959   gpointer user_data)
04960 {
04961   ConsoleKitSessionSkeleton *skeleton = CONSOLE_KIT_SESSION_SKELETON (user_data);
04962   _ExtendedGDBusMethodInfo *info;
04963   GVariantIter iter;
04964   GVariant *child;
04965   GValue *paramv;
04966   guint num_params;
04967   guint num_extra;
04968   guint n;
04969   guint signal_id;
04970   GValue return_value = G_VALUE_INIT;
04971   info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation);
04972   g_assert (info != NULL);
04973   num_params = g_variant_n_children (parameters);
04974   num_extra = info->pass_fdlist ? 3 : 2;  paramv = g_new0 (GValue, num_params + num_extra);
04975   n = 0;
04976   g_value_init (&paramv[n], TYPE_CONSOLE_KIT_SESSION);
04977   g_value_set_object (&paramv[n++], skeleton);
04978   g_value_init (&paramv[n], G_TYPE_DBUS_METHOD_INVOCATION);
04979   g_value_set_object (&paramv[n++], invocation);
04980   if (info->pass_fdlist)
04981     {
04982 #ifdef G_OS_UNIX
04983       g_value_init (&paramv[n], G_TYPE_UNIX_FD_LIST);
04984       g_value_set_object (&paramv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation)));
04985 #else
04986       g_assert_not_reached ();
04987 #endif
04988     }
04989   g_variant_iter_init (&iter, parameters);
04990   while ((child = g_variant_iter_next_value (&iter)) != NULL)
04991     {
04992       _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra];
04993       if (arg_info->use_gvariant)
04994         {
04995           g_value_init (&paramv[n], G_TYPE_VARIANT);
04996           g_value_set_variant (&paramv[n], child);
04997           n++;
04998         }
04999       else
05000         g_dbus_gvariant_to_gvalue (child, &paramv[n++]);
05001       g_variant_unref (child);
05002     }
05003   signal_id = g_signal_lookup (info->signal_name, TYPE_CONSOLE_KIT_SESSION);
05004   g_value_init (&return_value, G_TYPE_BOOLEAN);
05005   g_signal_emitv (paramv, signal_id, 0, &return_value);
05006   if (!g_value_get_boolean (&return_value))
05007     g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name);
05008   g_value_unset (&return_value);
05009   for (n = 0; n < num_params + num_extra; n++)
05010     g_value_unset (&paramv[n]);
05011   g_free (paramv);
05012 }
05013 
05014 static GVariant *
05015 _console_kit_session_skeleton_handle_get_property (
05016   GDBusConnection *connection,
05017   const gchar *sender,
05018   const gchar *object_path,
05019   const gchar *interface_name,
05020   const gchar *property_name,
05021   GError **error,
05022   gpointer user_data)
05023 {
05024   ConsoleKitSessionSkeleton *skeleton = CONSOLE_KIT_SESSION_SKELETON (user_data);
05025   GValue value = G_VALUE_INIT;
05026   GParamSpec *pspec;
05027   _ExtendedGDBusPropertyInfo *info;
05028   GVariant *ret;
05029   ret = NULL;
05030   info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_console_kit_session_interface_info, property_name);
05031   g_assert (info != NULL);
05032   pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name);
05033   if (pspec == NULL)
05034     {
05035       g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name);
05036     }
05037   else
05038     {
05039       g_value_init (&value, pspec->value_type);
05040       g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value);
05041       ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature));
05042       g_value_unset (&value);
05043     }
05044   return ret;
05045 }
05046 
05047 static gboolean
05048 _console_kit_session_skeleton_handle_set_property (
05049   GDBusConnection *connection,
05050   const gchar *sender,
05051   const gchar *object_path,
05052   const gchar *interface_name,
05053   const gchar *property_name,
05054   GVariant *variant,
05055   GError **error,
05056   gpointer user_data)
05057 {
05058   ConsoleKitSessionSkeleton *skeleton = CONSOLE_KIT_SESSION_SKELETON (user_data);
05059   GValue value = G_VALUE_INIT;
05060   GParamSpec *pspec;
05061   _ExtendedGDBusPropertyInfo *info;
05062   gboolean ret;
05063   ret = FALSE;
05064   info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_console_kit_session_interface_info, property_name);
05065   g_assert (info != NULL);
05066   pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name);
05067   if (pspec == NULL)
05068     {
05069       g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name);
05070     }
05071   else
05072     {
05073       if (info->use_gvariant)
05074         g_value_set_variant (&value, variant);
05075       else
05076         g_dbus_gvariant_to_gvalue (variant, &value);
05077       g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value);
05078       g_value_unset (&value);
05079       ret = TRUE;
05080     }
05081   return ret;
05082 }
05083 
05084 static const GDBusInterfaceVTable _console_kit_session_skeleton_vtable =
05085 {
05086   _console_kit_session_skeleton_handle_method_call,
05087   _console_kit_session_skeleton_handle_get_property,
05088   _console_kit_session_skeleton_handle_set_property
05089 };
05090 
05091 static GDBusInterfaceInfo *
05092 console_kit_session_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton)
05093 {
05094   return console_kit_session_interface_info ();
05095 }
05096 
05097 static GDBusInterfaceVTable *
05098 console_kit_session_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton)
05099 {
05100   return (GDBusInterfaceVTable *) &_console_kit_session_skeleton_vtable;
05101 }
05102 
05103 static GVariant *
05104 console_kit_session_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton)
05105 {
05106   ConsoleKitSessionSkeleton *skeleton = CONSOLE_KIT_SESSION_SKELETON (_skeleton);
05107 
05108   GVariantBuilder builder;
05109   guint n;
05110   g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}"));
05111   if (_console_kit_session_interface_info.parent_struct.properties == NULL)
05112     goto out;
05113   for (n = 0; _console_kit_session_interface_info.parent_struct.properties[n] != NULL; n++)
05114     {
05115       GDBusPropertyInfo *info = _console_kit_session_interface_info.parent_struct.properties[n];
05116       if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE)
05117         {
05118           GVariant *value;
05119           value = _console_kit_session_skeleton_handle_get_property (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)), NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.freedesktop.ConsoleKit.Session", info->name, NULL, skeleton);
05120           if (value != NULL)
05121             {
05122               g_variant_take_ref (value);
05123               g_variant_builder_add (&builder, "{sv}", info->name, value);
05124               g_variant_unref (value);
05125             }
05126         }
05127     }
05128 out:
05129   return g_variant_builder_end (&builder);
05130 }
05131 
05132 static gboolean _console_kit_session_emit_changed (gpointer user_data);
05133 
05134 static void
05135 console_kit_session_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton)
05136 {
05137   ConsoleKitSessionSkeleton *skeleton = CONSOLE_KIT_SESSION_SKELETON (_skeleton);
05138   gboolean emit_changed = FALSE;
05139 
05140   g_mutex_lock (&skeleton->priv->lock);
05141   if (skeleton->priv->changed_properties_idle_source != NULL)
05142     {
05143       g_source_destroy (skeleton->priv->changed_properties_idle_source);
05144       skeleton->priv->changed_properties_idle_source = NULL;
05145       emit_changed = TRUE;
05146     }
05147   g_mutex_unlock (&skeleton->priv->lock);
05148 
05149   if (emit_changed)
05150     _console_kit_session_emit_changed (skeleton);
05151 }
05152 
05153 static void
05154 _console_kit_session_on_signal_active_changed (
05155     ConsoleKitSession *object,
05156     gboolean arg_is_active)
05157 {
05158   ConsoleKitSessionSkeleton *skeleton = CONSOLE_KIT_SESSION_SKELETON (object);
05159 
05160   GList      *connections, *l;
05161   GVariant   *signal_variant;
05162   connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
05163 
05164   signal_variant = g_variant_ref_sink (g_variant_new ("(b)",
05165                    arg_is_active));
05166   for (l = connections; l != NULL; l = l->next)
05167     {
05168       GDBusConnection *connection = l->data;
05169       g_dbus_connection_emit_signal (connection,
05170         NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.freedesktop.ConsoleKit.Session", "ActiveChanged",
05171         signal_variant, NULL);
05172     }
05173   g_variant_unref (signal_variant);
05174   g_list_free_full (connections, g_object_unref);
05175 }
05176 
05177 static void
05178 _console_kit_session_on_signal_idle_hint_changed (
05179     ConsoleKitSession *object,
05180     gboolean arg_hint)
05181 {
05182   ConsoleKitSessionSkeleton *skeleton = CONSOLE_KIT_SESSION_SKELETON (object);
05183 
05184   GList      *connections, *l;
05185   GVariant   *signal_variant;
05186   connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
05187 
05188   signal_variant = g_variant_ref_sink (g_variant_new ("(b)",
05189                    arg_hint));
05190   for (l = connections; l != NULL; l = l->next)
05191     {
05192       GDBusConnection *connection = l->data;
05193       g_dbus_connection_emit_signal (connection,
05194         NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.freedesktop.ConsoleKit.Session", "IdleHintChanged",
05195         signal_variant, NULL);
05196     }
05197   g_variant_unref (signal_variant);
05198   g_list_free_full (connections, g_object_unref);
05199 }
05200 
05201 static void
05202 _console_kit_session_on_signal_lock (
05203     ConsoleKitSession *object)
05204 {
05205   ConsoleKitSessionSkeleton *skeleton = CONSOLE_KIT_SESSION_SKELETON (object);
05206 
05207   GList      *connections, *l;
05208   GVariant   *signal_variant;
05209   connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
05210 
05211   signal_variant = g_variant_ref_sink (g_variant_new ("()"));
05212   for (l = connections; l != NULL; l = l->next)
05213     {
05214       GDBusConnection *connection = l->data;
05215       g_dbus_connection_emit_signal (connection,
05216         NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.freedesktop.ConsoleKit.Session", "Lock",
05217         signal_variant, NULL);
05218     }
05219   g_variant_unref (signal_variant);
05220   g_list_free_full (connections, g_object_unref);
05221 }
05222 
05223 static void
05224 _console_kit_session_on_signal_unlock (
05225     ConsoleKitSession *object)
05226 {
05227   ConsoleKitSessionSkeleton *skeleton = CONSOLE_KIT_SESSION_SKELETON (object);
05228 
05229   GList      *connections, *l;
05230   GVariant   *signal_variant;
05231   connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
05232 
05233   signal_variant = g_variant_ref_sink (g_variant_new ("()"));
05234   for (l = connections; l != NULL; l = l->next)
05235     {
05236       GDBusConnection *connection = l->data;
05237       g_dbus_connection_emit_signal (connection,
05238         NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.freedesktop.ConsoleKit.Session", "Unlock",
05239         signal_variant, NULL);
05240     }
05241   g_variant_unref (signal_variant);
05242   g_list_free_full (connections, g_object_unref);
05243 }
05244 
05245 static void console_kit_session_skeleton_iface_init (ConsoleKitSessionIface *iface);
05246 G_DEFINE_TYPE_WITH_CODE (ConsoleKitSessionSkeleton, console_kit_session_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,
05247                          G_IMPLEMENT_INTERFACE (TYPE_CONSOLE_KIT_SESSION, console_kit_session_skeleton_iface_init));
05248 
05249 static void
05250 console_kit_session_skeleton_finalize (GObject *object)
05251 {
05252   ConsoleKitSessionSkeleton *skeleton = CONSOLE_KIT_SESSION_SKELETON (object);
05253   guint n;
05254   for (n = 0; n < 10; n++)
05255     g_value_unset (&skeleton->priv->properties[n]);
05256   g_free (skeleton->priv->properties);
05257   g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free);
05258   if (skeleton->priv->changed_properties_idle_source != NULL)
05259     g_source_destroy (skeleton->priv->changed_properties_idle_source);
05260   g_main_context_unref (skeleton->priv->context);
05261   g_mutex_clear (&skeleton->priv->lock);
05262   G_OBJECT_CLASS (console_kit_session_skeleton_parent_class)->finalize (object);
05263 }
05264 
05265 static void
05266 console_kit_session_skeleton_get_property (GObject      *object,
05267   guint         prop_id,
05268   GValue       *value,
05269   GParamSpec   *pspec)
05270 {
05271   ConsoleKitSessionSkeleton *skeleton = CONSOLE_KIT_SESSION_SKELETON (object);
05272   g_assert (prop_id != 0 && prop_id - 1 < 10);
05273   g_mutex_lock (&skeleton->priv->lock);
05274   g_value_copy (&skeleton->priv->properties[prop_id - 1], value);
05275   g_mutex_unlock (&skeleton->priv->lock);
05276 }
05277 
05278 static gboolean
05279 _console_kit_session_emit_changed (gpointer user_data)
05280 {
05281   ConsoleKitSessionSkeleton *skeleton = CONSOLE_KIT_SESSION_SKELETON (user_data);
05282   GList *l;
05283   GVariantBuilder builder;
05284   GVariantBuilder invalidated_builder;
05285   guint num_changes;
05286 
05287   g_mutex_lock (&skeleton->priv->lock);
05288   g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}"));
05289   g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as"));
05290   for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next)
05291     {
05292       ChangedProperty *cp = l->data;
05293       GVariant *variant;
05294       const GValue *cur_value;
05295 
05296       cur_value = &skeleton->priv->properties[cp->prop_id - 1];
05297       if (!_g_value_equal (cur_value, &cp->orig_value))
05298         {
05299           variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature));
05300           g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant);
05301           g_variant_unref (variant);
05302           num_changes++;
05303         }
05304     }
05305   if (num_changes > 0)
05306     {
05307       GList *connections, *l;
05308       GVariant *signal_variant;
05309       signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "org.freedesktop.ConsoleKit.Session",
05310                                            &builder, &invalidated_builder));
05311       connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
05312       for (l = connections; l != NULL; l = l->next)
05313         {
05314           GDBusConnection *connection = l->data;
05315 
05316           g_dbus_connection_emit_signal (connection,
05317                                          NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)),
05318                                          "org.freedesktop.DBus.Properties",
05319                                          "PropertiesChanged",
05320                                          signal_variant,
05321                                          NULL);
05322         }
05323       g_variant_unref (signal_variant);
05324       g_list_free_full (connections, g_object_unref);
05325     }
05326   else
05327     {
05328       g_variant_builder_clear (&builder);
05329       g_variant_builder_clear (&invalidated_builder);
05330     }
05331   g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free);
05332   skeleton->priv->changed_properties = NULL;
05333   skeleton->priv->changed_properties_idle_source = NULL;
05334   g_mutex_unlock (&skeleton->priv->lock);
05335   return FALSE;
05336 }
05337 
05338 static void
05339 _console_kit_session_schedule_emit_changed (ConsoleKitSessionSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value)
05340 {
05341   ChangedProperty *cp;
05342   GList *l;
05343   cp = NULL;
05344   for (l = skeleton->priv->changed_properties; l != NULL; l = l->next)
05345     {
05346       ChangedProperty *i_cp = l->data;
05347       if (i_cp->info == info)
05348         {
05349           cp = i_cp;
05350           break;
05351         }
05352     }
05353   if (cp == NULL)
05354     {
05355       cp = g_new0 (ChangedProperty, 1);
05356       cp->prop_id = prop_id;
05357       cp->info = info;
05358       skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp);
05359       g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value));
05360       g_value_copy (orig_value, &cp->orig_value);
05361     }
05362 }
05363 
05364 static void
05365 console_kit_session_skeleton_notify (GObject      *object,
05366   GParamSpec *pspec)
05367 {
05368   ConsoleKitSessionSkeleton *skeleton = CONSOLE_KIT_SESSION_SKELETON (object);
05369   g_mutex_lock (&skeleton->priv->lock);
05370   if (skeleton->priv->changed_properties != NULL &&
05371       skeleton->priv->changed_properties_idle_source == NULL)
05372     {
05373       skeleton->priv->changed_properties_idle_source = g_idle_source_new ();
05374       g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT);
05375       g_source_set_callback (skeleton->priv->changed_properties_idle_source, _console_kit_session_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref);
05376       g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context);
05377       g_source_unref (skeleton->priv->changed_properties_idle_source);
05378     }
05379   g_mutex_unlock (&skeleton->priv->lock);
05380 }
05381 
05382 static void
05383 console_kit_session_skeleton_set_property (GObject      *object,
05384   guint         prop_id,
05385   const GValue *value,
05386   GParamSpec   *pspec)
05387 {
05388   ConsoleKitSessionSkeleton *skeleton = CONSOLE_KIT_SESSION_SKELETON (object);
05389   g_assert (prop_id != 0 && prop_id - 1 < 10);
05390   g_mutex_lock (&skeleton->priv->lock);
05391   g_object_freeze_notify (object);
05392   if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1]))
05393     {
05394       if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL)
05395         _console_kit_session_schedule_emit_changed (skeleton, _console_kit_session_property_info_pointers[prop_id - 1], prop_id, &skeleton->priv->properties[prop_id - 1]);
05396       g_value_copy (value, &skeleton->priv->properties[prop_id - 1]);
05397       g_object_notify_by_pspec (object, pspec);
05398     }
05399   g_mutex_unlock (&skeleton->priv->lock);
05400   g_object_thaw_notify (object);
05401 }
05402 
05403 static void
05404 console_kit_session_skeleton_init (ConsoleKitSessionSkeleton *skeleton)
05405 {
05406   skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_CONSOLE_KIT_SESSION_SKELETON, ConsoleKitSessionSkeletonPrivate);
05407   g_mutex_init (&skeleton->priv->lock);
05408   skeleton->priv->context = g_main_context_ref_thread_default ();
05409   skeleton->priv->properties = g_new0 (GValue, 10);
05410   g_value_init (&skeleton->priv->properties[0], G_TYPE_UINT);
05411   g_value_init (&skeleton->priv->properties[1], G_TYPE_UINT);
05412   g_value_init (&skeleton->priv->properties[2], G_TYPE_STRING);
05413   g_value_init (&skeleton->priv->properties[3], G_TYPE_STRING);
05414   g_value_init (&skeleton->priv->properties[4], G_TYPE_STRING);
05415   g_value_init (&skeleton->priv->properties[5], G_TYPE_STRING);
05416   g_value_init (&skeleton->priv->properties[6], G_TYPE_STRING);
05417   g_value_init (&skeleton->priv->properties[7], G_TYPE_BOOLEAN);
05418   g_value_init (&skeleton->priv->properties[8], G_TYPE_BOOLEAN);
05419   g_value_init (&skeleton->priv->properties[9], G_TYPE_BOOLEAN);
05420 }
05421 
05422 static guint 
05423 console_kit_session_skeleton_get_unix_user (ConsoleKitSession *object)
05424 {
05425   ConsoleKitSessionSkeleton *skeleton = CONSOLE_KIT_SESSION_SKELETON (object);
05426   guint value;
05427   g_mutex_lock (&skeleton->priv->lock);
05428   value = g_value_get_uint (&(skeleton->priv->properties[0]));
05429   g_mutex_unlock (&skeleton->priv->lock);
05430   return value;
05431 }
05432 
05433 static guint 
05434 console_kit_session_skeleton_get_user (ConsoleKitSession *object)
05435 {
05436   ConsoleKitSessionSkeleton *skeleton = CONSOLE_KIT_SESSION_SKELETON (object);
05437   guint value;
05438   g_mutex_lock (&skeleton->priv->lock);
05439   value = g_value_get_uint (&(skeleton->priv->properties[1]));
05440   g_mutex_unlock (&skeleton->priv->lock);
05441   return value;
05442 }
05443 
05444 static const gchar *
05445 console_kit_session_skeleton_get_session_type (ConsoleKitSession *object)
05446 {
05447   ConsoleKitSessionSkeleton *skeleton = CONSOLE_KIT_SESSION_SKELETON (object);
05448   const gchar *value;
05449   g_mutex_lock (&skeleton->priv->lock);
05450   value = g_value_get_string (&(skeleton->priv->properties[2]));
05451   g_mutex_unlock (&skeleton->priv->lock);
05452   return value;
05453 }
05454 
05455 static const gchar *
05456 console_kit_session_skeleton_get_remote_host_name (ConsoleKitSession *object)
05457 {
05458   ConsoleKitSessionSkeleton *skeleton = CONSOLE_KIT_SESSION_SKELETON (object);
05459   const gchar *value;
05460   g_mutex_lock (&skeleton->priv->lock);
05461   value = g_value_get_string (&(skeleton->priv->properties[3]));
05462   g_mutex_unlock (&skeleton->priv->lock);
05463   return value;
05464 }
05465 
05466 static const gchar *
05467 console_kit_session_skeleton_get_display_device (ConsoleKitSession *object)
05468 {
05469   ConsoleKitSessionSkeleton *skeleton = CONSOLE_KIT_SESSION_SKELETON (object);
05470   const gchar *value;
05471   g_mutex_lock (&skeleton->priv->lock);
05472   value = g_value_get_string (&(skeleton->priv->properties[4]));
05473   g_mutex_unlock (&skeleton->priv->lock);
05474   return value;
05475 }
05476 
05477 static const gchar *
05478 console_kit_session_skeleton_get_x11_display (ConsoleKitSession *object)
05479 {
05480   ConsoleKitSessionSkeleton *skeleton = CONSOLE_KIT_SESSION_SKELETON (object);
05481   const gchar *value;
05482   g_mutex_lock (&skeleton->priv->lock);
05483   value = g_value_get_string (&(skeleton->priv->properties[5]));
05484   g_mutex_unlock (&skeleton->priv->lock);
05485   return value;
05486 }
05487 
05488 static const gchar *
05489 console_kit_session_skeleton_get_x11_display_device (ConsoleKitSession *object)
05490 {
05491   ConsoleKitSessionSkeleton *skeleton = CONSOLE_KIT_SESSION_SKELETON (object);
05492   const gchar *value;
05493   g_mutex_lock (&skeleton->priv->lock);
05494   value = g_value_get_string (&(skeleton->priv->properties[6]));
05495   g_mutex_unlock (&skeleton->priv->lock);
05496   return value;
05497 }
05498 
05499 static gboolean 
05500 console_kit_session_skeleton_get_active (ConsoleKitSession *object)
05501 {
05502   ConsoleKitSessionSkeleton *skeleton = CONSOLE_KIT_SESSION_SKELETON (object);
05503   gboolean value;
05504   g_mutex_lock (&skeleton->priv->lock);
05505   value = g_value_get_boolean (&(skeleton->priv->properties[7]));
05506   g_mutex_unlock (&skeleton->priv->lock);
05507   return value;
05508 }
05509 
05510 static gboolean 
05511 console_kit_session_skeleton_get_is_local (ConsoleKitSession *object)
05512 {
05513   ConsoleKitSessionSkeleton *skeleton = CONSOLE_KIT_SESSION_SKELETON (object);
05514   gboolean value;
05515   g_mutex_lock (&skeleton->priv->lock);
05516   value = g_value_get_boolean (&(skeleton->priv->properties[8]));
05517   g_mutex_unlock (&skeleton->priv->lock);
05518   return value;
05519 }
05520 
05521 static gboolean 
05522 console_kit_session_skeleton_get_idle_hint (ConsoleKitSession *object)
05523 {
05524   ConsoleKitSessionSkeleton *skeleton = CONSOLE_KIT_SESSION_SKELETON (object);
05525   gboolean value;
05526   g_mutex_lock (&skeleton->priv->lock);
05527   value = g_value_get_boolean (&(skeleton->priv->properties[9]));
05528   g_mutex_unlock (&skeleton->priv->lock);
05529   return value;
05530 }
05531 
05532 static void
05533 console_kit_session_skeleton_class_init (ConsoleKitSessionSkeletonClass *klass)
05534 {
05535   GObjectClass *gobject_class;
05536   GDBusInterfaceSkeletonClass *skeleton_class;
05537 
05538   g_type_class_add_private (klass, sizeof (ConsoleKitSessionSkeletonPrivate));
05539 
05540   gobject_class = G_OBJECT_CLASS (klass);
05541   gobject_class->finalize = console_kit_session_skeleton_finalize;
05542   gobject_class->get_property = console_kit_session_skeleton_get_property;
05543   gobject_class->set_property = console_kit_session_skeleton_set_property;
05544   gobject_class->notify       = console_kit_session_skeleton_notify;
05545 
05546 
05547   console_kit_session_override_properties (gobject_class, 1);
05548 
05549   skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass);
05550   skeleton_class->get_info = console_kit_session_skeleton_dbus_interface_get_info;
05551   skeleton_class->get_properties = console_kit_session_skeleton_dbus_interface_get_properties;
05552   skeleton_class->flush = console_kit_session_skeleton_dbus_interface_flush;
05553   skeleton_class->get_vtable = console_kit_session_skeleton_dbus_interface_get_vtable;
05554 }
05555 
05556 static void
05557 console_kit_session_skeleton_iface_init (ConsoleKitSessionIface *iface)
05558 {
05559   iface->active_changed = _console_kit_session_on_signal_active_changed;
05560   iface->idle_hint_changed = _console_kit_session_on_signal_idle_hint_changed;
05561   iface->lock = _console_kit_session_on_signal_lock;
05562   iface->unlock = _console_kit_session_on_signal_unlock;
05563   iface->get_unix_user = console_kit_session_skeleton_get_unix_user;
05564   iface->get_user = console_kit_session_skeleton_get_user;
05565   iface->get_session_type = console_kit_session_skeleton_get_session_type;
05566   iface->get_remote_host_name = console_kit_session_skeleton_get_remote_host_name;
05567   iface->get_display_device = console_kit_session_skeleton_get_display_device;
05568   iface->get_x11_display = console_kit_session_skeleton_get_x11_display;
05569   iface->get_x11_display_device = console_kit_session_skeleton_get_x11_display_device;
05570   iface->get_active = console_kit_session_skeleton_get_active;
05571   iface->get_is_local = console_kit_session_skeleton_get_is_local;
05572   iface->get_idle_hint = console_kit_session_skeleton_get_idle_hint;
05573 }
05574 
05582 ConsoleKitSession *
05583 console_kit_session_skeleton_new (void)
05584 {
05585   return CONSOLE_KIT_SESSION (g_object_new (TYPE_CONSOLE_KIT_SESSION_SKELETON, NULL));
05586 }
05587