2 * Generated by gdbus-codegen 2.40.0. DO NOT EDIT.
4 * The license of this code is the same as for the source it was derived from.
11 #include "logind-gen.h"
15 # include <gio/gunixfdlist.h>
20 GDBusArgInfo parent_struct
;
21 gboolean use_gvariant
;
22 } _ExtendedGDBusArgInfo
;
26 GDBusMethodInfo parent_struct
;
27 const gchar
*signal_name
;
29 } _ExtendedGDBusMethodInfo
;
33 GDBusSignalInfo parent_struct
;
34 const gchar
*signal_name
;
35 } _ExtendedGDBusSignalInfo
;
39 GDBusPropertyInfo parent_struct
;
40 const gchar
*hyphen_name
;
41 gboolean use_gvariant
;
42 } _ExtendedGDBusPropertyInfo
;
46 GDBusInterfaceInfo parent_struct
;
47 const gchar
*hyphen_name
;
48 } _ExtendedGDBusInterfaceInfo
;
52 const _ExtendedGDBusPropertyInfo
*info
;
54 GValue orig_value
; /* the value before the change */
58 _changed_property_free (ChangedProperty
*data
)
60 g_value_unset (&data
->orig_value
);
65 _g_strv_equal0 (gchar
**a
, gchar
**b
)
69 if (a
== NULL
&& b
== NULL
)
74 if (a
== NULL
|| b
== NULL
)
76 if (g_strv_length (a
) != g_strv_length (b
))
78 for (n
= 0; a
[n
] != NULL
; n
++)
79 if (g_strcmp0 (a
[n
], b
[n
]) != 0)
87 _g_variant_equal0 (GVariant
*a
, GVariant
*b
)
90 if (a
== NULL
&& b
== NULL
)
95 if (a
== NULL
|| b
== NULL
)
97 ret
= g_variant_equal (a
, b
);
102 G_GNUC_UNUSED
static gboolean
103 _g_value_equal (const GValue
*a
, const GValue
*b
)
105 gboolean ret
= FALSE
;
106 g_assert (G_VALUE_TYPE (a
) == G_VALUE_TYPE (b
));
107 switch (G_VALUE_TYPE (a
))
110 ret
= (g_value_get_boolean (a
) == g_value_get_boolean (b
));
113 ret
= (g_value_get_uchar (a
) == g_value_get_uchar (b
));
116 ret
= (g_value_get_int (a
) == g_value_get_int (b
));
119 ret
= (g_value_get_uint (a
) == g_value_get_uint (b
));
122 ret
= (g_value_get_int64 (a
) == g_value_get_int64 (b
));
125 ret
= (g_value_get_uint64 (a
) == g_value_get_uint64 (b
));
129 /* Avoid -Wfloat-equal warnings by doing a direct bit compare */
130 gdouble da
= g_value_get_double (a
);
131 gdouble db
= g_value_get_double (b
);
132 ret
= memcmp (&da
, &db
, sizeof (gdouble
)) == 0;
136 ret
= (g_strcmp0 (g_value_get_string (a
), g_value_get_string (b
)) == 0);
139 ret
= _g_variant_equal0 (g_value_get_variant (a
), g_value_get_variant (b
));
142 if (G_VALUE_TYPE (a
) == G_TYPE_STRV
)
143 ret
= _g_strv_equal0 (g_value_get_boxed (a
), g_value_get_boxed (b
));
145 g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a
)));
151 /* ------------------------------------------------------------------------
152 * Code for interface org.freedesktop.login1.Manager
153 * ------------------------------------------------------------------------
157 * SECTION:logindLogin1Manager
158 * @title: logindLogin1Manager
159 * @short_description: Generated C code for the org.freedesktop.login1.Manager D-Bus interface
161 * This section contains code for working with the <link linkend="gdbus-interface-org-freedesktop-login1-Manager.top_of_page">org.freedesktop.login1.Manager</link> D-Bus interface in C.
164 /* ---- Introspection data for org.freedesktop.login1.Manager ---- */
166 static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_get_session_IN_ARG_unnamed_arg0
=
170 (gchar
*) "unnamed_arg0",
177 static const _ExtendedGDBusArgInfo
* const _logind_login1_manager_method_info_get_session_IN_ARG_pointers
[] =
179 &_logind_login1_manager_method_info_get_session_IN_ARG_unnamed_arg0
,
183 static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_get_session_OUT_ARG_unnamed_arg1
=
187 (gchar
*) "unnamed_arg1",
194 static const _ExtendedGDBusArgInfo
* const _logind_login1_manager_method_info_get_session_OUT_ARG_pointers
[] =
196 &_logind_login1_manager_method_info_get_session_OUT_ARG_unnamed_arg1
,
200 static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_get_session
=
204 (gchar
*) "GetSession",
205 (GDBusArgInfo
**) &_logind_login1_manager_method_info_get_session_IN_ARG_pointers
,
206 (GDBusArgInfo
**) &_logind_login1_manager_method_info_get_session_OUT_ARG_pointers
,
209 "handle-get-session",
213 static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_get_session_by_pid_IN_ARG_unnamed_arg0
=
217 (gchar
*) "unnamed_arg0",
224 static const _ExtendedGDBusArgInfo
* const _logind_login1_manager_method_info_get_session_by_pid_IN_ARG_pointers
[] =
226 &_logind_login1_manager_method_info_get_session_by_pid_IN_ARG_unnamed_arg0
,
230 static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_get_session_by_pid_OUT_ARG_unnamed_arg1
=
234 (gchar
*) "unnamed_arg1",
241 static const _ExtendedGDBusArgInfo
* const _logind_login1_manager_method_info_get_session_by_pid_OUT_ARG_pointers
[] =
243 &_logind_login1_manager_method_info_get_session_by_pid_OUT_ARG_unnamed_arg1
,
247 static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_get_session_by_pid
=
251 (gchar
*) "GetSessionByPID",
252 (GDBusArgInfo
**) &_logind_login1_manager_method_info_get_session_by_pid_IN_ARG_pointers
,
253 (GDBusArgInfo
**) &_logind_login1_manager_method_info_get_session_by_pid_OUT_ARG_pointers
,
256 "handle-get-session-by-pid",
260 static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_get_user_IN_ARG_unnamed_arg0
=
264 (gchar
*) "unnamed_arg0",
271 static const _ExtendedGDBusArgInfo
* const _logind_login1_manager_method_info_get_user_IN_ARG_pointers
[] =
273 &_logind_login1_manager_method_info_get_user_IN_ARG_unnamed_arg0
,
277 static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_get_user_OUT_ARG_unnamed_arg1
=
281 (gchar
*) "unnamed_arg1",
288 static const _ExtendedGDBusArgInfo
* const _logind_login1_manager_method_info_get_user_OUT_ARG_pointers
[] =
290 &_logind_login1_manager_method_info_get_user_OUT_ARG_unnamed_arg1
,
294 static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_get_user
=
299 (GDBusArgInfo
**) &_logind_login1_manager_method_info_get_user_IN_ARG_pointers
,
300 (GDBusArgInfo
**) &_logind_login1_manager_method_info_get_user_OUT_ARG_pointers
,
307 static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_get_user_by_pid_IN_ARG_unnamed_arg0
=
311 (gchar
*) "unnamed_arg0",
318 static const _ExtendedGDBusArgInfo
* const _logind_login1_manager_method_info_get_user_by_pid_IN_ARG_pointers
[] =
320 &_logind_login1_manager_method_info_get_user_by_pid_IN_ARG_unnamed_arg0
,
324 static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_get_user_by_pid_OUT_ARG_unnamed_arg1
=
328 (gchar
*) "unnamed_arg1",
335 static const _ExtendedGDBusArgInfo
* const _logind_login1_manager_method_info_get_user_by_pid_OUT_ARG_pointers
[] =
337 &_logind_login1_manager_method_info_get_user_by_pid_OUT_ARG_unnamed_arg1
,
341 static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_get_user_by_pid
=
345 (gchar
*) "GetUserByPID",
346 (GDBusArgInfo
**) &_logind_login1_manager_method_info_get_user_by_pid_IN_ARG_pointers
,
347 (GDBusArgInfo
**) &_logind_login1_manager_method_info_get_user_by_pid_OUT_ARG_pointers
,
350 "handle-get-user-by-pid",
354 static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_get_seat_IN_ARG_unnamed_arg0
=
358 (gchar
*) "unnamed_arg0",
365 static const _ExtendedGDBusArgInfo
* const _logind_login1_manager_method_info_get_seat_IN_ARG_pointers
[] =
367 &_logind_login1_manager_method_info_get_seat_IN_ARG_unnamed_arg0
,
371 static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_get_seat_OUT_ARG_unnamed_arg1
=
375 (gchar
*) "unnamed_arg1",
382 static const _ExtendedGDBusArgInfo
* const _logind_login1_manager_method_info_get_seat_OUT_ARG_pointers
[] =
384 &_logind_login1_manager_method_info_get_seat_OUT_ARG_unnamed_arg1
,
388 static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_get_seat
=
393 (GDBusArgInfo
**) &_logind_login1_manager_method_info_get_seat_IN_ARG_pointers
,
394 (GDBusArgInfo
**) &_logind_login1_manager_method_info_get_seat_OUT_ARG_pointers
,
401 static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_list_sessions_OUT_ARG_unnamed_arg0
=
405 (gchar
*) "unnamed_arg0",
406 (gchar
*) "a(susso)",
412 static const _ExtendedGDBusArgInfo
* const _logind_login1_manager_method_info_list_sessions_OUT_ARG_pointers
[] =
414 &_logind_login1_manager_method_info_list_sessions_OUT_ARG_unnamed_arg0
,
418 static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_list_sessions
=
422 (gchar
*) "ListSessions",
424 (GDBusArgInfo
**) &_logind_login1_manager_method_info_list_sessions_OUT_ARG_pointers
,
427 "handle-list-sessions",
431 static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_list_users_OUT_ARG_unnamed_arg0
=
435 (gchar
*) "unnamed_arg0",
442 static const _ExtendedGDBusArgInfo
* const _logind_login1_manager_method_info_list_users_OUT_ARG_pointers
[] =
444 &_logind_login1_manager_method_info_list_users_OUT_ARG_unnamed_arg0
,
448 static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_list_users
=
452 (gchar
*) "ListUsers",
454 (GDBusArgInfo
**) &_logind_login1_manager_method_info_list_users_OUT_ARG_pointers
,
461 static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_list_seats_OUT_ARG_unnamed_arg0
=
465 (gchar
*) "unnamed_arg0",
472 static const _ExtendedGDBusArgInfo
* const _logind_login1_manager_method_info_list_seats_OUT_ARG_pointers
[] =
474 &_logind_login1_manager_method_info_list_seats_OUT_ARG_unnamed_arg0
,
478 static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_list_seats
=
482 (gchar
*) "ListSeats",
484 (GDBusArgInfo
**) &_logind_login1_manager_method_info_list_seats_OUT_ARG_pointers
,
491 static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_list_inhibitors_OUT_ARG_unnamed_arg0
=
495 (gchar
*) "unnamed_arg0",
496 (gchar
*) "a(ssssuu)",
502 static const _ExtendedGDBusArgInfo
* const _logind_login1_manager_method_info_list_inhibitors_OUT_ARG_pointers
[] =
504 &_logind_login1_manager_method_info_list_inhibitors_OUT_ARG_unnamed_arg0
,
508 static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_list_inhibitors
=
512 (gchar
*) "ListInhibitors",
514 (GDBusArgInfo
**) &_logind_login1_manager_method_info_list_inhibitors_OUT_ARG_pointers
,
517 "handle-list-inhibitors",
521 static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_create_session_IN_ARG_unnamed_arg0
=
525 (gchar
*) "unnamed_arg0",
532 static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_create_session_IN_ARG_unnamed_arg1
=
536 (gchar
*) "unnamed_arg1",
543 static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_create_session_IN_ARG_unnamed_arg2
=
547 (gchar
*) "unnamed_arg2",
554 static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_create_session_IN_ARG_unnamed_arg3
=
558 (gchar
*) "unnamed_arg3",
565 static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_create_session_IN_ARG_unnamed_arg4
=
569 (gchar
*) "unnamed_arg4",
576 static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_create_session_IN_ARG_unnamed_arg5
=
580 (gchar
*) "unnamed_arg5",
587 static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_create_session_IN_ARG_unnamed_arg6
=
591 (gchar
*) "unnamed_arg6",
598 static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_create_session_IN_ARG_unnamed_arg7
=
602 (gchar
*) "unnamed_arg7",
609 static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_create_session_IN_ARG_unnamed_arg8
=
613 (gchar
*) "unnamed_arg8",
620 static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_create_session_IN_ARG_unnamed_arg9
=
624 (gchar
*) "unnamed_arg9",
631 static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_create_session_IN_ARG_unnamed_arg10
=
635 (gchar
*) "unnamed_arg10",
642 static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_create_session_IN_ARG_unnamed_arg11
=
646 (gchar
*) "unnamed_arg11",
653 static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_create_session_IN_ARG_unnamed_arg12
=
657 (gchar
*) "unnamed_arg12",
664 static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_create_session_IN_ARG_unnamed_arg13
=
668 (gchar
*) "unnamed_arg13",
675 static const _ExtendedGDBusArgInfo
* const _logind_login1_manager_method_info_create_session_IN_ARG_pointers
[] =
677 &_logind_login1_manager_method_info_create_session_IN_ARG_unnamed_arg0
,
678 &_logind_login1_manager_method_info_create_session_IN_ARG_unnamed_arg1
,
679 &_logind_login1_manager_method_info_create_session_IN_ARG_unnamed_arg2
,
680 &_logind_login1_manager_method_info_create_session_IN_ARG_unnamed_arg3
,
681 &_logind_login1_manager_method_info_create_session_IN_ARG_unnamed_arg4
,
682 &_logind_login1_manager_method_info_create_session_IN_ARG_unnamed_arg5
,
683 &_logind_login1_manager_method_info_create_session_IN_ARG_unnamed_arg6
,
684 &_logind_login1_manager_method_info_create_session_IN_ARG_unnamed_arg7
,
685 &_logind_login1_manager_method_info_create_session_IN_ARG_unnamed_arg8
,
686 &_logind_login1_manager_method_info_create_session_IN_ARG_unnamed_arg9
,
687 &_logind_login1_manager_method_info_create_session_IN_ARG_unnamed_arg10
,
688 &_logind_login1_manager_method_info_create_session_IN_ARG_unnamed_arg11
,
689 &_logind_login1_manager_method_info_create_session_IN_ARG_unnamed_arg12
,
690 &_logind_login1_manager_method_info_create_session_IN_ARG_unnamed_arg13
,
694 static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_create_session_OUT_ARG_unnamed_arg14
=
698 (gchar
*) "unnamed_arg14",
705 static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_create_session_OUT_ARG_unnamed_arg15
=
709 (gchar
*) "unnamed_arg15",
716 static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_create_session_OUT_ARG_unnamed_arg16
=
720 (gchar
*) "unnamed_arg16",
727 static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_create_session_OUT_ARG_unnamed_arg17
=
731 (gchar
*) "unnamed_arg17",
738 static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_create_session_OUT_ARG_unnamed_arg18
=
742 (gchar
*) "unnamed_arg18",
749 static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_create_session_OUT_ARG_unnamed_arg19
=
753 (gchar
*) "unnamed_arg19",
760 static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_create_session_OUT_ARG_unnamed_arg20
=
764 (gchar
*) "unnamed_arg20",
771 static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_create_session_OUT_ARG_unnamed_arg21
=
775 (gchar
*) "unnamed_arg21",
782 static const _ExtendedGDBusArgInfo
* const _logind_login1_manager_method_info_create_session_OUT_ARG_pointers
[] =
784 &_logind_login1_manager_method_info_create_session_OUT_ARG_unnamed_arg14
,
785 &_logind_login1_manager_method_info_create_session_OUT_ARG_unnamed_arg15
,
786 &_logind_login1_manager_method_info_create_session_OUT_ARG_unnamed_arg16
,
787 &_logind_login1_manager_method_info_create_session_OUT_ARG_unnamed_arg17
,
788 &_logind_login1_manager_method_info_create_session_OUT_ARG_unnamed_arg18
,
789 &_logind_login1_manager_method_info_create_session_OUT_ARG_unnamed_arg19
,
790 &_logind_login1_manager_method_info_create_session_OUT_ARG_unnamed_arg20
,
791 &_logind_login1_manager_method_info_create_session_OUT_ARG_unnamed_arg21
,
795 static const GDBusAnnotationInfo _logind_login1_manager_method_create_session_annotation_info_0
=
798 (gchar
*) "org.freedesktop.systemd1.Privileged",
803 static const GDBusAnnotationInfo
* const _logind_login1_manager_method_create_session_annotation_info_pointers
[] =
805 &_logind_login1_manager_method_create_session_annotation_info_0
,
809 static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_create_session
=
813 (gchar
*) "CreateSession",
814 (GDBusArgInfo
**) &_logind_login1_manager_method_info_create_session_IN_ARG_pointers
,
815 (GDBusArgInfo
**) &_logind_login1_manager_method_info_create_session_OUT_ARG_pointers
,
816 (GDBusAnnotationInfo
**) &_logind_login1_manager_method_create_session_annotation_info_pointers
818 "handle-create-session",
822 static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_release_session_IN_ARG_unnamed_arg0
=
826 (gchar
*) "unnamed_arg0",
833 static const _ExtendedGDBusArgInfo
* const _logind_login1_manager_method_info_release_session_IN_ARG_pointers
[] =
835 &_logind_login1_manager_method_info_release_session_IN_ARG_unnamed_arg0
,
839 static const GDBusAnnotationInfo _logind_login1_manager_method_release_session_annotation_info_0
=
842 (gchar
*) "org.freedesktop.systemd1.Privileged",
847 static const GDBusAnnotationInfo
* const _logind_login1_manager_method_release_session_annotation_info_pointers
[] =
849 &_logind_login1_manager_method_release_session_annotation_info_0
,
853 static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_release_session
=
857 (gchar
*) "ReleaseSession",
858 (GDBusArgInfo
**) &_logind_login1_manager_method_info_release_session_IN_ARG_pointers
,
860 (GDBusAnnotationInfo
**) &_logind_login1_manager_method_release_session_annotation_info_pointers
862 "handle-release-session",
866 static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_activate_session_IN_ARG_unnamed_arg0
=
870 (gchar
*) "unnamed_arg0",
877 static const _ExtendedGDBusArgInfo
* const _logind_login1_manager_method_info_activate_session_IN_ARG_pointers
[] =
879 &_logind_login1_manager_method_info_activate_session_IN_ARG_unnamed_arg0
,
883 static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_activate_session
=
887 (gchar
*) "ActivateSession",
888 (GDBusArgInfo
**) &_logind_login1_manager_method_info_activate_session_IN_ARG_pointers
,
892 "handle-activate-session",
896 static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_activate_session_on_seat_IN_ARG_unnamed_arg0
=
900 (gchar
*) "unnamed_arg0",
907 static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_activate_session_on_seat_IN_ARG_unnamed_arg1
=
911 (gchar
*) "unnamed_arg1",
918 static const _ExtendedGDBusArgInfo
* const _logind_login1_manager_method_info_activate_session_on_seat_IN_ARG_pointers
[] =
920 &_logind_login1_manager_method_info_activate_session_on_seat_IN_ARG_unnamed_arg0
,
921 &_logind_login1_manager_method_info_activate_session_on_seat_IN_ARG_unnamed_arg1
,
925 static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_activate_session_on_seat
=
929 (gchar
*) "ActivateSessionOnSeat",
930 (GDBusArgInfo
**) &_logind_login1_manager_method_info_activate_session_on_seat_IN_ARG_pointers
,
934 "handle-activate-session-on-seat",
938 static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_lock_session_IN_ARG_unnamed_arg0
=
942 (gchar
*) "unnamed_arg0",
949 static const _ExtendedGDBusArgInfo
* const _logind_login1_manager_method_info_lock_session_IN_ARG_pointers
[] =
951 &_logind_login1_manager_method_info_lock_session_IN_ARG_unnamed_arg0
,
955 static const GDBusAnnotationInfo _logind_login1_manager_method_lock_session_annotation_info_0
=
958 (gchar
*) "org.freedesktop.systemd1.Privileged",
963 static const GDBusAnnotationInfo
* const _logind_login1_manager_method_lock_session_annotation_info_pointers
[] =
965 &_logind_login1_manager_method_lock_session_annotation_info_0
,
969 static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_lock_session
=
973 (gchar
*) "LockSession",
974 (GDBusArgInfo
**) &_logind_login1_manager_method_info_lock_session_IN_ARG_pointers
,
976 (GDBusAnnotationInfo
**) &_logind_login1_manager_method_lock_session_annotation_info_pointers
978 "handle-lock-session",
982 static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_unlock_session_IN_ARG_unnamed_arg0
=
986 (gchar
*) "unnamed_arg0",
993 static const _ExtendedGDBusArgInfo
* const _logind_login1_manager_method_info_unlock_session_IN_ARG_pointers
[] =
995 &_logind_login1_manager_method_info_unlock_session_IN_ARG_unnamed_arg0
,
999 static const GDBusAnnotationInfo _logind_login1_manager_method_unlock_session_annotation_info_0
=
1002 (gchar
*) "org.freedesktop.systemd1.Privileged",
1007 static const GDBusAnnotationInfo
* const _logind_login1_manager_method_unlock_session_annotation_info_pointers
[] =
1009 &_logind_login1_manager_method_unlock_session_annotation_info_0
,
1013 static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_unlock_session
=
1017 (gchar
*) "UnlockSession",
1018 (GDBusArgInfo
**) &_logind_login1_manager_method_info_unlock_session_IN_ARG_pointers
,
1020 (GDBusAnnotationInfo
**) &_logind_login1_manager_method_unlock_session_annotation_info_pointers
1022 "handle-unlock-session",
1026 static const GDBusAnnotationInfo _logind_login1_manager_method_lock_sessions_annotation_info_0
=
1029 (gchar
*) "org.freedesktop.systemd1.Privileged",
1034 static const GDBusAnnotationInfo
* const _logind_login1_manager_method_lock_sessions_annotation_info_pointers
[] =
1036 &_logind_login1_manager_method_lock_sessions_annotation_info_0
,
1040 static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_lock_sessions
=
1044 (gchar
*) "LockSessions",
1047 (GDBusAnnotationInfo
**) &_logind_login1_manager_method_lock_sessions_annotation_info_pointers
1049 "handle-lock-sessions",
1053 static const GDBusAnnotationInfo _logind_login1_manager_method_unlock_sessions_annotation_info_0
=
1056 (gchar
*) "org.freedesktop.systemd1.Privileged",
1061 static const GDBusAnnotationInfo
* const _logind_login1_manager_method_unlock_sessions_annotation_info_pointers
[] =
1063 &_logind_login1_manager_method_unlock_sessions_annotation_info_0
,
1067 static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_unlock_sessions
=
1071 (gchar
*) "UnlockSessions",
1074 (GDBusAnnotationInfo
**) &_logind_login1_manager_method_unlock_sessions_annotation_info_pointers
1076 "handle-unlock-sessions",
1080 static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_kill_session_IN_ARG_unnamed_arg0
=
1084 (gchar
*) "unnamed_arg0",
1091 static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_kill_session_IN_ARG_unnamed_arg1
=
1095 (gchar
*) "unnamed_arg1",
1102 static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_kill_session_IN_ARG_unnamed_arg2
=
1106 (gchar
*) "unnamed_arg2",
1113 static const _ExtendedGDBusArgInfo
* const _logind_login1_manager_method_info_kill_session_IN_ARG_pointers
[] =
1115 &_logind_login1_manager_method_info_kill_session_IN_ARG_unnamed_arg0
,
1116 &_logind_login1_manager_method_info_kill_session_IN_ARG_unnamed_arg1
,
1117 &_logind_login1_manager_method_info_kill_session_IN_ARG_unnamed_arg2
,
1121 static const GDBusAnnotationInfo _logind_login1_manager_method_kill_session_annotation_info_0
=
1124 (gchar
*) "org.freedesktop.systemd1.Privileged",
1129 static const GDBusAnnotationInfo
* const _logind_login1_manager_method_kill_session_annotation_info_pointers
[] =
1131 &_logind_login1_manager_method_kill_session_annotation_info_0
,
1135 static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_kill_session
=
1139 (gchar
*) "KillSession",
1140 (GDBusArgInfo
**) &_logind_login1_manager_method_info_kill_session_IN_ARG_pointers
,
1142 (GDBusAnnotationInfo
**) &_logind_login1_manager_method_kill_session_annotation_info_pointers
1144 "handle-kill-session",
1148 static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_kill_user_IN_ARG_unnamed_arg0
=
1152 (gchar
*) "unnamed_arg0",
1159 static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_kill_user_IN_ARG_unnamed_arg1
=
1163 (gchar
*) "unnamed_arg1",
1170 static const _ExtendedGDBusArgInfo
* const _logind_login1_manager_method_info_kill_user_IN_ARG_pointers
[] =
1172 &_logind_login1_manager_method_info_kill_user_IN_ARG_unnamed_arg0
,
1173 &_logind_login1_manager_method_info_kill_user_IN_ARG_unnamed_arg1
,
1177 static const GDBusAnnotationInfo _logind_login1_manager_method_kill_user_annotation_info_0
=
1180 (gchar
*) "org.freedesktop.systemd1.Privileged",
1185 static const GDBusAnnotationInfo
* const _logind_login1_manager_method_kill_user_annotation_info_pointers
[] =
1187 &_logind_login1_manager_method_kill_user_annotation_info_0
,
1191 static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_kill_user
=
1195 (gchar
*) "KillUser",
1196 (GDBusArgInfo
**) &_logind_login1_manager_method_info_kill_user_IN_ARG_pointers
,
1198 (GDBusAnnotationInfo
**) &_logind_login1_manager_method_kill_user_annotation_info_pointers
1204 static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_terminate_session_IN_ARG_unnamed_arg0
=
1208 (gchar
*) "unnamed_arg0",
1215 static const _ExtendedGDBusArgInfo
* const _logind_login1_manager_method_info_terminate_session_IN_ARG_pointers
[] =
1217 &_logind_login1_manager_method_info_terminate_session_IN_ARG_unnamed_arg0
,
1221 static const GDBusAnnotationInfo _logind_login1_manager_method_terminate_session_annotation_info_0
=
1224 (gchar
*) "org.freedesktop.systemd1.Privileged",
1229 static const GDBusAnnotationInfo
* const _logind_login1_manager_method_terminate_session_annotation_info_pointers
[] =
1231 &_logind_login1_manager_method_terminate_session_annotation_info_0
,
1235 static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_terminate_session
=
1239 (gchar
*) "TerminateSession",
1240 (GDBusArgInfo
**) &_logind_login1_manager_method_info_terminate_session_IN_ARG_pointers
,
1242 (GDBusAnnotationInfo
**) &_logind_login1_manager_method_terminate_session_annotation_info_pointers
1244 "handle-terminate-session",
1248 static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_terminate_user_IN_ARG_unnamed_arg0
=
1252 (gchar
*) "unnamed_arg0",
1259 static const _ExtendedGDBusArgInfo
* const _logind_login1_manager_method_info_terminate_user_IN_ARG_pointers
[] =
1261 &_logind_login1_manager_method_info_terminate_user_IN_ARG_unnamed_arg0
,
1265 static const GDBusAnnotationInfo _logind_login1_manager_method_terminate_user_annotation_info_0
=
1268 (gchar
*) "org.freedesktop.systemd1.Privileged",
1273 static const GDBusAnnotationInfo
* const _logind_login1_manager_method_terminate_user_annotation_info_pointers
[] =
1275 &_logind_login1_manager_method_terminate_user_annotation_info_0
,
1279 static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_terminate_user
=
1283 (gchar
*) "TerminateUser",
1284 (GDBusArgInfo
**) &_logind_login1_manager_method_info_terminate_user_IN_ARG_pointers
,
1286 (GDBusAnnotationInfo
**) &_logind_login1_manager_method_terminate_user_annotation_info_pointers
1288 "handle-terminate-user",
1292 static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_terminate_seat_IN_ARG_unnamed_arg0
=
1296 (gchar
*) "unnamed_arg0",
1303 static const _ExtendedGDBusArgInfo
* const _logind_login1_manager_method_info_terminate_seat_IN_ARG_pointers
[] =
1305 &_logind_login1_manager_method_info_terminate_seat_IN_ARG_unnamed_arg0
,
1309 static const GDBusAnnotationInfo _logind_login1_manager_method_terminate_seat_annotation_info_0
=
1312 (gchar
*) "org.freedesktop.systemd1.Privileged",
1317 static const GDBusAnnotationInfo
* const _logind_login1_manager_method_terminate_seat_annotation_info_pointers
[] =
1319 &_logind_login1_manager_method_terminate_seat_annotation_info_0
,
1323 static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_terminate_seat
=
1327 (gchar
*) "TerminateSeat",
1328 (GDBusArgInfo
**) &_logind_login1_manager_method_info_terminate_seat_IN_ARG_pointers
,
1330 (GDBusAnnotationInfo
**) &_logind_login1_manager_method_terminate_seat_annotation_info_pointers
1332 "handle-terminate-seat",
1336 static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_set_user_linger_IN_ARG_unnamed_arg0
=
1340 (gchar
*) "unnamed_arg0",
1347 static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_set_user_linger_IN_ARG_unnamed_arg1
=
1351 (gchar
*) "unnamed_arg1",
1358 static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_set_user_linger_IN_ARG_unnamed_arg2
=
1362 (gchar
*) "unnamed_arg2",
1369 static const _ExtendedGDBusArgInfo
* const _logind_login1_manager_method_info_set_user_linger_IN_ARG_pointers
[] =
1371 &_logind_login1_manager_method_info_set_user_linger_IN_ARG_unnamed_arg0
,
1372 &_logind_login1_manager_method_info_set_user_linger_IN_ARG_unnamed_arg1
,
1373 &_logind_login1_manager_method_info_set_user_linger_IN_ARG_unnamed_arg2
,
1377 static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_set_user_linger
=
1381 (gchar
*) "SetUserLinger",
1382 (GDBusArgInfo
**) &_logind_login1_manager_method_info_set_user_linger_IN_ARG_pointers
,
1386 "handle-set-user-linger",
1390 static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_attach_device_IN_ARG_unnamed_arg0
=
1394 (gchar
*) "unnamed_arg0",
1401 static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_attach_device_IN_ARG_unnamed_arg1
=
1405 (gchar
*) "unnamed_arg1",
1412 static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_attach_device_IN_ARG_unnamed_arg2
=
1416 (gchar
*) "unnamed_arg2",
1423 static const _ExtendedGDBusArgInfo
* const _logind_login1_manager_method_info_attach_device_IN_ARG_pointers
[] =
1425 &_logind_login1_manager_method_info_attach_device_IN_ARG_unnamed_arg0
,
1426 &_logind_login1_manager_method_info_attach_device_IN_ARG_unnamed_arg1
,
1427 &_logind_login1_manager_method_info_attach_device_IN_ARG_unnamed_arg2
,
1431 static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_attach_device
=
1435 (gchar
*) "AttachDevice",
1436 (GDBusArgInfo
**) &_logind_login1_manager_method_info_attach_device_IN_ARG_pointers
,
1440 "handle-attach-device",
1444 static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_flush_devices_IN_ARG_unnamed_arg0
=
1448 (gchar
*) "unnamed_arg0",
1455 static const _ExtendedGDBusArgInfo
* const _logind_login1_manager_method_info_flush_devices_IN_ARG_pointers
[] =
1457 &_logind_login1_manager_method_info_flush_devices_IN_ARG_unnamed_arg0
,
1461 static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_flush_devices
=
1465 (gchar
*) "FlushDevices",
1466 (GDBusArgInfo
**) &_logind_login1_manager_method_info_flush_devices_IN_ARG_pointers
,
1470 "handle-flush-devices",
1474 static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_power_off_IN_ARG_unnamed_arg0
=
1478 (gchar
*) "unnamed_arg0",
1485 static const _ExtendedGDBusArgInfo
* const _logind_login1_manager_method_info_power_off_IN_ARG_pointers
[] =
1487 &_logind_login1_manager_method_info_power_off_IN_ARG_unnamed_arg0
,
1491 static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_power_off
=
1495 (gchar
*) "PowerOff",
1496 (GDBusArgInfo
**) &_logind_login1_manager_method_info_power_off_IN_ARG_pointers
,
1504 static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_reboot_IN_ARG_unnamed_arg0
=
1508 (gchar
*) "unnamed_arg0",
1515 static const _ExtendedGDBusArgInfo
* const _logind_login1_manager_method_info_reboot_IN_ARG_pointers
[] =
1517 &_logind_login1_manager_method_info_reboot_IN_ARG_unnamed_arg0
,
1521 static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_reboot
=
1526 (GDBusArgInfo
**) &_logind_login1_manager_method_info_reboot_IN_ARG_pointers
,
1534 static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_suspend_IN_ARG_unnamed_arg0
=
1538 (gchar
*) "unnamed_arg0",
1545 static const _ExtendedGDBusArgInfo
* const _logind_login1_manager_method_info_suspend_IN_ARG_pointers
[] =
1547 &_logind_login1_manager_method_info_suspend_IN_ARG_unnamed_arg0
,
1551 static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_suspend
=
1555 (gchar
*) "Suspend",
1556 (GDBusArgInfo
**) &_logind_login1_manager_method_info_suspend_IN_ARG_pointers
,
1564 static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_hibernate_IN_ARG_unnamed_arg0
=
1568 (gchar
*) "unnamed_arg0",
1575 static const _ExtendedGDBusArgInfo
* const _logind_login1_manager_method_info_hibernate_IN_ARG_pointers
[] =
1577 &_logind_login1_manager_method_info_hibernate_IN_ARG_unnamed_arg0
,
1581 static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_hibernate
=
1585 (gchar
*) "Hibernate",
1586 (GDBusArgInfo
**) &_logind_login1_manager_method_info_hibernate_IN_ARG_pointers
,
1594 static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_hybrid_sleep_IN_ARG_unnamed_arg0
=
1598 (gchar
*) "unnamed_arg0",
1605 static const _ExtendedGDBusArgInfo
* const _logind_login1_manager_method_info_hybrid_sleep_IN_ARG_pointers
[] =
1607 &_logind_login1_manager_method_info_hybrid_sleep_IN_ARG_unnamed_arg0
,
1611 static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_hybrid_sleep
=
1615 (gchar
*) "HybridSleep",
1616 (GDBusArgInfo
**) &_logind_login1_manager_method_info_hybrid_sleep_IN_ARG_pointers
,
1620 "handle-hybrid-sleep",
1624 static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_can_power_off_OUT_ARG_unnamed_arg0
=
1628 (gchar
*) "unnamed_arg0",
1635 static const _ExtendedGDBusArgInfo
* const _logind_login1_manager_method_info_can_power_off_OUT_ARG_pointers
[] =
1637 &_logind_login1_manager_method_info_can_power_off_OUT_ARG_unnamed_arg0
,
1641 static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_can_power_off
=
1645 (gchar
*) "CanPowerOff",
1647 (GDBusArgInfo
**) &_logind_login1_manager_method_info_can_power_off_OUT_ARG_pointers
,
1650 "handle-can-power-off",
1654 static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_can_reboot_OUT_ARG_unnamed_arg0
=
1658 (gchar
*) "unnamed_arg0",
1665 static const _ExtendedGDBusArgInfo
* const _logind_login1_manager_method_info_can_reboot_OUT_ARG_pointers
[] =
1667 &_logind_login1_manager_method_info_can_reboot_OUT_ARG_unnamed_arg0
,
1671 static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_can_reboot
=
1675 (gchar
*) "CanReboot",
1677 (GDBusArgInfo
**) &_logind_login1_manager_method_info_can_reboot_OUT_ARG_pointers
,
1680 "handle-can-reboot",
1684 static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_can_suspend_OUT_ARG_unnamed_arg0
=
1688 (gchar
*) "unnamed_arg0",
1695 static const _ExtendedGDBusArgInfo
* const _logind_login1_manager_method_info_can_suspend_OUT_ARG_pointers
[] =
1697 &_logind_login1_manager_method_info_can_suspend_OUT_ARG_unnamed_arg0
,
1701 static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_can_suspend
=
1705 (gchar
*) "CanSuspend",
1707 (GDBusArgInfo
**) &_logind_login1_manager_method_info_can_suspend_OUT_ARG_pointers
,
1710 "handle-can-suspend",
1714 static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_can_hibernate_OUT_ARG_unnamed_arg0
=
1718 (gchar
*) "unnamed_arg0",
1725 static const _ExtendedGDBusArgInfo
* const _logind_login1_manager_method_info_can_hibernate_OUT_ARG_pointers
[] =
1727 &_logind_login1_manager_method_info_can_hibernate_OUT_ARG_unnamed_arg0
,
1731 static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_can_hibernate
=
1735 (gchar
*) "CanHibernate",
1737 (GDBusArgInfo
**) &_logind_login1_manager_method_info_can_hibernate_OUT_ARG_pointers
,
1740 "handle-can-hibernate",
1744 static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_can_hybrid_sleep_OUT_ARG_unnamed_arg0
=
1748 (gchar
*) "unnamed_arg0",
1755 static const _ExtendedGDBusArgInfo
* const _logind_login1_manager_method_info_can_hybrid_sleep_OUT_ARG_pointers
[] =
1757 &_logind_login1_manager_method_info_can_hybrid_sleep_OUT_ARG_unnamed_arg0
,
1761 static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_can_hybrid_sleep
=
1765 (gchar
*) "CanHybridSleep",
1767 (GDBusArgInfo
**) &_logind_login1_manager_method_info_can_hybrid_sleep_OUT_ARG_pointers
,
1770 "handle-can-hybrid-sleep",
1774 static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_inhibit_IN_ARG_unnamed_arg0
=
1778 (gchar
*) "unnamed_arg0",
1785 static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_inhibit_IN_ARG_unnamed_arg1
=
1789 (gchar
*) "unnamed_arg1",
1796 static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_inhibit_IN_ARG_unnamed_arg2
=
1800 (gchar
*) "unnamed_arg2",
1807 static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_inhibit_IN_ARG_unnamed_arg3
=
1811 (gchar
*) "unnamed_arg3",
1818 static const _ExtendedGDBusArgInfo
* const _logind_login1_manager_method_info_inhibit_IN_ARG_pointers
[] =
1820 &_logind_login1_manager_method_info_inhibit_IN_ARG_unnamed_arg0
,
1821 &_logind_login1_manager_method_info_inhibit_IN_ARG_unnamed_arg1
,
1822 &_logind_login1_manager_method_info_inhibit_IN_ARG_unnamed_arg2
,
1823 &_logind_login1_manager_method_info_inhibit_IN_ARG_unnamed_arg3
,
1827 static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_inhibit_OUT_ARG_unnamed_arg4
=
1831 (gchar
*) "unnamed_arg4",
1838 static const _ExtendedGDBusArgInfo
* const _logind_login1_manager_method_info_inhibit_OUT_ARG_pointers
[] =
1840 &_logind_login1_manager_method_info_inhibit_OUT_ARG_unnamed_arg4
,
1844 static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_inhibit
=
1848 (gchar
*) "Inhibit",
1849 (GDBusArgInfo
**) &_logind_login1_manager_method_info_inhibit_IN_ARG_pointers
,
1850 (GDBusArgInfo
**) &_logind_login1_manager_method_info_inhibit_OUT_ARG_pointers
,
1857 static const _ExtendedGDBusMethodInfo
* const _logind_login1_manager_method_info_pointers
[] =
1859 &_logind_login1_manager_method_info_get_session
,
1860 &_logind_login1_manager_method_info_get_session_by_pid
,
1861 &_logind_login1_manager_method_info_get_user
,
1862 &_logind_login1_manager_method_info_get_user_by_pid
,
1863 &_logind_login1_manager_method_info_get_seat
,
1864 &_logind_login1_manager_method_info_list_sessions
,
1865 &_logind_login1_manager_method_info_list_users
,
1866 &_logind_login1_manager_method_info_list_seats
,
1867 &_logind_login1_manager_method_info_list_inhibitors
,
1868 &_logind_login1_manager_method_info_create_session
,
1869 &_logind_login1_manager_method_info_release_session
,
1870 &_logind_login1_manager_method_info_activate_session
,
1871 &_logind_login1_manager_method_info_activate_session_on_seat
,
1872 &_logind_login1_manager_method_info_lock_session
,
1873 &_logind_login1_manager_method_info_unlock_session
,
1874 &_logind_login1_manager_method_info_lock_sessions
,
1875 &_logind_login1_manager_method_info_unlock_sessions
,
1876 &_logind_login1_manager_method_info_kill_session
,
1877 &_logind_login1_manager_method_info_kill_user
,
1878 &_logind_login1_manager_method_info_terminate_session
,
1879 &_logind_login1_manager_method_info_terminate_user
,
1880 &_logind_login1_manager_method_info_terminate_seat
,
1881 &_logind_login1_manager_method_info_set_user_linger
,
1882 &_logind_login1_manager_method_info_attach_device
,
1883 &_logind_login1_manager_method_info_flush_devices
,
1884 &_logind_login1_manager_method_info_power_off
,
1885 &_logind_login1_manager_method_info_reboot
,
1886 &_logind_login1_manager_method_info_suspend
,
1887 &_logind_login1_manager_method_info_hibernate
,
1888 &_logind_login1_manager_method_info_hybrid_sleep
,
1889 &_logind_login1_manager_method_info_can_power_off
,
1890 &_logind_login1_manager_method_info_can_reboot
,
1891 &_logind_login1_manager_method_info_can_suspend
,
1892 &_logind_login1_manager_method_info_can_hibernate
,
1893 &_logind_login1_manager_method_info_can_hybrid_sleep
,
1894 &_logind_login1_manager_method_info_inhibit
,
1898 static const _ExtendedGDBusArgInfo _logind_login1_manager_signal_info_session_new_ARG_unnamed_arg0
=
1902 (gchar
*) "unnamed_arg0",
1909 static const _ExtendedGDBusArgInfo _logind_login1_manager_signal_info_session_new_ARG_unnamed_arg1
=
1913 (gchar
*) "unnamed_arg1",
1920 static const _ExtendedGDBusArgInfo
* const _logind_login1_manager_signal_info_session_new_ARG_pointers
[] =
1922 &_logind_login1_manager_signal_info_session_new_ARG_unnamed_arg0
,
1923 &_logind_login1_manager_signal_info_session_new_ARG_unnamed_arg1
,
1927 static const _ExtendedGDBusSignalInfo _logind_login1_manager_signal_info_session_new
=
1931 (gchar
*) "SessionNew",
1932 (GDBusArgInfo
**) &_logind_login1_manager_signal_info_session_new_ARG_pointers
,
1938 static const _ExtendedGDBusArgInfo _logind_login1_manager_signal_info_session_removed_ARG_unnamed_arg0
=
1942 (gchar
*) "unnamed_arg0",
1949 static const _ExtendedGDBusArgInfo _logind_login1_manager_signal_info_session_removed_ARG_unnamed_arg1
=
1953 (gchar
*) "unnamed_arg1",
1960 static const _ExtendedGDBusArgInfo
* const _logind_login1_manager_signal_info_session_removed_ARG_pointers
[] =
1962 &_logind_login1_manager_signal_info_session_removed_ARG_unnamed_arg0
,
1963 &_logind_login1_manager_signal_info_session_removed_ARG_unnamed_arg1
,
1967 static const _ExtendedGDBusSignalInfo _logind_login1_manager_signal_info_session_removed
=
1971 (gchar
*) "SessionRemoved",
1972 (GDBusArgInfo
**) &_logind_login1_manager_signal_info_session_removed_ARG_pointers
,
1978 static const _ExtendedGDBusArgInfo _logind_login1_manager_signal_info_user_new_ARG_unnamed_arg0
=
1982 (gchar
*) "unnamed_arg0",
1989 static const _ExtendedGDBusArgInfo _logind_login1_manager_signal_info_user_new_ARG_unnamed_arg1
=
1993 (gchar
*) "unnamed_arg1",
2000 static const _ExtendedGDBusArgInfo
* const _logind_login1_manager_signal_info_user_new_ARG_pointers
[] =
2002 &_logind_login1_manager_signal_info_user_new_ARG_unnamed_arg0
,
2003 &_logind_login1_manager_signal_info_user_new_ARG_unnamed_arg1
,
2007 static const _ExtendedGDBusSignalInfo _logind_login1_manager_signal_info_user_new
=
2011 (gchar
*) "UserNew",
2012 (GDBusArgInfo
**) &_logind_login1_manager_signal_info_user_new_ARG_pointers
,
2018 static const _ExtendedGDBusArgInfo _logind_login1_manager_signal_info_user_removed_ARG_unnamed_arg0
=
2022 (gchar
*) "unnamed_arg0",
2029 static const _ExtendedGDBusArgInfo _logind_login1_manager_signal_info_user_removed_ARG_unnamed_arg1
=
2033 (gchar
*) "unnamed_arg1",
2040 static const _ExtendedGDBusArgInfo
* const _logind_login1_manager_signal_info_user_removed_ARG_pointers
[] =
2042 &_logind_login1_manager_signal_info_user_removed_ARG_unnamed_arg0
,
2043 &_logind_login1_manager_signal_info_user_removed_ARG_unnamed_arg1
,
2047 static const _ExtendedGDBusSignalInfo _logind_login1_manager_signal_info_user_removed
=
2051 (gchar
*) "UserRemoved",
2052 (GDBusArgInfo
**) &_logind_login1_manager_signal_info_user_removed_ARG_pointers
,
2058 static const _ExtendedGDBusArgInfo _logind_login1_manager_signal_info_seat_new_ARG_unnamed_arg0
=
2062 (gchar
*) "unnamed_arg0",
2069 static const _ExtendedGDBusArgInfo _logind_login1_manager_signal_info_seat_new_ARG_unnamed_arg1
=
2073 (gchar
*) "unnamed_arg1",
2080 static const _ExtendedGDBusArgInfo
* const _logind_login1_manager_signal_info_seat_new_ARG_pointers
[] =
2082 &_logind_login1_manager_signal_info_seat_new_ARG_unnamed_arg0
,
2083 &_logind_login1_manager_signal_info_seat_new_ARG_unnamed_arg1
,
2087 static const _ExtendedGDBusSignalInfo _logind_login1_manager_signal_info_seat_new
=
2091 (gchar
*) "SeatNew",
2092 (GDBusArgInfo
**) &_logind_login1_manager_signal_info_seat_new_ARG_pointers
,
2098 static const _ExtendedGDBusArgInfo _logind_login1_manager_signal_info_seat_removed_ARG_unnamed_arg0
=
2102 (gchar
*) "unnamed_arg0",
2109 static const _ExtendedGDBusArgInfo _logind_login1_manager_signal_info_seat_removed_ARG_unnamed_arg1
=
2113 (gchar
*) "unnamed_arg1",
2120 static const _ExtendedGDBusArgInfo
* const _logind_login1_manager_signal_info_seat_removed_ARG_pointers
[] =
2122 &_logind_login1_manager_signal_info_seat_removed_ARG_unnamed_arg0
,
2123 &_logind_login1_manager_signal_info_seat_removed_ARG_unnamed_arg1
,
2127 static const _ExtendedGDBusSignalInfo _logind_login1_manager_signal_info_seat_removed
=
2131 (gchar
*) "SeatRemoved",
2132 (GDBusArgInfo
**) &_logind_login1_manager_signal_info_seat_removed_ARG_pointers
,
2138 static const _ExtendedGDBusArgInfo _logind_login1_manager_signal_info_prepare_for_shutdown_ARG_unnamed_arg0
=
2142 (gchar
*) "unnamed_arg0",
2149 static const _ExtendedGDBusArgInfo
* const _logind_login1_manager_signal_info_prepare_for_shutdown_ARG_pointers
[] =
2151 &_logind_login1_manager_signal_info_prepare_for_shutdown_ARG_unnamed_arg0
,
2155 static const _ExtendedGDBusSignalInfo _logind_login1_manager_signal_info_prepare_for_shutdown
=
2159 (gchar
*) "PrepareForShutdown",
2160 (GDBusArgInfo
**) &_logind_login1_manager_signal_info_prepare_for_shutdown_ARG_pointers
,
2163 "prepare-for-shutdown"
2166 static const _ExtendedGDBusArgInfo _logind_login1_manager_signal_info_prepare_for_sleep_ARG_unnamed_arg0
=
2170 (gchar
*) "unnamed_arg0",
2177 static const _ExtendedGDBusArgInfo
* const _logind_login1_manager_signal_info_prepare_for_sleep_ARG_pointers
[] =
2179 &_logind_login1_manager_signal_info_prepare_for_sleep_ARG_unnamed_arg0
,
2183 static const _ExtendedGDBusSignalInfo _logind_login1_manager_signal_info_prepare_for_sleep
=
2187 (gchar
*) "PrepareForSleep",
2188 (GDBusArgInfo
**) &_logind_login1_manager_signal_info_prepare_for_sleep_ARG_pointers
,
2194 static const _ExtendedGDBusSignalInfo
* const _logind_login1_manager_signal_info_pointers
[] =
2196 &_logind_login1_manager_signal_info_session_new
,
2197 &_logind_login1_manager_signal_info_session_removed
,
2198 &_logind_login1_manager_signal_info_user_new
,
2199 &_logind_login1_manager_signal_info_user_removed
,
2200 &_logind_login1_manager_signal_info_seat_new
,
2201 &_logind_login1_manager_signal_info_seat_removed
,
2202 &_logind_login1_manager_signal_info_prepare_for_shutdown
,
2203 &_logind_login1_manager_signal_info_prepare_for_sleep
,
2207 static const GDBusAnnotationInfo _logind_login1_manager_property_nauto_vts_annotation_info_0
=
2210 (gchar
*) "org.freedesktop.DBus.Property.EmitsChangedSignal",
2215 static const GDBusAnnotationInfo
* const _logind_login1_manager_property_nauto_vts_annotation_info_pointers
[] =
2217 &_logind_login1_manager_property_nauto_vts_annotation_info_0
,
2221 static const _ExtendedGDBusPropertyInfo _logind_login1_manager_property_info_nauto_vts
=
2225 (gchar
*) "NAutoVTs",
2227 G_DBUS_PROPERTY_INFO_FLAGS_READABLE
,
2228 (GDBusAnnotationInfo
**) &_logind_login1_manager_property_nauto_vts_annotation_info_pointers
2234 static const GDBusAnnotationInfo _logind_login1_manager_property_kill_only_users_annotation_info_0
=
2237 (gchar
*) "org.freedesktop.DBus.Property.EmitsChangedSignal",
2242 static const GDBusAnnotationInfo
* const _logind_login1_manager_property_kill_only_users_annotation_info_pointers
[] =
2244 &_logind_login1_manager_property_kill_only_users_annotation_info_0
,
2248 static const _ExtendedGDBusPropertyInfo _logind_login1_manager_property_info_kill_only_users
=
2252 (gchar
*) "KillOnlyUsers",
2254 G_DBUS_PROPERTY_INFO_FLAGS_READABLE
,
2255 (GDBusAnnotationInfo
**) &_logind_login1_manager_property_kill_only_users_annotation_info_pointers
2261 static const GDBusAnnotationInfo _logind_login1_manager_property_kill_exclude_users_annotation_info_0
=
2264 (gchar
*) "org.freedesktop.DBus.Property.EmitsChangedSignal",
2269 static const GDBusAnnotationInfo
* const _logind_login1_manager_property_kill_exclude_users_annotation_info_pointers
[] =
2271 &_logind_login1_manager_property_kill_exclude_users_annotation_info_0
,
2275 static const _ExtendedGDBusPropertyInfo _logind_login1_manager_property_info_kill_exclude_users
=
2279 (gchar
*) "KillExcludeUsers",
2281 G_DBUS_PROPERTY_INFO_FLAGS_READABLE
,
2282 (GDBusAnnotationInfo
**) &_logind_login1_manager_property_kill_exclude_users_annotation_info_pointers
2284 "kill-exclude-users",
2288 static const GDBusAnnotationInfo _logind_login1_manager_property_kill_user_processes_annotation_info_0
=
2291 (gchar
*) "org.freedesktop.DBus.Property.EmitsChangedSignal",
2296 static const GDBusAnnotationInfo
* const _logind_login1_manager_property_kill_user_processes_annotation_info_pointers
[] =
2298 &_logind_login1_manager_property_kill_user_processes_annotation_info_0
,
2302 static const _ExtendedGDBusPropertyInfo _logind_login1_manager_property_info_kill_user_processes
=
2306 (gchar
*) "KillUserProcesses",
2308 G_DBUS_PROPERTY_INFO_FLAGS_READABLE
,
2309 (GDBusAnnotationInfo
**) &_logind_login1_manager_property_kill_user_processes_annotation_info_pointers
2311 "kill-user-processes",
2315 static const _ExtendedGDBusPropertyInfo _logind_login1_manager_property_info_idle_hint
=
2319 (gchar
*) "IdleHint",
2321 G_DBUS_PROPERTY_INFO_FLAGS_READABLE
,
2328 static const _ExtendedGDBusPropertyInfo _logind_login1_manager_property_info_idle_since_hint
=
2332 (gchar
*) "IdleSinceHint",
2334 G_DBUS_PROPERTY_INFO_FLAGS_READABLE
,
2341 static const _ExtendedGDBusPropertyInfo _logind_login1_manager_property_info_idle_since_hint_monotonic
=
2345 (gchar
*) "IdleSinceHintMonotonic",
2347 G_DBUS_PROPERTY_INFO_FLAGS_READABLE
,
2350 "idle-since-hint-monotonic",
2354 static const _ExtendedGDBusPropertyInfo _logind_login1_manager_property_info_block_inhibited
=
2358 (gchar
*) "BlockInhibited",
2360 G_DBUS_PROPERTY_INFO_FLAGS_READABLE
,
2367 static const _ExtendedGDBusPropertyInfo _logind_login1_manager_property_info_delay_inhibited
=
2371 (gchar
*) "DelayInhibited",
2373 G_DBUS_PROPERTY_INFO_FLAGS_READABLE
,
2380 static const GDBusAnnotationInfo _logind_login1_manager_property_inhibit_delay_max_usec_annotation_info_0
=
2383 (gchar
*) "org.freedesktop.DBus.Property.EmitsChangedSignal",
2388 static const GDBusAnnotationInfo
* const _logind_login1_manager_property_inhibit_delay_max_usec_annotation_info_pointers
[] =
2390 &_logind_login1_manager_property_inhibit_delay_max_usec_annotation_info_0
,
2394 static const _ExtendedGDBusPropertyInfo _logind_login1_manager_property_info_inhibit_delay_max_usec
=
2398 (gchar
*) "InhibitDelayMaxUSec",
2400 G_DBUS_PROPERTY_INFO_FLAGS_READABLE
,
2401 (GDBusAnnotationInfo
**) &_logind_login1_manager_property_inhibit_delay_max_usec_annotation_info_pointers
2403 "inhibit-delay-max-usec",
2407 static const GDBusAnnotationInfo _logind_login1_manager_property_handle_power_key_annotation_info_0
=
2410 (gchar
*) "org.freedesktop.DBus.Property.EmitsChangedSignal",
2415 static const GDBusAnnotationInfo
* const _logind_login1_manager_property_handle_power_key_annotation_info_pointers
[] =
2417 &_logind_login1_manager_property_handle_power_key_annotation_info_0
,
2421 static const _ExtendedGDBusPropertyInfo _logind_login1_manager_property_info_handle_power_key
=
2425 (gchar
*) "HandlePowerKey",
2427 G_DBUS_PROPERTY_INFO_FLAGS_READABLE
,
2428 (GDBusAnnotationInfo
**) &_logind_login1_manager_property_handle_power_key_annotation_info_pointers
2434 static const GDBusAnnotationInfo _logind_login1_manager_property_handle_suspend_key_annotation_info_0
=
2437 (gchar
*) "org.freedesktop.DBus.Property.EmitsChangedSignal",
2442 static const GDBusAnnotationInfo
* const _logind_login1_manager_property_handle_suspend_key_annotation_info_pointers
[] =
2444 &_logind_login1_manager_property_handle_suspend_key_annotation_info_0
,
2448 static const _ExtendedGDBusPropertyInfo _logind_login1_manager_property_info_handle_suspend_key
=
2452 (gchar
*) "HandleSuspendKey",
2454 G_DBUS_PROPERTY_INFO_FLAGS_READABLE
,
2455 (GDBusAnnotationInfo
**) &_logind_login1_manager_property_handle_suspend_key_annotation_info_pointers
2457 "handle-suspend-key",
2461 static const GDBusAnnotationInfo _logind_login1_manager_property_handle_hibernate_key_annotation_info_0
=
2464 (gchar
*) "org.freedesktop.DBus.Property.EmitsChangedSignal",
2469 static const GDBusAnnotationInfo
* const _logind_login1_manager_property_handle_hibernate_key_annotation_info_pointers
[] =
2471 &_logind_login1_manager_property_handle_hibernate_key_annotation_info_0
,
2475 static const _ExtendedGDBusPropertyInfo _logind_login1_manager_property_info_handle_hibernate_key
=
2479 (gchar
*) "HandleHibernateKey",
2481 G_DBUS_PROPERTY_INFO_FLAGS_READABLE
,
2482 (GDBusAnnotationInfo
**) &_logind_login1_manager_property_handle_hibernate_key_annotation_info_pointers
2484 "handle-hibernate-key",
2488 static const GDBusAnnotationInfo _logind_login1_manager_property_handle_lid_switch_annotation_info_0
=
2491 (gchar
*) "org.freedesktop.DBus.Property.EmitsChangedSignal",
2496 static const GDBusAnnotationInfo
* const _logind_login1_manager_property_handle_lid_switch_annotation_info_pointers
[] =
2498 &_logind_login1_manager_property_handle_lid_switch_annotation_info_0
,
2502 static const _ExtendedGDBusPropertyInfo _logind_login1_manager_property_info_handle_lid_switch
=
2506 (gchar
*) "HandleLidSwitch",
2508 G_DBUS_PROPERTY_INFO_FLAGS_READABLE
,
2509 (GDBusAnnotationInfo
**) &_logind_login1_manager_property_handle_lid_switch_annotation_info_pointers
2511 "handle-lid-switch",
2515 static const GDBusAnnotationInfo _logind_login1_manager_property_idle_action_annotation_info_0
=
2518 (gchar
*) "org.freedesktop.DBus.Property.EmitsChangedSignal",
2523 static const GDBusAnnotationInfo
* const _logind_login1_manager_property_idle_action_annotation_info_pointers
[] =
2525 &_logind_login1_manager_property_idle_action_annotation_info_0
,
2529 static const _ExtendedGDBusPropertyInfo _logind_login1_manager_property_info_idle_action
=
2533 (gchar
*) "IdleAction",
2535 G_DBUS_PROPERTY_INFO_FLAGS_READABLE
,
2536 (GDBusAnnotationInfo
**) &_logind_login1_manager_property_idle_action_annotation_info_pointers
2542 static const GDBusAnnotationInfo _logind_login1_manager_property_idle_action_usec_annotation_info_0
=
2545 (gchar
*) "org.freedesktop.DBus.Property.EmitsChangedSignal",
2550 static const GDBusAnnotationInfo
* const _logind_login1_manager_property_idle_action_usec_annotation_info_pointers
[] =
2552 &_logind_login1_manager_property_idle_action_usec_annotation_info_0
,
2556 static const _ExtendedGDBusPropertyInfo _logind_login1_manager_property_info_idle_action_usec
=
2560 (gchar
*) "IdleActionUSec",
2562 G_DBUS_PROPERTY_INFO_FLAGS_READABLE
,
2563 (GDBusAnnotationInfo
**) &_logind_login1_manager_property_idle_action_usec_annotation_info_pointers
2569 static const GDBusAnnotationInfo _logind_login1_manager_property_preparing_for_shutdown_annotation_info_0
=
2572 (gchar
*) "org.freedesktop.DBus.Property.EmitsChangedSignal",
2577 static const GDBusAnnotationInfo
* const _logind_login1_manager_property_preparing_for_shutdown_annotation_info_pointers
[] =
2579 &_logind_login1_manager_property_preparing_for_shutdown_annotation_info_0
,
2583 static const _ExtendedGDBusPropertyInfo _logind_login1_manager_property_info_preparing_for_shutdown
=
2587 (gchar
*) "PreparingForShutdown",
2589 G_DBUS_PROPERTY_INFO_FLAGS_READABLE
,
2590 (GDBusAnnotationInfo
**) &_logind_login1_manager_property_preparing_for_shutdown_annotation_info_pointers
2592 "preparing-for-shutdown",
2596 static const GDBusAnnotationInfo _logind_login1_manager_property_preparing_for_sleep_annotation_info_0
=
2599 (gchar
*) "org.freedesktop.DBus.Property.EmitsChangedSignal",
2604 static const GDBusAnnotationInfo
* const _logind_login1_manager_property_preparing_for_sleep_annotation_info_pointers
[] =
2606 &_logind_login1_manager_property_preparing_for_sleep_annotation_info_0
,
2610 static const _ExtendedGDBusPropertyInfo _logind_login1_manager_property_info_preparing_for_sleep
=
2614 (gchar
*) "PreparingForSleep",
2616 G_DBUS_PROPERTY_INFO_FLAGS_READABLE
,
2617 (GDBusAnnotationInfo
**) &_logind_login1_manager_property_preparing_for_sleep_annotation_info_pointers
2619 "preparing-for-sleep",
2623 static const _ExtendedGDBusPropertyInfo
* const _logind_login1_manager_property_info_pointers
[] =
2625 &_logind_login1_manager_property_info_nauto_vts
,
2626 &_logind_login1_manager_property_info_kill_only_users
,
2627 &_logind_login1_manager_property_info_kill_exclude_users
,
2628 &_logind_login1_manager_property_info_kill_user_processes
,
2629 &_logind_login1_manager_property_info_idle_hint
,
2630 &_logind_login1_manager_property_info_idle_since_hint
,
2631 &_logind_login1_manager_property_info_idle_since_hint_monotonic
,
2632 &_logind_login1_manager_property_info_block_inhibited
,
2633 &_logind_login1_manager_property_info_delay_inhibited
,
2634 &_logind_login1_manager_property_info_inhibit_delay_max_usec
,
2635 &_logind_login1_manager_property_info_handle_power_key
,
2636 &_logind_login1_manager_property_info_handle_suspend_key
,
2637 &_logind_login1_manager_property_info_handle_hibernate_key
,
2638 &_logind_login1_manager_property_info_handle_lid_switch
,
2639 &_logind_login1_manager_property_info_idle_action
,
2640 &_logind_login1_manager_property_info_idle_action_usec
,
2641 &_logind_login1_manager_property_info_preparing_for_shutdown
,
2642 &_logind_login1_manager_property_info_preparing_for_sleep
,
2646 static const _ExtendedGDBusInterfaceInfo _logind_login1_manager_interface_info
=
2650 (gchar
*) "org.freedesktop.login1.Manager",
2651 (GDBusMethodInfo
**) &_logind_login1_manager_method_info_pointers
,
2652 (GDBusSignalInfo
**) &_logind_login1_manager_signal_info_pointers
,
2653 (GDBusPropertyInfo
**) &_logind_login1_manager_property_info_pointers
,
2661 * logind_login1_manager_interface_info:
2663 * Gets a machine-readable description of the <link linkend="gdbus-interface-org-freedesktop-login1-Manager.top_of_page">org.freedesktop.login1.Manager</link> D-Bus interface.
2665 * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free.
2667 GDBusInterfaceInfo
*
2668 logind_login1_manager_interface_info (void)
2670 return (GDBusInterfaceInfo
*) &_logind_login1_manager_interface_info
.parent_struct
;
2674 * logind_login1_manager_override_properties:
2675 * @klass: The class structure for a #GObject<!-- -->-derived class.
2676 * @property_id_begin: The property id to assign to the first overridden property.
2678 * Overrides all #GObject properties in the #logindLogin1Manager interface for a concrete class.
2679 * The properties are overridden in the order they are defined.
2681 * Returns: The last property id.
2684 logind_login1_manager_override_properties (GObjectClass
*klass
, guint property_id_begin
)
2686 g_object_class_override_property (klass
, property_id_begin
++, "nauto-vts");
2687 g_object_class_override_property (klass
, property_id_begin
++, "kill-only-users");
2688 g_object_class_override_property (klass
, property_id_begin
++, "kill-exclude-users");
2689 g_object_class_override_property (klass
, property_id_begin
++, "kill-user-processes");
2690 g_object_class_override_property (klass
, property_id_begin
++, "idle-hint");
2691 g_object_class_override_property (klass
, property_id_begin
++, "idle-since-hint");
2692 g_object_class_override_property (klass
, property_id_begin
++, "idle-since-hint-monotonic");
2693 g_object_class_override_property (klass
, property_id_begin
++, "block-inhibited");
2694 g_object_class_override_property (klass
, property_id_begin
++, "delay-inhibited");
2695 g_object_class_override_property (klass
, property_id_begin
++, "inhibit-delay-max-usec");
2696 g_object_class_override_property (klass
, property_id_begin
++, "handle-power-key");
2697 g_object_class_override_property (klass
, property_id_begin
++, "handle-suspend-key");
2698 g_object_class_override_property (klass
, property_id_begin
++, "handle-hibernate-key");
2699 g_object_class_override_property (klass
, property_id_begin
++, "handle-lid-switch");
2700 g_object_class_override_property (klass
, property_id_begin
++, "idle-action");
2701 g_object_class_override_property (klass
, property_id_begin
++, "idle-action-usec");
2702 g_object_class_override_property (klass
, property_id_begin
++, "preparing-for-shutdown");
2703 g_object_class_override_property (klass
, property_id_begin
++, "preparing-for-sleep");
2704 return property_id_begin
- 1;
2710 * logindLogin1Manager:
2712 * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-login1-Manager.top_of_page">org.freedesktop.login1.Manager</link>.
2716 * logindLogin1ManagerIface:
2717 * @parent_iface: The parent interface.
2718 * @handle_activate_session: Handler for the #logindLogin1Manager::handle-activate-session signal.
2719 * @handle_activate_session_on_seat: Handler for the #logindLogin1Manager::handle-activate-session-on-seat signal.
2720 * @handle_attach_device: Handler for the #logindLogin1Manager::handle-attach-device signal.
2721 * @handle_can_hibernate: Handler for the #logindLogin1Manager::handle-can-hibernate signal.
2722 * @handle_can_hybrid_sleep: Handler for the #logindLogin1Manager::handle-can-hybrid-sleep signal.
2723 * @handle_can_power_off: Handler for the #logindLogin1Manager::handle-can-power-off signal.
2724 * @handle_can_reboot: Handler for the #logindLogin1Manager::handle-can-reboot signal.
2725 * @handle_can_suspend: Handler for the #logindLogin1Manager::handle-can-suspend signal.
2726 * @handle_create_session: Handler for the #logindLogin1Manager::handle-create-session signal.
2727 * @handle_flush_devices: Handler for the #logindLogin1Manager::handle-flush-devices signal.
2728 * @handle_get_seat: Handler for the #logindLogin1Manager::handle-get-seat signal.
2729 * @handle_get_session: Handler for the #logindLogin1Manager::handle-get-session signal.
2730 * @handle_get_session_by_pid: Handler for the #logindLogin1Manager::handle-get-session-by-pid signal.
2731 * @handle_get_user: Handler for the #logindLogin1Manager::handle-get-user signal.
2732 * @handle_get_user_by_pid: Handler for the #logindLogin1Manager::handle-get-user-by-pid signal.
2733 * @handle_hibernate: Handler for the #logindLogin1Manager::handle-hibernate signal.
2734 * @handle_hybrid_sleep: Handler for the #logindLogin1Manager::handle-hybrid-sleep signal.
2735 * @handle_inhibit: Handler for the #logindLogin1Manager::handle-inhibit signal.
2736 * @handle_kill_session: Handler for the #logindLogin1Manager::handle-kill-session signal.
2737 * @handle_kill_user: Handler for the #logindLogin1Manager::handle-kill-user signal.
2738 * @handle_list_inhibitors: Handler for the #logindLogin1Manager::handle-list-inhibitors signal.
2739 * @handle_list_seats: Handler for the #logindLogin1Manager::handle-list-seats signal.
2740 * @handle_list_sessions: Handler for the #logindLogin1Manager::handle-list-sessions signal.
2741 * @handle_list_users: Handler for the #logindLogin1Manager::handle-list-users signal.
2742 * @handle_lock_session: Handler for the #logindLogin1Manager::handle-lock-session signal.
2743 * @handle_lock_sessions: Handler for the #logindLogin1Manager::handle-lock-sessions signal.
2744 * @handle_power_off: Handler for the #logindLogin1Manager::handle-power-off signal.
2745 * @handle_reboot: Handler for the #logindLogin1Manager::handle-reboot signal.
2746 * @handle_release_session: Handler for the #logindLogin1Manager::handle-release-session signal.
2747 * @handle_set_user_linger: Handler for the #logindLogin1Manager::handle-set-user-linger signal.
2748 * @handle_suspend: Handler for the #logindLogin1Manager::handle-suspend signal.
2749 * @handle_terminate_seat: Handler for the #logindLogin1Manager::handle-terminate-seat signal.
2750 * @handle_terminate_session: Handler for the #logindLogin1Manager::handle-terminate-session signal.
2751 * @handle_terminate_user: Handler for the #logindLogin1Manager::handle-terminate-user signal.
2752 * @handle_unlock_session: Handler for the #logindLogin1Manager::handle-unlock-session signal.
2753 * @handle_unlock_sessions: Handler for the #logindLogin1Manager::handle-unlock-sessions signal.
2754 * @get_block_inhibited: Getter for the #logindLogin1Manager:block-inhibited property.
2755 * @get_delay_inhibited: Getter for the #logindLogin1Manager:delay-inhibited property.
2756 * @get_handle_hibernate_key: Getter for the #logindLogin1Manager:handle-hibernate-key property.
2757 * @get_handle_lid_switch: Getter for the #logindLogin1Manager:handle-lid-switch property.
2758 * @get_handle_power_key: Getter for the #logindLogin1Manager:handle-power-key property.
2759 * @get_handle_suspend_key: Getter for the #logindLogin1Manager:handle-suspend-key property.
2760 * @get_idle_action: Getter for the #logindLogin1Manager:idle-action property.
2761 * @get_idle_action_usec: Getter for the #logindLogin1Manager:idle-action-usec property.
2762 * @get_idle_hint: Getter for the #logindLogin1Manager:idle-hint property.
2763 * @get_idle_since_hint: Getter for the #logindLogin1Manager:idle-since-hint property.
2764 * @get_idle_since_hint_monotonic: Getter for the #logindLogin1Manager:idle-since-hint-monotonic property.
2765 * @get_inhibit_delay_max_usec: Getter for the #logindLogin1Manager:inhibit-delay-max-usec property.
2766 * @get_kill_exclude_users: Getter for the #logindLogin1Manager:kill-exclude-users property.
2767 * @get_kill_only_users: Getter for the #logindLogin1Manager:kill-only-users property.
2768 * @get_kill_user_processes: Getter for the #logindLogin1Manager:kill-user-processes property.
2769 * @get_nauto_vts: Getter for the #logindLogin1Manager:nauto-vts property.
2770 * @get_preparing_for_shutdown: Getter for the #logindLogin1Manager:preparing-for-shutdown property.
2771 * @get_preparing_for_sleep: Getter for the #logindLogin1Manager:preparing-for-sleep property.
2772 * @prepare_for_shutdown: Handler for the #logindLogin1Manager::prepare-for-shutdown signal.
2773 * @prepare_for_sleep: Handler for the #logindLogin1Manager::prepare-for-sleep signal.
2774 * @seat_new: Handler for the #logindLogin1Manager::seat-new signal.
2775 * @seat_removed: Handler for the #logindLogin1Manager::seat-removed signal.
2776 * @session_new: Handler for the #logindLogin1Manager::session-new signal.
2777 * @session_removed: Handler for the #logindLogin1Manager::session-removed signal.
2778 * @user_new: Handler for the #logindLogin1Manager::user-new signal.
2779 * @user_removed: Handler for the #logindLogin1Manager::user-removed signal.
2781 * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-login1-Manager.top_of_page">org.freedesktop.login1.Manager</link>.
2784 typedef logindLogin1ManagerIface logindLogin1ManagerInterface
;
2785 G_DEFINE_INTERFACE (logindLogin1Manager
, logind_login1_manager
, G_TYPE_OBJECT
);
2788 logind_login1_manager_default_init (logindLogin1ManagerIface
*iface
)
2790 /* GObject signals for incoming D-Bus method calls: */
2792 * logindLogin1Manager::handle-get-session:
2793 * @object: A #logindLogin1Manager.
2794 * @invocation: A #GDBusMethodInvocation.
2795 * @arg_unnamed_arg0: Argument passed by remote caller.
2797 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-login1-Manager.GetSession">GetSession()</link> D-Bus method.
2799 * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call logind_login1_manager_complete_get_session() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
2801 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
2803 g_signal_new ("handle-get-session",
2804 G_TYPE_FROM_INTERFACE (iface
),
2806 G_STRUCT_OFFSET (logindLogin1ManagerIface
, handle_get_session
),
2807 g_signal_accumulator_true_handled
,
2809 g_cclosure_marshal_generic
,
2812 G_TYPE_DBUS_METHOD_INVOCATION
, G_TYPE_STRING
);
2815 * logindLogin1Manager::handle-get-session-by-pid:
2816 * @object: A #logindLogin1Manager.
2817 * @invocation: A #GDBusMethodInvocation.
2818 * @arg_unnamed_arg0: Argument passed by remote caller.
2820 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-login1-Manager.GetSessionByPID">GetSessionByPID()</link> D-Bus method.
2822 * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call logind_login1_manager_complete_get_session_by_pid() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
2824 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
2826 g_signal_new ("handle-get-session-by-pid",
2827 G_TYPE_FROM_INTERFACE (iface
),
2829 G_STRUCT_OFFSET (logindLogin1ManagerIface
, handle_get_session_by_pid
),
2830 g_signal_accumulator_true_handled
,
2832 g_cclosure_marshal_generic
,
2835 G_TYPE_DBUS_METHOD_INVOCATION
, G_TYPE_UINT
);
2838 * logindLogin1Manager::handle-get-user:
2839 * @object: A #logindLogin1Manager.
2840 * @invocation: A #GDBusMethodInvocation.
2841 * @arg_unnamed_arg0: Argument passed by remote caller.
2843 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-login1-Manager.GetUser">GetUser()</link> D-Bus method.
2845 * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call logind_login1_manager_complete_get_user() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
2847 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
2849 g_signal_new ("handle-get-user",
2850 G_TYPE_FROM_INTERFACE (iface
),
2852 G_STRUCT_OFFSET (logindLogin1ManagerIface
, handle_get_user
),
2853 g_signal_accumulator_true_handled
,
2855 g_cclosure_marshal_generic
,
2858 G_TYPE_DBUS_METHOD_INVOCATION
, G_TYPE_UINT
);
2861 * logindLogin1Manager::handle-get-user-by-pid:
2862 * @object: A #logindLogin1Manager.
2863 * @invocation: A #GDBusMethodInvocation.
2864 * @arg_unnamed_arg0: Argument passed by remote caller.
2866 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-login1-Manager.GetUserByPID">GetUserByPID()</link> D-Bus method.
2868 * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call logind_login1_manager_complete_get_user_by_pid() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
2870 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
2872 g_signal_new ("handle-get-user-by-pid",
2873 G_TYPE_FROM_INTERFACE (iface
),
2875 G_STRUCT_OFFSET (logindLogin1ManagerIface
, handle_get_user_by_pid
),
2876 g_signal_accumulator_true_handled
,
2878 g_cclosure_marshal_generic
,
2881 G_TYPE_DBUS_METHOD_INVOCATION
, G_TYPE_UINT
);
2884 * logindLogin1Manager::handle-get-seat:
2885 * @object: A #logindLogin1Manager.
2886 * @invocation: A #GDBusMethodInvocation.
2887 * @arg_unnamed_arg0: Argument passed by remote caller.
2889 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-login1-Manager.GetSeat">GetSeat()</link> D-Bus method.
2891 * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call logind_login1_manager_complete_get_seat() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
2893 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
2895 g_signal_new ("handle-get-seat",
2896 G_TYPE_FROM_INTERFACE (iface
),
2898 G_STRUCT_OFFSET (logindLogin1ManagerIface
, handle_get_seat
),
2899 g_signal_accumulator_true_handled
,
2901 g_cclosure_marshal_generic
,
2904 G_TYPE_DBUS_METHOD_INVOCATION
, G_TYPE_STRING
);
2907 * logindLogin1Manager::handle-list-sessions:
2908 * @object: A #logindLogin1Manager.
2909 * @invocation: A #GDBusMethodInvocation.
2911 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-login1-Manager.ListSessions">ListSessions()</link> D-Bus method.
2913 * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call logind_login1_manager_complete_list_sessions() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
2915 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
2917 g_signal_new ("handle-list-sessions",
2918 G_TYPE_FROM_INTERFACE (iface
),
2920 G_STRUCT_OFFSET (logindLogin1ManagerIface
, handle_list_sessions
),
2921 g_signal_accumulator_true_handled
,
2923 g_cclosure_marshal_generic
,
2926 G_TYPE_DBUS_METHOD_INVOCATION
);
2929 * logindLogin1Manager::handle-list-users:
2930 * @object: A #logindLogin1Manager.
2931 * @invocation: A #GDBusMethodInvocation.
2933 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-login1-Manager.ListUsers">ListUsers()</link> D-Bus method.
2935 * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call logind_login1_manager_complete_list_users() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
2937 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
2939 g_signal_new ("handle-list-users",
2940 G_TYPE_FROM_INTERFACE (iface
),
2942 G_STRUCT_OFFSET (logindLogin1ManagerIface
, handle_list_users
),
2943 g_signal_accumulator_true_handled
,
2945 g_cclosure_marshal_generic
,
2948 G_TYPE_DBUS_METHOD_INVOCATION
);
2951 * logindLogin1Manager::handle-list-seats:
2952 * @object: A #logindLogin1Manager.
2953 * @invocation: A #GDBusMethodInvocation.
2955 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-login1-Manager.ListSeats">ListSeats()</link> D-Bus method.
2957 * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call logind_login1_manager_complete_list_seats() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
2959 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
2961 g_signal_new ("handle-list-seats",
2962 G_TYPE_FROM_INTERFACE (iface
),
2964 G_STRUCT_OFFSET (logindLogin1ManagerIface
, handle_list_seats
),
2965 g_signal_accumulator_true_handled
,
2967 g_cclosure_marshal_generic
,
2970 G_TYPE_DBUS_METHOD_INVOCATION
);
2973 * logindLogin1Manager::handle-list-inhibitors:
2974 * @object: A #logindLogin1Manager.
2975 * @invocation: A #GDBusMethodInvocation.
2977 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-login1-Manager.ListInhibitors">ListInhibitors()</link> D-Bus method.
2979 * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call logind_login1_manager_complete_list_inhibitors() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
2981 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
2983 g_signal_new ("handle-list-inhibitors",
2984 G_TYPE_FROM_INTERFACE (iface
),
2986 G_STRUCT_OFFSET (logindLogin1ManagerIface
, handle_list_inhibitors
),
2987 g_signal_accumulator_true_handled
,
2989 g_cclosure_marshal_generic
,
2992 G_TYPE_DBUS_METHOD_INVOCATION
);
2995 * logindLogin1Manager::handle-create-session:
2996 * @object: A #logindLogin1Manager.
2997 * @invocation: A #GDBusMethodInvocation.
2998 * @arg_unnamed_arg0: Argument passed by remote caller.
2999 * @arg_unnamed_arg1: Argument passed by remote caller.
3000 * @arg_unnamed_arg2: Argument passed by remote caller.
3001 * @arg_unnamed_arg3: Argument passed by remote caller.
3002 * @arg_unnamed_arg4: Argument passed by remote caller.
3003 * @arg_unnamed_arg5: Argument passed by remote caller.
3004 * @arg_unnamed_arg6: Argument passed by remote caller.
3005 * @arg_unnamed_arg7: Argument passed by remote caller.
3006 * @arg_unnamed_arg8: Argument passed by remote caller.
3007 * @arg_unnamed_arg9: Argument passed by remote caller.
3008 * @arg_unnamed_arg10: Argument passed by remote caller.
3009 * @arg_unnamed_arg11: Argument passed by remote caller.
3010 * @arg_unnamed_arg12: Argument passed by remote caller.
3011 * @arg_unnamed_arg13: Argument passed by remote caller.
3013 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-login1-Manager.CreateSession">CreateSession()</link> D-Bus method.
3015 * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call logind_login1_manager_complete_create_session() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
3017 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
3019 g_signal_new ("handle-create-session",
3020 G_TYPE_FROM_INTERFACE (iface
),
3022 G_STRUCT_OFFSET (logindLogin1ManagerIface
, handle_create_session
),
3023 g_signal_accumulator_true_handled
,
3025 g_cclosure_marshal_generic
,
3028 G_TYPE_DBUS_METHOD_INVOCATION
, G_TYPE_UINT
, G_TYPE_UINT
, G_TYPE_STRING
, G_TYPE_STRING
, G_TYPE_STRING
, G_TYPE_STRING
, G_TYPE_STRING
, G_TYPE_UINT
, G_TYPE_STRING
, G_TYPE_STRING
, G_TYPE_BOOLEAN
, G_TYPE_STRING
, G_TYPE_STRING
, G_TYPE_VARIANT
);
3031 * logindLogin1Manager::handle-release-session:
3032 * @object: A #logindLogin1Manager.
3033 * @invocation: A #GDBusMethodInvocation.
3034 * @arg_unnamed_arg0: Argument passed by remote caller.
3036 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-login1-Manager.ReleaseSession">ReleaseSession()</link> D-Bus method.
3038 * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call logind_login1_manager_complete_release_session() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
3040 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
3042 g_signal_new ("handle-release-session",
3043 G_TYPE_FROM_INTERFACE (iface
),
3045 G_STRUCT_OFFSET (logindLogin1ManagerIface
, handle_release_session
),
3046 g_signal_accumulator_true_handled
,
3048 g_cclosure_marshal_generic
,
3051 G_TYPE_DBUS_METHOD_INVOCATION
, G_TYPE_STRING
);
3054 * logindLogin1Manager::handle-activate-session:
3055 * @object: A #logindLogin1Manager.
3056 * @invocation: A #GDBusMethodInvocation.
3057 * @arg_unnamed_arg0: Argument passed by remote caller.
3059 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-login1-Manager.ActivateSession">ActivateSession()</link> D-Bus method.
3061 * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call logind_login1_manager_complete_activate_session() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
3063 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
3065 g_signal_new ("handle-activate-session",
3066 G_TYPE_FROM_INTERFACE (iface
),
3068 G_STRUCT_OFFSET (logindLogin1ManagerIface
, handle_activate_session
),
3069 g_signal_accumulator_true_handled
,
3071 g_cclosure_marshal_generic
,
3074 G_TYPE_DBUS_METHOD_INVOCATION
, G_TYPE_STRING
);
3077 * logindLogin1Manager::handle-activate-session-on-seat:
3078 * @object: A #logindLogin1Manager.
3079 * @invocation: A #GDBusMethodInvocation.
3080 * @arg_unnamed_arg0: Argument passed by remote caller.
3081 * @arg_unnamed_arg1: Argument passed by remote caller.
3083 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-login1-Manager.ActivateSessionOnSeat">ActivateSessionOnSeat()</link> D-Bus method.
3085 * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call logind_login1_manager_complete_activate_session_on_seat() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
3087 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
3089 g_signal_new ("handle-activate-session-on-seat",
3090 G_TYPE_FROM_INTERFACE (iface
),
3092 G_STRUCT_OFFSET (logindLogin1ManagerIface
, handle_activate_session_on_seat
),
3093 g_signal_accumulator_true_handled
,
3095 g_cclosure_marshal_generic
,
3098 G_TYPE_DBUS_METHOD_INVOCATION
, G_TYPE_STRING
, G_TYPE_STRING
);
3101 * logindLogin1Manager::handle-lock-session:
3102 * @object: A #logindLogin1Manager.
3103 * @invocation: A #GDBusMethodInvocation.
3104 * @arg_unnamed_arg0: Argument passed by remote caller.
3106 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-login1-Manager.LockSession">LockSession()</link> D-Bus method.
3108 * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call logind_login1_manager_complete_lock_session() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
3110 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
3112 g_signal_new ("handle-lock-session",
3113 G_TYPE_FROM_INTERFACE (iface
),
3115 G_STRUCT_OFFSET (logindLogin1ManagerIface
, handle_lock_session
),
3116 g_signal_accumulator_true_handled
,
3118 g_cclosure_marshal_generic
,
3121 G_TYPE_DBUS_METHOD_INVOCATION
, G_TYPE_STRING
);
3124 * logindLogin1Manager::handle-unlock-session:
3125 * @object: A #logindLogin1Manager.
3126 * @invocation: A #GDBusMethodInvocation.
3127 * @arg_unnamed_arg0: Argument passed by remote caller.
3129 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-login1-Manager.UnlockSession">UnlockSession()</link> D-Bus method.
3131 * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call logind_login1_manager_complete_unlock_session() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
3133 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
3135 g_signal_new ("handle-unlock-session",
3136 G_TYPE_FROM_INTERFACE (iface
),
3138 G_STRUCT_OFFSET (logindLogin1ManagerIface
, handle_unlock_session
),
3139 g_signal_accumulator_true_handled
,
3141 g_cclosure_marshal_generic
,
3144 G_TYPE_DBUS_METHOD_INVOCATION
, G_TYPE_STRING
);
3147 * logindLogin1Manager::handle-lock-sessions:
3148 * @object: A #logindLogin1Manager.
3149 * @invocation: A #GDBusMethodInvocation.
3151 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-login1-Manager.LockSessions">LockSessions()</link> D-Bus method.
3153 * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call logind_login1_manager_complete_lock_sessions() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
3155 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
3157 g_signal_new ("handle-lock-sessions",
3158 G_TYPE_FROM_INTERFACE (iface
),
3160 G_STRUCT_OFFSET (logindLogin1ManagerIface
, handle_lock_sessions
),
3161 g_signal_accumulator_true_handled
,
3163 g_cclosure_marshal_generic
,
3166 G_TYPE_DBUS_METHOD_INVOCATION
);
3169 * logindLogin1Manager::handle-unlock-sessions:
3170 * @object: A #logindLogin1Manager.
3171 * @invocation: A #GDBusMethodInvocation.
3173 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-login1-Manager.UnlockSessions">UnlockSessions()</link> D-Bus method.
3175 * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call logind_login1_manager_complete_unlock_sessions() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
3177 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
3179 g_signal_new ("handle-unlock-sessions",
3180 G_TYPE_FROM_INTERFACE (iface
),
3182 G_STRUCT_OFFSET (logindLogin1ManagerIface
, handle_unlock_sessions
),
3183 g_signal_accumulator_true_handled
,
3185 g_cclosure_marshal_generic
,
3188 G_TYPE_DBUS_METHOD_INVOCATION
);
3191 * logindLogin1Manager::handle-kill-session:
3192 * @object: A #logindLogin1Manager.
3193 * @invocation: A #GDBusMethodInvocation.
3194 * @arg_unnamed_arg0: Argument passed by remote caller.
3195 * @arg_unnamed_arg1: Argument passed by remote caller.
3196 * @arg_unnamed_arg2: Argument passed by remote caller.
3198 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-login1-Manager.KillSession">KillSession()</link> D-Bus method.
3200 * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call logind_login1_manager_complete_kill_session() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
3202 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
3204 g_signal_new ("handle-kill-session",
3205 G_TYPE_FROM_INTERFACE (iface
),
3207 G_STRUCT_OFFSET (logindLogin1ManagerIface
, handle_kill_session
),
3208 g_signal_accumulator_true_handled
,
3210 g_cclosure_marshal_generic
,
3213 G_TYPE_DBUS_METHOD_INVOCATION
, G_TYPE_STRING
, G_TYPE_STRING
, G_TYPE_INT
);
3216 * logindLogin1Manager::handle-kill-user:
3217 * @object: A #logindLogin1Manager.
3218 * @invocation: A #GDBusMethodInvocation.
3219 * @arg_unnamed_arg0: Argument passed by remote caller.
3220 * @arg_unnamed_arg1: Argument passed by remote caller.
3222 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-login1-Manager.KillUser">KillUser()</link> D-Bus method.
3224 * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call logind_login1_manager_complete_kill_user() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
3226 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
3228 g_signal_new ("handle-kill-user",
3229 G_TYPE_FROM_INTERFACE (iface
),
3231 G_STRUCT_OFFSET (logindLogin1ManagerIface
, handle_kill_user
),
3232 g_signal_accumulator_true_handled
,
3234 g_cclosure_marshal_generic
,
3237 G_TYPE_DBUS_METHOD_INVOCATION
, G_TYPE_UINT
, G_TYPE_INT
);
3240 * logindLogin1Manager::handle-terminate-session:
3241 * @object: A #logindLogin1Manager.
3242 * @invocation: A #GDBusMethodInvocation.
3243 * @arg_unnamed_arg0: Argument passed by remote caller.
3245 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-login1-Manager.TerminateSession">TerminateSession()</link> D-Bus method.
3247 * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call logind_login1_manager_complete_terminate_session() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
3249 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
3251 g_signal_new ("handle-terminate-session",
3252 G_TYPE_FROM_INTERFACE (iface
),
3254 G_STRUCT_OFFSET (logindLogin1ManagerIface
, handle_terminate_session
),
3255 g_signal_accumulator_true_handled
,
3257 g_cclosure_marshal_generic
,
3260 G_TYPE_DBUS_METHOD_INVOCATION
, G_TYPE_STRING
);
3263 * logindLogin1Manager::handle-terminate-user:
3264 * @object: A #logindLogin1Manager.
3265 * @invocation: A #GDBusMethodInvocation.
3266 * @arg_unnamed_arg0: Argument passed by remote caller.
3268 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-login1-Manager.TerminateUser">TerminateUser()</link> D-Bus method.
3270 * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call logind_login1_manager_complete_terminate_user() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
3272 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
3274 g_signal_new ("handle-terminate-user",
3275 G_TYPE_FROM_INTERFACE (iface
),
3277 G_STRUCT_OFFSET (logindLogin1ManagerIface
, handle_terminate_user
),
3278 g_signal_accumulator_true_handled
,
3280 g_cclosure_marshal_generic
,
3283 G_TYPE_DBUS_METHOD_INVOCATION
, G_TYPE_UINT
);
3286 * logindLogin1Manager::handle-terminate-seat:
3287 * @object: A #logindLogin1Manager.
3288 * @invocation: A #GDBusMethodInvocation.
3289 * @arg_unnamed_arg0: Argument passed by remote caller.
3291 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-login1-Manager.TerminateSeat">TerminateSeat()</link> D-Bus method.
3293 * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call logind_login1_manager_complete_terminate_seat() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
3295 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
3297 g_signal_new ("handle-terminate-seat",
3298 G_TYPE_FROM_INTERFACE (iface
),
3300 G_STRUCT_OFFSET (logindLogin1ManagerIface
, handle_terminate_seat
),
3301 g_signal_accumulator_true_handled
,
3303 g_cclosure_marshal_generic
,
3306 G_TYPE_DBUS_METHOD_INVOCATION
, G_TYPE_STRING
);
3309 * logindLogin1Manager::handle-set-user-linger:
3310 * @object: A #logindLogin1Manager.
3311 * @invocation: A #GDBusMethodInvocation.
3312 * @arg_unnamed_arg0: Argument passed by remote caller.
3313 * @arg_unnamed_arg1: Argument passed by remote caller.
3314 * @arg_unnamed_arg2: Argument passed by remote caller.
3316 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-login1-Manager.SetUserLinger">SetUserLinger()</link> D-Bus method.
3318 * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call logind_login1_manager_complete_set_user_linger() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
3320 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
3322 g_signal_new ("handle-set-user-linger",
3323 G_TYPE_FROM_INTERFACE (iface
),
3325 G_STRUCT_OFFSET (logindLogin1ManagerIface
, handle_set_user_linger
),
3326 g_signal_accumulator_true_handled
,
3328 g_cclosure_marshal_generic
,
3331 G_TYPE_DBUS_METHOD_INVOCATION
, G_TYPE_UINT
, G_TYPE_BOOLEAN
, G_TYPE_BOOLEAN
);
3334 * logindLogin1Manager::handle-attach-device:
3335 * @object: A #logindLogin1Manager.
3336 * @invocation: A #GDBusMethodInvocation.
3337 * @arg_unnamed_arg0: Argument passed by remote caller.
3338 * @arg_unnamed_arg1: Argument passed by remote caller.
3339 * @arg_unnamed_arg2: Argument passed by remote caller.
3341 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-login1-Manager.AttachDevice">AttachDevice()</link> D-Bus method.
3343 * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call logind_login1_manager_complete_attach_device() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
3345 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
3347 g_signal_new ("handle-attach-device",
3348 G_TYPE_FROM_INTERFACE (iface
),
3350 G_STRUCT_OFFSET (logindLogin1ManagerIface
, handle_attach_device
),
3351 g_signal_accumulator_true_handled
,
3353 g_cclosure_marshal_generic
,
3356 G_TYPE_DBUS_METHOD_INVOCATION
, G_TYPE_STRING
, G_TYPE_STRING
, G_TYPE_BOOLEAN
);
3359 * logindLogin1Manager::handle-flush-devices:
3360 * @object: A #logindLogin1Manager.
3361 * @invocation: A #GDBusMethodInvocation.
3362 * @arg_unnamed_arg0: Argument passed by remote caller.
3364 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-login1-Manager.FlushDevices">FlushDevices()</link> D-Bus method.
3366 * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call logind_login1_manager_complete_flush_devices() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
3368 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
3370 g_signal_new ("handle-flush-devices",
3371 G_TYPE_FROM_INTERFACE (iface
),
3373 G_STRUCT_OFFSET (logindLogin1ManagerIface
, handle_flush_devices
),
3374 g_signal_accumulator_true_handled
,
3376 g_cclosure_marshal_generic
,
3379 G_TYPE_DBUS_METHOD_INVOCATION
, G_TYPE_BOOLEAN
);
3382 * logindLogin1Manager::handle-power-off:
3383 * @object: A #logindLogin1Manager.
3384 * @invocation: A #GDBusMethodInvocation.
3385 * @arg_unnamed_arg0: Argument passed by remote caller.
3387 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-login1-Manager.PowerOff">PowerOff()</link> D-Bus method.
3389 * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call logind_login1_manager_complete_power_off() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
3391 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
3393 g_signal_new ("handle-power-off",
3394 G_TYPE_FROM_INTERFACE (iface
),
3396 G_STRUCT_OFFSET (logindLogin1ManagerIface
, handle_power_off
),
3397 g_signal_accumulator_true_handled
,
3399 g_cclosure_marshal_generic
,
3402 G_TYPE_DBUS_METHOD_INVOCATION
, G_TYPE_BOOLEAN
);
3405 * logindLogin1Manager::handle-reboot:
3406 * @object: A #logindLogin1Manager.
3407 * @invocation: A #GDBusMethodInvocation.
3408 * @arg_unnamed_arg0: Argument passed by remote caller.
3410 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-login1-Manager.Reboot">Reboot()</link> D-Bus method.
3412 * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call logind_login1_manager_complete_reboot() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
3414 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
3416 g_signal_new ("handle-reboot",
3417 G_TYPE_FROM_INTERFACE (iface
),
3419 G_STRUCT_OFFSET (logindLogin1ManagerIface
, handle_reboot
),
3420 g_signal_accumulator_true_handled
,
3422 g_cclosure_marshal_generic
,
3425 G_TYPE_DBUS_METHOD_INVOCATION
, G_TYPE_BOOLEAN
);
3428 * logindLogin1Manager::handle-suspend:
3429 * @object: A #logindLogin1Manager.
3430 * @invocation: A #GDBusMethodInvocation.
3431 * @arg_unnamed_arg0: Argument passed by remote caller.
3433 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-login1-Manager.Suspend">Suspend()</link> D-Bus method.
3435 * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call logind_login1_manager_complete_suspend() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
3437 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
3439 g_signal_new ("handle-suspend",
3440 G_TYPE_FROM_INTERFACE (iface
),
3442 G_STRUCT_OFFSET (logindLogin1ManagerIface
, handle_suspend
),
3443 g_signal_accumulator_true_handled
,
3445 g_cclosure_marshal_generic
,
3448 G_TYPE_DBUS_METHOD_INVOCATION
, G_TYPE_BOOLEAN
);
3451 * logindLogin1Manager::handle-hibernate:
3452 * @object: A #logindLogin1Manager.
3453 * @invocation: A #GDBusMethodInvocation.
3454 * @arg_unnamed_arg0: Argument passed by remote caller.
3456 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-login1-Manager.Hibernate">Hibernate()</link> D-Bus method.
3458 * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call logind_login1_manager_complete_hibernate() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
3460 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
3462 g_signal_new ("handle-hibernate",
3463 G_TYPE_FROM_INTERFACE (iface
),
3465 G_STRUCT_OFFSET (logindLogin1ManagerIface
, handle_hibernate
),
3466 g_signal_accumulator_true_handled
,
3468 g_cclosure_marshal_generic
,
3471 G_TYPE_DBUS_METHOD_INVOCATION
, G_TYPE_BOOLEAN
);
3474 * logindLogin1Manager::handle-hybrid-sleep:
3475 * @object: A #logindLogin1Manager.
3476 * @invocation: A #GDBusMethodInvocation.
3477 * @arg_unnamed_arg0: Argument passed by remote caller.
3479 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-login1-Manager.HybridSleep">HybridSleep()</link> D-Bus method.
3481 * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call logind_login1_manager_complete_hybrid_sleep() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
3483 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
3485 g_signal_new ("handle-hybrid-sleep",
3486 G_TYPE_FROM_INTERFACE (iface
),
3488 G_STRUCT_OFFSET (logindLogin1ManagerIface
, handle_hybrid_sleep
),
3489 g_signal_accumulator_true_handled
,
3491 g_cclosure_marshal_generic
,
3494 G_TYPE_DBUS_METHOD_INVOCATION
, G_TYPE_BOOLEAN
);
3497 * logindLogin1Manager::handle-can-power-off:
3498 * @object: A #logindLogin1Manager.
3499 * @invocation: A #GDBusMethodInvocation.
3501 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-login1-Manager.CanPowerOff">CanPowerOff()</link> D-Bus method.
3503 * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call logind_login1_manager_complete_can_power_off() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
3505 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
3507 g_signal_new ("handle-can-power-off",
3508 G_TYPE_FROM_INTERFACE (iface
),
3510 G_STRUCT_OFFSET (logindLogin1ManagerIface
, handle_can_power_off
),
3511 g_signal_accumulator_true_handled
,
3513 g_cclosure_marshal_generic
,
3516 G_TYPE_DBUS_METHOD_INVOCATION
);
3519 * logindLogin1Manager::handle-can-reboot:
3520 * @object: A #logindLogin1Manager.
3521 * @invocation: A #GDBusMethodInvocation.
3523 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-login1-Manager.CanReboot">CanReboot()</link> D-Bus method.
3525 * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call logind_login1_manager_complete_can_reboot() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
3527 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
3529 g_signal_new ("handle-can-reboot",
3530 G_TYPE_FROM_INTERFACE (iface
),
3532 G_STRUCT_OFFSET (logindLogin1ManagerIface
, handle_can_reboot
),
3533 g_signal_accumulator_true_handled
,
3535 g_cclosure_marshal_generic
,
3538 G_TYPE_DBUS_METHOD_INVOCATION
);
3541 * logindLogin1Manager::handle-can-suspend:
3542 * @object: A #logindLogin1Manager.
3543 * @invocation: A #GDBusMethodInvocation.
3545 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-login1-Manager.CanSuspend">CanSuspend()</link> D-Bus method.
3547 * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call logind_login1_manager_complete_can_suspend() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
3549 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
3551 g_signal_new ("handle-can-suspend",
3552 G_TYPE_FROM_INTERFACE (iface
),
3554 G_STRUCT_OFFSET (logindLogin1ManagerIface
, handle_can_suspend
),
3555 g_signal_accumulator_true_handled
,
3557 g_cclosure_marshal_generic
,
3560 G_TYPE_DBUS_METHOD_INVOCATION
);
3563 * logindLogin1Manager::handle-can-hibernate:
3564 * @object: A #logindLogin1Manager.
3565 * @invocation: A #GDBusMethodInvocation.
3567 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-login1-Manager.CanHibernate">CanHibernate()</link> D-Bus method.
3569 * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call logind_login1_manager_complete_can_hibernate() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
3571 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
3573 g_signal_new ("handle-can-hibernate",
3574 G_TYPE_FROM_INTERFACE (iface
),
3576 G_STRUCT_OFFSET (logindLogin1ManagerIface
, handle_can_hibernate
),
3577 g_signal_accumulator_true_handled
,
3579 g_cclosure_marshal_generic
,
3582 G_TYPE_DBUS_METHOD_INVOCATION
);
3585 * logindLogin1Manager::handle-can-hybrid-sleep:
3586 * @object: A #logindLogin1Manager.
3587 * @invocation: A #GDBusMethodInvocation.
3589 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-login1-Manager.CanHybridSleep">CanHybridSleep()</link> D-Bus method.
3591 * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call logind_login1_manager_complete_can_hybrid_sleep() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
3593 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
3595 g_signal_new ("handle-can-hybrid-sleep",
3596 G_TYPE_FROM_INTERFACE (iface
),
3598 G_STRUCT_OFFSET (logindLogin1ManagerIface
, handle_can_hybrid_sleep
),
3599 g_signal_accumulator_true_handled
,
3601 g_cclosure_marshal_generic
,
3604 G_TYPE_DBUS_METHOD_INVOCATION
);
3607 * logindLogin1Manager::handle-inhibit:
3608 * @object: A #logindLogin1Manager.
3609 * @invocation: A #GDBusMethodInvocation.
3610 * @arg_unnamed_arg0: Argument passed by remote caller.
3611 * @arg_unnamed_arg1: Argument passed by remote caller.
3612 * @arg_unnamed_arg2: Argument passed by remote caller.
3613 * @arg_unnamed_arg3: Argument passed by remote caller.
3615 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-login1-Manager.Inhibit">Inhibit()</link> D-Bus method.
3617 * If a signal handler returns %TRUE, it means the signal handler will handle the invocation (e.g. take a reference to @invocation and eventually call logind_login1_manager_complete_inhibit() or e.g. g_dbus_method_invocation_return_error() on it) and no order signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
3619 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
3621 g_signal_new ("handle-inhibit",
3622 G_TYPE_FROM_INTERFACE (iface
),
3624 G_STRUCT_OFFSET (logindLogin1ManagerIface
, handle_inhibit
),
3625 g_signal_accumulator_true_handled
,
3627 g_cclosure_marshal_generic
,
3630 G_TYPE_DBUS_METHOD_INVOCATION
, G_TYPE_STRING
, G_TYPE_STRING
, G_TYPE_STRING
, G_TYPE_STRING
);
3632 /* GObject signals for received D-Bus signals: */
3634 * logindLogin1Manager::session-new:
3635 * @object: A #logindLogin1Manager.
3636 * @arg_unnamed_arg0: Argument.
3637 * @arg_unnamed_arg1: Argument.
3639 * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-freedesktop-login1-Manager.SessionNew">"SessionNew"</link> is received.
3641 * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal.
3643 g_signal_new ("session-new",
3644 G_TYPE_FROM_INTERFACE (iface
),
3646 G_STRUCT_OFFSET (logindLogin1ManagerIface
, session_new
),
3649 g_cclosure_marshal_generic
,
3651 2, G_TYPE_STRING
, G_TYPE_STRING
);
3654 * logindLogin1Manager::session-removed:
3655 * @object: A #logindLogin1Manager.
3656 * @arg_unnamed_arg0: Argument.
3657 * @arg_unnamed_arg1: Argument.
3659 * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-freedesktop-login1-Manager.SessionRemoved">"SessionRemoved"</link> is received.
3661 * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal.
3663 g_signal_new ("session-removed",
3664 G_TYPE_FROM_INTERFACE (iface
),
3666 G_STRUCT_OFFSET (logindLogin1ManagerIface
, session_removed
),
3669 g_cclosure_marshal_generic
,
3671 2, G_TYPE_STRING
, G_TYPE_STRING
);
3674 * logindLogin1Manager::user-new:
3675 * @object: A #logindLogin1Manager.
3676 * @arg_unnamed_arg0: Argument.
3677 * @arg_unnamed_arg1: Argument.
3679 * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-freedesktop-login1-Manager.UserNew">"UserNew"</link> is received.
3681 * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal.
3683 g_signal_new ("user-new",
3684 G_TYPE_FROM_INTERFACE (iface
),
3686 G_STRUCT_OFFSET (logindLogin1ManagerIface
, user_new
),
3689 g_cclosure_marshal_generic
,
3691 2, G_TYPE_UINT
, G_TYPE_STRING
);
3694 * logindLogin1Manager::user-removed:
3695 * @object: A #logindLogin1Manager.
3696 * @arg_unnamed_arg0: Argument.
3697 * @arg_unnamed_arg1: Argument.
3699 * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-freedesktop-login1-Manager.UserRemoved">"UserRemoved"</link> is received.
3701 * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal.
3703 g_signal_new ("user-removed",
3704 G_TYPE_FROM_INTERFACE (iface
),
3706 G_STRUCT_OFFSET (logindLogin1ManagerIface
, user_removed
),
3709 g_cclosure_marshal_generic
,
3711 2, G_TYPE_UINT
, G_TYPE_STRING
);
3714 * logindLogin1Manager::seat-new:
3715 * @object: A #logindLogin1Manager.
3716 * @arg_unnamed_arg0: Argument.
3717 * @arg_unnamed_arg1: Argument.
3719 * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-freedesktop-login1-Manager.SeatNew">"SeatNew"</link> is received.
3721 * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal.
3723 g_signal_new ("seat-new",
3724 G_TYPE_FROM_INTERFACE (iface
),
3726 G_STRUCT_OFFSET (logindLogin1ManagerIface
, seat_new
),
3729 g_cclosure_marshal_generic
,
3731 2, G_TYPE_STRING
, G_TYPE_STRING
);
3734 * logindLogin1Manager::seat-removed:
3735 * @object: A #logindLogin1Manager.
3736 * @arg_unnamed_arg0: Argument.
3737 * @arg_unnamed_arg1: Argument.
3739 * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-freedesktop-login1-Manager.SeatRemoved">"SeatRemoved"</link> is received.
3741 * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal.
3743 g_signal_new ("seat-removed",
3744 G_TYPE_FROM_INTERFACE (iface
),
3746 G_STRUCT_OFFSET (logindLogin1ManagerIface
, seat_removed
),
3749 g_cclosure_marshal_generic
,
3751 2, G_TYPE_STRING
, G_TYPE_STRING
);
3754 * logindLogin1Manager::prepare-for-shutdown:
3755 * @object: A #logindLogin1Manager.
3756 * @arg_unnamed_arg0: Argument.
3758 * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-freedesktop-login1-Manager.PrepareForShutdown">"PrepareForShutdown"</link> is received.
3760 * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal.
3762 g_signal_new ("prepare-for-shutdown",
3763 G_TYPE_FROM_INTERFACE (iface
),
3765 G_STRUCT_OFFSET (logindLogin1ManagerIface
, prepare_for_shutdown
),
3768 g_cclosure_marshal_generic
,
3773 * logindLogin1Manager::prepare-for-sleep:
3774 * @object: A #logindLogin1Manager.
3775 * @arg_unnamed_arg0: Argument.
3777 * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-freedesktop-login1-Manager.PrepareForSleep">"PrepareForSleep"</link> is received.
3779 * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal.
3781 g_signal_new ("prepare-for-sleep",
3782 G_TYPE_FROM_INTERFACE (iface
),
3784 G_STRUCT_OFFSET (logindLogin1ManagerIface
, prepare_for_sleep
),
3787 g_cclosure_marshal_generic
,
3791 /* GObject properties for D-Bus properties: */
3793 * logindLogin1Manager:nauto-vts:
3795 * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-login1-Manager.NAutoVTs">"NAutoVTs"</link>.
3797 * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
3799 g_object_interface_install_property (iface
,
3800 g_param_spec_uint ("nauto-vts", "NAutoVTs", "NAutoVTs", 0, G_MAXUINT32
, 0, G_PARAM_READWRITE
| G_PARAM_STATIC_STRINGS
));
3802 * logindLogin1Manager:kill-only-users:
3804 * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-login1-Manager.KillOnlyUsers">"KillOnlyUsers"</link>.
3806 * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
3808 g_object_interface_install_property (iface
,
3809 g_param_spec_boxed ("kill-only-users", "KillOnlyUsers", "KillOnlyUsers", G_TYPE_STRV
, G_PARAM_READWRITE
| G_PARAM_STATIC_STRINGS
));
3811 * logindLogin1Manager:kill-exclude-users:
3813 * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-login1-Manager.KillExcludeUsers">"KillExcludeUsers"</link>.
3815 * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
3817 g_object_interface_install_property (iface
,
3818 g_param_spec_boxed ("kill-exclude-users", "KillExcludeUsers", "KillExcludeUsers", G_TYPE_STRV
, G_PARAM_READWRITE
| G_PARAM_STATIC_STRINGS
));
3820 * logindLogin1Manager:kill-user-processes:
3822 * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-login1-Manager.KillUserProcesses">"KillUserProcesses"</link>.
3824 * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
3826 g_object_interface_install_property (iface
,
3827 g_param_spec_boolean ("kill-user-processes", "KillUserProcesses", "KillUserProcesses", FALSE
, G_PARAM_READWRITE
| G_PARAM_STATIC_STRINGS
));
3829 * logindLogin1Manager:idle-hint:
3831 * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-login1-Manager.IdleHint">"IdleHint"</link>.
3833 * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
3835 g_object_interface_install_property (iface
,
3836 g_param_spec_boolean ("idle-hint", "IdleHint", "IdleHint", FALSE
, G_PARAM_READWRITE
| G_PARAM_STATIC_STRINGS
));
3838 * logindLogin1Manager:idle-since-hint:
3840 * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-login1-Manager.IdleSinceHint">"IdleSinceHint"</link>.
3842 * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
3844 g_object_interface_install_property (iface
,
3845 g_param_spec_uint64 ("idle-since-hint", "IdleSinceHint", "IdleSinceHint", 0, G_MAXUINT64
, 0, G_PARAM_READWRITE
| G_PARAM_STATIC_STRINGS
));
3847 * logindLogin1Manager:idle-since-hint-monotonic:
3849 * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-login1-Manager.IdleSinceHintMonotonic">"IdleSinceHintMonotonic"</link>.
3851 * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
3853 g_object_interface_install_property (iface
,
3854 g_param_spec_uint64 ("idle-since-hint-monotonic", "IdleSinceHintMonotonic", "IdleSinceHintMonotonic", 0, G_MAXUINT64
, 0, G_PARAM_READWRITE
| G_PARAM_STATIC_STRINGS
));
3856 * logindLogin1Manager:block-inhibited:
3858 * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-login1-Manager.BlockInhibited">"BlockInhibited"</link>.
3860 * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
3862 g_object_interface_install_property (iface
,
3863 g_param_spec_string ("block-inhibited", "BlockInhibited", "BlockInhibited", NULL
, G_PARAM_READWRITE
| G_PARAM_STATIC_STRINGS
));
3865 * logindLogin1Manager:delay-inhibited:
3867 * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-login1-Manager.DelayInhibited">"DelayInhibited"</link>.
3869 * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
3871 g_object_interface_install_property (iface
,
3872 g_param_spec_string ("delay-inhibited", "DelayInhibited", "DelayInhibited", NULL
, G_PARAM_READWRITE
| G_PARAM_STATIC_STRINGS
));
3874 * logindLogin1Manager:inhibit-delay-max-usec:
3876 * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-login1-Manager.InhibitDelayMaxUSec">"InhibitDelayMaxUSec"</link>.
3878 * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
3880 g_object_interface_install_property (iface
,
3881 g_param_spec_uint64 ("inhibit-delay-max-usec", "InhibitDelayMaxUSec", "InhibitDelayMaxUSec", 0, G_MAXUINT64
, 0, G_PARAM_READWRITE
| G_PARAM_STATIC_STRINGS
));
3883 * logindLogin1Manager:handle-power-key:
3885 * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-login1-Manager.HandlePowerKey">"HandlePowerKey"</link>.
3887 * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
3889 g_object_interface_install_property (iface
,
3890 g_param_spec_string ("handle-power-key", "HandlePowerKey", "HandlePowerKey", NULL
, G_PARAM_READWRITE
| G_PARAM_STATIC_STRINGS
));
3892 * logindLogin1Manager:handle-suspend-key:
3894 * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-login1-Manager.HandleSuspendKey">"HandleSuspendKey"</link>.
3896 * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
3898 g_object_interface_install_property (iface
,
3899 g_param_spec_string ("handle-suspend-key", "HandleSuspendKey", "HandleSuspendKey", NULL
, G_PARAM_READWRITE
| G_PARAM_STATIC_STRINGS
));
3901 * logindLogin1Manager:handle-hibernate-key:
3903 * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-login1-Manager.HandleHibernateKey">"HandleHibernateKey"</link>.
3905 * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
3907 g_object_interface_install_property (iface
,
3908 g_param_spec_string ("handle-hibernate-key", "HandleHibernateKey", "HandleHibernateKey", NULL
, G_PARAM_READWRITE
| G_PARAM_STATIC_STRINGS
));
3910 * logindLogin1Manager:handle-lid-switch:
3912 * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-login1-Manager.HandleLidSwitch">"HandleLidSwitch"</link>.
3914 * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
3916 g_object_interface_install_property (iface
,
3917 g_param_spec_string ("handle-lid-switch", "HandleLidSwitch", "HandleLidSwitch", NULL
, G_PARAM_READWRITE
| G_PARAM_STATIC_STRINGS
));
3919 * logindLogin1Manager:idle-action:
3921 * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-login1-Manager.IdleAction">"IdleAction"</link>.
3923 * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
3925 g_object_interface_install_property (iface
,
3926 g_param_spec_string ("idle-action", "IdleAction", "IdleAction", NULL
, G_PARAM_READWRITE
| G_PARAM_STATIC_STRINGS
));
3928 * logindLogin1Manager:idle-action-usec:
3930 * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-login1-Manager.IdleActionUSec">"IdleActionUSec"</link>.
3932 * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
3934 g_object_interface_install_property (iface
,
3935 g_param_spec_uint64 ("idle-action-usec", "IdleActionUSec", "IdleActionUSec", 0, G_MAXUINT64
, 0, G_PARAM_READWRITE
| G_PARAM_STATIC_STRINGS
));
3937 * logindLogin1Manager:preparing-for-shutdown:
3939 * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-login1-Manager.PreparingForShutdown">"PreparingForShutdown"</link>.
3941 * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
3943 g_object_interface_install_property (iface
,
3944 g_param_spec_boolean ("preparing-for-shutdown", "PreparingForShutdown", "PreparingForShutdown", FALSE
, G_PARAM_READWRITE
| G_PARAM_STATIC_STRINGS
));
3946 * logindLogin1Manager:preparing-for-sleep:
3948 * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-login1-Manager.PreparingForSleep">"PreparingForSleep"</link>.
3950 * Since the D-Bus property for this #GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.
3952 g_object_interface_install_property (iface
,
3953 g_param_spec_boolean ("preparing-for-sleep", "PreparingForSleep", "PreparingForSleep", FALSE
, G_PARAM_READWRITE
| G_PARAM_STATIC_STRINGS
));
3957 * logind_login1_manager_get_nauto_vts: (skip)
3958 * @object: A #logindLogin1Manager.
3960 * Gets the value of the <link linkend="gdbus-property-org-freedesktop-login1-Manager.NAutoVTs">"NAutoVTs"</link> D-Bus property.
3962 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
3964 * Returns: The property value.
3967 logind_login1_manager_get_nauto_vts (logindLogin1Manager
*object
)
3969 return LOGIND_LOGIN1_MANAGER_GET_IFACE (object
)->get_nauto_vts (object
);
3973 * logind_login1_manager_set_nauto_vts: (skip)
3974 * @object: A #logindLogin1Manager.
3975 * @value: The value to set.
3977 * Sets the <link linkend="gdbus-property-org-freedesktop-login1-Manager.NAutoVTs">"NAutoVTs"</link> D-Bus property to @value.
3979 * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
3982 logind_login1_manager_set_nauto_vts (logindLogin1Manager
*object
, guint value
)
3984 g_object_set (G_OBJECT (object
), "nauto-vts", value
, NULL
);
3988 * logind_login1_manager_get_kill_only_users: (skip)
3989 * @object: A #logindLogin1Manager.
3991 * Gets the value of the <link linkend="gdbus-property-org-freedesktop-login1-Manager.KillOnlyUsers">"KillOnlyUsers"</link> D-Bus property.
3993 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
3995 * <warning>The returned value is only valid until the property changes so on the client-side it is only safe to use this function on the thread where @object was constructed. Use logind_login1_manager_dup_kill_only_users() if on another thread.</warning>
3997 * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object.
3999 const gchar
*const *
4000 logind_login1_manager_get_kill_only_users (logindLogin1Manager
*object
)
4002 return LOGIND_LOGIN1_MANAGER_GET_IFACE (object
)->get_kill_only_users (object
);
4006 * logind_login1_manager_dup_kill_only_users: (skip)
4007 * @object: A #logindLogin1Manager.
4009 * Gets a copy of the <link linkend="gdbus-property-org-freedesktop-login1-Manager.KillOnlyUsers">"KillOnlyUsers"</link> D-Bus property.
4011 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
4013 * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_strfreev().
4016 logind_login1_manager_dup_kill_only_users (logindLogin1Manager
*object
)
4019 g_object_get (G_OBJECT (object
), "kill-only-users", &value
, NULL
);
4024 * logind_login1_manager_set_kill_only_users: (skip)
4025 * @object: A #logindLogin1Manager.
4026 * @value: The value to set.
4028 * Sets the <link linkend="gdbus-property-org-freedesktop-login1-Manager.KillOnlyUsers">"KillOnlyUsers"</link> D-Bus property to @value.
4030 * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
4033 logind_login1_manager_set_kill_only_users (logindLogin1Manager
*object
, const gchar
*const *value
)
4035 g_object_set (G_OBJECT (object
), "kill-only-users", value
, NULL
);
4039 * logind_login1_manager_get_kill_exclude_users: (skip)
4040 * @object: A #logindLogin1Manager.
4042 * Gets the value of the <link linkend="gdbus-property-org-freedesktop-login1-Manager.KillExcludeUsers">"KillExcludeUsers"</link> D-Bus property.
4044 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
4046 * <warning>The returned value is only valid until the property changes so on the client-side it is only safe to use this function on the thread where @object was constructed. Use logind_login1_manager_dup_kill_exclude_users() if on another thread.</warning>
4048 * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object.
4050 const gchar
*const *
4051 logind_login1_manager_get_kill_exclude_users (logindLogin1Manager
*object
)
4053 return LOGIND_LOGIN1_MANAGER_GET_IFACE (object
)->get_kill_exclude_users (object
);
4057 * logind_login1_manager_dup_kill_exclude_users: (skip)
4058 * @object: A #logindLogin1Manager.
4060 * Gets a copy of the <link linkend="gdbus-property-org-freedesktop-login1-Manager.KillExcludeUsers">"KillExcludeUsers"</link> D-Bus property.
4062 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
4064 * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_strfreev().
4067 logind_login1_manager_dup_kill_exclude_users (logindLogin1Manager
*object
)
4070 g_object_get (G_OBJECT (object
), "kill-exclude-users", &value
, NULL
);
4075 * logind_login1_manager_set_kill_exclude_users: (skip)
4076 * @object: A #logindLogin1Manager.
4077 * @value: The value to set.
4079 * Sets the <link linkend="gdbus-property-org-freedesktop-login1-Manager.KillExcludeUsers">"KillExcludeUsers"</link> D-Bus property to @value.
4081 * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
4084 logind_login1_manager_set_kill_exclude_users (logindLogin1Manager
*object
, const gchar
*const *value
)
4086 g_object_set (G_OBJECT (object
), "kill-exclude-users", value
, NULL
);
4090 * logind_login1_manager_get_kill_user_processes: (skip)
4091 * @object: A #logindLogin1Manager.
4093 * Gets the value of the <link linkend="gdbus-property-org-freedesktop-login1-Manager.KillUserProcesses">"KillUserProcesses"</link> D-Bus property.
4095 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
4097 * Returns: The property value.
4100 logind_login1_manager_get_kill_user_processes (logindLogin1Manager
*object
)
4102 return LOGIND_LOGIN1_MANAGER_GET_IFACE (object
)->get_kill_user_processes (object
);
4106 * logind_login1_manager_set_kill_user_processes: (skip)
4107 * @object: A #logindLogin1Manager.
4108 * @value: The value to set.
4110 * Sets the <link linkend="gdbus-property-org-freedesktop-login1-Manager.KillUserProcesses">"KillUserProcesses"</link> D-Bus property to @value.
4112 * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
4115 logind_login1_manager_set_kill_user_processes (logindLogin1Manager
*object
, gboolean value
)
4117 g_object_set (G_OBJECT (object
), "kill-user-processes", value
, NULL
);
4121 * logind_login1_manager_get_idle_hint: (skip)
4122 * @object: A #logindLogin1Manager.
4124 * Gets the value of the <link linkend="gdbus-property-org-freedesktop-login1-Manager.IdleHint">"IdleHint"</link> D-Bus property.
4126 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
4128 * Returns: The property value.
4131 logind_login1_manager_get_idle_hint (logindLogin1Manager
*object
)
4133 return LOGIND_LOGIN1_MANAGER_GET_IFACE (object
)->get_idle_hint (object
);
4137 * logind_login1_manager_set_idle_hint: (skip)
4138 * @object: A #logindLogin1Manager.
4139 * @value: The value to set.
4141 * Sets the <link linkend="gdbus-property-org-freedesktop-login1-Manager.IdleHint">"IdleHint"</link> D-Bus property to @value.
4143 * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
4146 logind_login1_manager_set_idle_hint (logindLogin1Manager
*object
, gboolean value
)
4148 g_object_set (G_OBJECT (object
), "idle-hint", value
, NULL
);
4152 * logind_login1_manager_get_idle_since_hint: (skip)
4153 * @object: A #logindLogin1Manager.
4155 * Gets the value of the <link linkend="gdbus-property-org-freedesktop-login1-Manager.IdleSinceHint">"IdleSinceHint"</link> D-Bus property.
4157 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
4159 * Returns: The property value.
4162 logind_login1_manager_get_idle_since_hint (logindLogin1Manager
*object
)
4164 return LOGIND_LOGIN1_MANAGER_GET_IFACE (object
)->get_idle_since_hint (object
);
4168 * logind_login1_manager_set_idle_since_hint: (skip)
4169 * @object: A #logindLogin1Manager.
4170 * @value: The value to set.
4172 * Sets the <link linkend="gdbus-property-org-freedesktop-login1-Manager.IdleSinceHint">"IdleSinceHint"</link> D-Bus property to @value.
4174 * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
4177 logind_login1_manager_set_idle_since_hint (logindLogin1Manager
*object
, guint64 value
)
4179 g_object_set (G_OBJECT (object
), "idle-since-hint", value
, NULL
);
4183 * logind_login1_manager_get_idle_since_hint_monotonic: (skip)
4184 * @object: A #logindLogin1Manager.
4186 * Gets the value of the <link linkend="gdbus-property-org-freedesktop-login1-Manager.IdleSinceHintMonotonic">"IdleSinceHintMonotonic"</link> D-Bus property.
4188 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
4190 * Returns: The property value.
4193 logind_login1_manager_get_idle_since_hint_monotonic (logindLogin1Manager
*object
)
4195 return LOGIND_LOGIN1_MANAGER_GET_IFACE (object
)->get_idle_since_hint_monotonic (object
);
4199 * logind_login1_manager_set_idle_since_hint_monotonic: (skip)
4200 * @object: A #logindLogin1Manager.
4201 * @value: The value to set.
4203 * Sets the <link linkend="gdbus-property-org-freedesktop-login1-Manager.IdleSinceHintMonotonic">"IdleSinceHintMonotonic"</link> D-Bus property to @value.
4205 * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
4208 logind_login1_manager_set_idle_since_hint_monotonic (logindLogin1Manager
*object
, guint64 value
)
4210 g_object_set (G_OBJECT (object
), "idle-since-hint-monotonic", value
, NULL
);
4214 * logind_login1_manager_get_block_inhibited: (skip)
4215 * @object: A #logindLogin1Manager.
4217 * Gets the value of the <link linkend="gdbus-property-org-freedesktop-login1-Manager.BlockInhibited">"BlockInhibited"</link> D-Bus property.
4219 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
4221 * <warning>The returned value is only valid until the property changes so on the client-side it is only safe to use this function on the thread where @object was constructed. Use logind_login1_manager_dup_block_inhibited() if on another thread.</warning>
4223 * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object.
4226 logind_login1_manager_get_block_inhibited (logindLogin1Manager
*object
)
4228 return LOGIND_LOGIN1_MANAGER_GET_IFACE (object
)->get_block_inhibited (object
);
4232 * logind_login1_manager_dup_block_inhibited: (skip)
4233 * @object: A #logindLogin1Manager.
4235 * Gets a copy of the <link linkend="gdbus-property-org-freedesktop-login1-Manager.BlockInhibited">"BlockInhibited"</link> D-Bus property.
4237 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
4239 * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_free().
4242 logind_login1_manager_dup_block_inhibited (logindLogin1Manager
*object
)
4245 g_object_get (G_OBJECT (object
), "block-inhibited", &value
, NULL
);
4250 * logind_login1_manager_set_block_inhibited: (skip)
4251 * @object: A #logindLogin1Manager.
4252 * @value: The value to set.
4254 * Sets the <link linkend="gdbus-property-org-freedesktop-login1-Manager.BlockInhibited">"BlockInhibited"</link> D-Bus property to @value.
4256 * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
4259 logind_login1_manager_set_block_inhibited (logindLogin1Manager
*object
, const gchar
*value
)
4261 g_object_set (G_OBJECT (object
), "block-inhibited", value
, NULL
);
4265 * logind_login1_manager_get_delay_inhibited: (skip)
4266 * @object: A #logindLogin1Manager.
4268 * Gets the value of the <link linkend="gdbus-property-org-freedesktop-login1-Manager.DelayInhibited">"DelayInhibited"</link> D-Bus property.
4270 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
4272 * <warning>The returned value is only valid until the property changes so on the client-side it is only safe to use this function on the thread where @object was constructed. Use logind_login1_manager_dup_delay_inhibited() if on another thread.</warning>
4274 * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object.
4277 logind_login1_manager_get_delay_inhibited (logindLogin1Manager
*object
)
4279 return LOGIND_LOGIN1_MANAGER_GET_IFACE (object
)->get_delay_inhibited (object
);
4283 * logind_login1_manager_dup_delay_inhibited: (skip)
4284 * @object: A #logindLogin1Manager.
4286 * Gets a copy of the <link linkend="gdbus-property-org-freedesktop-login1-Manager.DelayInhibited">"DelayInhibited"</link> D-Bus property.
4288 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
4290 * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_free().
4293 logind_login1_manager_dup_delay_inhibited (logindLogin1Manager
*object
)
4296 g_object_get (G_OBJECT (object
), "delay-inhibited", &value
, NULL
);
4301 * logind_login1_manager_set_delay_inhibited: (skip)
4302 * @object: A #logindLogin1Manager.
4303 * @value: The value to set.
4305 * Sets the <link linkend="gdbus-property-org-freedesktop-login1-Manager.DelayInhibited">"DelayInhibited"</link> D-Bus property to @value.
4307 * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
4310 logind_login1_manager_set_delay_inhibited (logindLogin1Manager
*object
, const gchar
*value
)
4312 g_object_set (G_OBJECT (object
), "delay-inhibited", value
, NULL
);
4316 * logind_login1_manager_get_inhibit_delay_max_usec: (skip)
4317 * @object: A #logindLogin1Manager.
4319 * Gets the value of the <link linkend="gdbus-property-org-freedesktop-login1-Manager.InhibitDelayMaxUSec">"InhibitDelayMaxUSec"</link> D-Bus property.
4321 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
4323 * Returns: The property value.
4326 logind_login1_manager_get_inhibit_delay_max_usec (logindLogin1Manager
*object
)
4328 return LOGIND_LOGIN1_MANAGER_GET_IFACE (object
)->get_inhibit_delay_max_usec (object
);
4332 * logind_login1_manager_set_inhibit_delay_max_usec: (skip)
4333 * @object: A #logindLogin1Manager.
4334 * @value: The value to set.
4336 * Sets the <link linkend="gdbus-property-org-freedesktop-login1-Manager.InhibitDelayMaxUSec">"InhibitDelayMaxUSec"</link> D-Bus property to @value.
4338 * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
4341 logind_login1_manager_set_inhibit_delay_max_usec (logindLogin1Manager
*object
, guint64 value
)
4343 g_object_set (G_OBJECT (object
), "inhibit-delay-max-usec", value
, NULL
);
4347 * logind_login1_manager_get_handle_power_key: (skip)
4348 * @object: A #logindLogin1Manager.
4350 * Gets the value of the <link linkend="gdbus-property-org-freedesktop-login1-Manager.HandlePowerKey">"HandlePowerKey"</link> D-Bus property.
4352 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
4354 * <warning>The returned value is only valid until the property changes so on the client-side it is only safe to use this function on the thread where @object was constructed. Use logind_login1_manager_dup_handle_power_key() if on another thread.</warning>
4356 * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object.
4359 logind_login1_manager_get_handle_power_key (logindLogin1Manager
*object
)
4361 return LOGIND_LOGIN1_MANAGER_GET_IFACE (object
)->get_handle_power_key (object
);
4365 * logind_login1_manager_dup_handle_power_key: (skip)
4366 * @object: A #logindLogin1Manager.
4368 * Gets a copy of the <link linkend="gdbus-property-org-freedesktop-login1-Manager.HandlePowerKey">"HandlePowerKey"</link> D-Bus property.
4370 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
4372 * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_free().
4375 logind_login1_manager_dup_handle_power_key (logindLogin1Manager
*object
)
4378 g_object_get (G_OBJECT (object
), "handle-power-key", &value
, NULL
);
4383 * logind_login1_manager_set_handle_power_key: (skip)
4384 * @object: A #logindLogin1Manager.
4385 * @value: The value to set.
4387 * Sets the <link linkend="gdbus-property-org-freedesktop-login1-Manager.HandlePowerKey">"HandlePowerKey"</link> D-Bus property to @value.
4389 * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
4392 logind_login1_manager_set_handle_power_key (logindLogin1Manager
*object
, const gchar
*value
)
4394 g_object_set (G_OBJECT (object
), "handle-power-key", value
, NULL
);
4398 * logind_login1_manager_get_handle_suspend_key: (skip)
4399 * @object: A #logindLogin1Manager.
4401 * Gets the value of the <link linkend="gdbus-property-org-freedesktop-login1-Manager.HandleSuspendKey">"HandleSuspendKey"</link> D-Bus property.
4403 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
4405 * <warning>The returned value is only valid until the property changes so on the client-side it is only safe to use this function on the thread where @object was constructed. Use logind_login1_manager_dup_handle_suspend_key() if on another thread.</warning>
4407 * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object.
4410 logind_login1_manager_get_handle_suspend_key (logindLogin1Manager
*object
)
4412 return LOGIND_LOGIN1_MANAGER_GET_IFACE (object
)->get_handle_suspend_key (object
);
4416 * logind_login1_manager_dup_handle_suspend_key: (skip)
4417 * @object: A #logindLogin1Manager.
4419 * Gets a copy of the <link linkend="gdbus-property-org-freedesktop-login1-Manager.HandleSuspendKey">"HandleSuspendKey"</link> D-Bus property.
4421 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
4423 * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_free().
4426 logind_login1_manager_dup_handle_suspend_key (logindLogin1Manager
*object
)
4429 g_object_get (G_OBJECT (object
), "handle-suspend-key", &value
, NULL
);
4434 * logind_login1_manager_set_handle_suspend_key: (skip)
4435 * @object: A #logindLogin1Manager.
4436 * @value: The value to set.
4438 * Sets the <link linkend="gdbus-property-org-freedesktop-login1-Manager.HandleSuspendKey">"HandleSuspendKey"</link> D-Bus property to @value.
4440 * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
4443 logind_login1_manager_set_handle_suspend_key (logindLogin1Manager
*object
, const gchar
*value
)
4445 g_object_set (G_OBJECT (object
), "handle-suspend-key", value
, NULL
);
4449 * logind_login1_manager_get_handle_hibernate_key: (skip)
4450 * @object: A #logindLogin1Manager.
4452 * Gets the value of the <link linkend="gdbus-property-org-freedesktop-login1-Manager.HandleHibernateKey">"HandleHibernateKey"</link> D-Bus property.
4454 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
4456 * <warning>The returned value is only valid until the property changes so on the client-side it is only safe to use this function on the thread where @object was constructed. Use logind_login1_manager_dup_handle_hibernate_key() if on another thread.</warning>
4458 * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object.
4461 logind_login1_manager_get_handle_hibernate_key (logindLogin1Manager
*object
)
4463 return LOGIND_LOGIN1_MANAGER_GET_IFACE (object
)->get_handle_hibernate_key (object
);
4467 * logind_login1_manager_dup_handle_hibernate_key: (skip)
4468 * @object: A #logindLogin1Manager.
4470 * Gets a copy of the <link linkend="gdbus-property-org-freedesktop-login1-Manager.HandleHibernateKey">"HandleHibernateKey"</link> D-Bus property.
4472 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
4474 * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_free().
4477 logind_login1_manager_dup_handle_hibernate_key (logindLogin1Manager
*object
)
4480 g_object_get (G_OBJECT (object
), "handle-hibernate-key", &value
, NULL
);
4485 * logind_login1_manager_set_handle_hibernate_key: (skip)
4486 * @object: A #logindLogin1Manager.
4487 * @value: The value to set.
4489 * Sets the <link linkend="gdbus-property-org-freedesktop-login1-Manager.HandleHibernateKey">"HandleHibernateKey"</link> D-Bus property to @value.
4491 * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
4494 logind_login1_manager_set_handle_hibernate_key (logindLogin1Manager
*object
, const gchar
*value
)
4496 g_object_set (G_OBJECT (object
), "handle-hibernate-key", value
, NULL
);
4500 * logind_login1_manager_get_handle_lid_switch: (skip)
4501 * @object: A #logindLogin1Manager.
4503 * Gets the value of the <link linkend="gdbus-property-org-freedesktop-login1-Manager.HandleLidSwitch">"HandleLidSwitch"</link> D-Bus property.
4505 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
4507 * <warning>The returned value is only valid until the property changes so on the client-side it is only safe to use this function on the thread where @object was constructed. Use logind_login1_manager_dup_handle_lid_switch() if on another thread.</warning>
4509 * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object.
4512 logind_login1_manager_get_handle_lid_switch (logindLogin1Manager
*object
)
4514 return LOGIND_LOGIN1_MANAGER_GET_IFACE (object
)->get_handle_lid_switch (object
);
4518 * logind_login1_manager_dup_handle_lid_switch: (skip)
4519 * @object: A #logindLogin1Manager.
4521 * Gets a copy of the <link linkend="gdbus-property-org-freedesktop-login1-Manager.HandleLidSwitch">"HandleLidSwitch"</link> D-Bus property.
4523 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
4525 * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_free().
4528 logind_login1_manager_dup_handle_lid_switch (logindLogin1Manager
*object
)
4531 g_object_get (G_OBJECT (object
), "handle-lid-switch", &value
, NULL
);
4536 * logind_login1_manager_set_handle_lid_switch: (skip)
4537 * @object: A #logindLogin1Manager.
4538 * @value: The value to set.
4540 * Sets the <link linkend="gdbus-property-org-freedesktop-login1-Manager.HandleLidSwitch">"HandleLidSwitch"</link> D-Bus property to @value.
4542 * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
4545 logind_login1_manager_set_handle_lid_switch (logindLogin1Manager
*object
, const gchar
*value
)
4547 g_object_set (G_OBJECT (object
), "handle-lid-switch", value
, NULL
);
4551 * logind_login1_manager_get_idle_action: (skip)
4552 * @object: A #logindLogin1Manager.
4554 * Gets the value of the <link linkend="gdbus-property-org-freedesktop-login1-Manager.IdleAction">"IdleAction"</link> D-Bus property.
4556 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
4558 * <warning>The returned value is only valid until the property changes so on the client-side it is only safe to use this function on the thread where @object was constructed. Use logind_login1_manager_dup_idle_action() if on another thread.</warning>
4560 * Returns: (transfer none): The property value or %NULL if the property is not set. Do not free the returned value, it belongs to @object.
4563 logind_login1_manager_get_idle_action (logindLogin1Manager
*object
)
4565 return LOGIND_LOGIN1_MANAGER_GET_IFACE (object
)->get_idle_action (object
);
4569 * logind_login1_manager_dup_idle_action: (skip)
4570 * @object: A #logindLogin1Manager.
4572 * Gets a copy of the <link linkend="gdbus-property-org-freedesktop-login1-Manager.IdleAction">"IdleAction"</link> D-Bus property.
4574 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
4576 * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_free().
4579 logind_login1_manager_dup_idle_action (logindLogin1Manager
*object
)
4582 g_object_get (G_OBJECT (object
), "idle-action", &value
, NULL
);
4587 * logind_login1_manager_set_idle_action: (skip)
4588 * @object: A #logindLogin1Manager.
4589 * @value: The value to set.
4591 * Sets the <link linkend="gdbus-property-org-freedesktop-login1-Manager.IdleAction">"IdleAction"</link> D-Bus property to @value.
4593 * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
4596 logind_login1_manager_set_idle_action (logindLogin1Manager
*object
, const gchar
*value
)
4598 g_object_set (G_OBJECT (object
), "idle-action", value
, NULL
);
4602 * logind_login1_manager_get_idle_action_usec: (skip)
4603 * @object: A #logindLogin1Manager.
4605 * Gets the value of the <link linkend="gdbus-property-org-freedesktop-login1-Manager.IdleActionUSec">"IdleActionUSec"</link> D-Bus property.
4607 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
4609 * Returns: The property value.
4612 logind_login1_manager_get_idle_action_usec (logindLogin1Manager
*object
)
4614 return LOGIND_LOGIN1_MANAGER_GET_IFACE (object
)->get_idle_action_usec (object
);
4618 * logind_login1_manager_set_idle_action_usec: (skip)
4619 * @object: A #logindLogin1Manager.
4620 * @value: The value to set.
4622 * Sets the <link linkend="gdbus-property-org-freedesktop-login1-Manager.IdleActionUSec">"IdleActionUSec"</link> D-Bus property to @value.
4624 * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
4627 logind_login1_manager_set_idle_action_usec (logindLogin1Manager
*object
, guint64 value
)
4629 g_object_set (G_OBJECT (object
), "idle-action-usec", value
, NULL
);
4633 * logind_login1_manager_get_preparing_for_shutdown: (skip)
4634 * @object: A #logindLogin1Manager.
4636 * Gets the value of the <link linkend="gdbus-property-org-freedesktop-login1-Manager.PreparingForShutdown">"PreparingForShutdown"</link> D-Bus property.
4638 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
4640 * Returns: The property value.
4643 logind_login1_manager_get_preparing_for_shutdown (logindLogin1Manager
*object
)
4645 return LOGIND_LOGIN1_MANAGER_GET_IFACE (object
)->get_preparing_for_shutdown (object
);
4649 * logind_login1_manager_set_preparing_for_shutdown: (skip)
4650 * @object: A #logindLogin1Manager.
4651 * @value: The value to set.
4653 * Sets the <link linkend="gdbus-property-org-freedesktop-login1-Manager.PreparingForShutdown">"PreparingForShutdown"</link> D-Bus property to @value.
4655 * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
4658 logind_login1_manager_set_preparing_for_shutdown (logindLogin1Manager
*object
, gboolean value
)
4660 g_object_set (G_OBJECT (object
), "preparing-for-shutdown", value
, NULL
);
4664 * logind_login1_manager_get_preparing_for_sleep: (skip)
4665 * @object: A #logindLogin1Manager.
4667 * Gets the value of the <link linkend="gdbus-property-org-freedesktop-login1-Manager.PreparingForSleep">"PreparingForSleep"</link> D-Bus property.
4669 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
4671 * Returns: The property value.
4674 logind_login1_manager_get_preparing_for_sleep (logindLogin1Manager
*object
)
4676 return LOGIND_LOGIN1_MANAGER_GET_IFACE (object
)->get_preparing_for_sleep (object
);
4680 * logind_login1_manager_set_preparing_for_sleep: (skip)
4681 * @object: A #logindLogin1Manager.
4682 * @value: The value to set.
4684 * Sets the <link linkend="gdbus-property-org-freedesktop-login1-Manager.PreparingForSleep">"PreparingForSleep"</link> D-Bus property to @value.
4686 * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
4689 logind_login1_manager_set_preparing_for_sleep (logindLogin1Manager
*object
, gboolean value
)
4691 g_object_set (G_OBJECT (object
), "preparing-for-sleep", value
, NULL
);
4695 * logind_login1_manager_emit_session_new:
4696 * @object: A #logindLogin1Manager.
4697 * @arg_unnamed_arg0: Argument to pass with the signal.
4698 * @arg_unnamed_arg1: Argument to pass with the signal.
4700 * Emits the <link linkend="gdbus-signal-org-freedesktop-login1-Manager.SessionNew">"SessionNew"</link> D-Bus signal.
4703 logind_login1_manager_emit_session_new (
4704 logindLogin1Manager
*object
,
4705 const gchar
*arg_unnamed_arg0
,
4706 const gchar
*arg_unnamed_arg1
)
4708 g_signal_emit_by_name (object
, "session-new", arg_unnamed_arg0
, arg_unnamed_arg1
);
4712 * logind_login1_manager_emit_session_removed:
4713 * @object: A #logindLogin1Manager.
4714 * @arg_unnamed_arg0: Argument to pass with the signal.
4715 * @arg_unnamed_arg1: Argument to pass with the signal.
4717 * Emits the <link linkend="gdbus-signal-org-freedesktop-login1-Manager.SessionRemoved">"SessionRemoved"</link> D-Bus signal.
4720 logind_login1_manager_emit_session_removed (
4721 logindLogin1Manager
*object
,
4722 const gchar
*arg_unnamed_arg0
,
4723 const gchar
*arg_unnamed_arg1
)
4725 g_signal_emit_by_name (object
, "session-removed", arg_unnamed_arg0
, arg_unnamed_arg1
);
4729 * logind_login1_manager_emit_user_new:
4730 * @object: A #logindLogin1Manager.
4731 * @arg_unnamed_arg0: Argument to pass with the signal.
4732 * @arg_unnamed_arg1: Argument to pass with the signal.
4734 * Emits the <link linkend="gdbus-signal-org-freedesktop-login1-Manager.UserNew">"UserNew"</link> D-Bus signal.
4737 logind_login1_manager_emit_user_new (
4738 logindLogin1Manager
*object
,
4739 guint arg_unnamed_arg0
,
4740 const gchar
*arg_unnamed_arg1
)
4742 g_signal_emit_by_name (object
, "user-new", arg_unnamed_arg0
, arg_unnamed_arg1
);
4746 * logind_login1_manager_emit_user_removed:
4747 * @object: A #logindLogin1Manager.
4748 * @arg_unnamed_arg0: Argument to pass with the signal.
4749 * @arg_unnamed_arg1: Argument to pass with the signal.
4751 * Emits the <link linkend="gdbus-signal-org-freedesktop-login1-Manager.UserRemoved">"UserRemoved"</link> D-Bus signal.
4754 logind_login1_manager_emit_user_removed (
4755 logindLogin1Manager
*object
,
4756 guint arg_unnamed_arg0
,
4757 const gchar
*arg_unnamed_arg1
)
4759 g_signal_emit_by_name (object
, "user-removed", arg_unnamed_arg0
, arg_unnamed_arg1
);
4763 * logind_login1_manager_emit_seat_new:
4764 * @object: A #logindLogin1Manager.
4765 * @arg_unnamed_arg0: Argument to pass with the signal.
4766 * @arg_unnamed_arg1: Argument to pass with the signal.
4768 * Emits the <link linkend="gdbus-signal-org-freedesktop-login1-Manager.SeatNew">"SeatNew"</link> D-Bus signal.
4771 logind_login1_manager_emit_seat_new (
4772 logindLogin1Manager
*object
,
4773 const gchar
*arg_unnamed_arg0
,
4774 const gchar
*arg_unnamed_arg1
)
4776 g_signal_emit_by_name (object
, "seat-new", arg_unnamed_arg0
, arg_unnamed_arg1
);
4780 * logind_login1_manager_emit_seat_removed:
4781 * @object: A #logindLogin1Manager.
4782 * @arg_unnamed_arg0: Argument to pass with the signal.
4783 * @arg_unnamed_arg1: Argument to pass with the signal.
4785 * Emits the <link linkend="gdbus-signal-org-freedesktop-login1-Manager.SeatRemoved">"SeatRemoved"</link> D-Bus signal.
4788 logind_login1_manager_emit_seat_removed (
4789 logindLogin1Manager
*object
,
4790 const gchar
*arg_unnamed_arg0
,
4791 const gchar
*arg_unnamed_arg1
)
4793 g_signal_emit_by_name (object
, "seat-removed", arg_unnamed_arg0
, arg_unnamed_arg1
);
4797 * logind_login1_manager_emit_prepare_for_shutdown:
4798 * @object: A #logindLogin1Manager.
4799 * @arg_unnamed_arg0: Argument to pass with the signal.
4801 * Emits the <link linkend="gdbus-signal-org-freedesktop-login1-Manager.PrepareForShutdown">"PrepareForShutdown"</link> D-Bus signal.
4804 logind_login1_manager_emit_prepare_for_shutdown (
4805 logindLogin1Manager
*object
,
4806 gboolean arg_unnamed_arg0
)
4808 g_signal_emit_by_name (object
, "prepare-for-shutdown", arg_unnamed_arg0
);
4812 * logind_login1_manager_emit_prepare_for_sleep:
4813 * @object: A #logindLogin1Manager.
4814 * @arg_unnamed_arg0: Argument to pass with the signal.
4816 * Emits the <link linkend="gdbus-signal-org-freedesktop-login1-Manager.PrepareForSleep">"PrepareForSleep"</link> D-Bus signal.
4819 logind_login1_manager_emit_prepare_for_sleep (
4820 logindLogin1Manager
*object
,
4821 gboolean arg_unnamed_arg0
)
4823 g_signal_emit_by_name (object
, "prepare-for-sleep", arg_unnamed_arg0
);
4827 * logind_login1_manager_call_get_session:
4828 * @proxy: A #logindLogin1ManagerProxy.
4829 * @arg_unnamed_arg0: Argument to pass with the method invocation.
4830 * @cancellable: (allow-none): A #GCancellable or %NULL.
4831 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
4832 * @user_data: User data to pass to @callback.
4834 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-login1-Manager.GetSession">GetSession()</link> D-Bus method on @proxy.
4835 * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
4836 * You can then call logind_login1_manager_call_get_session_finish() to get the result of the operation.
4838 * See logind_login1_manager_call_get_session_sync() for the synchronous, blocking version of this method.
4841 logind_login1_manager_call_get_session (
4842 logindLogin1Manager
*proxy
,
4843 const gchar
*arg_unnamed_arg0
,
4844 GCancellable
*cancellable
,
4845 GAsyncReadyCallback callback
,
4848 g_dbus_proxy_call (G_DBUS_PROXY (proxy
),
4850 g_variant_new ("(s)",
4852 G_DBUS_CALL_FLAGS_NONE
,
4860 * logind_login1_manager_call_get_session_finish:
4861 * @proxy: A #logindLogin1ManagerProxy.
4862 * @out_unnamed_arg1: (out): Return location for return parameter or %NULL to ignore.
4863 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to logind_login1_manager_call_get_session().
4864 * @error: Return location for error or %NULL.
4866 * Finishes an operation started with logind_login1_manager_call_get_session().
4868 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
4871 logind_login1_manager_call_get_session_finish (
4872 logindLogin1Manager
*proxy
,
4873 gchar
**out_unnamed_arg1
,
4878 _ret
= g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy
), res
, error
);
4881 g_variant_get (_ret
,
4884 g_variant_unref (_ret
);
4886 return _ret
!= NULL
;
4890 * logind_login1_manager_call_get_session_sync:
4891 * @proxy: A #logindLogin1ManagerProxy.
4892 * @arg_unnamed_arg0: Argument to pass with the method invocation.
4893 * @out_unnamed_arg1: (out): Return location for return parameter or %NULL to ignore.
4894 * @cancellable: (allow-none): A #GCancellable or %NULL.
4895 * @error: Return location for error or %NULL.
4897 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-login1-Manager.GetSession">GetSession()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
4899 * See logind_login1_manager_call_get_session() for the asynchronous version of this method.
4901 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
4904 logind_login1_manager_call_get_session_sync (
4905 logindLogin1Manager
*proxy
,
4906 const gchar
*arg_unnamed_arg0
,
4907 gchar
**out_unnamed_arg1
,
4908 GCancellable
*cancellable
,
4912 _ret
= g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy
),
4914 g_variant_new ("(s)",
4916 G_DBUS_CALL_FLAGS_NONE
,
4922 g_variant_get (_ret
,
4925 g_variant_unref (_ret
);
4927 return _ret
!= NULL
;
4931 * logind_login1_manager_call_get_session_by_pid:
4932 * @proxy: A #logindLogin1ManagerProxy.
4933 * @arg_unnamed_arg0: Argument to pass with the method invocation.
4934 * @cancellable: (allow-none): A #GCancellable or %NULL.
4935 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
4936 * @user_data: User data to pass to @callback.
4938 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-login1-Manager.GetSessionByPID">GetSessionByPID()</link> D-Bus method on @proxy.
4939 * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
4940 * You can then call logind_login1_manager_call_get_session_by_pid_finish() to get the result of the operation.
4942 * See logind_login1_manager_call_get_session_by_pid_sync() for the synchronous, blocking version of this method.
4945 logind_login1_manager_call_get_session_by_pid (
4946 logindLogin1Manager
*proxy
,
4947 guint arg_unnamed_arg0
,
4948 GCancellable
*cancellable
,
4949 GAsyncReadyCallback callback
,
4952 g_dbus_proxy_call (G_DBUS_PROXY (proxy
),
4954 g_variant_new ("(u)",
4956 G_DBUS_CALL_FLAGS_NONE
,
4964 * logind_login1_manager_call_get_session_by_pid_finish:
4965 * @proxy: A #logindLogin1ManagerProxy.
4966 * @out_unnamed_arg1: (out): Return location for return parameter or %NULL to ignore.
4967 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to logind_login1_manager_call_get_session_by_pid().
4968 * @error: Return location for error or %NULL.
4970 * Finishes an operation started with logind_login1_manager_call_get_session_by_pid().
4972 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
4975 logind_login1_manager_call_get_session_by_pid_finish (
4976 logindLogin1Manager
*proxy
,
4977 gchar
**out_unnamed_arg1
,
4982 _ret
= g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy
), res
, error
);
4985 g_variant_get (_ret
,
4988 g_variant_unref (_ret
);
4990 return _ret
!= NULL
;
4994 * logind_login1_manager_call_get_session_by_pid_sync:
4995 * @proxy: A #logindLogin1ManagerProxy.
4996 * @arg_unnamed_arg0: Argument to pass with the method invocation.
4997 * @out_unnamed_arg1: (out): Return location for return parameter or %NULL to ignore.
4998 * @cancellable: (allow-none): A #GCancellable or %NULL.
4999 * @error: Return location for error or %NULL.
5001 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-login1-Manager.GetSessionByPID">GetSessionByPID()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
5003 * See logind_login1_manager_call_get_session_by_pid() for the asynchronous version of this method.
5005 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
5008 logind_login1_manager_call_get_session_by_pid_sync (
5009 logindLogin1Manager
*proxy
,
5010 guint arg_unnamed_arg0
,
5011 gchar
**out_unnamed_arg1
,
5012 GCancellable
*cancellable
,
5016 _ret
= g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy
),
5018 g_variant_new ("(u)",
5020 G_DBUS_CALL_FLAGS_NONE
,
5026 g_variant_get (_ret
,
5029 g_variant_unref (_ret
);
5031 return _ret
!= NULL
;
5035 * logind_login1_manager_call_get_user:
5036 * @proxy: A #logindLogin1ManagerProxy.
5037 * @arg_unnamed_arg0: Argument to pass with the method invocation.
5038 * @cancellable: (allow-none): A #GCancellable or %NULL.
5039 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
5040 * @user_data: User data to pass to @callback.
5042 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-login1-Manager.GetUser">GetUser()</link> D-Bus method on @proxy.
5043 * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
5044 * You can then call logind_login1_manager_call_get_user_finish() to get the result of the operation.
5046 * See logind_login1_manager_call_get_user_sync() for the synchronous, blocking version of this method.
5049 logind_login1_manager_call_get_user (
5050 logindLogin1Manager
*proxy
,
5051 guint arg_unnamed_arg0
,
5052 GCancellable
*cancellable
,
5053 GAsyncReadyCallback callback
,
5056 g_dbus_proxy_call (G_DBUS_PROXY (proxy
),
5058 g_variant_new ("(u)",
5060 G_DBUS_CALL_FLAGS_NONE
,
5068 * logind_login1_manager_call_get_user_finish:
5069 * @proxy: A #logindLogin1ManagerProxy.
5070 * @out_unnamed_arg1: (out): Return location for return parameter or %NULL to ignore.
5071 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to logind_login1_manager_call_get_user().
5072 * @error: Return location for error or %NULL.
5074 * Finishes an operation started with logind_login1_manager_call_get_user().
5076 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
5079 logind_login1_manager_call_get_user_finish (
5080 logindLogin1Manager
*proxy
,
5081 gchar
**out_unnamed_arg1
,
5086 _ret
= g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy
), res
, error
);
5089 g_variant_get (_ret
,
5092 g_variant_unref (_ret
);
5094 return _ret
!= NULL
;
5098 * logind_login1_manager_call_get_user_sync:
5099 * @proxy: A #logindLogin1ManagerProxy.
5100 * @arg_unnamed_arg0: Argument to pass with the method invocation.
5101 * @out_unnamed_arg1: (out): Return location for return parameter or %NULL to ignore.
5102 * @cancellable: (allow-none): A #GCancellable or %NULL.
5103 * @error: Return location for error or %NULL.
5105 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-login1-Manager.GetUser">GetUser()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
5107 * See logind_login1_manager_call_get_user() for the asynchronous version of this method.
5109 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
5112 logind_login1_manager_call_get_user_sync (
5113 logindLogin1Manager
*proxy
,
5114 guint arg_unnamed_arg0
,
5115 gchar
**out_unnamed_arg1
,
5116 GCancellable
*cancellable
,
5120 _ret
= g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy
),
5122 g_variant_new ("(u)",
5124 G_DBUS_CALL_FLAGS_NONE
,
5130 g_variant_get (_ret
,
5133 g_variant_unref (_ret
);
5135 return _ret
!= NULL
;
5139 * logind_login1_manager_call_get_user_by_pid:
5140 * @proxy: A #logindLogin1ManagerProxy.
5141 * @arg_unnamed_arg0: Argument to pass with the method invocation.
5142 * @cancellable: (allow-none): A #GCancellable or %NULL.
5143 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
5144 * @user_data: User data to pass to @callback.
5146 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-login1-Manager.GetUserByPID">GetUserByPID()</link> D-Bus method on @proxy.
5147 * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
5148 * You can then call logind_login1_manager_call_get_user_by_pid_finish() to get the result of the operation.
5150 * See logind_login1_manager_call_get_user_by_pid_sync() for the synchronous, blocking version of this method.
5153 logind_login1_manager_call_get_user_by_pid (
5154 logindLogin1Manager
*proxy
,
5155 guint arg_unnamed_arg0
,
5156 GCancellable
*cancellable
,
5157 GAsyncReadyCallback callback
,
5160 g_dbus_proxy_call (G_DBUS_PROXY (proxy
),
5162 g_variant_new ("(u)",
5164 G_DBUS_CALL_FLAGS_NONE
,
5172 * logind_login1_manager_call_get_user_by_pid_finish:
5173 * @proxy: A #logindLogin1ManagerProxy.
5174 * @out_unnamed_arg1: (out): Return location for return parameter or %NULL to ignore.
5175 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to logind_login1_manager_call_get_user_by_pid().
5176 * @error: Return location for error or %NULL.
5178 * Finishes an operation started with logind_login1_manager_call_get_user_by_pid().
5180 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
5183 logind_login1_manager_call_get_user_by_pid_finish (
5184 logindLogin1Manager
*proxy
,
5185 gchar
**out_unnamed_arg1
,
5190 _ret
= g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy
), res
, error
);
5193 g_variant_get (_ret
,
5196 g_variant_unref (_ret
);
5198 return _ret
!= NULL
;
5202 * logind_login1_manager_call_get_user_by_pid_sync:
5203 * @proxy: A #logindLogin1ManagerProxy.
5204 * @arg_unnamed_arg0: Argument to pass with the method invocation.
5205 * @out_unnamed_arg1: (out): Return location for return parameter or %NULL to ignore.
5206 * @cancellable: (allow-none): A #GCancellable or %NULL.
5207 * @error: Return location for error or %NULL.
5209 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-login1-Manager.GetUserByPID">GetUserByPID()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
5211 * See logind_login1_manager_call_get_user_by_pid() for the asynchronous version of this method.
5213 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
5216 logind_login1_manager_call_get_user_by_pid_sync (
5217 logindLogin1Manager
*proxy
,
5218 guint arg_unnamed_arg0
,
5219 gchar
**out_unnamed_arg1
,
5220 GCancellable
*cancellable
,
5224 _ret
= g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy
),
5226 g_variant_new ("(u)",
5228 G_DBUS_CALL_FLAGS_NONE
,
5234 g_variant_get (_ret
,
5237 g_variant_unref (_ret
);
5239 return _ret
!= NULL
;
5243 * logind_login1_manager_call_get_seat:
5244 * @proxy: A #logindLogin1ManagerProxy.
5245 * @arg_unnamed_arg0: Argument to pass with the method invocation.
5246 * @cancellable: (allow-none): A #GCancellable or %NULL.
5247 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
5248 * @user_data: User data to pass to @callback.
5250 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-login1-Manager.GetSeat">GetSeat()</link> D-Bus method on @proxy.
5251 * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
5252 * You can then call logind_login1_manager_call_get_seat_finish() to get the result of the operation.
5254 * See logind_login1_manager_call_get_seat_sync() for the synchronous, blocking version of this method.
5257 logind_login1_manager_call_get_seat (
5258 logindLogin1Manager
*proxy
,
5259 const gchar
*arg_unnamed_arg0
,
5260 GCancellable
*cancellable
,
5261 GAsyncReadyCallback callback
,
5264 g_dbus_proxy_call (G_DBUS_PROXY (proxy
),
5266 g_variant_new ("(s)",
5268 G_DBUS_CALL_FLAGS_NONE
,
5276 * logind_login1_manager_call_get_seat_finish:
5277 * @proxy: A #logindLogin1ManagerProxy.
5278 * @out_unnamed_arg1: (out): Return location for return parameter or %NULL to ignore.
5279 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to logind_login1_manager_call_get_seat().
5280 * @error: Return location for error or %NULL.
5282 * Finishes an operation started with logind_login1_manager_call_get_seat().
5284 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
5287 logind_login1_manager_call_get_seat_finish (
5288 logindLogin1Manager
*proxy
,
5289 gchar
**out_unnamed_arg1
,
5294 _ret
= g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy
), res
, error
);
5297 g_variant_get (_ret
,
5300 g_variant_unref (_ret
);
5302 return _ret
!= NULL
;
5306 * logind_login1_manager_call_get_seat_sync:
5307 * @proxy: A #logindLogin1ManagerProxy.
5308 * @arg_unnamed_arg0: Argument to pass with the method invocation.
5309 * @out_unnamed_arg1: (out): Return location for return parameter or %NULL to ignore.
5310 * @cancellable: (allow-none): A #GCancellable or %NULL.
5311 * @error: Return location for error or %NULL.
5313 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-login1-Manager.GetSeat">GetSeat()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
5315 * See logind_login1_manager_call_get_seat() for the asynchronous version of this method.
5317 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
5320 logind_login1_manager_call_get_seat_sync (
5321 logindLogin1Manager
*proxy
,
5322 const gchar
*arg_unnamed_arg0
,
5323 gchar
**out_unnamed_arg1
,
5324 GCancellable
*cancellable
,
5328 _ret
= g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy
),
5330 g_variant_new ("(s)",
5332 G_DBUS_CALL_FLAGS_NONE
,
5338 g_variant_get (_ret
,
5341 g_variant_unref (_ret
);
5343 return _ret
!= NULL
;
5347 * logind_login1_manager_call_list_sessions:
5348 * @proxy: A #logindLogin1ManagerProxy.
5349 * @cancellable: (allow-none): A #GCancellable or %NULL.
5350 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
5351 * @user_data: User data to pass to @callback.
5353 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-login1-Manager.ListSessions">ListSessions()</link> D-Bus method on @proxy.
5354 * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
5355 * You can then call logind_login1_manager_call_list_sessions_finish() to get the result of the operation.
5357 * See logind_login1_manager_call_list_sessions_sync() for the synchronous, blocking version of this method.
5360 logind_login1_manager_call_list_sessions (
5361 logindLogin1Manager
*proxy
,
5362 GCancellable
*cancellable
,
5363 GAsyncReadyCallback callback
,
5366 g_dbus_proxy_call (G_DBUS_PROXY (proxy
),
5368 g_variant_new ("()"),
5369 G_DBUS_CALL_FLAGS_NONE
,
5377 * logind_login1_manager_call_list_sessions_finish:
5378 * @proxy: A #logindLogin1ManagerProxy.
5379 * @out_unnamed_arg0: (out): Return location for return parameter or %NULL to ignore.
5380 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to logind_login1_manager_call_list_sessions().
5381 * @error: Return location for error or %NULL.
5383 * Finishes an operation started with logind_login1_manager_call_list_sessions().
5385 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
5388 logind_login1_manager_call_list_sessions_finish (
5389 logindLogin1Manager
*proxy
,
5390 GVariant
**out_unnamed_arg0
,
5395 _ret
= g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy
), res
, error
);
5398 g_variant_get (_ret
,
5401 g_variant_unref (_ret
);
5403 return _ret
!= NULL
;
5407 * logind_login1_manager_call_list_sessions_sync:
5408 * @proxy: A #logindLogin1ManagerProxy.
5409 * @out_unnamed_arg0: (out): Return location for return parameter or %NULL to ignore.
5410 * @cancellable: (allow-none): A #GCancellable or %NULL.
5411 * @error: Return location for error or %NULL.
5413 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-login1-Manager.ListSessions">ListSessions()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
5415 * See logind_login1_manager_call_list_sessions() for the asynchronous version of this method.
5417 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
5420 logind_login1_manager_call_list_sessions_sync (
5421 logindLogin1Manager
*proxy
,
5422 GVariant
**out_unnamed_arg0
,
5423 GCancellable
*cancellable
,
5427 _ret
= g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy
),
5429 g_variant_new ("()"),
5430 G_DBUS_CALL_FLAGS_NONE
,
5436 g_variant_get (_ret
,
5439 g_variant_unref (_ret
);
5441 return _ret
!= NULL
;
5445 * logind_login1_manager_call_list_users:
5446 * @proxy: A #logindLogin1ManagerProxy.
5447 * @cancellable: (allow-none): A #GCancellable or %NULL.
5448 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
5449 * @user_data: User data to pass to @callback.
5451 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-login1-Manager.ListUsers">ListUsers()</link> D-Bus method on @proxy.
5452 * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
5453 * You can then call logind_login1_manager_call_list_users_finish() to get the result of the operation.
5455 * See logind_login1_manager_call_list_users_sync() for the synchronous, blocking version of this method.
5458 logind_login1_manager_call_list_users (
5459 logindLogin1Manager
*proxy
,
5460 GCancellable
*cancellable
,
5461 GAsyncReadyCallback callback
,
5464 g_dbus_proxy_call (G_DBUS_PROXY (proxy
),
5466 g_variant_new ("()"),
5467 G_DBUS_CALL_FLAGS_NONE
,
5475 * logind_login1_manager_call_list_users_finish:
5476 * @proxy: A #logindLogin1ManagerProxy.
5477 * @out_unnamed_arg0: (out): Return location for return parameter or %NULL to ignore.
5478 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to logind_login1_manager_call_list_users().
5479 * @error: Return location for error or %NULL.
5481 * Finishes an operation started with logind_login1_manager_call_list_users().
5483 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
5486 logind_login1_manager_call_list_users_finish (
5487 logindLogin1Manager
*proxy
,
5488 GVariant
**out_unnamed_arg0
,
5493 _ret
= g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy
), res
, error
);
5496 g_variant_get (_ret
,
5499 g_variant_unref (_ret
);
5501 return _ret
!= NULL
;
5505 * logind_login1_manager_call_list_users_sync:
5506 * @proxy: A #logindLogin1ManagerProxy.
5507 * @out_unnamed_arg0: (out): Return location for return parameter or %NULL to ignore.
5508 * @cancellable: (allow-none): A #GCancellable or %NULL.
5509 * @error: Return location for error or %NULL.
5511 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-login1-Manager.ListUsers">ListUsers()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
5513 * See logind_login1_manager_call_list_users() for the asynchronous version of this method.
5515 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
5518 logind_login1_manager_call_list_users_sync (
5519 logindLogin1Manager
*proxy
,
5520 GVariant
**out_unnamed_arg0
,
5521 GCancellable
*cancellable
,
5525 _ret
= g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy
),
5527 g_variant_new ("()"),
5528 G_DBUS_CALL_FLAGS_NONE
,
5534 g_variant_get (_ret
,
5537 g_variant_unref (_ret
);
5539 return _ret
!= NULL
;
5543 * logind_login1_manager_call_list_seats:
5544 * @proxy: A #logindLogin1ManagerProxy.
5545 * @cancellable: (allow-none): A #GCancellable or %NULL.
5546 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
5547 * @user_data: User data to pass to @callback.
5549 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-login1-Manager.ListSeats">ListSeats()</link> D-Bus method on @proxy.
5550 * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
5551 * You can then call logind_login1_manager_call_list_seats_finish() to get the result of the operation.
5553 * See logind_login1_manager_call_list_seats_sync() for the synchronous, blocking version of this method.
5556 logind_login1_manager_call_list_seats (
5557 logindLogin1Manager
*proxy
,
5558 GCancellable
*cancellable
,
5559 GAsyncReadyCallback callback
,
5562 g_dbus_proxy_call (G_DBUS_PROXY (proxy
),
5564 g_variant_new ("()"),
5565 G_DBUS_CALL_FLAGS_NONE
,
5573 * logind_login1_manager_call_list_seats_finish:
5574 * @proxy: A #logindLogin1ManagerProxy.
5575 * @out_unnamed_arg0: (out): Return location for return parameter or %NULL to ignore.
5576 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to logind_login1_manager_call_list_seats().
5577 * @error: Return location for error or %NULL.
5579 * Finishes an operation started with logind_login1_manager_call_list_seats().
5581 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
5584 logind_login1_manager_call_list_seats_finish (
5585 logindLogin1Manager
*proxy
,
5586 GVariant
**out_unnamed_arg0
,
5591 _ret
= g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy
), res
, error
);
5594 g_variant_get (_ret
,
5597 g_variant_unref (_ret
);
5599 return _ret
!= NULL
;
5603 * logind_login1_manager_call_list_seats_sync:
5604 * @proxy: A #logindLogin1ManagerProxy.
5605 * @out_unnamed_arg0: (out): Return location for return parameter or %NULL to ignore.
5606 * @cancellable: (allow-none): A #GCancellable or %NULL.
5607 * @error: Return location for error or %NULL.
5609 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-login1-Manager.ListSeats">ListSeats()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
5611 * See logind_login1_manager_call_list_seats() for the asynchronous version of this method.
5613 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
5616 logind_login1_manager_call_list_seats_sync (
5617 logindLogin1Manager
*proxy
,
5618 GVariant
**out_unnamed_arg0
,
5619 GCancellable
*cancellable
,
5623 _ret
= g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy
),
5625 g_variant_new ("()"),
5626 G_DBUS_CALL_FLAGS_NONE
,
5632 g_variant_get (_ret
,
5635 g_variant_unref (_ret
);
5637 return _ret
!= NULL
;
5641 * logind_login1_manager_call_list_inhibitors:
5642 * @proxy: A #logindLogin1ManagerProxy.
5643 * @cancellable: (allow-none): A #GCancellable or %NULL.
5644 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
5645 * @user_data: User data to pass to @callback.
5647 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-login1-Manager.ListInhibitors">ListInhibitors()</link> D-Bus method on @proxy.
5648 * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
5649 * You can then call logind_login1_manager_call_list_inhibitors_finish() to get the result of the operation.
5651 * See logind_login1_manager_call_list_inhibitors_sync() for the synchronous, blocking version of this method.
5654 logind_login1_manager_call_list_inhibitors (
5655 logindLogin1Manager
*proxy
,
5656 GCancellable
*cancellable
,
5657 GAsyncReadyCallback callback
,
5660 g_dbus_proxy_call (G_DBUS_PROXY (proxy
),
5662 g_variant_new ("()"),
5663 G_DBUS_CALL_FLAGS_NONE
,
5671 * logind_login1_manager_call_list_inhibitors_finish:
5672 * @proxy: A #logindLogin1ManagerProxy.
5673 * @out_unnamed_arg0: (out): Return location for return parameter or %NULL to ignore.
5674 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to logind_login1_manager_call_list_inhibitors().
5675 * @error: Return location for error or %NULL.
5677 * Finishes an operation started with logind_login1_manager_call_list_inhibitors().
5679 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
5682 logind_login1_manager_call_list_inhibitors_finish (
5683 logindLogin1Manager
*proxy
,
5684 GVariant
**out_unnamed_arg0
,
5689 _ret
= g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy
), res
, error
);
5692 g_variant_get (_ret
,
5695 g_variant_unref (_ret
);
5697 return _ret
!= NULL
;
5701 * logind_login1_manager_call_list_inhibitors_sync:
5702 * @proxy: A #logindLogin1ManagerProxy.
5703 * @out_unnamed_arg0: (out): Return location for return parameter or %NULL to ignore.
5704 * @cancellable: (allow-none): A #GCancellable or %NULL.
5705 * @error: Return location for error or %NULL.
5707 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-login1-Manager.ListInhibitors">ListInhibitors()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
5709 * See logind_login1_manager_call_list_inhibitors() for the asynchronous version of this method.
5711 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
5714 logind_login1_manager_call_list_inhibitors_sync (
5715 logindLogin1Manager
*proxy
,
5716 GVariant
**out_unnamed_arg0
,
5717 GCancellable
*cancellable
,
5721 _ret
= g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy
),
5723 g_variant_new ("()"),
5724 G_DBUS_CALL_FLAGS_NONE
,
5730 g_variant_get (_ret
,
5733 g_variant_unref (_ret
);
5735 return _ret
!= NULL
;
5739 * logind_login1_manager_call_create_session:
5740 * @proxy: A #logindLogin1ManagerProxy.
5741 * @arg_unnamed_arg0: Argument to pass with the method invocation.
5742 * @arg_unnamed_arg1: Argument to pass with the method invocation.
5743 * @arg_unnamed_arg2: Argument to pass with the method invocation.
5744 * @arg_unnamed_arg3: Argument to pass with the method invocation.
5745 * @arg_unnamed_arg4: Argument to pass with the method invocation.
5746 * @arg_unnamed_arg5: Argument to pass with the method invocation.
5747 * @arg_unnamed_arg6: Argument to pass with the method invocation.
5748 * @arg_unnamed_arg7: Argument to pass with the method invocation.
5749 * @arg_unnamed_arg8: Argument to pass with the method invocation.
5750 * @arg_unnamed_arg9: Argument to pass with the method invocation.
5751 * @arg_unnamed_arg10: Argument to pass with the method invocation.
5752 * @arg_unnamed_arg11: Argument to pass with the method invocation.
5753 * @arg_unnamed_arg12: Argument to pass with the method invocation.
5754 * @arg_unnamed_arg13: Argument to pass with the method invocation.
5755 * @cancellable: (allow-none): A #GCancellable or %NULL.
5756 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
5757 * @user_data: User data to pass to @callback.
5759 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-login1-Manager.CreateSession">CreateSession()</link> D-Bus method on @proxy.
5760 * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
5761 * You can then call logind_login1_manager_call_create_session_finish() to get the result of the operation.
5763 * See logind_login1_manager_call_create_session_sync() for the synchronous, blocking version of this method.
5766 logind_login1_manager_call_create_session (
5767 logindLogin1Manager
*proxy
,
5768 guint arg_unnamed_arg0
,
5769 guint arg_unnamed_arg1
,
5770 const gchar
*arg_unnamed_arg2
,
5771 const gchar
*arg_unnamed_arg3
,
5772 const gchar
*arg_unnamed_arg4
,
5773 const gchar
*arg_unnamed_arg5
,
5774 const gchar
*arg_unnamed_arg6
,
5775 guint arg_unnamed_arg7
,
5776 const gchar
*arg_unnamed_arg8
,
5777 const gchar
*arg_unnamed_arg9
,
5778 gboolean arg_unnamed_arg10
,
5779 const gchar
*arg_unnamed_arg11
,
5780 const gchar
*arg_unnamed_arg12
,
5781 GVariant
*arg_unnamed_arg13
,
5782 GCancellable
*cancellable
,
5783 GAsyncReadyCallback callback
,
5786 g_dbus_proxy_call (G_DBUS_PROXY (proxy
),
5788 g_variant_new ("(uusssssussbss@a(sv))",
5803 G_DBUS_CALL_FLAGS_NONE
,
5811 * logind_login1_manager_call_create_session_finish:
5812 * @proxy: A #logindLogin1ManagerProxy.
5813 * @out_unnamed_arg14: (out): Return location for return parameter or %NULL to ignore.
5814 * @out_unnamed_arg15: (out): Return location for return parameter or %NULL to ignore.
5815 * @out_unnamed_arg16: (out): Return location for return parameter or %NULL to ignore.
5816 * @out_unnamed_arg17: (out): Return location for return parameter or %NULL to ignore.
5817 * @out_unnamed_arg18: (out): Return location for return parameter or %NULL to ignore.
5818 * @out_unnamed_arg19: (out): Return location for return parameter or %NULL to ignore.
5819 * @out_unnamed_arg20: (out): Return location for return parameter or %NULL to ignore.
5820 * @out_unnamed_arg21: (out): Return location for return parameter or %NULL to ignore.
5821 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to logind_login1_manager_call_create_session().
5822 * @error: Return location for error or %NULL.
5824 * Finishes an operation started with logind_login1_manager_call_create_session().
5826 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
5829 logind_login1_manager_call_create_session_finish (
5830 logindLogin1Manager
*proxy
,
5831 gchar
**out_unnamed_arg14
,
5832 gchar
**out_unnamed_arg15
,
5833 gchar
**out_unnamed_arg16
,
5834 GVariant
**out_unnamed_arg17
,
5835 guint
*out_unnamed_arg18
,
5836 gchar
**out_unnamed_arg19
,
5837 guint
*out_unnamed_arg20
,
5838 gboolean
*out_unnamed_arg21
,
5843 _ret
= g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy
), res
, error
);
5846 g_variant_get (_ret
,
5856 g_variant_unref (_ret
);
5858 return _ret
!= NULL
;
5862 * logind_login1_manager_call_create_session_sync:
5863 * @proxy: A #logindLogin1ManagerProxy.
5864 * @arg_unnamed_arg0: Argument to pass with the method invocation.
5865 * @arg_unnamed_arg1: Argument to pass with the method invocation.
5866 * @arg_unnamed_arg2: Argument to pass with the method invocation.
5867 * @arg_unnamed_arg3: Argument to pass with the method invocation.
5868 * @arg_unnamed_arg4: Argument to pass with the method invocation.
5869 * @arg_unnamed_arg5: Argument to pass with the method invocation.
5870 * @arg_unnamed_arg6: Argument to pass with the method invocation.
5871 * @arg_unnamed_arg7: Argument to pass with the method invocation.
5872 * @arg_unnamed_arg8: Argument to pass with the method invocation.
5873 * @arg_unnamed_arg9: Argument to pass with the method invocation.
5874 * @arg_unnamed_arg10: Argument to pass with the method invocation.
5875 * @arg_unnamed_arg11: Argument to pass with the method invocation.
5876 * @arg_unnamed_arg12: Argument to pass with the method invocation.
5877 * @arg_unnamed_arg13: Argument to pass with the method invocation.
5878 * @out_unnamed_arg14: (out): Return location for return parameter or %NULL to ignore.
5879 * @out_unnamed_arg15: (out): Return location for return parameter or %NULL to ignore.
5880 * @out_unnamed_arg16: (out): Return location for return parameter or %NULL to ignore.
5881 * @out_unnamed_arg17: (out): Return location for return parameter or %NULL to ignore.
5882 * @out_unnamed_arg18: (out): Return location for return parameter or %NULL to ignore.
5883 * @out_unnamed_arg19: (out): Return location for return parameter or %NULL to ignore.
5884 * @out_unnamed_arg20: (out): Return location for return parameter or %NULL to ignore.
5885 * @out_unnamed_arg21: (out): Return location for return parameter or %NULL to ignore.
5886 * @cancellable: (allow-none): A #GCancellable or %NULL.
5887 * @error: Return location for error or %NULL.
5889 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-login1-Manager.CreateSession">CreateSession()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
5891 * See logind_login1_manager_call_create_session() for the asynchronous version of this method.
5893 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
5896 logind_login1_manager_call_create_session_sync (
5897 logindLogin1Manager
*proxy
,
5898 guint arg_unnamed_arg0
,
5899 guint arg_unnamed_arg1
,
5900 const gchar
*arg_unnamed_arg2
,
5901 const gchar
*arg_unnamed_arg3
,
5902 const gchar
*arg_unnamed_arg4
,
5903 const gchar
*arg_unnamed_arg5
,
5904 const gchar
*arg_unnamed_arg6
,
5905 guint arg_unnamed_arg7
,
5906 const gchar
*arg_unnamed_arg8
,
5907 const gchar
*arg_unnamed_arg9
,
5908 gboolean arg_unnamed_arg10
,
5909 const gchar
*arg_unnamed_arg11
,
5910 const gchar
*arg_unnamed_arg12
,
5911 GVariant
*arg_unnamed_arg13
,
5912 gchar
**out_unnamed_arg14
,
5913 gchar
**out_unnamed_arg15
,
5914 gchar
**out_unnamed_arg16
,
5915 GVariant
**out_unnamed_arg17
,
5916 guint
*out_unnamed_arg18
,
5917 gchar
**out_unnamed_arg19
,
5918 guint
*out_unnamed_arg20
,
5919 gboolean
*out_unnamed_arg21
,
5920 GCancellable
*cancellable
,
5924 _ret
= g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy
),
5926 g_variant_new ("(uusssssussbss@a(sv))",
5941 G_DBUS_CALL_FLAGS_NONE
,
5947 g_variant_get (_ret
,
5957 g_variant_unref (_ret
);
5959 return _ret
!= NULL
;
5963 * logind_login1_manager_call_release_session:
5964 * @proxy: A #logindLogin1ManagerProxy.
5965 * @arg_unnamed_arg0: Argument to pass with the method invocation.
5966 * @cancellable: (allow-none): A #GCancellable or %NULL.
5967 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
5968 * @user_data: User data to pass to @callback.
5970 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-login1-Manager.ReleaseSession">ReleaseSession()</link> D-Bus method on @proxy.
5971 * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
5972 * You can then call logind_login1_manager_call_release_session_finish() to get the result of the operation.
5974 * See logind_login1_manager_call_release_session_sync() for the synchronous, blocking version of this method.
5977 logind_login1_manager_call_release_session (
5978 logindLogin1Manager
*proxy
,
5979 const gchar
*arg_unnamed_arg0
,
5980 GCancellable
*cancellable
,
5981 GAsyncReadyCallback callback
,
5984 g_dbus_proxy_call (G_DBUS_PROXY (proxy
),
5986 g_variant_new ("(s)",
5988 G_DBUS_CALL_FLAGS_NONE
,
5996 * logind_login1_manager_call_release_session_finish:
5997 * @proxy: A #logindLogin1ManagerProxy.
5998 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to logind_login1_manager_call_release_session().
5999 * @error: Return location for error or %NULL.
6001 * Finishes an operation started with logind_login1_manager_call_release_session().
6003 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
6006 logind_login1_manager_call_release_session_finish (
6007 logindLogin1Manager
*proxy
,
6012 _ret
= g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy
), res
, error
);
6015 g_variant_get (_ret
,
6017 g_variant_unref (_ret
);
6019 return _ret
!= NULL
;
6023 * logind_login1_manager_call_release_session_sync:
6024 * @proxy: A #logindLogin1ManagerProxy.
6025 * @arg_unnamed_arg0: Argument to pass with the method invocation.
6026 * @cancellable: (allow-none): A #GCancellable or %NULL.
6027 * @error: Return location for error or %NULL.
6029 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-login1-Manager.ReleaseSession">ReleaseSession()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
6031 * See logind_login1_manager_call_release_session() for the asynchronous version of this method.
6033 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
6036 logind_login1_manager_call_release_session_sync (
6037 logindLogin1Manager
*proxy
,
6038 const gchar
*arg_unnamed_arg0
,
6039 GCancellable
*cancellable
,
6043 _ret
= g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy
),
6045 g_variant_new ("(s)",
6047 G_DBUS_CALL_FLAGS_NONE
,
6053 g_variant_get (_ret
,
6055 g_variant_unref (_ret
);
6057 return _ret
!= NULL
;
6061 * logind_login1_manager_call_activate_session:
6062 * @proxy: A #logindLogin1ManagerProxy.
6063 * @arg_unnamed_arg0: Argument to pass with the method invocation.
6064 * @cancellable: (allow-none): A #GCancellable or %NULL.
6065 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
6066 * @user_data: User data to pass to @callback.
6068 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-login1-Manager.ActivateSession">ActivateSession()</link> D-Bus method on @proxy.
6069 * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
6070 * You can then call logind_login1_manager_call_activate_session_finish() to get the result of the operation.
6072 * See logind_login1_manager_call_activate_session_sync() for the synchronous, blocking version of this method.
6075 logind_login1_manager_call_activate_session (
6076 logindLogin1Manager
*proxy
,
6077 const gchar
*arg_unnamed_arg0
,
6078 GCancellable
*cancellable
,
6079 GAsyncReadyCallback callback
,
6082 g_dbus_proxy_call (G_DBUS_PROXY (proxy
),
6084 g_variant_new ("(s)",
6086 G_DBUS_CALL_FLAGS_NONE
,
6094 * logind_login1_manager_call_activate_session_finish:
6095 * @proxy: A #logindLogin1ManagerProxy.
6096 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to logind_login1_manager_call_activate_session().
6097 * @error: Return location for error or %NULL.
6099 * Finishes an operation started with logind_login1_manager_call_activate_session().
6101 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
6104 logind_login1_manager_call_activate_session_finish (
6105 logindLogin1Manager
*proxy
,
6110 _ret
= g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy
), res
, error
);
6113 g_variant_get (_ret
,
6115 g_variant_unref (_ret
);
6117 return _ret
!= NULL
;
6121 * logind_login1_manager_call_activate_session_sync:
6122 * @proxy: A #logindLogin1ManagerProxy.
6123 * @arg_unnamed_arg0: Argument to pass with the method invocation.
6124 * @cancellable: (allow-none): A #GCancellable or %NULL.
6125 * @error: Return location for error or %NULL.
6127 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-login1-Manager.ActivateSession">ActivateSession()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
6129 * See logind_login1_manager_call_activate_session() for the asynchronous version of this method.
6131 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
6134 logind_login1_manager_call_activate_session_sync (
6135 logindLogin1Manager
*proxy
,
6136 const gchar
*arg_unnamed_arg0
,
6137 GCancellable
*cancellable
,
6141 _ret
= g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy
),
6143 g_variant_new ("(s)",
6145 G_DBUS_CALL_FLAGS_NONE
,
6151 g_variant_get (_ret
,
6153 g_variant_unref (_ret
);
6155 return _ret
!= NULL
;
6159 * logind_login1_manager_call_activate_session_on_seat:
6160 * @proxy: A #logindLogin1ManagerProxy.
6161 * @arg_unnamed_arg0: Argument to pass with the method invocation.
6162 * @arg_unnamed_arg1: Argument to pass with the method invocation.
6163 * @cancellable: (allow-none): A #GCancellable or %NULL.
6164 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
6165 * @user_data: User data to pass to @callback.
6167 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-login1-Manager.ActivateSessionOnSeat">ActivateSessionOnSeat()</link> D-Bus method on @proxy.
6168 * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
6169 * You can then call logind_login1_manager_call_activate_session_on_seat_finish() to get the result of the operation.
6171 * See logind_login1_manager_call_activate_session_on_seat_sync() for the synchronous, blocking version of this method.
6174 logind_login1_manager_call_activate_session_on_seat (
6175 logindLogin1Manager
*proxy
,
6176 const gchar
*arg_unnamed_arg0
,
6177 const gchar
*arg_unnamed_arg1
,
6178 GCancellable
*cancellable
,
6179 GAsyncReadyCallback callback
,
6182 g_dbus_proxy_call (G_DBUS_PROXY (proxy
),
6183 "ActivateSessionOnSeat",
6184 g_variant_new ("(ss)",
6187 G_DBUS_CALL_FLAGS_NONE
,
6195 * logind_login1_manager_call_activate_session_on_seat_finish:
6196 * @proxy: A #logindLogin1ManagerProxy.
6197 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to logind_login1_manager_call_activate_session_on_seat().
6198 * @error: Return location for error or %NULL.
6200 * Finishes an operation started with logind_login1_manager_call_activate_session_on_seat().
6202 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
6205 logind_login1_manager_call_activate_session_on_seat_finish (
6206 logindLogin1Manager
*proxy
,
6211 _ret
= g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy
), res
, error
);
6214 g_variant_get (_ret
,
6216 g_variant_unref (_ret
);
6218 return _ret
!= NULL
;
6222 * logind_login1_manager_call_activate_session_on_seat_sync:
6223 * @proxy: A #logindLogin1ManagerProxy.
6224 * @arg_unnamed_arg0: Argument to pass with the method invocation.
6225 * @arg_unnamed_arg1: Argument to pass with the method invocation.
6226 * @cancellable: (allow-none): A #GCancellable or %NULL.
6227 * @error: Return location for error or %NULL.
6229 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-login1-Manager.ActivateSessionOnSeat">ActivateSessionOnSeat()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
6231 * See logind_login1_manager_call_activate_session_on_seat() for the asynchronous version of this method.
6233 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
6236 logind_login1_manager_call_activate_session_on_seat_sync (
6237 logindLogin1Manager
*proxy
,
6238 const gchar
*arg_unnamed_arg0
,
6239 const gchar
*arg_unnamed_arg1
,
6240 GCancellable
*cancellable
,
6244 _ret
= g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy
),
6245 "ActivateSessionOnSeat",
6246 g_variant_new ("(ss)",
6249 G_DBUS_CALL_FLAGS_NONE
,
6255 g_variant_get (_ret
,
6257 g_variant_unref (_ret
);
6259 return _ret
!= NULL
;
6263 * logind_login1_manager_call_lock_session:
6264 * @proxy: A #logindLogin1ManagerProxy.
6265 * @arg_unnamed_arg0: Argument to pass with the method invocation.
6266 * @cancellable: (allow-none): A #GCancellable or %NULL.
6267 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
6268 * @user_data: User data to pass to @callback.
6270 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-login1-Manager.LockSession">LockSession()</link> D-Bus method on @proxy.
6271 * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
6272 * You can then call logind_login1_manager_call_lock_session_finish() to get the result of the operation.
6274 * See logind_login1_manager_call_lock_session_sync() for the synchronous, blocking version of this method.
6277 logind_login1_manager_call_lock_session (
6278 logindLogin1Manager
*proxy
,
6279 const gchar
*arg_unnamed_arg0
,
6280 GCancellable
*cancellable
,
6281 GAsyncReadyCallback callback
,
6284 g_dbus_proxy_call (G_DBUS_PROXY (proxy
),
6286 g_variant_new ("(s)",
6288 G_DBUS_CALL_FLAGS_NONE
,
6296 * logind_login1_manager_call_lock_session_finish:
6297 * @proxy: A #logindLogin1ManagerProxy.
6298 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to logind_login1_manager_call_lock_session().
6299 * @error: Return location for error or %NULL.
6301 * Finishes an operation started with logind_login1_manager_call_lock_session().
6303 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
6306 logind_login1_manager_call_lock_session_finish (
6307 logindLogin1Manager
*proxy
,
6312 _ret
= g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy
), res
, error
);
6315 g_variant_get (_ret
,
6317 g_variant_unref (_ret
);
6319 return _ret
!= NULL
;
6323 * logind_login1_manager_call_lock_session_sync:
6324 * @proxy: A #logindLogin1ManagerProxy.
6325 * @arg_unnamed_arg0: Argument to pass with the method invocation.
6326 * @cancellable: (allow-none): A #GCancellable or %NULL.
6327 * @error: Return location for error or %NULL.
6329 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-login1-Manager.LockSession">LockSession()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
6331 * See logind_login1_manager_call_lock_session() for the asynchronous version of this method.
6333 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
6336 logind_login1_manager_call_lock_session_sync (
6337 logindLogin1Manager
*proxy
,
6338 const gchar
*arg_unnamed_arg0
,
6339 GCancellable
*cancellable
,
6343 _ret
= g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy
),
6345 g_variant_new ("(s)",
6347 G_DBUS_CALL_FLAGS_NONE
,
6353 g_variant_get (_ret
,
6355 g_variant_unref (_ret
);
6357 return _ret
!= NULL
;
6361 * logind_login1_manager_call_unlock_session:
6362 * @proxy: A #logindLogin1ManagerProxy.
6363 * @arg_unnamed_arg0: Argument to pass with the method invocation.
6364 * @cancellable: (allow-none): A #GCancellable or %NULL.
6365 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
6366 * @user_data: User data to pass to @callback.
6368 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-login1-Manager.UnlockSession">UnlockSession()</link> D-Bus method on @proxy.
6369 * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
6370 * You can then call logind_login1_manager_call_unlock_session_finish() to get the result of the operation.
6372 * See logind_login1_manager_call_unlock_session_sync() for the synchronous, blocking version of this method.
6375 logind_login1_manager_call_unlock_session (
6376 logindLogin1Manager
*proxy
,
6377 const gchar
*arg_unnamed_arg0
,
6378 GCancellable
*cancellable
,
6379 GAsyncReadyCallback callback
,
6382 g_dbus_proxy_call (G_DBUS_PROXY (proxy
),
6384 g_variant_new ("(s)",
6386 G_DBUS_CALL_FLAGS_NONE
,
6394 * logind_login1_manager_call_unlock_session_finish:
6395 * @proxy: A #logindLogin1ManagerProxy.
6396 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to logind_login1_manager_call_unlock_session().
6397 * @error: Return location for error or %NULL.
6399 * Finishes an operation started with logind_login1_manager_call_unlock_session().
6401 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
6404 logind_login1_manager_call_unlock_session_finish (
6405 logindLogin1Manager
*proxy
,
6410 _ret
= g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy
), res
, error
);
6413 g_variant_get (_ret
,
6415 g_variant_unref (_ret
);
6417 return _ret
!= NULL
;
6421 * logind_login1_manager_call_unlock_session_sync:
6422 * @proxy: A #logindLogin1ManagerProxy.
6423 * @arg_unnamed_arg0: Argument to pass with the method invocation.
6424 * @cancellable: (allow-none): A #GCancellable or %NULL.
6425 * @error: Return location for error or %NULL.
6427 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-login1-Manager.UnlockSession">UnlockSession()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
6429 * See logind_login1_manager_call_unlock_session() for the asynchronous version of this method.
6431 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
6434 logind_login1_manager_call_unlock_session_sync (
6435 logindLogin1Manager
*proxy
,
6436 const gchar
*arg_unnamed_arg0
,
6437 GCancellable
*cancellable
,
6441 _ret
= g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy
),
6443 g_variant_new ("(s)",
6445 G_DBUS_CALL_FLAGS_NONE
,
6451 g_variant_get (_ret
,
6453 g_variant_unref (_ret
);
6455 return _ret
!= NULL
;
6459 * logind_login1_manager_call_lock_sessions:
6460 * @proxy: A #logindLogin1ManagerProxy.
6461 * @cancellable: (allow-none): A #GCancellable or %NULL.
6462 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
6463 * @user_data: User data to pass to @callback.
6465 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-login1-Manager.LockSessions">LockSessions()</link> D-Bus method on @proxy.
6466 * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
6467 * You can then call logind_login1_manager_call_lock_sessions_finish() to get the result of the operation.
6469 * See logind_login1_manager_call_lock_sessions_sync() for the synchronous, blocking version of this method.
6472 logind_login1_manager_call_lock_sessions (
6473 logindLogin1Manager
*proxy
,
6474 GCancellable
*cancellable
,
6475 GAsyncReadyCallback callback
,
6478 g_dbus_proxy_call (G_DBUS_PROXY (proxy
),
6480 g_variant_new ("()"),
6481 G_DBUS_CALL_FLAGS_NONE
,
6489 * logind_login1_manager_call_lock_sessions_finish:
6490 * @proxy: A #logindLogin1ManagerProxy.
6491 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to logind_login1_manager_call_lock_sessions().
6492 * @error: Return location for error or %NULL.
6494 * Finishes an operation started with logind_login1_manager_call_lock_sessions().
6496 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
6499 logind_login1_manager_call_lock_sessions_finish (
6500 logindLogin1Manager
*proxy
,
6505 _ret
= g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy
), res
, error
);
6508 g_variant_get (_ret
,
6510 g_variant_unref (_ret
);
6512 return _ret
!= NULL
;
6516 * logind_login1_manager_call_lock_sessions_sync:
6517 * @proxy: A #logindLogin1ManagerProxy.
6518 * @cancellable: (allow-none): A #GCancellable or %NULL.
6519 * @error: Return location for error or %NULL.
6521 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-login1-Manager.LockSessions">LockSessions()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
6523 * See logind_login1_manager_call_lock_sessions() for the asynchronous version of this method.
6525 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
6528 logind_login1_manager_call_lock_sessions_sync (
6529 logindLogin1Manager
*proxy
,
6530 GCancellable
*cancellable
,
6534 _ret
= g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy
),
6536 g_variant_new ("()"),
6537 G_DBUS_CALL_FLAGS_NONE
,
6543 g_variant_get (_ret
,
6545 g_variant_unref (_ret
);
6547 return _ret
!= NULL
;
6551 * logind_login1_manager_call_unlock_sessions:
6552 * @proxy: A #logindLogin1ManagerProxy.
6553 * @cancellable: (allow-none): A #GCancellable or %NULL.
6554 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
6555 * @user_data: User data to pass to @callback.
6557 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-login1-Manager.UnlockSessions">UnlockSessions()</link> D-Bus method on @proxy.
6558 * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
6559 * You can then call logind_login1_manager_call_unlock_sessions_finish() to get the result of the operation.
6561 * See logind_login1_manager_call_unlock_sessions_sync() for the synchronous, blocking version of this method.
6564 logind_login1_manager_call_unlock_sessions (
6565 logindLogin1Manager
*proxy
,
6566 GCancellable
*cancellable
,
6567 GAsyncReadyCallback callback
,
6570 g_dbus_proxy_call (G_DBUS_PROXY (proxy
),
6572 g_variant_new ("()"),
6573 G_DBUS_CALL_FLAGS_NONE
,
6581 * logind_login1_manager_call_unlock_sessions_finish:
6582 * @proxy: A #logindLogin1ManagerProxy.
6583 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to logind_login1_manager_call_unlock_sessions().
6584 * @error: Return location for error or %NULL.
6586 * Finishes an operation started with logind_login1_manager_call_unlock_sessions().
6588 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
6591 logind_login1_manager_call_unlock_sessions_finish (
6592 logindLogin1Manager
*proxy
,
6597 _ret
= g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy
), res
, error
);
6600 g_variant_get (_ret
,
6602 g_variant_unref (_ret
);
6604 return _ret
!= NULL
;
6608 * logind_login1_manager_call_unlock_sessions_sync:
6609 * @proxy: A #logindLogin1ManagerProxy.
6610 * @cancellable: (allow-none): A #GCancellable or %NULL.
6611 * @error: Return location for error or %NULL.
6613 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-login1-Manager.UnlockSessions">UnlockSessions()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
6615 * See logind_login1_manager_call_unlock_sessions() for the asynchronous version of this method.
6617 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
6620 logind_login1_manager_call_unlock_sessions_sync (
6621 logindLogin1Manager
*proxy
,
6622 GCancellable
*cancellable
,
6626 _ret
= g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy
),
6628 g_variant_new ("()"),
6629 G_DBUS_CALL_FLAGS_NONE
,
6635 g_variant_get (_ret
,
6637 g_variant_unref (_ret
);
6639 return _ret
!= NULL
;
6643 * logind_login1_manager_call_kill_session:
6644 * @proxy: A #logindLogin1ManagerProxy.
6645 * @arg_unnamed_arg0: Argument to pass with the method invocation.
6646 * @arg_unnamed_arg1: Argument to pass with the method invocation.
6647 * @arg_unnamed_arg2: Argument to pass with the method invocation.
6648 * @cancellable: (allow-none): A #GCancellable or %NULL.
6649 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
6650 * @user_data: User data to pass to @callback.
6652 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-login1-Manager.KillSession">KillSession()</link> D-Bus method on @proxy.
6653 * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
6654 * You can then call logind_login1_manager_call_kill_session_finish() to get the result of the operation.
6656 * See logind_login1_manager_call_kill_session_sync() for the synchronous, blocking version of this method.
6659 logind_login1_manager_call_kill_session (
6660 logindLogin1Manager
*proxy
,
6661 const gchar
*arg_unnamed_arg0
,
6662 const gchar
*arg_unnamed_arg1
,
6663 gint arg_unnamed_arg2
,
6664 GCancellable
*cancellable
,
6665 GAsyncReadyCallback callback
,
6668 g_dbus_proxy_call (G_DBUS_PROXY (proxy
),
6670 g_variant_new ("(ssi)",
6674 G_DBUS_CALL_FLAGS_NONE
,
6682 * logind_login1_manager_call_kill_session_finish:
6683 * @proxy: A #logindLogin1ManagerProxy.
6684 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to logind_login1_manager_call_kill_session().
6685 * @error: Return location for error or %NULL.
6687 * Finishes an operation started with logind_login1_manager_call_kill_session().
6689 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
6692 logind_login1_manager_call_kill_session_finish (
6693 logindLogin1Manager
*proxy
,
6698 _ret
= g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy
), res
, error
);
6701 g_variant_get (_ret
,
6703 g_variant_unref (_ret
);
6705 return _ret
!= NULL
;
6709 * logind_login1_manager_call_kill_session_sync:
6710 * @proxy: A #logindLogin1ManagerProxy.
6711 * @arg_unnamed_arg0: Argument to pass with the method invocation.
6712 * @arg_unnamed_arg1: Argument to pass with the method invocation.
6713 * @arg_unnamed_arg2: Argument to pass with the method invocation.
6714 * @cancellable: (allow-none): A #GCancellable or %NULL.
6715 * @error: Return location for error or %NULL.
6717 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-login1-Manager.KillSession">KillSession()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
6719 * See logind_login1_manager_call_kill_session() for the asynchronous version of this method.
6721 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
6724 logind_login1_manager_call_kill_session_sync (
6725 logindLogin1Manager
*proxy
,
6726 const gchar
*arg_unnamed_arg0
,
6727 const gchar
*arg_unnamed_arg1
,
6728 gint arg_unnamed_arg2
,
6729 GCancellable
*cancellable
,
6733 _ret
= g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy
),
6735 g_variant_new ("(ssi)",
6739 G_DBUS_CALL_FLAGS_NONE
,
6745 g_variant_get (_ret
,
6747 g_variant_unref (_ret
);
6749 return _ret
!= NULL
;
6753 * logind_login1_manager_call_kill_user:
6754 * @proxy: A #logindLogin1ManagerProxy.
6755 * @arg_unnamed_arg0: Argument to pass with the method invocation.
6756 * @arg_unnamed_arg1: Argument to pass with the method invocation.
6757 * @cancellable: (allow-none): A #GCancellable or %NULL.
6758 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
6759 * @user_data: User data to pass to @callback.
6761 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-login1-Manager.KillUser">KillUser()</link> D-Bus method on @proxy.
6762 * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
6763 * You can then call logind_login1_manager_call_kill_user_finish() to get the result of the operation.
6765 * See logind_login1_manager_call_kill_user_sync() for the synchronous, blocking version of this method.
6768 logind_login1_manager_call_kill_user (
6769 logindLogin1Manager
*proxy
,
6770 guint arg_unnamed_arg0
,
6771 gint arg_unnamed_arg1
,
6772 GCancellable
*cancellable
,
6773 GAsyncReadyCallback callback
,
6776 g_dbus_proxy_call (G_DBUS_PROXY (proxy
),
6778 g_variant_new ("(ui)",
6781 G_DBUS_CALL_FLAGS_NONE
,
6789 * logind_login1_manager_call_kill_user_finish:
6790 * @proxy: A #logindLogin1ManagerProxy.
6791 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to logind_login1_manager_call_kill_user().
6792 * @error: Return location for error or %NULL.
6794 * Finishes an operation started with logind_login1_manager_call_kill_user().
6796 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
6799 logind_login1_manager_call_kill_user_finish (
6800 logindLogin1Manager
*proxy
,
6805 _ret
= g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy
), res
, error
);
6808 g_variant_get (_ret
,
6810 g_variant_unref (_ret
);
6812 return _ret
!= NULL
;
6816 * logind_login1_manager_call_kill_user_sync:
6817 * @proxy: A #logindLogin1ManagerProxy.
6818 * @arg_unnamed_arg0: Argument to pass with the method invocation.
6819 * @arg_unnamed_arg1: Argument to pass with the method invocation.
6820 * @cancellable: (allow-none): A #GCancellable or %NULL.
6821 * @error: Return location for error or %NULL.
6823 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-login1-Manager.KillUser">KillUser()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
6825 * See logind_login1_manager_call_kill_user() for the asynchronous version of this method.
6827 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
6830 logind_login1_manager_call_kill_user_sync (
6831 logindLogin1Manager
*proxy
,
6832 guint arg_unnamed_arg0
,
6833 gint arg_unnamed_arg1
,
6834 GCancellable
*cancellable
,
6838 _ret
= g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy
),
6840 g_variant_new ("(ui)",
6843 G_DBUS_CALL_FLAGS_NONE
,
6849 g_variant_get (_ret
,
6851 g_variant_unref (_ret
);
6853 return _ret
!= NULL
;
6857 * logind_login1_manager_call_terminate_session:
6858 * @proxy: A #logindLogin1ManagerProxy.
6859 * @arg_unnamed_arg0: Argument to pass with the method invocation.
6860 * @cancellable: (allow-none): A #GCancellable or %NULL.
6861 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
6862 * @user_data: User data to pass to @callback.
6864 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-login1-Manager.TerminateSession">TerminateSession()</link> D-Bus method on @proxy.
6865 * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
6866 * You can then call logind_login1_manager_call_terminate_session_finish() to get the result of the operation.
6868 * See logind_login1_manager_call_terminate_session_sync() for the synchronous, blocking version of this method.
6871 logind_login1_manager_call_terminate_session (
6872 logindLogin1Manager
*proxy
,
6873 const gchar
*arg_unnamed_arg0
,
6874 GCancellable
*cancellable
,
6875 GAsyncReadyCallback callback
,
6878 g_dbus_proxy_call (G_DBUS_PROXY (proxy
),
6880 g_variant_new ("(s)",
6882 G_DBUS_CALL_FLAGS_NONE
,
6890 * logind_login1_manager_call_terminate_session_finish:
6891 * @proxy: A #logindLogin1ManagerProxy.
6892 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to logind_login1_manager_call_terminate_session().
6893 * @error: Return location for error or %NULL.
6895 * Finishes an operation started with logind_login1_manager_call_terminate_session().
6897 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
6900 logind_login1_manager_call_terminate_session_finish (
6901 logindLogin1Manager
*proxy
,
6906 _ret
= g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy
), res
, error
);
6909 g_variant_get (_ret
,
6911 g_variant_unref (_ret
);
6913 return _ret
!= NULL
;
6917 * logind_login1_manager_call_terminate_session_sync:
6918 * @proxy: A #logindLogin1ManagerProxy.
6919 * @arg_unnamed_arg0: Argument to pass with the method invocation.
6920 * @cancellable: (allow-none): A #GCancellable or %NULL.
6921 * @error: Return location for error or %NULL.
6923 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-login1-Manager.TerminateSession">TerminateSession()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
6925 * See logind_login1_manager_call_terminate_session() for the asynchronous version of this method.
6927 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
6930 logind_login1_manager_call_terminate_session_sync (
6931 logindLogin1Manager
*proxy
,
6932 const gchar
*arg_unnamed_arg0
,
6933 GCancellable
*cancellable
,
6937 _ret
= g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy
),
6939 g_variant_new ("(s)",
6941 G_DBUS_CALL_FLAGS_NONE
,
6947 g_variant_get (_ret
,
6949 g_variant_unref (_ret
);
6951 return _ret
!= NULL
;
6955 * logind_login1_manager_call_terminate_user:
6956 * @proxy: A #logindLogin1ManagerProxy.
6957 * @arg_unnamed_arg0: Argument to pass with the method invocation.
6958 * @cancellable: (allow-none): A #GCancellable or %NULL.
6959 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
6960 * @user_data: User data to pass to @callback.
6962 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-login1-Manager.TerminateUser">TerminateUser()</link> D-Bus method on @proxy.
6963 * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
6964 * You can then call logind_login1_manager_call_terminate_user_finish() to get the result of the operation.
6966 * See logind_login1_manager_call_terminate_user_sync() for the synchronous, blocking version of this method.
6969 logind_login1_manager_call_terminate_user (
6970 logindLogin1Manager
*proxy
,
6971 guint arg_unnamed_arg0
,
6972 GCancellable
*cancellable
,
6973 GAsyncReadyCallback callback
,
6976 g_dbus_proxy_call (G_DBUS_PROXY (proxy
),
6978 g_variant_new ("(u)",
6980 G_DBUS_CALL_FLAGS_NONE
,
6988 * logind_login1_manager_call_terminate_user_finish:
6989 * @proxy: A #logindLogin1ManagerProxy.
6990 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to logind_login1_manager_call_terminate_user().
6991 * @error: Return location for error or %NULL.
6993 * Finishes an operation started with logind_login1_manager_call_terminate_user().
6995 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
6998 logind_login1_manager_call_terminate_user_finish (
6999 logindLogin1Manager
*proxy
,
7004 _ret
= g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy
), res
, error
);
7007 g_variant_get (_ret
,
7009 g_variant_unref (_ret
);
7011 return _ret
!= NULL
;
7015 * logind_login1_manager_call_terminate_user_sync:
7016 * @proxy: A #logindLogin1ManagerProxy.
7017 * @arg_unnamed_arg0: Argument to pass with the method invocation.
7018 * @cancellable: (allow-none): A #GCancellable or %NULL.
7019 * @error: Return location for error or %NULL.
7021 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-login1-Manager.TerminateUser">TerminateUser()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
7023 * See logind_login1_manager_call_terminate_user() for the asynchronous version of this method.
7025 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
7028 logind_login1_manager_call_terminate_user_sync (
7029 logindLogin1Manager
*proxy
,
7030 guint arg_unnamed_arg0
,
7031 GCancellable
*cancellable
,
7035 _ret
= g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy
),
7037 g_variant_new ("(u)",
7039 G_DBUS_CALL_FLAGS_NONE
,
7045 g_variant_get (_ret
,
7047 g_variant_unref (_ret
);
7049 return _ret
!= NULL
;
7053 * logind_login1_manager_call_terminate_seat:
7054 * @proxy: A #logindLogin1ManagerProxy.
7055 * @arg_unnamed_arg0: Argument to pass with the method invocation.
7056 * @cancellable: (allow-none): A #GCancellable or %NULL.
7057 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
7058 * @user_data: User data to pass to @callback.
7060 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-login1-Manager.TerminateSeat">TerminateSeat()</link> D-Bus method on @proxy.
7061 * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
7062 * You can then call logind_login1_manager_call_terminate_seat_finish() to get the result of the operation.
7064 * See logind_login1_manager_call_terminate_seat_sync() for the synchronous, blocking version of this method.
7067 logind_login1_manager_call_terminate_seat (
7068 logindLogin1Manager
*proxy
,
7069 const gchar
*arg_unnamed_arg0
,
7070 GCancellable
*cancellable
,
7071 GAsyncReadyCallback callback
,
7074 g_dbus_proxy_call (G_DBUS_PROXY (proxy
),
7076 g_variant_new ("(s)",
7078 G_DBUS_CALL_FLAGS_NONE
,
7086 * logind_login1_manager_call_terminate_seat_finish:
7087 * @proxy: A #logindLogin1ManagerProxy.
7088 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to logind_login1_manager_call_terminate_seat().
7089 * @error: Return location for error or %NULL.
7091 * Finishes an operation started with logind_login1_manager_call_terminate_seat().
7093 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
7096 logind_login1_manager_call_terminate_seat_finish (
7097 logindLogin1Manager
*proxy
,
7102 _ret
= g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy
), res
, error
);
7105 g_variant_get (_ret
,
7107 g_variant_unref (_ret
);
7109 return _ret
!= NULL
;
7113 * logind_login1_manager_call_terminate_seat_sync:
7114 * @proxy: A #logindLogin1ManagerProxy.
7115 * @arg_unnamed_arg0: Argument to pass with the method invocation.
7116 * @cancellable: (allow-none): A #GCancellable or %NULL.
7117 * @error: Return location for error or %NULL.
7119 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-login1-Manager.TerminateSeat">TerminateSeat()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
7121 * See logind_login1_manager_call_terminate_seat() for the asynchronous version of this method.
7123 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
7126 logind_login1_manager_call_terminate_seat_sync (
7127 logindLogin1Manager
*proxy
,
7128 const gchar
*arg_unnamed_arg0
,
7129 GCancellable
*cancellable
,
7133 _ret
= g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy
),
7135 g_variant_new ("(s)",
7137 G_DBUS_CALL_FLAGS_NONE
,
7143 g_variant_get (_ret
,
7145 g_variant_unref (_ret
);
7147 return _ret
!= NULL
;
7151 * logind_login1_manager_call_set_user_linger:
7152 * @proxy: A #logindLogin1ManagerProxy.
7153 * @arg_unnamed_arg0: Argument to pass with the method invocation.
7154 * @arg_unnamed_arg1: Argument to pass with the method invocation.
7155 * @arg_unnamed_arg2: Argument to pass with the method invocation.
7156 * @cancellable: (allow-none): A #GCancellable or %NULL.
7157 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
7158 * @user_data: User data to pass to @callback.
7160 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-login1-Manager.SetUserLinger">SetUserLinger()</link> D-Bus method on @proxy.
7161 * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
7162 * You can then call logind_login1_manager_call_set_user_linger_finish() to get the result of the operation.
7164 * See logind_login1_manager_call_set_user_linger_sync() for the synchronous, blocking version of this method.
7167 logind_login1_manager_call_set_user_linger (
7168 logindLogin1Manager
*proxy
,
7169 guint arg_unnamed_arg0
,
7170 gboolean arg_unnamed_arg1
,
7171 gboolean arg_unnamed_arg2
,
7172 GCancellable
*cancellable
,
7173 GAsyncReadyCallback callback
,
7176 g_dbus_proxy_call (G_DBUS_PROXY (proxy
),
7178 g_variant_new ("(ubb)",
7182 G_DBUS_CALL_FLAGS_NONE
,
7190 * logind_login1_manager_call_set_user_linger_finish:
7191 * @proxy: A #logindLogin1ManagerProxy.
7192 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to logind_login1_manager_call_set_user_linger().
7193 * @error: Return location for error or %NULL.
7195 * Finishes an operation started with logind_login1_manager_call_set_user_linger().
7197 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
7200 logind_login1_manager_call_set_user_linger_finish (
7201 logindLogin1Manager
*proxy
,
7206 _ret
= g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy
), res
, error
);
7209 g_variant_get (_ret
,
7211 g_variant_unref (_ret
);
7213 return _ret
!= NULL
;
7217 * logind_login1_manager_call_set_user_linger_sync:
7218 * @proxy: A #logindLogin1ManagerProxy.
7219 * @arg_unnamed_arg0: Argument to pass with the method invocation.
7220 * @arg_unnamed_arg1: Argument to pass with the method invocation.
7221 * @arg_unnamed_arg2: Argument to pass with the method invocation.
7222 * @cancellable: (allow-none): A #GCancellable or %NULL.
7223 * @error: Return location for error or %NULL.
7225 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-login1-Manager.SetUserLinger">SetUserLinger()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
7227 * See logind_login1_manager_call_set_user_linger() for the asynchronous version of this method.
7229 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
7232 logind_login1_manager_call_set_user_linger_sync (
7233 logindLogin1Manager
*proxy
,
7234 guint arg_unnamed_arg0
,
7235 gboolean arg_unnamed_arg1
,
7236 gboolean arg_unnamed_arg2
,
7237 GCancellable
*cancellable
,
7241 _ret
= g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy
),
7243 g_variant_new ("(ubb)",
7247 G_DBUS_CALL_FLAGS_NONE
,
7253 g_variant_get (_ret
,
7255 g_variant_unref (_ret
);
7257 return _ret
!= NULL
;
7261 * logind_login1_manager_call_attach_device:
7262 * @proxy: A #logindLogin1ManagerProxy.
7263 * @arg_unnamed_arg0: Argument to pass with the method invocation.
7264 * @arg_unnamed_arg1: Argument to pass with the method invocation.
7265 * @arg_unnamed_arg2: Argument to pass with the method invocation.
7266 * @cancellable: (allow-none): A #GCancellable or %NULL.
7267 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
7268 * @user_data: User data to pass to @callback.
7270 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-login1-Manager.AttachDevice">AttachDevice()</link> D-Bus method on @proxy.
7271 * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
7272 * You can then call logind_login1_manager_call_attach_device_finish() to get the result of the operation.
7274 * See logind_login1_manager_call_attach_device_sync() for the synchronous, blocking version of this method.
7277 logind_login1_manager_call_attach_device (
7278 logindLogin1Manager
*proxy
,
7279 const gchar
*arg_unnamed_arg0
,
7280 const gchar
*arg_unnamed_arg1
,
7281 gboolean arg_unnamed_arg2
,
7282 GCancellable
*cancellable
,
7283 GAsyncReadyCallback callback
,
7286 g_dbus_proxy_call (G_DBUS_PROXY (proxy
),
7288 g_variant_new ("(ssb)",
7292 G_DBUS_CALL_FLAGS_NONE
,
7300 * logind_login1_manager_call_attach_device_finish:
7301 * @proxy: A #logindLogin1ManagerProxy.
7302 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to logind_login1_manager_call_attach_device().
7303 * @error: Return location for error or %NULL.
7305 * Finishes an operation started with logind_login1_manager_call_attach_device().
7307 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
7310 logind_login1_manager_call_attach_device_finish (
7311 logindLogin1Manager
*proxy
,
7316 _ret
= g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy
), res
, error
);
7319 g_variant_get (_ret
,
7321 g_variant_unref (_ret
);
7323 return _ret
!= NULL
;
7327 * logind_login1_manager_call_attach_device_sync:
7328 * @proxy: A #logindLogin1ManagerProxy.
7329 * @arg_unnamed_arg0: Argument to pass with the method invocation.
7330 * @arg_unnamed_arg1: Argument to pass with the method invocation.
7331 * @arg_unnamed_arg2: Argument to pass with the method invocation.
7332 * @cancellable: (allow-none): A #GCancellable or %NULL.
7333 * @error: Return location for error or %NULL.
7335 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-login1-Manager.AttachDevice">AttachDevice()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
7337 * See logind_login1_manager_call_attach_device() for the asynchronous version of this method.
7339 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
7342 logind_login1_manager_call_attach_device_sync (
7343 logindLogin1Manager
*proxy
,
7344 const gchar
*arg_unnamed_arg0
,
7345 const gchar
*arg_unnamed_arg1
,
7346 gboolean arg_unnamed_arg2
,
7347 GCancellable
*cancellable
,
7351 _ret
= g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy
),
7353 g_variant_new ("(ssb)",
7357 G_DBUS_CALL_FLAGS_NONE
,
7363 g_variant_get (_ret
,
7365 g_variant_unref (_ret
);
7367 return _ret
!= NULL
;
7371 * logind_login1_manager_call_flush_devices:
7372 * @proxy: A #logindLogin1ManagerProxy.
7373 * @arg_unnamed_arg0: Argument to pass with the method invocation.
7374 * @cancellable: (allow-none): A #GCancellable or %NULL.
7375 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
7376 * @user_data: User data to pass to @callback.
7378 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-login1-Manager.FlushDevices">FlushDevices()</link> D-Bus method on @proxy.
7379 * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
7380 * You can then call logind_login1_manager_call_flush_devices_finish() to get the result of the operation.
7382 * See logind_login1_manager_call_flush_devices_sync() for the synchronous, blocking version of this method.
7385 logind_login1_manager_call_flush_devices (
7386 logindLogin1Manager
*proxy
,
7387 gboolean arg_unnamed_arg0
,
7388 GCancellable
*cancellable
,
7389 GAsyncReadyCallback callback
,
7392 g_dbus_proxy_call (G_DBUS_PROXY (proxy
),
7394 g_variant_new ("(b)",
7396 G_DBUS_CALL_FLAGS_NONE
,
7404 * logind_login1_manager_call_flush_devices_finish:
7405 * @proxy: A #logindLogin1ManagerProxy.
7406 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to logind_login1_manager_call_flush_devices().
7407 * @error: Return location for error or %NULL.
7409 * Finishes an operation started with logind_login1_manager_call_flush_devices().
7411 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
7414 logind_login1_manager_call_flush_devices_finish (
7415 logindLogin1Manager
*proxy
,
7420 _ret
= g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy
), res
, error
);
7423 g_variant_get (_ret
,
7425 g_variant_unref (_ret
);
7427 return _ret
!= NULL
;
7431 * logind_login1_manager_call_flush_devices_sync:
7432 * @proxy: A #logindLogin1ManagerProxy.
7433 * @arg_unnamed_arg0: Argument to pass with the method invocation.
7434 * @cancellable: (allow-none): A #GCancellable or %NULL.
7435 * @error: Return location for error or %NULL.
7437 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-login1-Manager.FlushDevices">FlushDevices()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
7439 * See logind_login1_manager_call_flush_devices() for the asynchronous version of this method.
7441 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
7444 logind_login1_manager_call_flush_devices_sync (
7445 logindLogin1Manager
*proxy
,
7446 gboolean arg_unnamed_arg0
,
7447 GCancellable
*cancellable
,
7451 _ret
= g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy
),
7453 g_variant_new ("(b)",
7455 G_DBUS_CALL_FLAGS_NONE
,
7461 g_variant_get (_ret
,
7463 g_variant_unref (_ret
);
7465 return _ret
!= NULL
;
7469 * logind_login1_manager_call_power_off:
7470 * @proxy: A #logindLogin1ManagerProxy.
7471 * @arg_unnamed_arg0: Argument to pass with the method invocation.
7472 * @cancellable: (allow-none): A #GCancellable or %NULL.
7473 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
7474 * @user_data: User data to pass to @callback.
7476 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-login1-Manager.PowerOff">PowerOff()</link> D-Bus method on @proxy.
7477 * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
7478 * You can then call logind_login1_manager_call_power_off_finish() to get the result of the operation.
7480 * See logind_login1_manager_call_power_off_sync() for the synchronous, blocking version of this method.
7483 logind_login1_manager_call_power_off (
7484 logindLogin1Manager
*proxy
,
7485 gboolean arg_unnamed_arg0
,
7486 GCancellable
*cancellable
,
7487 GAsyncReadyCallback callback
,
7490 g_dbus_proxy_call (G_DBUS_PROXY (proxy
),
7492 g_variant_new ("(b)",
7494 G_DBUS_CALL_FLAGS_NONE
,
7502 * logind_login1_manager_call_power_off_finish:
7503 * @proxy: A #logindLogin1ManagerProxy.
7504 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to logind_login1_manager_call_power_off().
7505 * @error: Return location for error or %NULL.
7507 * Finishes an operation started with logind_login1_manager_call_power_off().
7509 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
7512 logind_login1_manager_call_power_off_finish (
7513 logindLogin1Manager
*proxy
,
7518 _ret
= g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy
), res
, error
);
7521 g_variant_get (_ret
,
7523 g_variant_unref (_ret
);
7525 return _ret
!= NULL
;
7529 * logind_login1_manager_call_power_off_sync:
7530 * @proxy: A #logindLogin1ManagerProxy.
7531 * @arg_unnamed_arg0: Argument to pass with the method invocation.
7532 * @cancellable: (allow-none): A #GCancellable or %NULL.
7533 * @error: Return location for error or %NULL.
7535 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-login1-Manager.PowerOff">PowerOff()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
7537 * See logind_login1_manager_call_power_off() for the asynchronous version of this method.
7539 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
7542 logind_login1_manager_call_power_off_sync (
7543 logindLogin1Manager
*proxy
,
7544 gboolean arg_unnamed_arg0
,
7545 GCancellable
*cancellable
,
7549 _ret
= g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy
),
7551 g_variant_new ("(b)",
7553 G_DBUS_CALL_FLAGS_NONE
,
7559 g_variant_get (_ret
,
7561 g_variant_unref (_ret
);
7563 return _ret
!= NULL
;
7567 * logind_login1_manager_call_reboot:
7568 * @proxy: A #logindLogin1ManagerProxy.
7569 * @arg_unnamed_arg0: Argument to pass with the method invocation.
7570 * @cancellable: (allow-none): A #GCancellable or %NULL.
7571 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
7572 * @user_data: User data to pass to @callback.
7574 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-login1-Manager.Reboot">Reboot()</link> D-Bus method on @proxy.
7575 * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
7576 * You can then call logind_login1_manager_call_reboot_finish() to get the result of the operation.
7578 * See logind_login1_manager_call_reboot_sync() for the synchronous, blocking version of this method.
7581 logind_login1_manager_call_reboot (
7582 logindLogin1Manager
*proxy
,
7583 gboolean arg_unnamed_arg0
,
7584 GCancellable
*cancellable
,
7585 GAsyncReadyCallback callback
,
7588 g_dbus_proxy_call (G_DBUS_PROXY (proxy
),
7590 g_variant_new ("(b)",
7592 G_DBUS_CALL_FLAGS_NONE
,
7600 * logind_login1_manager_call_reboot_finish:
7601 * @proxy: A #logindLogin1ManagerProxy.
7602 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to logind_login1_manager_call_reboot().
7603 * @error: Return location for error or %NULL.
7605 * Finishes an operation started with logind_login1_manager_call_reboot().
7607 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
7610 logind_login1_manager_call_reboot_finish (
7611 logindLogin1Manager
*proxy
,
7616 _ret
= g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy
), res
, error
);
7619 g_variant_get (_ret
,
7621 g_variant_unref (_ret
);
7623 return _ret
!= NULL
;
7627 * logind_login1_manager_call_reboot_sync:
7628 * @proxy: A #logindLogin1ManagerProxy.
7629 * @arg_unnamed_arg0: Argument to pass with the method invocation.
7630 * @cancellable: (allow-none): A #GCancellable or %NULL.
7631 * @error: Return location for error or %NULL.
7633 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-login1-Manager.Reboot">Reboot()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
7635 * See logind_login1_manager_call_reboot() for the asynchronous version of this method.
7637 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
7640 logind_login1_manager_call_reboot_sync (
7641 logindLogin1Manager
*proxy
,
7642 gboolean arg_unnamed_arg0
,
7643 GCancellable
*cancellable
,
7647 _ret
= g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy
),
7649 g_variant_new ("(b)",
7651 G_DBUS_CALL_FLAGS_NONE
,
7657 g_variant_get (_ret
,
7659 g_variant_unref (_ret
);
7661 return _ret
!= NULL
;
7665 * logind_login1_manager_call_suspend:
7666 * @proxy: A #logindLogin1ManagerProxy.
7667 * @arg_unnamed_arg0: Argument to pass with the method invocation.
7668 * @cancellable: (allow-none): A #GCancellable or %NULL.
7669 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
7670 * @user_data: User data to pass to @callback.
7672 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-login1-Manager.Suspend">Suspend()</link> D-Bus method on @proxy.
7673 * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
7674 * You can then call logind_login1_manager_call_suspend_finish() to get the result of the operation.
7676 * See logind_login1_manager_call_suspend_sync() for the synchronous, blocking version of this method.
7679 logind_login1_manager_call_suspend (
7680 logindLogin1Manager
*proxy
,
7681 gboolean arg_unnamed_arg0
,
7682 GCancellable
*cancellable
,
7683 GAsyncReadyCallback callback
,
7686 g_dbus_proxy_call (G_DBUS_PROXY (proxy
),
7688 g_variant_new ("(b)",
7690 G_DBUS_CALL_FLAGS_NONE
,
7698 * logind_login1_manager_call_suspend_finish:
7699 * @proxy: A #logindLogin1ManagerProxy.
7700 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to logind_login1_manager_call_suspend().
7701 * @error: Return location for error or %NULL.
7703 * Finishes an operation started with logind_login1_manager_call_suspend().
7705 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
7708 logind_login1_manager_call_suspend_finish (
7709 logindLogin1Manager
*proxy
,
7714 _ret
= g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy
), res
, error
);
7717 g_variant_get (_ret
,
7719 g_variant_unref (_ret
);
7721 return _ret
!= NULL
;
7725 * logind_login1_manager_call_suspend_sync:
7726 * @proxy: A #logindLogin1ManagerProxy.
7727 * @arg_unnamed_arg0: Argument to pass with the method invocation.
7728 * @cancellable: (allow-none): A #GCancellable or %NULL.
7729 * @error: Return location for error or %NULL.
7731 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-login1-Manager.Suspend">Suspend()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
7733 * See logind_login1_manager_call_suspend() for the asynchronous version of this method.
7735 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
7738 logind_login1_manager_call_suspend_sync (
7739 logindLogin1Manager
*proxy
,
7740 gboolean arg_unnamed_arg0
,
7741 GCancellable
*cancellable
,
7745 _ret
= g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy
),
7747 g_variant_new ("(b)",
7749 G_DBUS_CALL_FLAGS_NONE
,
7755 g_variant_get (_ret
,
7757 g_variant_unref (_ret
);
7759 return _ret
!= NULL
;
7763 * logind_login1_manager_call_hibernate:
7764 * @proxy: A #logindLogin1ManagerProxy.
7765 * @arg_unnamed_arg0: Argument to pass with the method invocation.
7766 * @cancellable: (allow-none): A #GCancellable or %NULL.
7767 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
7768 * @user_data: User data to pass to @callback.
7770 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-login1-Manager.Hibernate">Hibernate()</link> D-Bus method on @proxy.
7771 * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
7772 * You can then call logind_login1_manager_call_hibernate_finish() to get the result of the operation.
7774 * See logind_login1_manager_call_hibernate_sync() for the synchronous, blocking version of this method.
7777 logind_login1_manager_call_hibernate (
7778 logindLogin1Manager
*proxy
,
7779 gboolean arg_unnamed_arg0
,
7780 GCancellable
*cancellable
,
7781 GAsyncReadyCallback callback
,
7784 g_dbus_proxy_call (G_DBUS_PROXY (proxy
),
7786 g_variant_new ("(b)",
7788 G_DBUS_CALL_FLAGS_NONE
,
7796 * logind_login1_manager_call_hibernate_finish:
7797 * @proxy: A #logindLogin1ManagerProxy.
7798 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to logind_login1_manager_call_hibernate().
7799 * @error: Return location for error or %NULL.
7801 * Finishes an operation started with logind_login1_manager_call_hibernate().
7803 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
7806 logind_login1_manager_call_hibernate_finish (
7807 logindLogin1Manager
*proxy
,
7812 _ret
= g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy
), res
, error
);
7815 g_variant_get (_ret
,
7817 g_variant_unref (_ret
);
7819 return _ret
!= NULL
;
7823 * logind_login1_manager_call_hibernate_sync:
7824 * @proxy: A #logindLogin1ManagerProxy.
7825 * @arg_unnamed_arg0: Argument to pass with the method invocation.
7826 * @cancellable: (allow-none): A #GCancellable or %NULL.
7827 * @error: Return location for error or %NULL.
7829 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-login1-Manager.Hibernate">Hibernate()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
7831 * See logind_login1_manager_call_hibernate() for the asynchronous version of this method.
7833 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
7836 logind_login1_manager_call_hibernate_sync (
7837 logindLogin1Manager
*proxy
,
7838 gboolean arg_unnamed_arg0
,
7839 GCancellable
*cancellable
,
7843 _ret
= g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy
),
7845 g_variant_new ("(b)",
7847 G_DBUS_CALL_FLAGS_NONE
,
7853 g_variant_get (_ret
,
7855 g_variant_unref (_ret
);
7857 return _ret
!= NULL
;
7861 * logind_login1_manager_call_hybrid_sleep:
7862 * @proxy: A #logindLogin1ManagerProxy.
7863 * @arg_unnamed_arg0: Argument to pass with the method invocation.
7864 * @cancellable: (allow-none): A #GCancellable or %NULL.
7865 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
7866 * @user_data: User data to pass to @callback.
7868 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-login1-Manager.HybridSleep">HybridSleep()</link> D-Bus method on @proxy.
7869 * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
7870 * You can then call logind_login1_manager_call_hybrid_sleep_finish() to get the result of the operation.
7872 * See logind_login1_manager_call_hybrid_sleep_sync() for the synchronous, blocking version of this method.
7875 logind_login1_manager_call_hybrid_sleep (
7876 logindLogin1Manager
*proxy
,
7877 gboolean arg_unnamed_arg0
,
7878 GCancellable
*cancellable
,
7879 GAsyncReadyCallback callback
,
7882 g_dbus_proxy_call (G_DBUS_PROXY (proxy
),
7884 g_variant_new ("(b)",
7886 G_DBUS_CALL_FLAGS_NONE
,
7894 * logind_login1_manager_call_hybrid_sleep_finish:
7895 * @proxy: A #logindLogin1ManagerProxy.
7896 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to logind_login1_manager_call_hybrid_sleep().
7897 * @error: Return location for error or %NULL.
7899 * Finishes an operation started with logind_login1_manager_call_hybrid_sleep().
7901 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
7904 logind_login1_manager_call_hybrid_sleep_finish (
7905 logindLogin1Manager
*proxy
,
7910 _ret
= g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy
), res
, error
);
7913 g_variant_get (_ret
,
7915 g_variant_unref (_ret
);
7917 return _ret
!= NULL
;
7921 * logind_login1_manager_call_hybrid_sleep_sync:
7922 * @proxy: A #logindLogin1ManagerProxy.
7923 * @arg_unnamed_arg0: Argument to pass with the method invocation.
7924 * @cancellable: (allow-none): A #GCancellable or %NULL.
7925 * @error: Return location for error or %NULL.
7927 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-login1-Manager.HybridSleep">HybridSleep()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
7929 * See logind_login1_manager_call_hybrid_sleep() for the asynchronous version of this method.
7931 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
7934 logind_login1_manager_call_hybrid_sleep_sync (
7935 logindLogin1Manager
*proxy
,
7936 gboolean arg_unnamed_arg0
,
7937 GCancellable
*cancellable
,
7941 _ret
= g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy
),
7943 g_variant_new ("(b)",
7945 G_DBUS_CALL_FLAGS_NONE
,
7951 g_variant_get (_ret
,
7953 g_variant_unref (_ret
);
7955 return _ret
!= NULL
;
7959 * logind_login1_manager_call_can_power_off:
7960 * @proxy: A #logindLogin1ManagerProxy.
7961 * @cancellable: (allow-none): A #GCancellable or %NULL.
7962 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
7963 * @user_data: User data to pass to @callback.
7965 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-login1-Manager.CanPowerOff">CanPowerOff()</link> D-Bus method on @proxy.
7966 * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
7967 * You can then call logind_login1_manager_call_can_power_off_finish() to get the result of the operation.
7969 * See logind_login1_manager_call_can_power_off_sync() for the synchronous, blocking version of this method.
7972 logind_login1_manager_call_can_power_off (
7973 logindLogin1Manager
*proxy
,
7974 GCancellable
*cancellable
,
7975 GAsyncReadyCallback callback
,
7978 g_dbus_proxy_call (G_DBUS_PROXY (proxy
),
7980 g_variant_new ("()"),
7981 G_DBUS_CALL_FLAGS_NONE
,
7989 * logind_login1_manager_call_can_power_off_finish:
7990 * @proxy: A #logindLogin1ManagerProxy.
7991 * @out_unnamed_arg0: (out): Return location for return parameter or %NULL to ignore.
7992 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to logind_login1_manager_call_can_power_off().
7993 * @error: Return location for error or %NULL.
7995 * Finishes an operation started with logind_login1_manager_call_can_power_off().
7997 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
8000 logind_login1_manager_call_can_power_off_finish (
8001 logindLogin1Manager
*proxy
,
8002 gchar
**out_unnamed_arg0
,
8007 _ret
= g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy
), res
, error
);
8010 g_variant_get (_ret
,
8013 g_variant_unref (_ret
);
8015 return _ret
!= NULL
;
8019 * logind_login1_manager_call_can_power_off_sync:
8020 * @proxy: A #logindLogin1ManagerProxy.
8021 * @out_unnamed_arg0: (out): Return location for return parameter or %NULL to ignore.
8022 * @cancellable: (allow-none): A #GCancellable or %NULL.
8023 * @error: Return location for error or %NULL.
8025 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-login1-Manager.CanPowerOff">CanPowerOff()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
8027 * See logind_login1_manager_call_can_power_off() for the asynchronous version of this method.
8029 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
8032 logind_login1_manager_call_can_power_off_sync (
8033 logindLogin1Manager
*proxy
,
8034 gchar
**out_unnamed_arg0
,
8035 GCancellable
*cancellable
,
8039 _ret
= g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy
),
8041 g_variant_new ("()"),
8042 G_DBUS_CALL_FLAGS_NONE
,
8048 g_variant_get (_ret
,
8051 g_variant_unref (_ret
);
8053 return _ret
!= NULL
;
8057 * logind_login1_manager_call_can_reboot:
8058 * @proxy: A #logindLogin1ManagerProxy.
8059 * @cancellable: (allow-none): A #GCancellable or %NULL.
8060 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
8061 * @user_data: User data to pass to @callback.
8063 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-login1-Manager.CanReboot">CanReboot()</link> D-Bus method on @proxy.
8064 * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
8065 * You can then call logind_login1_manager_call_can_reboot_finish() to get the result of the operation.
8067 * See logind_login1_manager_call_can_reboot_sync() for the synchronous, blocking version of this method.
8070 logind_login1_manager_call_can_reboot (
8071 logindLogin1Manager
*proxy
,
8072 GCancellable
*cancellable
,
8073 GAsyncReadyCallback callback
,
8076 g_dbus_proxy_call (G_DBUS_PROXY (proxy
),
8078 g_variant_new ("()"),
8079 G_DBUS_CALL_FLAGS_NONE
,
8087 * logind_login1_manager_call_can_reboot_finish:
8088 * @proxy: A #logindLogin1ManagerProxy.
8089 * @out_unnamed_arg0: (out): Return location for return parameter or %NULL to ignore.
8090 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to logind_login1_manager_call_can_reboot().
8091 * @error: Return location for error or %NULL.
8093 * Finishes an operation started with logind_login1_manager_call_can_reboot().
8095 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
8098 logind_login1_manager_call_can_reboot_finish (
8099 logindLogin1Manager
*proxy
,
8100 gchar
**out_unnamed_arg0
,
8105 _ret
= g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy
), res
, error
);
8108 g_variant_get (_ret
,
8111 g_variant_unref (_ret
);
8113 return _ret
!= NULL
;
8117 * logind_login1_manager_call_can_reboot_sync:
8118 * @proxy: A #logindLogin1ManagerProxy.
8119 * @out_unnamed_arg0: (out): Return location for return parameter or %NULL to ignore.
8120 * @cancellable: (allow-none): A #GCancellable or %NULL.
8121 * @error: Return location for error or %NULL.
8123 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-login1-Manager.CanReboot">CanReboot()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
8125 * See logind_login1_manager_call_can_reboot() for the asynchronous version of this method.
8127 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
8130 logind_login1_manager_call_can_reboot_sync (
8131 logindLogin1Manager
*proxy
,
8132 gchar
**out_unnamed_arg0
,
8133 GCancellable
*cancellable
,
8137 _ret
= g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy
),
8139 g_variant_new ("()"),
8140 G_DBUS_CALL_FLAGS_NONE
,
8146 g_variant_get (_ret
,
8149 g_variant_unref (_ret
);
8151 return _ret
!= NULL
;
8155 * logind_login1_manager_call_can_suspend:
8156 * @proxy: A #logindLogin1ManagerProxy.
8157 * @cancellable: (allow-none): A #GCancellable or %NULL.
8158 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
8159 * @user_data: User data to pass to @callback.
8161 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-login1-Manager.CanSuspend">CanSuspend()</link> D-Bus method on @proxy.
8162 * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
8163 * You can then call logind_login1_manager_call_can_suspend_finish() to get the result of the operation.
8165 * See logind_login1_manager_call_can_suspend_sync() for the synchronous, blocking version of this method.
8168 logind_login1_manager_call_can_suspend (
8169 logindLogin1Manager
*proxy
,
8170 GCancellable
*cancellable
,
8171 GAsyncReadyCallback callback
,
8174 g_dbus_proxy_call (G_DBUS_PROXY (proxy
),
8176 g_variant_new ("()"),
8177 G_DBUS_CALL_FLAGS_NONE
,
8185 * logind_login1_manager_call_can_suspend_finish:
8186 * @proxy: A #logindLogin1ManagerProxy.
8187 * @out_unnamed_arg0: (out): Return location for return parameter or %NULL to ignore.
8188 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to logind_login1_manager_call_can_suspend().
8189 * @error: Return location for error or %NULL.
8191 * Finishes an operation started with logind_login1_manager_call_can_suspend().
8193 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
8196 logind_login1_manager_call_can_suspend_finish (
8197 logindLogin1Manager
*proxy
,
8198 gchar
**out_unnamed_arg0
,
8203 _ret
= g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy
), res
, error
);
8206 g_variant_get (_ret
,
8209 g_variant_unref (_ret
);
8211 return _ret
!= NULL
;
8215 * logind_login1_manager_call_can_suspend_sync:
8216 * @proxy: A #logindLogin1ManagerProxy.
8217 * @out_unnamed_arg0: (out): Return location for return parameter or %NULL to ignore.
8218 * @cancellable: (allow-none): A #GCancellable or %NULL.
8219 * @error: Return location for error or %NULL.
8221 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-login1-Manager.CanSuspend">CanSuspend()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
8223 * See logind_login1_manager_call_can_suspend() for the asynchronous version of this method.
8225 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
8228 logind_login1_manager_call_can_suspend_sync (
8229 logindLogin1Manager
*proxy
,
8230 gchar
**out_unnamed_arg0
,
8231 GCancellable
*cancellable
,
8235 _ret
= g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy
),
8237 g_variant_new ("()"),
8238 G_DBUS_CALL_FLAGS_NONE
,
8244 g_variant_get (_ret
,
8247 g_variant_unref (_ret
);
8249 return _ret
!= NULL
;
8253 * logind_login1_manager_call_can_hibernate:
8254 * @proxy: A #logindLogin1ManagerProxy.
8255 * @cancellable: (allow-none): A #GCancellable or %NULL.
8256 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
8257 * @user_data: User data to pass to @callback.
8259 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-login1-Manager.CanHibernate">CanHibernate()</link> D-Bus method on @proxy.
8260 * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
8261 * You can then call logind_login1_manager_call_can_hibernate_finish() to get the result of the operation.
8263 * See logind_login1_manager_call_can_hibernate_sync() for the synchronous, blocking version of this method.
8266 logind_login1_manager_call_can_hibernate (
8267 logindLogin1Manager
*proxy
,
8268 GCancellable
*cancellable
,
8269 GAsyncReadyCallback callback
,
8272 g_dbus_proxy_call (G_DBUS_PROXY (proxy
),
8274 g_variant_new ("()"),
8275 G_DBUS_CALL_FLAGS_NONE
,
8283 * logind_login1_manager_call_can_hibernate_finish:
8284 * @proxy: A #logindLogin1ManagerProxy.
8285 * @out_unnamed_arg0: (out): Return location for return parameter or %NULL to ignore.
8286 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to logind_login1_manager_call_can_hibernate().
8287 * @error: Return location for error or %NULL.
8289 * Finishes an operation started with logind_login1_manager_call_can_hibernate().
8291 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
8294 logind_login1_manager_call_can_hibernate_finish (
8295 logindLogin1Manager
*proxy
,
8296 gchar
**out_unnamed_arg0
,
8301 _ret
= g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy
), res
, error
);
8304 g_variant_get (_ret
,
8307 g_variant_unref (_ret
);
8309 return _ret
!= NULL
;
8313 * logind_login1_manager_call_can_hibernate_sync:
8314 * @proxy: A #logindLogin1ManagerProxy.
8315 * @out_unnamed_arg0: (out): Return location for return parameter or %NULL to ignore.
8316 * @cancellable: (allow-none): A #GCancellable or %NULL.
8317 * @error: Return location for error or %NULL.
8319 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-login1-Manager.CanHibernate">CanHibernate()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
8321 * See logind_login1_manager_call_can_hibernate() for the asynchronous version of this method.
8323 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
8326 logind_login1_manager_call_can_hibernate_sync (
8327 logindLogin1Manager
*proxy
,
8328 gchar
**out_unnamed_arg0
,
8329 GCancellable
*cancellable
,
8333 _ret
= g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy
),
8335 g_variant_new ("()"),
8336 G_DBUS_CALL_FLAGS_NONE
,
8342 g_variant_get (_ret
,
8345 g_variant_unref (_ret
);
8347 return _ret
!= NULL
;
8351 * logind_login1_manager_call_can_hybrid_sleep:
8352 * @proxy: A #logindLogin1ManagerProxy.
8353 * @cancellable: (allow-none): A #GCancellable or %NULL.
8354 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
8355 * @user_data: User data to pass to @callback.
8357 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-login1-Manager.CanHybridSleep">CanHybridSleep()</link> D-Bus method on @proxy.
8358 * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
8359 * You can then call logind_login1_manager_call_can_hybrid_sleep_finish() to get the result of the operation.
8361 * See logind_login1_manager_call_can_hybrid_sleep_sync() for the synchronous, blocking version of this method.
8364 logind_login1_manager_call_can_hybrid_sleep (
8365 logindLogin1Manager
*proxy
,
8366 GCancellable
*cancellable
,
8367 GAsyncReadyCallback callback
,
8370 g_dbus_proxy_call (G_DBUS_PROXY (proxy
),
8372 g_variant_new ("()"),
8373 G_DBUS_CALL_FLAGS_NONE
,
8381 * logind_login1_manager_call_can_hybrid_sleep_finish:
8382 * @proxy: A #logindLogin1ManagerProxy.
8383 * @out_unnamed_arg0: (out): Return location for return parameter or %NULL to ignore.
8384 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to logind_login1_manager_call_can_hybrid_sleep().
8385 * @error: Return location for error or %NULL.
8387 * Finishes an operation started with logind_login1_manager_call_can_hybrid_sleep().
8389 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
8392 logind_login1_manager_call_can_hybrid_sleep_finish (
8393 logindLogin1Manager
*proxy
,
8394 gchar
**out_unnamed_arg0
,
8399 _ret
= g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy
), res
, error
);
8402 g_variant_get (_ret
,
8405 g_variant_unref (_ret
);
8407 return _ret
!= NULL
;
8411 * logind_login1_manager_call_can_hybrid_sleep_sync:
8412 * @proxy: A #logindLogin1ManagerProxy.
8413 * @out_unnamed_arg0: (out): Return location for return parameter or %NULL to ignore.
8414 * @cancellable: (allow-none): A #GCancellable or %NULL.
8415 * @error: Return location for error or %NULL.
8417 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-login1-Manager.CanHybridSleep">CanHybridSleep()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
8419 * See logind_login1_manager_call_can_hybrid_sleep() for the asynchronous version of this method.
8421 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
8424 logind_login1_manager_call_can_hybrid_sleep_sync (
8425 logindLogin1Manager
*proxy
,
8426 gchar
**out_unnamed_arg0
,
8427 GCancellable
*cancellable
,
8431 _ret
= g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy
),
8433 g_variant_new ("()"),
8434 G_DBUS_CALL_FLAGS_NONE
,
8440 g_variant_get (_ret
,
8443 g_variant_unref (_ret
);
8445 return _ret
!= NULL
;
8449 * logind_login1_manager_call_inhibit:
8450 * @proxy: A #logindLogin1ManagerProxy.
8451 * @arg_unnamed_arg0: Argument to pass with the method invocation.
8452 * @arg_unnamed_arg1: Argument to pass with the method invocation.
8453 * @arg_unnamed_arg2: Argument to pass with the method invocation.
8454 * @arg_unnamed_arg3: Argument to pass with the method invocation.
8455 * @cancellable: (allow-none): A #GCancellable or %NULL.
8456 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
8457 * @user_data: User data to pass to @callback.
8459 * Asynchronously invokes the <link linkend="gdbus-method-org-freedesktop-login1-Manager.Inhibit">Inhibit()</link> D-Bus method on @proxy.
8460 * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
8461 * You can then call logind_login1_manager_call_inhibit_finish() to get the result of the operation.
8463 * See logind_login1_manager_call_inhibit_sync() for the synchronous, blocking version of this method.
8466 logind_login1_manager_call_inhibit (
8467 logindLogin1Manager
*proxy
,
8468 const gchar
*arg_unnamed_arg0
,
8469 const gchar
*arg_unnamed_arg1
,
8470 const gchar
*arg_unnamed_arg2
,
8471 const gchar
*arg_unnamed_arg3
,
8472 GCancellable
*cancellable
,
8473 GAsyncReadyCallback callback
,
8476 g_dbus_proxy_call (G_DBUS_PROXY (proxy
),
8478 g_variant_new ("(ssss)",
8483 G_DBUS_CALL_FLAGS_NONE
,
8491 * logind_login1_manager_call_inhibit_finish:
8492 * @proxy: A #logindLogin1ManagerProxy.
8493 * @out_unnamed_arg4: (out): Return location for return parameter or %NULL to ignore.
8494 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to logind_login1_manager_call_inhibit().
8495 * @error: Return location for error or %NULL.
8497 * Finishes an operation started with logind_login1_manager_call_inhibit().
8499 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
8502 logind_login1_manager_call_inhibit_finish (
8503 logindLogin1Manager
*proxy
,
8504 GVariant
**out_unnamed_arg4
,
8509 _ret
= g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy
), res
, error
);
8512 g_variant_get (_ret
,
8515 g_variant_unref (_ret
);
8517 return _ret
!= NULL
;
8521 * logind_login1_manager_call_inhibit_sync:
8522 * @proxy: A #logindLogin1ManagerProxy.
8523 * @arg_unnamed_arg0: Argument to pass with the method invocation.
8524 * @arg_unnamed_arg1: Argument to pass with the method invocation.
8525 * @arg_unnamed_arg2: Argument to pass with the method invocation.
8526 * @arg_unnamed_arg3: Argument to pass with the method invocation.
8527 * @out_unnamed_arg4: (out): Return location for return parameter or %NULL to ignore.
8528 * @cancellable: (allow-none): A #GCancellable or %NULL.
8529 * @error: Return location for error or %NULL.
8531 * Synchronously invokes the <link linkend="gdbus-method-org-freedesktop-login1-Manager.Inhibit">Inhibit()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
8533 * See logind_login1_manager_call_inhibit() for the asynchronous version of this method.
8535 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
8538 logind_login1_manager_call_inhibit_sync (
8539 logindLogin1Manager
*proxy
,
8540 const gchar
*arg_unnamed_arg0
,
8541 const gchar
*arg_unnamed_arg1
,
8542 const gchar
*arg_unnamed_arg2
,
8543 const gchar
*arg_unnamed_arg3
,
8544 GVariant
**out_unnamed_arg4
,
8545 GCancellable
*cancellable
,
8549 _ret
= g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy
),
8551 g_variant_new ("(ssss)",
8556 G_DBUS_CALL_FLAGS_NONE
,
8562 g_variant_get (_ret
,
8565 g_variant_unref (_ret
);
8567 return _ret
!= NULL
;
8571 * logind_login1_manager_complete_get_session:
8572 * @object: A #logindLogin1Manager.
8573 * @invocation: (transfer full): A #GDBusMethodInvocation.
8574 * @unnamed_arg1: Parameter to return.
8576 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-login1-Manager.GetSession">GetSession()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
8578 * This method will free @invocation, you cannot use it afterwards.
8581 logind_login1_manager_complete_get_session (
8582 logindLogin1Manager
*object
,
8583 GDBusMethodInvocation
*invocation
,
8584 const gchar
*unnamed_arg1
)
8586 g_dbus_method_invocation_return_value (invocation
,
8587 g_variant_new ("(o)",
8592 * logind_login1_manager_complete_get_session_by_pid:
8593 * @object: A #logindLogin1Manager.
8594 * @invocation: (transfer full): A #GDBusMethodInvocation.
8595 * @unnamed_arg1: Parameter to return.
8597 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-login1-Manager.GetSessionByPID">GetSessionByPID()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
8599 * This method will free @invocation, you cannot use it afterwards.
8602 logind_login1_manager_complete_get_session_by_pid (
8603 logindLogin1Manager
*object
,
8604 GDBusMethodInvocation
*invocation
,
8605 const gchar
*unnamed_arg1
)
8607 g_dbus_method_invocation_return_value (invocation
,
8608 g_variant_new ("(o)",
8613 * logind_login1_manager_complete_get_user:
8614 * @object: A #logindLogin1Manager.
8615 * @invocation: (transfer full): A #GDBusMethodInvocation.
8616 * @unnamed_arg1: Parameter to return.
8618 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-login1-Manager.GetUser">GetUser()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
8620 * This method will free @invocation, you cannot use it afterwards.
8623 logind_login1_manager_complete_get_user (
8624 logindLogin1Manager
*object
,
8625 GDBusMethodInvocation
*invocation
,
8626 const gchar
*unnamed_arg1
)
8628 g_dbus_method_invocation_return_value (invocation
,
8629 g_variant_new ("(o)",
8634 * logind_login1_manager_complete_get_user_by_pid:
8635 * @object: A #logindLogin1Manager.
8636 * @invocation: (transfer full): A #GDBusMethodInvocation.
8637 * @unnamed_arg1: Parameter to return.
8639 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-login1-Manager.GetUserByPID">GetUserByPID()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
8641 * This method will free @invocation, you cannot use it afterwards.
8644 logind_login1_manager_complete_get_user_by_pid (
8645 logindLogin1Manager
*object
,
8646 GDBusMethodInvocation
*invocation
,
8647 const gchar
*unnamed_arg1
)
8649 g_dbus_method_invocation_return_value (invocation
,
8650 g_variant_new ("(o)",
8655 * logind_login1_manager_complete_get_seat:
8656 * @object: A #logindLogin1Manager.
8657 * @invocation: (transfer full): A #GDBusMethodInvocation.
8658 * @unnamed_arg1: Parameter to return.
8660 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-login1-Manager.GetSeat">GetSeat()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
8662 * This method will free @invocation, you cannot use it afterwards.
8665 logind_login1_manager_complete_get_seat (
8666 logindLogin1Manager
*object
,
8667 GDBusMethodInvocation
*invocation
,
8668 const gchar
*unnamed_arg1
)
8670 g_dbus_method_invocation_return_value (invocation
,
8671 g_variant_new ("(o)",
8676 * logind_login1_manager_complete_list_sessions:
8677 * @object: A #logindLogin1Manager.
8678 * @invocation: (transfer full): A #GDBusMethodInvocation.
8679 * @unnamed_arg0: Parameter to return.
8681 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-login1-Manager.ListSessions">ListSessions()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
8683 * This method will free @invocation, you cannot use it afterwards.
8686 logind_login1_manager_complete_list_sessions (
8687 logindLogin1Manager
*object
,
8688 GDBusMethodInvocation
*invocation
,
8689 GVariant
*unnamed_arg0
)
8691 g_dbus_method_invocation_return_value (invocation
,
8692 g_variant_new ("(@a(susso))",
8697 * logind_login1_manager_complete_list_users:
8698 * @object: A #logindLogin1Manager.
8699 * @invocation: (transfer full): A #GDBusMethodInvocation.
8700 * @unnamed_arg0: Parameter to return.
8702 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-login1-Manager.ListUsers">ListUsers()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
8704 * This method will free @invocation, you cannot use it afterwards.
8707 logind_login1_manager_complete_list_users (
8708 logindLogin1Manager
*object
,
8709 GDBusMethodInvocation
*invocation
,
8710 GVariant
*unnamed_arg0
)
8712 g_dbus_method_invocation_return_value (invocation
,
8713 g_variant_new ("(@a(uso))",
8718 * logind_login1_manager_complete_list_seats:
8719 * @object: A #logindLogin1Manager.
8720 * @invocation: (transfer full): A #GDBusMethodInvocation.
8721 * @unnamed_arg0: Parameter to return.
8723 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-login1-Manager.ListSeats">ListSeats()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
8725 * This method will free @invocation, you cannot use it afterwards.
8728 logind_login1_manager_complete_list_seats (
8729 logindLogin1Manager
*object
,
8730 GDBusMethodInvocation
*invocation
,
8731 GVariant
*unnamed_arg0
)
8733 g_dbus_method_invocation_return_value (invocation
,
8734 g_variant_new ("(@a(so))",
8739 * logind_login1_manager_complete_list_inhibitors:
8740 * @object: A #logindLogin1Manager.
8741 * @invocation: (transfer full): A #GDBusMethodInvocation.
8742 * @unnamed_arg0: Parameter to return.
8744 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-login1-Manager.ListInhibitors">ListInhibitors()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
8746 * This method will free @invocation, you cannot use it afterwards.
8749 logind_login1_manager_complete_list_inhibitors (
8750 logindLogin1Manager
*object
,
8751 GDBusMethodInvocation
*invocation
,
8752 GVariant
*unnamed_arg0
)
8754 g_dbus_method_invocation_return_value (invocation
,
8755 g_variant_new ("(@a(ssssuu))",
8760 * logind_login1_manager_complete_create_session:
8761 * @object: A #logindLogin1Manager.
8762 * @invocation: (transfer full): A #GDBusMethodInvocation.
8763 * @unnamed_arg14: Parameter to return.
8764 * @unnamed_arg15: Parameter to return.
8765 * @unnamed_arg16: Parameter to return.
8766 * @unnamed_arg17: Parameter to return.
8767 * @unnamed_arg18: Parameter to return.
8768 * @unnamed_arg19: Parameter to return.
8769 * @unnamed_arg20: Parameter to return.
8770 * @unnamed_arg21: Parameter to return.
8772 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-login1-Manager.CreateSession">CreateSession()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
8774 * This method will free @invocation, you cannot use it afterwards.
8777 logind_login1_manager_complete_create_session (
8778 logindLogin1Manager
*object
,
8779 GDBusMethodInvocation
*invocation
,
8780 const gchar
*unnamed_arg14
,
8781 const gchar
*unnamed_arg15
,
8782 const gchar
*unnamed_arg16
,
8783 GVariant
*unnamed_arg17
,
8784 guint unnamed_arg18
,
8785 const gchar
*unnamed_arg19
,
8786 guint unnamed_arg20
,
8787 gboolean unnamed_arg21
)
8789 g_dbus_method_invocation_return_value (invocation
,
8790 g_variant_new ("(sos@husub)",
8802 * logind_login1_manager_complete_release_session:
8803 * @object: A #logindLogin1Manager.
8804 * @invocation: (transfer full): A #GDBusMethodInvocation.
8806 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-login1-Manager.ReleaseSession">ReleaseSession()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
8808 * This method will free @invocation, you cannot use it afterwards.
8811 logind_login1_manager_complete_release_session (
8812 logindLogin1Manager
*object
,
8813 GDBusMethodInvocation
*invocation
)
8815 g_dbus_method_invocation_return_value (invocation
,
8816 g_variant_new ("()"));
8820 * logind_login1_manager_complete_activate_session:
8821 * @object: A #logindLogin1Manager.
8822 * @invocation: (transfer full): A #GDBusMethodInvocation.
8824 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-login1-Manager.ActivateSession">ActivateSession()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
8826 * This method will free @invocation, you cannot use it afterwards.
8829 logind_login1_manager_complete_activate_session (
8830 logindLogin1Manager
*object
,
8831 GDBusMethodInvocation
*invocation
)
8833 g_dbus_method_invocation_return_value (invocation
,
8834 g_variant_new ("()"));
8838 * logind_login1_manager_complete_activate_session_on_seat:
8839 * @object: A #logindLogin1Manager.
8840 * @invocation: (transfer full): A #GDBusMethodInvocation.
8842 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-login1-Manager.ActivateSessionOnSeat">ActivateSessionOnSeat()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
8844 * This method will free @invocation, you cannot use it afterwards.
8847 logind_login1_manager_complete_activate_session_on_seat (
8848 logindLogin1Manager
*object
,
8849 GDBusMethodInvocation
*invocation
)
8851 g_dbus_method_invocation_return_value (invocation
,
8852 g_variant_new ("()"));
8856 * logind_login1_manager_complete_lock_session:
8857 * @object: A #logindLogin1Manager.
8858 * @invocation: (transfer full): A #GDBusMethodInvocation.
8860 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-login1-Manager.LockSession">LockSession()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
8862 * This method will free @invocation, you cannot use it afterwards.
8865 logind_login1_manager_complete_lock_session (
8866 logindLogin1Manager
*object
,
8867 GDBusMethodInvocation
*invocation
)
8869 g_dbus_method_invocation_return_value (invocation
,
8870 g_variant_new ("()"));
8874 * logind_login1_manager_complete_unlock_session:
8875 * @object: A #logindLogin1Manager.
8876 * @invocation: (transfer full): A #GDBusMethodInvocation.
8878 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-login1-Manager.UnlockSession">UnlockSession()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
8880 * This method will free @invocation, you cannot use it afterwards.
8883 logind_login1_manager_complete_unlock_session (
8884 logindLogin1Manager
*object
,
8885 GDBusMethodInvocation
*invocation
)
8887 g_dbus_method_invocation_return_value (invocation
,
8888 g_variant_new ("()"));
8892 * logind_login1_manager_complete_lock_sessions:
8893 * @object: A #logindLogin1Manager.
8894 * @invocation: (transfer full): A #GDBusMethodInvocation.
8896 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-login1-Manager.LockSessions">LockSessions()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
8898 * This method will free @invocation, you cannot use it afterwards.
8901 logind_login1_manager_complete_lock_sessions (
8902 logindLogin1Manager
*object
,
8903 GDBusMethodInvocation
*invocation
)
8905 g_dbus_method_invocation_return_value (invocation
,
8906 g_variant_new ("()"));
8910 * logind_login1_manager_complete_unlock_sessions:
8911 * @object: A #logindLogin1Manager.
8912 * @invocation: (transfer full): A #GDBusMethodInvocation.
8914 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-login1-Manager.UnlockSessions">UnlockSessions()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
8916 * This method will free @invocation, you cannot use it afterwards.
8919 logind_login1_manager_complete_unlock_sessions (
8920 logindLogin1Manager
*object
,
8921 GDBusMethodInvocation
*invocation
)
8923 g_dbus_method_invocation_return_value (invocation
,
8924 g_variant_new ("()"));
8928 * logind_login1_manager_complete_kill_session:
8929 * @object: A #logindLogin1Manager.
8930 * @invocation: (transfer full): A #GDBusMethodInvocation.
8932 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-login1-Manager.KillSession">KillSession()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
8934 * This method will free @invocation, you cannot use it afterwards.
8937 logind_login1_manager_complete_kill_session (
8938 logindLogin1Manager
*object
,
8939 GDBusMethodInvocation
*invocation
)
8941 g_dbus_method_invocation_return_value (invocation
,
8942 g_variant_new ("()"));
8946 * logind_login1_manager_complete_kill_user:
8947 * @object: A #logindLogin1Manager.
8948 * @invocation: (transfer full): A #GDBusMethodInvocation.
8950 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-login1-Manager.KillUser">KillUser()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
8952 * This method will free @invocation, you cannot use it afterwards.
8955 logind_login1_manager_complete_kill_user (
8956 logindLogin1Manager
*object
,
8957 GDBusMethodInvocation
*invocation
)
8959 g_dbus_method_invocation_return_value (invocation
,
8960 g_variant_new ("()"));
8964 * logind_login1_manager_complete_terminate_session:
8965 * @object: A #logindLogin1Manager.
8966 * @invocation: (transfer full): A #GDBusMethodInvocation.
8968 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-login1-Manager.TerminateSession">TerminateSession()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
8970 * This method will free @invocation, you cannot use it afterwards.
8973 logind_login1_manager_complete_terminate_session (
8974 logindLogin1Manager
*object
,
8975 GDBusMethodInvocation
*invocation
)
8977 g_dbus_method_invocation_return_value (invocation
,
8978 g_variant_new ("()"));
8982 * logind_login1_manager_complete_terminate_user:
8983 * @object: A #logindLogin1Manager.
8984 * @invocation: (transfer full): A #GDBusMethodInvocation.
8986 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-login1-Manager.TerminateUser">TerminateUser()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
8988 * This method will free @invocation, you cannot use it afterwards.
8991 logind_login1_manager_complete_terminate_user (
8992 logindLogin1Manager
*object
,
8993 GDBusMethodInvocation
*invocation
)
8995 g_dbus_method_invocation_return_value (invocation
,
8996 g_variant_new ("()"));
9000 * logind_login1_manager_complete_terminate_seat:
9001 * @object: A #logindLogin1Manager.
9002 * @invocation: (transfer full): A #GDBusMethodInvocation.
9004 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-login1-Manager.TerminateSeat">TerminateSeat()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
9006 * This method will free @invocation, you cannot use it afterwards.
9009 logind_login1_manager_complete_terminate_seat (
9010 logindLogin1Manager
*object
,
9011 GDBusMethodInvocation
*invocation
)
9013 g_dbus_method_invocation_return_value (invocation
,
9014 g_variant_new ("()"));
9018 * logind_login1_manager_complete_set_user_linger:
9019 * @object: A #logindLogin1Manager.
9020 * @invocation: (transfer full): A #GDBusMethodInvocation.
9022 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-login1-Manager.SetUserLinger">SetUserLinger()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
9024 * This method will free @invocation, you cannot use it afterwards.
9027 logind_login1_manager_complete_set_user_linger (
9028 logindLogin1Manager
*object
,
9029 GDBusMethodInvocation
*invocation
)
9031 g_dbus_method_invocation_return_value (invocation
,
9032 g_variant_new ("()"));
9036 * logind_login1_manager_complete_attach_device:
9037 * @object: A #logindLogin1Manager.
9038 * @invocation: (transfer full): A #GDBusMethodInvocation.
9040 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-login1-Manager.AttachDevice">AttachDevice()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
9042 * This method will free @invocation, you cannot use it afterwards.
9045 logind_login1_manager_complete_attach_device (
9046 logindLogin1Manager
*object
,
9047 GDBusMethodInvocation
*invocation
)
9049 g_dbus_method_invocation_return_value (invocation
,
9050 g_variant_new ("()"));
9054 * logind_login1_manager_complete_flush_devices:
9055 * @object: A #logindLogin1Manager.
9056 * @invocation: (transfer full): A #GDBusMethodInvocation.
9058 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-login1-Manager.FlushDevices">FlushDevices()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
9060 * This method will free @invocation, you cannot use it afterwards.
9063 logind_login1_manager_complete_flush_devices (
9064 logindLogin1Manager
*object
,
9065 GDBusMethodInvocation
*invocation
)
9067 g_dbus_method_invocation_return_value (invocation
,
9068 g_variant_new ("()"));
9072 * logind_login1_manager_complete_power_off:
9073 * @object: A #logindLogin1Manager.
9074 * @invocation: (transfer full): A #GDBusMethodInvocation.
9076 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-login1-Manager.PowerOff">PowerOff()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
9078 * This method will free @invocation, you cannot use it afterwards.
9081 logind_login1_manager_complete_power_off (
9082 logindLogin1Manager
*object
,
9083 GDBusMethodInvocation
*invocation
)
9085 g_dbus_method_invocation_return_value (invocation
,
9086 g_variant_new ("()"));
9090 * logind_login1_manager_complete_reboot:
9091 * @object: A #logindLogin1Manager.
9092 * @invocation: (transfer full): A #GDBusMethodInvocation.
9094 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-login1-Manager.Reboot">Reboot()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
9096 * This method will free @invocation, you cannot use it afterwards.
9099 logind_login1_manager_complete_reboot (
9100 logindLogin1Manager
*object
,
9101 GDBusMethodInvocation
*invocation
)
9103 g_dbus_method_invocation_return_value (invocation
,
9104 g_variant_new ("()"));
9108 * logind_login1_manager_complete_suspend:
9109 * @object: A #logindLogin1Manager.
9110 * @invocation: (transfer full): A #GDBusMethodInvocation.
9112 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-login1-Manager.Suspend">Suspend()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
9114 * This method will free @invocation, you cannot use it afterwards.
9117 logind_login1_manager_complete_suspend (
9118 logindLogin1Manager
*object
,
9119 GDBusMethodInvocation
*invocation
)
9121 g_dbus_method_invocation_return_value (invocation
,
9122 g_variant_new ("()"));
9126 * logind_login1_manager_complete_hibernate:
9127 * @object: A #logindLogin1Manager.
9128 * @invocation: (transfer full): A #GDBusMethodInvocation.
9130 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-login1-Manager.Hibernate">Hibernate()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
9132 * This method will free @invocation, you cannot use it afterwards.
9135 logind_login1_manager_complete_hibernate (
9136 logindLogin1Manager
*object
,
9137 GDBusMethodInvocation
*invocation
)
9139 g_dbus_method_invocation_return_value (invocation
,
9140 g_variant_new ("()"));
9144 * logind_login1_manager_complete_hybrid_sleep:
9145 * @object: A #logindLogin1Manager.
9146 * @invocation: (transfer full): A #GDBusMethodInvocation.
9148 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-login1-Manager.HybridSleep">HybridSleep()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
9150 * This method will free @invocation, you cannot use it afterwards.
9153 logind_login1_manager_complete_hybrid_sleep (
9154 logindLogin1Manager
*object
,
9155 GDBusMethodInvocation
*invocation
)
9157 g_dbus_method_invocation_return_value (invocation
,
9158 g_variant_new ("()"));
9162 * logind_login1_manager_complete_can_power_off:
9163 * @object: A #logindLogin1Manager.
9164 * @invocation: (transfer full): A #GDBusMethodInvocation.
9165 * @unnamed_arg0: Parameter to return.
9167 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-login1-Manager.CanPowerOff">CanPowerOff()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
9169 * This method will free @invocation, you cannot use it afterwards.
9172 logind_login1_manager_complete_can_power_off (
9173 logindLogin1Manager
*object
,
9174 GDBusMethodInvocation
*invocation
,
9175 const gchar
*unnamed_arg0
)
9177 g_dbus_method_invocation_return_value (invocation
,
9178 g_variant_new ("(s)",
9183 * logind_login1_manager_complete_can_reboot:
9184 * @object: A #logindLogin1Manager.
9185 * @invocation: (transfer full): A #GDBusMethodInvocation.
9186 * @unnamed_arg0: Parameter to return.
9188 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-login1-Manager.CanReboot">CanReboot()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
9190 * This method will free @invocation, you cannot use it afterwards.
9193 logind_login1_manager_complete_can_reboot (
9194 logindLogin1Manager
*object
,
9195 GDBusMethodInvocation
*invocation
,
9196 const gchar
*unnamed_arg0
)
9198 g_dbus_method_invocation_return_value (invocation
,
9199 g_variant_new ("(s)",
9204 * logind_login1_manager_complete_can_suspend:
9205 * @object: A #logindLogin1Manager.
9206 * @invocation: (transfer full): A #GDBusMethodInvocation.
9207 * @unnamed_arg0: Parameter to return.
9209 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-login1-Manager.CanSuspend">CanSuspend()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
9211 * This method will free @invocation, you cannot use it afterwards.
9214 logind_login1_manager_complete_can_suspend (
9215 logindLogin1Manager
*object
,
9216 GDBusMethodInvocation
*invocation
,
9217 const gchar
*unnamed_arg0
)
9219 g_dbus_method_invocation_return_value (invocation
,
9220 g_variant_new ("(s)",
9225 * logind_login1_manager_complete_can_hibernate:
9226 * @object: A #logindLogin1Manager.
9227 * @invocation: (transfer full): A #GDBusMethodInvocation.
9228 * @unnamed_arg0: Parameter to return.
9230 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-login1-Manager.CanHibernate">CanHibernate()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
9232 * This method will free @invocation, you cannot use it afterwards.
9235 logind_login1_manager_complete_can_hibernate (
9236 logindLogin1Manager
*object
,
9237 GDBusMethodInvocation
*invocation
,
9238 const gchar
*unnamed_arg0
)
9240 g_dbus_method_invocation_return_value (invocation
,
9241 g_variant_new ("(s)",
9246 * logind_login1_manager_complete_can_hybrid_sleep:
9247 * @object: A #logindLogin1Manager.
9248 * @invocation: (transfer full): A #GDBusMethodInvocation.
9249 * @unnamed_arg0: Parameter to return.
9251 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-login1-Manager.CanHybridSleep">CanHybridSleep()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
9253 * This method will free @invocation, you cannot use it afterwards.
9256 logind_login1_manager_complete_can_hybrid_sleep (
9257 logindLogin1Manager
*object
,
9258 GDBusMethodInvocation
*invocation
,
9259 const gchar
*unnamed_arg0
)
9261 g_dbus_method_invocation_return_value (invocation
,
9262 g_variant_new ("(s)",
9267 * logind_login1_manager_complete_inhibit:
9268 * @object: A #logindLogin1Manager.
9269 * @invocation: (transfer full): A #GDBusMethodInvocation.
9270 * @unnamed_arg4: Parameter to return.
9272 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-freedesktop-login1-Manager.Inhibit">Inhibit()</link> D-Bus method. If you instead want to finish handling an invocation by returning an error, use g_dbus_method_invocation_return_error() or similar.
9274 * This method will free @invocation, you cannot use it afterwards.
9277 logind_login1_manager_complete_inhibit (
9278 logindLogin1Manager
*object
,
9279 GDBusMethodInvocation
*invocation
,
9280 GVariant
*unnamed_arg4
)
9282 g_dbus_method_invocation_return_value (invocation
,
9283 g_variant_new ("(@h)",
9287 /* ------------------------------------------------------------------------ */
9290 * logindLogin1ManagerProxy:
9292 * The #logindLogin1ManagerProxy structure contains only private data and should only be accessed using the provided API.
9296 * logindLogin1ManagerProxyClass:
9297 * @parent_class: The parent class.
9299 * Class structure for #logindLogin1ManagerProxy.
9302 struct _logindLogin1ManagerProxyPrivate
9307 static void logind_login1_manager_proxy_iface_init (logindLogin1ManagerIface
*iface
);
9309 #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
9310 G_DEFINE_TYPE_WITH_CODE (logindLogin1ManagerProxy
, logind_login1_manager_proxy
, G_TYPE_DBUS_PROXY
,
9311 G_ADD_PRIVATE (logindLogin1ManagerProxy
)
9312 G_IMPLEMENT_INTERFACE (LOGIND_TYPE_LOGIN1_MANAGER
, logind_login1_manager_proxy_iface_init
));
9315 G_DEFINE_TYPE_WITH_CODE (logindLogin1ManagerProxy
, logind_login1_manager_proxy
, G_TYPE_DBUS_PROXY
,
9316 G_IMPLEMENT_INTERFACE (LOGIND_TYPE_LOGIN1_MANAGER
, logind_login1_manager_proxy_iface_init
));
9320 logind_login1_manager_proxy_finalize (GObject
*object
)
9322 logindLogin1ManagerProxy
*proxy
= LOGIND_LOGIN1_MANAGER_PROXY (object
);
9323 g_datalist_clear (&proxy
->priv
->qdata
);
9324 G_OBJECT_CLASS (logind_login1_manager_proxy_parent_class
)->finalize (object
);
9328 logind_login1_manager_proxy_get_property (GObject
*object
,
9331 GParamSpec
*pspec G_GNUC_UNUSED
)
9333 const _ExtendedGDBusPropertyInfo
*info
;
9335 g_assert (prop_id
!= 0 && prop_id
- 1 < 18);
9336 info
= _logind_login1_manager_property_info_pointers
[prop_id
- 1];
9337 variant
= g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object
), info
->parent_struct
.name
);
9338 if (info
->use_gvariant
)
9340 g_value_set_variant (value
, variant
);
9344 if (variant
!= NULL
)
9345 g_dbus_gvariant_to_gvalue (variant
, value
);
9347 if (variant
!= NULL
)
9348 g_variant_unref (variant
);
9352 logind_login1_manager_proxy_set_property_cb (GDBusProxy
*proxy
,
9356 const _ExtendedGDBusPropertyInfo
*info
= user_data
;
9360 _ret
= g_dbus_proxy_call_finish (proxy
, res
, &error
);
9363 g_warning ("Error setting property '%s' on interface org.freedesktop.login1.Manager: %s (%s, %d)",
9364 info
->parent_struct
.name
,
9365 error
->message
, g_quark_to_string (error
->domain
), error
->code
);
9366 g_error_free (error
);
9370 g_variant_unref (_ret
);
9375 logind_login1_manager_proxy_set_property (GObject
*object
,
9377 const GValue
*value
,
9378 GParamSpec
*pspec G_GNUC_UNUSED
)
9380 const _ExtendedGDBusPropertyInfo
*info
;
9382 g_assert (prop_id
!= 0 && prop_id
- 1 < 18);
9383 info
= _logind_login1_manager_property_info_pointers
[prop_id
- 1];
9384 variant
= g_dbus_gvalue_to_gvariant (value
, G_VARIANT_TYPE (info
->parent_struct
.signature
));
9385 g_dbus_proxy_call (G_DBUS_PROXY (object
),
9386 "org.freedesktop.DBus.Properties.Set",
9387 g_variant_new ("(ssv)", "org.freedesktop.login1.Manager", info
->parent_struct
.name
, variant
),
9388 G_DBUS_CALL_FLAGS_NONE
,
9390 NULL
, (GAsyncReadyCallback
) logind_login1_manager_proxy_set_property_cb
, (GDBusPropertyInfo
*) &info
->parent_struct
);
9391 g_variant_unref (variant
);
9395 logind_login1_manager_proxy_g_signal (GDBusProxy
*proxy
,
9396 const gchar
*sender_name G_GNUC_UNUSED
,
9397 const gchar
*signal_name
,
9398 GVariant
*parameters
)
9400 _ExtendedGDBusSignalInfo
*info
;
9407 info
= (_ExtendedGDBusSignalInfo
*) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo
*) &_logind_login1_manager_interface_info
.parent_struct
, signal_name
);
9410 num_params
= g_variant_n_children (parameters
);
9411 paramv
= g_new0 (GValue
, num_params
+ 1);
9412 g_value_init (¶mv
[0], LOGIND_TYPE_LOGIN1_MANAGER
);
9413 g_value_set_object (¶mv
[0], proxy
);
9414 g_variant_iter_init (&iter
, parameters
);
9416 while ((child
= g_variant_iter_next_value (&iter
)) != NULL
)
9418 _ExtendedGDBusArgInfo
*arg_info
= (_ExtendedGDBusArgInfo
*) info
->parent_struct
.args
[n
- 1];
9419 if (arg_info
->use_gvariant
)
9421 g_value_init (¶mv
[n
], G_TYPE_VARIANT
);
9422 g_value_set_variant (¶mv
[n
], child
);
9426 g_dbus_gvariant_to_gvalue (child
, ¶mv
[n
++]);
9427 g_variant_unref (child
);
9429 signal_id
= g_signal_lookup (info
->signal_name
, LOGIND_TYPE_LOGIN1_MANAGER
);
9430 g_signal_emitv (paramv
, signal_id
, 0, NULL
);
9431 for (n
= 0; n
< num_params
+ 1; n
++)
9432 g_value_unset (¶mv
[n
]);
9437 logind_login1_manager_proxy_g_properties_changed (GDBusProxy
*_proxy
,
9438 GVariant
*changed_properties
,
9439 const gchar
*const *invalidated_properties
)
9441 logindLogin1ManagerProxy
*proxy
= LOGIND_LOGIN1_MANAGER_PROXY (_proxy
);
9445 _ExtendedGDBusPropertyInfo
*info
;
9446 g_variant_get (changed_properties
, "a{sv}", &iter
);
9447 while (g_variant_iter_next (iter
, "{&sv}", &key
, NULL
))
9449 info
= (_ExtendedGDBusPropertyInfo
*) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo
*) &_logind_login1_manager_interface_info
.parent_struct
, key
);
9450 g_datalist_remove_data (&proxy
->priv
->qdata
, key
);
9452 g_object_notify (G_OBJECT (proxy
), info
->hyphen_name
);
9454 g_variant_iter_free (iter
);
9455 for (n
= 0; invalidated_properties
[n
] != NULL
; n
++)
9457 info
= (_ExtendedGDBusPropertyInfo
*) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo
*) &_logind_login1_manager_interface_info
.parent_struct
, invalidated_properties
[n
]);
9458 g_datalist_remove_data (&proxy
->priv
->qdata
, invalidated_properties
[n
]);
9460 g_object_notify (G_OBJECT (proxy
), info
->hyphen_name
);
9465 logind_login1_manager_proxy_get_nauto_vts (logindLogin1Manager
*object
)
9467 logindLogin1ManagerProxy
*proxy
= LOGIND_LOGIN1_MANAGER_PROXY (object
);
9470 variant
= g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy
), "NAutoVTs");
9471 if (variant
!= NULL
)
9473 value
= g_variant_get_uint32 (variant
);
9474 g_variant_unref (variant
);
9479 static const gchar
*const *
9480 logind_login1_manager_proxy_get_kill_only_users (logindLogin1Manager
*object
)
9482 logindLogin1ManagerProxy
*proxy
= LOGIND_LOGIN1_MANAGER_PROXY (object
);
9484 const gchar
*const *value
= NULL
;
9485 value
= g_datalist_get_data (&proxy
->priv
->qdata
, "KillOnlyUsers");
9488 variant
= g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy
), "KillOnlyUsers");
9489 if (variant
!= NULL
)
9491 value
= g_variant_get_strv (variant
, NULL
);
9492 g_datalist_set_data_full (&proxy
->priv
->qdata
, "KillOnlyUsers", (gpointer
) value
, g_free
);
9493 g_variant_unref (variant
);
9498 static const gchar
*const *
9499 logind_login1_manager_proxy_get_kill_exclude_users (logindLogin1Manager
*object
)
9501 logindLogin1ManagerProxy
*proxy
= LOGIND_LOGIN1_MANAGER_PROXY (object
);
9503 const gchar
*const *value
= NULL
;
9504 value
= g_datalist_get_data (&proxy
->priv
->qdata
, "KillExcludeUsers");
9507 variant
= g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy
), "KillExcludeUsers");
9508 if (variant
!= NULL
)
9510 value
= g_variant_get_strv (variant
, NULL
);
9511 g_datalist_set_data_full (&proxy
->priv
->qdata
, "KillExcludeUsers", (gpointer
) value
, g_free
);
9512 g_variant_unref (variant
);
9518 logind_login1_manager_proxy_get_kill_user_processes (logindLogin1Manager
*object
)
9520 logindLogin1ManagerProxy
*proxy
= LOGIND_LOGIN1_MANAGER_PROXY (object
);
9523 variant
= g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy
), "KillUserProcesses");
9524 if (variant
!= NULL
)
9526 value
= g_variant_get_boolean (variant
);
9527 g_variant_unref (variant
);
9533 logind_login1_manager_proxy_get_idle_hint (logindLogin1Manager
*object
)
9535 logindLogin1ManagerProxy
*proxy
= LOGIND_LOGIN1_MANAGER_PROXY (object
);
9538 variant
= g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy
), "IdleHint");
9539 if (variant
!= NULL
)
9541 value
= g_variant_get_boolean (variant
);
9542 g_variant_unref (variant
);
9548 logind_login1_manager_proxy_get_idle_since_hint (logindLogin1Manager
*object
)
9550 logindLogin1ManagerProxy
*proxy
= LOGIND_LOGIN1_MANAGER_PROXY (object
);
9553 variant
= g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy
), "IdleSinceHint");
9554 if (variant
!= NULL
)
9556 value
= g_variant_get_uint64 (variant
);
9557 g_variant_unref (variant
);
9563 logind_login1_manager_proxy_get_idle_since_hint_monotonic (logindLogin1Manager
*object
)
9565 logindLogin1ManagerProxy
*proxy
= LOGIND_LOGIN1_MANAGER_PROXY (object
);
9568 variant
= g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy
), "IdleSinceHintMonotonic");
9569 if (variant
!= NULL
)
9571 value
= g_variant_get_uint64 (variant
);
9572 g_variant_unref (variant
);
9577 static const gchar
*
9578 logind_login1_manager_proxy_get_block_inhibited (logindLogin1Manager
*object
)
9580 logindLogin1ManagerProxy
*proxy
= LOGIND_LOGIN1_MANAGER_PROXY (object
);
9582 const gchar
*value
= NULL
;
9583 variant
= g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy
), "BlockInhibited");
9584 if (variant
!= NULL
)
9586 value
= g_variant_get_string (variant
, NULL
);
9587 g_variant_unref (variant
);
9592 static const gchar
*
9593 logind_login1_manager_proxy_get_delay_inhibited (logindLogin1Manager
*object
)
9595 logindLogin1ManagerProxy
*proxy
= LOGIND_LOGIN1_MANAGER_PROXY (object
);
9597 const gchar
*value
= NULL
;
9598 variant
= g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy
), "DelayInhibited");
9599 if (variant
!= NULL
)
9601 value
= g_variant_get_string (variant
, NULL
);
9602 g_variant_unref (variant
);
9608 logind_login1_manager_proxy_get_inhibit_delay_max_usec (logindLogin1Manager
*object
)
9610 logindLogin1ManagerProxy
*proxy
= LOGIND_LOGIN1_MANAGER_PROXY (object
);
9613 variant
= g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy
), "InhibitDelayMaxUSec");
9614 if (variant
!= NULL
)
9616 value
= g_variant_get_uint64 (variant
);
9617 g_variant_unref (variant
);
9622 static const gchar
*
9623 logind_login1_manager_proxy_get_handle_power_key (logindLogin1Manager
*object
)
9625 logindLogin1ManagerProxy
*proxy
= LOGIND_LOGIN1_MANAGER_PROXY (object
);
9627 const gchar
*value
= NULL
;
9628 variant
= g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy
), "HandlePowerKey");
9629 if (variant
!= NULL
)
9631 value
= g_variant_get_string (variant
, NULL
);
9632 g_variant_unref (variant
);
9637 static const gchar
*
9638 logind_login1_manager_proxy_get_handle_suspend_key (logindLogin1Manager
*object
)
9640 logindLogin1ManagerProxy
*proxy
= LOGIND_LOGIN1_MANAGER_PROXY (object
);
9642 const gchar
*value
= NULL
;
9643 variant
= g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy
), "HandleSuspendKey");
9644 if (variant
!= NULL
)
9646 value
= g_variant_get_string (variant
, NULL
);
9647 g_variant_unref (variant
);
9652 static const gchar
*
9653 logind_login1_manager_proxy_get_handle_hibernate_key (logindLogin1Manager
*object
)
9655 logindLogin1ManagerProxy
*proxy
= LOGIND_LOGIN1_MANAGER_PROXY (object
);
9657 const gchar
*value
= NULL
;
9658 variant
= g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy
), "HandleHibernateKey");
9659 if (variant
!= NULL
)
9661 value
= g_variant_get_string (variant
, NULL
);
9662 g_variant_unref (variant
);
9667 static const gchar
*
9668 logind_login1_manager_proxy_get_handle_lid_switch (logindLogin1Manager
*object
)
9670 logindLogin1ManagerProxy
*proxy
= LOGIND_LOGIN1_MANAGER_PROXY (object
);
9672 const gchar
*value
= NULL
;
9673 variant
= g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy
), "HandleLidSwitch");
9674 if (variant
!= NULL
)
9676 value
= g_variant_get_string (variant
, NULL
);
9677 g_variant_unref (variant
);
9682 static const gchar
*
9683 logind_login1_manager_proxy_get_idle_action (logindLogin1Manager
*object
)
9685 logindLogin1ManagerProxy
*proxy
= LOGIND_LOGIN1_MANAGER_PROXY (object
);
9687 const gchar
*value
= NULL
;
9688 variant
= g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy
), "IdleAction");
9689 if (variant
!= NULL
)
9691 value
= g_variant_get_string (variant
, NULL
);
9692 g_variant_unref (variant
);
9698 logind_login1_manager_proxy_get_idle_action_usec (logindLogin1Manager
*object
)
9700 logindLogin1ManagerProxy
*proxy
= LOGIND_LOGIN1_MANAGER_PROXY (object
);
9703 variant
= g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy
), "IdleActionUSec");
9704 if (variant
!= NULL
)
9706 value
= g_variant_get_uint64 (variant
);
9707 g_variant_unref (variant
);
9713 logind_login1_manager_proxy_get_preparing_for_shutdown (logindLogin1Manager
*object
)
9715 logindLogin1ManagerProxy
*proxy
= LOGIND_LOGIN1_MANAGER_PROXY (object
);
9718 variant
= g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy
), "PreparingForShutdown");
9719 if (variant
!= NULL
)
9721 value
= g_variant_get_boolean (variant
);
9722 g_variant_unref (variant
);
9728 logind_login1_manager_proxy_get_preparing_for_sleep (logindLogin1Manager
*object
)
9730 logindLogin1ManagerProxy
*proxy
= LOGIND_LOGIN1_MANAGER_PROXY (object
);
9733 variant
= g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy
), "PreparingForSleep");
9734 if (variant
!= NULL
)
9736 value
= g_variant_get_boolean (variant
);
9737 g_variant_unref (variant
);
9743 logind_login1_manager_proxy_init (logindLogin1ManagerProxy
*proxy
)
9745 #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
9746 proxy
->priv
= logind_login1_manager_proxy_get_instance_private (proxy
);
9748 proxy
->priv
= G_TYPE_INSTANCE_GET_PRIVATE (proxy
, LOGIND_TYPE_LOGIN1_MANAGER_PROXY
, logindLogin1ManagerProxyPrivate
);
9751 g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy
), logind_login1_manager_interface_info ());
9755 logind_login1_manager_proxy_class_init (logindLogin1ManagerProxyClass
*klass
)
9757 GObjectClass
*gobject_class
;
9758 GDBusProxyClass
*proxy_class
;
9760 gobject_class
= G_OBJECT_CLASS (klass
);
9761 gobject_class
->finalize
= logind_login1_manager_proxy_finalize
;
9762 gobject_class
->get_property
= logind_login1_manager_proxy_get_property
;
9763 gobject_class
->set_property
= logind_login1_manager_proxy_set_property
;
9765 proxy_class
= G_DBUS_PROXY_CLASS (klass
);
9766 proxy_class
->g_signal
= logind_login1_manager_proxy_g_signal
;
9767 proxy_class
->g_properties_changed
= logind_login1_manager_proxy_g_properties_changed
;
9769 logind_login1_manager_override_properties (gobject_class
, 1);
9771 #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38
9772 g_type_class_add_private (klass
, sizeof (logindLogin1ManagerProxyPrivate
));
9777 logind_login1_manager_proxy_iface_init (logindLogin1ManagerIface
*iface
)
9779 iface
->get_nauto_vts
= logind_login1_manager_proxy_get_nauto_vts
;
9780 iface
->get_kill_only_users
= logind_login1_manager_proxy_get_kill_only_users
;
9781 iface
->get_kill_exclude_users
= logind_login1_manager_proxy_get_kill_exclude_users
;
9782 iface
->get_kill_user_processes
= logind_login1_manager_proxy_get_kill_user_processes
;
9783 iface
->get_idle_hint
= logind_login1_manager_proxy_get_idle_hint
;
9784 iface
->get_idle_since_hint
= logind_login1_manager_proxy_get_idle_since_hint
;
9785 iface
->get_idle_since_hint_monotonic
= logind_login1_manager_proxy_get_idle_since_hint_monotonic
;
9786 iface
->get_block_inhibited
= logind_login1_manager_proxy_get_block_inhibited
;
9787 iface
->get_delay_inhibited
= logind_login1_manager_proxy_get_delay_inhibited
;
9788 iface
->get_inhibit_delay_max_usec
= logind_login1_manager_proxy_get_inhibit_delay_max_usec
;
9789 iface
->get_handle_power_key
= logind_login1_manager_proxy_get_handle_power_key
;
9790 iface
->get_handle_suspend_key
= logind_login1_manager_proxy_get_handle_suspend_key
;
9791 iface
->get_handle_hibernate_key
= logind_login1_manager_proxy_get_handle_hibernate_key
;
9792 iface
->get_handle_lid_switch
= logind_login1_manager_proxy_get_handle_lid_switch
;
9793 iface
->get_idle_action
= logind_login1_manager_proxy_get_idle_action
;
9794 iface
->get_idle_action_usec
= logind_login1_manager_proxy_get_idle_action_usec
;
9795 iface
->get_preparing_for_shutdown
= logind_login1_manager_proxy_get_preparing_for_shutdown
;
9796 iface
->get_preparing_for_sleep
= logind_login1_manager_proxy_get_preparing_for_sleep
;
9800 * logind_login1_manager_proxy_new:
9801 * @connection: A #GDBusConnection.
9802 * @flags: Flags from the #GDBusProxyFlags enumeration.
9803 * @name: (allow-none): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection.
9804 * @object_path: An object path.
9805 * @cancellable: (allow-none): A #GCancellable or %NULL.
9806 * @callback: A #GAsyncReadyCallback to call when the request is satisfied.
9807 * @user_data: User data to pass to @callback.
9809 * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-login1-Manager.top_of_page">org.freedesktop.login1.Manager</link>. See g_dbus_proxy_new() for more details.
9811 * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
9812 * You can then call logind_login1_manager_proxy_new_finish() to get the result of the operation.
9814 * See logind_login1_manager_proxy_new_sync() for the synchronous, blocking version of this constructor.
9817 logind_login1_manager_proxy_new (
9818 GDBusConnection
*connection
,
9819 GDBusProxyFlags flags
,
9821 const gchar
*object_path
,
9822 GCancellable
*cancellable
,
9823 GAsyncReadyCallback callback
,
9826 g_async_initable_new_async (LOGIND_TYPE_LOGIN1_MANAGER_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.login1.Manager", NULL
);
9830 * logind_login1_manager_proxy_new_finish:
9831 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to logind_login1_manager_proxy_new().
9832 * @error: Return location for error or %NULL
9834 * Finishes an operation started with logind_login1_manager_proxy_new().
9836 * Returns: (transfer full) (type logindLogin1ManagerProxy): The constructed proxy object or %NULL if @error is set.
9838 logindLogin1Manager
*
9839 logind_login1_manager_proxy_new_finish (
9844 GObject
*source_object
;
9845 source_object
= g_async_result_get_source_object (res
);
9846 ret
= g_async_initable_new_finish (G_ASYNC_INITABLE (source_object
), res
, error
);
9847 g_object_unref (source_object
);
9849 return LOGIND_LOGIN1_MANAGER (ret
);
9855 * logind_login1_manager_proxy_new_sync:
9856 * @connection: A #GDBusConnection.
9857 * @flags: Flags from the #GDBusProxyFlags enumeration.
9858 * @name: (allow-none): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection.
9859 * @object_path: An object path.
9860 * @cancellable: (allow-none): A #GCancellable or %NULL.
9861 * @error: Return location for error or %NULL
9863 * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-login1-Manager.top_of_page">org.freedesktop.login1.Manager</link>. See g_dbus_proxy_new_sync() for more details.
9865 * The calling thread is blocked until a reply is received.
9867 * See logind_login1_manager_proxy_new() for the asynchronous version of this constructor.
9869 * Returns: (transfer full) (type logindLogin1ManagerProxy): The constructed proxy object or %NULL if @error is set.
9871 logindLogin1Manager
*
9872 logind_login1_manager_proxy_new_sync (
9873 GDBusConnection
*connection
,
9874 GDBusProxyFlags flags
,
9876 const gchar
*object_path
,
9877 GCancellable
*cancellable
,
9881 ret
= g_initable_new (LOGIND_TYPE_LOGIN1_MANAGER_PROXY
, cancellable
, error
, "g-flags", flags
, "g-name", name
, "g-connection", connection
, "g-object-path", object_path
, "g-interface-name", "org.freedesktop.login1.Manager", NULL
);
9883 return LOGIND_LOGIN1_MANAGER (ret
);
9890 * logind_login1_manager_proxy_new_for_bus:
9891 * @bus_type: A #GBusType.
9892 * @flags: Flags from the #GDBusProxyFlags enumeration.
9893 * @name: A bus name (well-known or unique).
9894 * @object_path: An object path.
9895 * @cancellable: (allow-none): A #GCancellable or %NULL.
9896 * @callback: A #GAsyncReadyCallback to call when the request is satisfied.
9897 * @user_data: User data to pass to @callback.
9899 * Like logind_login1_manager_proxy_new() but takes a #GBusType instead of a #GDBusConnection.
9901 * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
9902 * You can then call logind_login1_manager_proxy_new_for_bus_finish() to get the result of the operation.
9904 * See logind_login1_manager_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor.
9907 logind_login1_manager_proxy_new_for_bus (
9909 GDBusProxyFlags flags
,
9911 const gchar
*object_path
,
9912 GCancellable
*cancellable
,
9913 GAsyncReadyCallback callback
,
9916 g_async_initable_new_async (LOGIND_TYPE_LOGIN1_MANAGER_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.login1.Manager", NULL
);
9920 * logind_login1_manager_proxy_new_for_bus_finish:
9921 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to logind_login1_manager_proxy_new_for_bus().
9922 * @error: Return location for error or %NULL
9924 * Finishes an operation started with logind_login1_manager_proxy_new_for_bus().
9926 * Returns: (transfer full) (type logindLogin1ManagerProxy): The constructed proxy object or %NULL if @error is set.
9928 logindLogin1Manager
*
9929 logind_login1_manager_proxy_new_for_bus_finish (
9934 GObject
*source_object
;
9935 source_object
= g_async_result_get_source_object (res
);
9936 ret
= g_async_initable_new_finish (G_ASYNC_INITABLE (source_object
), res
, error
);
9937 g_object_unref (source_object
);
9939 return LOGIND_LOGIN1_MANAGER (ret
);
9945 * logind_login1_manager_proxy_new_for_bus_sync:
9946 * @bus_type: A #GBusType.
9947 * @flags: Flags from the #GDBusProxyFlags enumeration.
9948 * @name: A bus name (well-known or unique).
9949 * @object_path: An object path.
9950 * @cancellable: (allow-none): A #GCancellable or %NULL.
9951 * @error: Return location for error or %NULL
9953 * Like logind_login1_manager_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection.
9955 * The calling thread is blocked until a reply is received.
9957 * See logind_login1_manager_proxy_new_for_bus() for the asynchronous version of this constructor.
9959 * Returns: (transfer full) (type logindLogin1ManagerProxy): The constructed proxy object or %NULL if @error is set.
9961 logindLogin1Manager
*
9962 logind_login1_manager_proxy_new_for_bus_sync (
9964 GDBusProxyFlags flags
,
9966 const gchar
*object_path
,
9967 GCancellable
*cancellable
,
9971 ret
= g_initable_new (LOGIND_TYPE_LOGIN1_MANAGER_PROXY
, cancellable
, error
, "g-flags", flags
, "g-name", name
, "g-bus-type", bus_type
, "g-object-path", object_path
, "g-interface-name", "org.freedesktop.login1.Manager", NULL
);
9973 return LOGIND_LOGIN1_MANAGER (ret
);
9979 /* ------------------------------------------------------------------------ */
9982 * logindLogin1ManagerSkeleton:
9984 * The #logindLogin1ManagerSkeleton structure contains only private data and should only be accessed using the provided API.
9988 * logindLogin1ManagerSkeletonClass:
9989 * @parent_class: The parent class.
9991 * Class structure for #logindLogin1ManagerSkeleton.
9994 struct _logindLogin1ManagerSkeletonPrivate
9997 GList
*changed_properties
;
9998 GSource
*changed_properties_idle_source
;
9999 GMainContext
*context
;
10004 _logind_login1_manager_skeleton_handle_method_call (
10005 GDBusConnection
*connection G_GNUC_UNUSED
,
10006 const gchar
*sender G_GNUC_UNUSED
,
10007 const gchar
*object_path G_GNUC_UNUSED
,
10008 const gchar
*interface_name
,
10009 const gchar
*method_name
,
10010 GVariant
*parameters
,
10011 GDBusMethodInvocation
*invocation
,
10012 gpointer user_data
)
10014 logindLogin1ManagerSkeleton
*skeleton
= LOGIND_LOGIN1_MANAGER_SKELETON (user_data
);
10015 _ExtendedGDBusMethodInfo
*info
;
10023 GValue return_value
= G_VALUE_INIT
;
10024 info
= (_ExtendedGDBusMethodInfo
*) g_dbus_method_invocation_get_method_info (invocation
);
10025 g_assert (info
!= NULL
);
10026 num_params
= g_variant_n_children (parameters
);
10027 num_extra
= info
->pass_fdlist
? 3 : 2; paramv
= g_new0 (GValue
, num_params
+ num_extra
);
10029 g_value_init (¶mv
[n
], LOGIND_TYPE_LOGIN1_MANAGER
);
10030 g_value_set_object (¶mv
[n
++], skeleton
);
10031 g_value_init (¶mv
[n
], G_TYPE_DBUS_METHOD_INVOCATION
);
10032 g_value_set_object (¶mv
[n
++], invocation
);
10033 if (info
->pass_fdlist
)
10036 g_value_init (¶mv
[n
], G_TYPE_UNIX_FD_LIST
);
10037 g_value_set_object (¶mv
[n
++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation
)));
10039 g_assert_not_reached ();
10042 g_variant_iter_init (&iter
, parameters
);
10043 while ((child
= g_variant_iter_next_value (&iter
)) != NULL
)
10045 _ExtendedGDBusArgInfo
*arg_info
= (_ExtendedGDBusArgInfo
*) info
->parent_struct
.in_args
[n
- num_extra
];
10046 if (arg_info
->use_gvariant
)
10048 g_value_init (¶mv
[n
], G_TYPE_VARIANT
);
10049 g_value_set_variant (¶mv
[n
], child
);
10053 g_dbus_gvariant_to_gvalue (child
, ¶mv
[n
++]);
10054 g_variant_unref (child
);
10056 signal_id
= g_signal_lookup (info
->signal_name
, LOGIND_TYPE_LOGIN1_MANAGER
);
10057 g_value_init (&return_value
, G_TYPE_BOOLEAN
);
10058 g_signal_emitv (paramv
, signal_id
, 0, &return_value
);
10059 if (!g_value_get_boolean (&return_value
))
10060 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
);
10061 g_value_unset (&return_value
);
10062 for (n
= 0; n
< num_params
+ num_extra
; n
++)
10063 g_value_unset (¶mv
[n
]);
10068 _logind_login1_manager_skeleton_handle_get_property (
10069 GDBusConnection
*connection G_GNUC_UNUSED
,
10070 const gchar
*sender G_GNUC_UNUSED
,
10071 const gchar
*object_path G_GNUC_UNUSED
,
10072 const gchar
*interface_name G_GNUC_UNUSED
,
10073 const gchar
*property_name
,
10075 gpointer user_data
)
10077 logindLogin1ManagerSkeleton
*skeleton
= LOGIND_LOGIN1_MANAGER_SKELETON (user_data
);
10078 GValue value
= G_VALUE_INIT
;
10080 _ExtendedGDBusPropertyInfo
*info
;
10083 info
= (_ExtendedGDBusPropertyInfo
*) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo
*) &_logind_login1_manager_interface_info
.parent_struct
, property_name
);
10084 g_assert (info
!= NULL
);
10085 pspec
= g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton
), info
->hyphen_name
);
10088 g_set_error (error
, G_DBUS_ERROR
, G_DBUS_ERROR_INVALID_ARGS
, "No property with name %s", property_name
);
10092 g_value_init (&value
, pspec
->value_type
);
10093 g_object_get_property (G_OBJECT (skeleton
), info
->hyphen_name
, &value
);
10094 ret
= g_dbus_gvalue_to_gvariant (&value
, G_VARIANT_TYPE (info
->parent_struct
.signature
));
10095 g_value_unset (&value
);
10101 _logind_login1_manager_skeleton_handle_set_property (
10102 GDBusConnection
*connection G_GNUC_UNUSED
,
10103 const gchar
*sender G_GNUC_UNUSED
,
10104 const gchar
*object_path G_GNUC_UNUSED
,
10105 const gchar
*interface_name G_GNUC_UNUSED
,
10106 const gchar
*property_name
,
10109 gpointer user_data
)
10111 logindLogin1ManagerSkeleton
*skeleton
= LOGIND_LOGIN1_MANAGER_SKELETON (user_data
);
10112 GValue value
= G_VALUE_INIT
;
10114 _ExtendedGDBusPropertyInfo
*info
;
10117 info
= (_ExtendedGDBusPropertyInfo
*) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo
*) &_logind_login1_manager_interface_info
.parent_struct
, property_name
);
10118 g_assert (info
!= NULL
);
10119 pspec
= g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton
), info
->hyphen_name
);
10122 g_set_error (error
, G_DBUS_ERROR
, G_DBUS_ERROR_INVALID_ARGS
, "No property with name %s", property_name
);
10126 if (info
->use_gvariant
)
10127 g_value_set_variant (&value
, variant
);
10129 g_dbus_gvariant_to_gvalue (variant
, &value
);
10130 g_object_set_property (G_OBJECT (skeleton
), info
->hyphen_name
, &value
);
10131 g_value_unset (&value
);
10137 static const GDBusInterfaceVTable _logind_login1_manager_skeleton_vtable
=
10139 _logind_login1_manager_skeleton_handle_method_call
,
10140 _logind_login1_manager_skeleton_handle_get_property
,
10141 _logind_login1_manager_skeleton_handle_set_property
,
10145 static GDBusInterfaceInfo
*
10146 logind_login1_manager_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton
*skeleton G_GNUC_UNUSED
)
10148 return logind_login1_manager_interface_info ();
10151 static GDBusInterfaceVTable
*
10152 logind_login1_manager_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton
*skeleton G_GNUC_UNUSED
)
10154 return (GDBusInterfaceVTable
*) &_logind_login1_manager_skeleton_vtable
;
10158 logind_login1_manager_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton
*_skeleton
)
10160 logindLogin1ManagerSkeleton
*skeleton
= LOGIND_LOGIN1_MANAGER_SKELETON (_skeleton
);
10162 GVariantBuilder builder
;
10164 g_variant_builder_init (&builder
, G_VARIANT_TYPE ("a{sv}"));
10165 if (_logind_login1_manager_interface_info
.parent_struct
.properties
== NULL
)
10167 for (n
= 0; _logind_login1_manager_interface_info
.parent_struct
.properties
[n
] != NULL
; n
++)
10169 GDBusPropertyInfo
*info
= _logind_login1_manager_interface_info
.parent_struct
.properties
[n
];
10170 if (info
->flags
& G_DBUS_PROPERTY_INFO_FLAGS_READABLE
)
10173 value
= _logind_login1_manager_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.login1.Manager", info
->name
, NULL
, skeleton
);
10176 g_variant_take_ref (value
);
10177 g_variant_builder_add (&builder
, "{sv}", info
->name
, value
);
10178 g_variant_unref (value
);
10183 return g_variant_builder_end (&builder
);
10186 static gboolean
_logind_login1_manager_emit_changed (gpointer user_data
);
10189 logind_login1_manager_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton
*_skeleton
)
10191 logindLogin1ManagerSkeleton
*skeleton
= LOGIND_LOGIN1_MANAGER_SKELETON (_skeleton
);
10192 gboolean emit_changed
= FALSE
;
10194 g_mutex_lock (&skeleton
->priv
->lock
);
10195 if (skeleton
->priv
->changed_properties_idle_source
!= NULL
)
10197 g_source_destroy (skeleton
->priv
->changed_properties_idle_source
);
10198 skeleton
->priv
->changed_properties_idle_source
= NULL
;
10199 emit_changed
= TRUE
;
10201 g_mutex_unlock (&skeleton
->priv
->lock
);
10204 _logind_login1_manager_emit_changed (skeleton
);
10208 _logind_login1_manager_on_signal_session_new (
10209 logindLogin1Manager
*object
,
10210 const gchar
*arg_unnamed_arg0
,
10211 const gchar
*arg_unnamed_arg1
)
10213 logindLogin1ManagerSkeleton
*skeleton
= LOGIND_LOGIN1_MANAGER_SKELETON (object
);
10215 GList
*connections
, *l
;
10216 GVariant
*signal_variant
;
10217 connections
= g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton
));
10219 signal_variant
= g_variant_ref_sink (g_variant_new ("(so)",
10221 arg_unnamed_arg1
));
10222 for (l
= connections
; l
!= NULL
; l
= l
->next
)
10224 GDBusConnection
*connection
= l
->data
;
10225 g_dbus_connection_emit_signal (connection
,
10226 NULL
, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton
)), "org.freedesktop.login1.Manager", "SessionNew",
10227 signal_variant
, NULL
);
10229 g_variant_unref (signal_variant
);
10230 g_list_free_full (connections
, g_object_unref
);
10234 _logind_login1_manager_on_signal_session_removed (
10235 logindLogin1Manager
*object
,
10236 const gchar
*arg_unnamed_arg0
,
10237 const gchar
*arg_unnamed_arg1
)
10239 logindLogin1ManagerSkeleton
*skeleton
= LOGIND_LOGIN1_MANAGER_SKELETON (object
);
10241 GList
*connections
, *l
;
10242 GVariant
*signal_variant
;
10243 connections
= g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton
));
10245 signal_variant
= g_variant_ref_sink (g_variant_new ("(so)",
10247 arg_unnamed_arg1
));
10248 for (l
= connections
; l
!= NULL
; l
= l
->next
)
10250 GDBusConnection
*connection
= l
->data
;
10251 g_dbus_connection_emit_signal (connection
,
10252 NULL
, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton
)), "org.freedesktop.login1.Manager", "SessionRemoved",
10253 signal_variant
, NULL
);
10255 g_variant_unref (signal_variant
);
10256 g_list_free_full (connections
, g_object_unref
);
10260 _logind_login1_manager_on_signal_user_new (
10261 logindLogin1Manager
*object
,
10262 guint arg_unnamed_arg0
,
10263 const gchar
*arg_unnamed_arg1
)
10265 logindLogin1ManagerSkeleton
*skeleton
= LOGIND_LOGIN1_MANAGER_SKELETON (object
);
10267 GList
*connections
, *l
;
10268 GVariant
*signal_variant
;
10269 connections
= g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton
));
10271 signal_variant
= g_variant_ref_sink (g_variant_new ("(uo)",
10273 arg_unnamed_arg1
));
10274 for (l
= connections
; l
!= NULL
; l
= l
->next
)
10276 GDBusConnection
*connection
= l
->data
;
10277 g_dbus_connection_emit_signal (connection
,
10278 NULL
, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton
)), "org.freedesktop.login1.Manager", "UserNew",
10279 signal_variant
, NULL
);
10281 g_variant_unref (signal_variant
);
10282 g_list_free_full (connections
, g_object_unref
);
10286 _logind_login1_manager_on_signal_user_removed (
10287 logindLogin1Manager
*object
,
10288 guint arg_unnamed_arg0
,
10289 const gchar
*arg_unnamed_arg1
)
10291 logindLogin1ManagerSkeleton
*skeleton
= LOGIND_LOGIN1_MANAGER_SKELETON (object
);
10293 GList
*connections
, *l
;
10294 GVariant
*signal_variant
;
10295 connections
= g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton
));
10297 signal_variant
= g_variant_ref_sink (g_variant_new ("(uo)",
10299 arg_unnamed_arg1
));
10300 for (l
= connections
; l
!= NULL
; l
= l
->next
)
10302 GDBusConnection
*connection
= l
->data
;
10303 g_dbus_connection_emit_signal (connection
,
10304 NULL
, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton
)), "org.freedesktop.login1.Manager", "UserRemoved",
10305 signal_variant
, NULL
);
10307 g_variant_unref (signal_variant
);
10308 g_list_free_full (connections
, g_object_unref
);
10312 _logind_login1_manager_on_signal_seat_new (
10313 logindLogin1Manager
*object
,
10314 const gchar
*arg_unnamed_arg0
,
10315 const gchar
*arg_unnamed_arg1
)
10317 logindLogin1ManagerSkeleton
*skeleton
= LOGIND_LOGIN1_MANAGER_SKELETON (object
);
10319 GList
*connections
, *l
;
10320 GVariant
*signal_variant
;
10321 connections
= g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton
));
10323 signal_variant
= g_variant_ref_sink (g_variant_new ("(so)",
10325 arg_unnamed_arg1
));
10326 for (l
= connections
; l
!= NULL
; l
= l
->next
)
10328 GDBusConnection
*connection
= l
->data
;
10329 g_dbus_connection_emit_signal (connection
,
10330 NULL
, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton
)), "org.freedesktop.login1.Manager", "SeatNew",
10331 signal_variant
, NULL
);
10333 g_variant_unref (signal_variant
);
10334 g_list_free_full (connections
, g_object_unref
);
10338 _logind_login1_manager_on_signal_seat_removed (
10339 logindLogin1Manager
*object
,
10340 const gchar
*arg_unnamed_arg0
,
10341 const gchar
*arg_unnamed_arg1
)
10343 logindLogin1ManagerSkeleton
*skeleton
= LOGIND_LOGIN1_MANAGER_SKELETON (object
);
10345 GList
*connections
, *l
;
10346 GVariant
*signal_variant
;
10347 connections
= g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton
));
10349 signal_variant
= g_variant_ref_sink (g_variant_new ("(so)",
10351 arg_unnamed_arg1
));
10352 for (l
= connections
; l
!= NULL
; l
= l
->next
)
10354 GDBusConnection
*connection
= l
->data
;
10355 g_dbus_connection_emit_signal (connection
,
10356 NULL
, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton
)), "org.freedesktop.login1.Manager", "SeatRemoved",
10357 signal_variant
, NULL
);
10359 g_variant_unref (signal_variant
);
10360 g_list_free_full (connections
, g_object_unref
);
10364 _logind_login1_manager_on_signal_prepare_for_shutdown (
10365 logindLogin1Manager
*object
,
10366 gboolean arg_unnamed_arg0
)
10368 logindLogin1ManagerSkeleton
*skeleton
= LOGIND_LOGIN1_MANAGER_SKELETON (object
);
10370 GList
*connections
, *l
;
10371 GVariant
*signal_variant
;
10372 connections
= g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton
));
10374 signal_variant
= g_variant_ref_sink (g_variant_new ("(b)",
10375 arg_unnamed_arg0
));
10376 for (l
= connections
; l
!= NULL
; l
= l
->next
)
10378 GDBusConnection
*connection
= l
->data
;
10379 g_dbus_connection_emit_signal (connection
,
10380 NULL
, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton
)), "org.freedesktop.login1.Manager", "PrepareForShutdown",
10381 signal_variant
, NULL
);
10383 g_variant_unref (signal_variant
);
10384 g_list_free_full (connections
, g_object_unref
);
10388 _logind_login1_manager_on_signal_prepare_for_sleep (
10389 logindLogin1Manager
*object
,
10390 gboolean arg_unnamed_arg0
)
10392 logindLogin1ManagerSkeleton
*skeleton
= LOGIND_LOGIN1_MANAGER_SKELETON (object
);
10394 GList
*connections
, *l
;
10395 GVariant
*signal_variant
;
10396 connections
= g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton
));
10398 signal_variant
= g_variant_ref_sink (g_variant_new ("(b)",
10399 arg_unnamed_arg0
));
10400 for (l
= connections
; l
!= NULL
; l
= l
->next
)
10402 GDBusConnection
*connection
= l
->data
;
10403 g_dbus_connection_emit_signal (connection
,
10404 NULL
, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton
)), "org.freedesktop.login1.Manager", "PrepareForSleep",
10405 signal_variant
, NULL
);
10407 g_variant_unref (signal_variant
);
10408 g_list_free_full (connections
, g_object_unref
);
10411 static void logind_login1_manager_skeleton_iface_init (logindLogin1ManagerIface
*iface
);
10412 #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
10413 G_DEFINE_TYPE_WITH_CODE (logindLogin1ManagerSkeleton
, logind_login1_manager_skeleton
, G_TYPE_DBUS_INTERFACE_SKELETON
,
10414 G_ADD_PRIVATE (logindLogin1ManagerSkeleton
)
10415 G_IMPLEMENT_INTERFACE (LOGIND_TYPE_LOGIN1_MANAGER
, logind_login1_manager_skeleton_iface_init
));
10418 G_DEFINE_TYPE_WITH_CODE (logindLogin1ManagerSkeleton
, logind_login1_manager_skeleton
, G_TYPE_DBUS_INTERFACE_SKELETON
,
10419 G_IMPLEMENT_INTERFACE (LOGIND_TYPE_LOGIN1_MANAGER
, logind_login1_manager_skeleton_iface_init
));
10423 logind_login1_manager_skeleton_finalize (GObject
*object
)
10425 logindLogin1ManagerSkeleton
*skeleton
= LOGIND_LOGIN1_MANAGER_SKELETON (object
);
10427 for (n
= 0; n
< 18; n
++)
10428 g_value_unset (&skeleton
->priv
->properties
[n
]);
10429 g_free (skeleton
->priv
->properties
);
10430 g_list_free_full (skeleton
->priv
->changed_properties
, (GDestroyNotify
) _changed_property_free
);
10431 if (skeleton
->priv
->changed_properties_idle_source
!= NULL
)
10432 g_source_destroy (skeleton
->priv
->changed_properties_idle_source
);
10433 g_main_context_unref (skeleton
->priv
->context
);
10434 g_mutex_clear (&skeleton
->priv
->lock
);
10435 G_OBJECT_CLASS (logind_login1_manager_skeleton_parent_class
)->finalize (object
);
10439 logind_login1_manager_skeleton_get_property (GObject
*object
,
10442 GParamSpec
*pspec G_GNUC_UNUSED
)
10444 logindLogin1ManagerSkeleton
*skeleton
= LOGIND_LOGIN1_MANAGER_SKELETON (object
);
10445 g_assert (prop_id
!= 0 && prop_id
- 1 < 18);
10446 g_mutex_lock (&skeleton
->priv
->lock
);
10447 g_value_copy (&skeleton
->priv
->properties
[prop_id
- 1], value
);
10448 g_mutex_unlock (&skeleton
->priv
->lock
);
10452 _logind_login1_manager_emit_changed (gpointer user_data
)
10454 logindLogin1ManagerSkeleton
*skeleton
= LOGIND_LOGIN1_MANAGER_SKELETON (user_data
);
10456 GVariantBuilder builder
;
10457 GVariantBuilder invalidated_builder
;
10460 g_mutex_lock (&skeleton
->priv
->lock
);
10461 g_variant_builder_init (&builder
, G_VARIANT_TYPE ("a{sv}"));
10462 g_variant_builder_init (&invalidated_builder
, G_VARIANT_TYPE ("as"));
10463 for (l
= skeleton
->priv
->changed_properties
, num_changes
= 0; l
!= NULL
; l
= l
->next
)
10465 ChangedProperty
*cp
= l
->data
;
10467 const GValue
*cur_value
;
10469 cur_value
= &skeleton
->priv
->properties
[cp
->prop_id
- 1];
10470 if (!_g_value_equal (cur_value
, &cp
->orig_value
))
10472 variant
= g_dbus_gvalue_to_gvariant (cur_value
, G_VARIANT_TYPE (cp
->info
->parent_struct
.signature
));
10473 g_variant_builder_add (&builder
, "{sv}", cp
->info
->parent_struct
.name
, variant
);
10474 g_variant_unref (variant
);
10478 if (num_changes
> 0)
10480 GList
*connections
, *ll
;
10481 GVariant
*signal_variant
;
10482 signal_variant
= g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "org.freedesktop.login1.Manager",
10483 &builder
, &invalidated_builder
));
10484 connections
= g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton
));
10485 for (ll
= connections
; ll
!= NULL
; ll
= ll
->next
)
10487 GDBusConnection
*connection
= ll
->data
;
10489 g_dbus_connection_emit_signal (connection
,
10490 NULL
, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton
)),
10491 "org.freedesktop.DBus.Properties",
10492 "PropertiesChanged",
10496 g_variant_unref (signal_variant
);
10497 g_list_free_full (connections
, g_object_unref
);
10501 g_variant_builder_clear (&builder
);
10502 g_variant_builder_clear (&invalidated_builder
);
10504 g_list_free_full (skeleton
->priv
->changed_properties
, (GDestroyNotify
) _changed_property_free
);
10505 skeleton
->priv
->changed_properties
= NULL
;
10506 skeleton
->priv
->changed_properties_idle_source
= NULL
;
10507 g_mutex_unlock (&skeleton
->priv
->lock
);
10512 _logind_login1_manager_schedule_emit_changed (logindLogin1ManagerSkeleton
*skeleton
, const _ExtendedGDBusPropertyInfo
*info
, guint prop_id
, const GValue
*orig_value
)
10514 ChangedProperty
*cp
;
10517 for (l
= skeleton
->priv
->changed_properties
; l
!= NULL
; l
= l
->next
)
10519 ChangedProperty
*i_cp
= l
->data
;
10520 if (i_cp
->info
== info
)
10528 cp
= g_new0 (ChangedProperty
, 1);
10529 cp
->prop_id
= prop_id
;
10531 skeleton
->priv
->changed_properties
= g_list_prepend (skeleton
->priv
->changed_properties
, cp
);
10532 g_value_init (&cp
->orig_value
, G_VALUE_TYPE (orig_value
));
10533 g_value_copy (orig_value
, &cp
->orig_value
);
10538 logind_login1_manager_skeleton_notify (GObject
*object
,
10539 GParamSpec
*pspec G_GNUC_UNUSED
)
10541 logindLogin1ManagerSkeleton
*skeleton
= LOGIND_LOGIN1_MANAGER_SKELETON (object
);
10542 g_mutex_lock (&skeleton
->priv
->lock
);
10543 if (skeleton
->priv
->changed_properties
!= NULL
&&
10544 skeleton
->priv
->changed_properties_idle_source
== NULL
)
10546 skeleton
->priv
->changed_properties_idle_source
= g_idle_source_new ();
10547 g_source_set_priority (skeleton
->priv
->changed_properties_idle_source
, G_PRIORITY_DEFAULT
);
10548 g_source_set_callback (skeleton
->priv
->changed_properties_idle_source
, _logind_login1_manager_emit_changed
, g_object_ref (skeleton
), (GDestroyNotify
) g_object_unref
);
10549 g_source_attach (skeleton
->priv
->changed_properties_idle_source
, skeleton
->priv
->context
);
10550 g_source_unref (skeleton
->priv
->changed_properties_idle_source
);
10552 g_mutex_unlock (&skeleton
->priv
->lock
);
10556 logind_login1_manager_skeleton_set_property (GObject
*object
,
10558 const GValue
*value
,
10561 logindLogin1ManagerSkeleton
*skeleton
= LOGIND_LOGIN1_MANAGER_SKELETON (object
);
10562 g_assert (prop_id
!= 0 && prop_id
- 1 < 18);
10563 g_mutex_lock (&skeleton
->priv
->lock
);
10564 g_object_freeze_notify (object
);
10565 if (!_g_value_equal (value
, &skeleton
->priv
->properties
[prop_id
- 1]))
10567 if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton
)) != NULL
)
10568 _logind_login1_manager_schedule_emit_changed (skeleton
, _logind_login1_manager_property_info_pointers
[prop_id
- 1], prop_id
, &skeleton
->priv
->properties
[prop_id
- 1]);
10569 g_value_copy (value
, &skeleton
->priv
->properties
[prop_id
- 1]);
10570 g_object_notify_by_pspec (object
, pspec
);
10572 g_mutex_unlock (&skeleton
->priv
->lock
);
10573 g_object_thaw_notify (object
);
10577 logind_login1_manager_skeleton_init (logindLogin1ManagerSkeleton
*skeleton
)
10579 #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
10580 skeleton
->priv
= logind_login1_manager_skeleton_get_instance_private (skeleton
);
10582 skeleton
->priv
= G_TYPE_INSTANCE_GET_PRIVATE (skeleton
, LOGIND_TYPE_LOGIN1_MANAGER_SKELETON
, logindLogin1ManagerSkeletonPrivate
);
10585 g_mutex_init (&skeleton
->priv
->lock
);
10586 skeleton
->priv
->context
= g_main_context_ref_thread_default ();
10587 skeleton
->priv
->properties
= g_new0 (GValue
, 18);
10588 g_value_init (&skeleton
->priv
->properties
[0], G_TYPE_UINT
);
10589 g_value_init (&skeleton
->priv
->properties
[1], G_TYPE_STRV
);
10590 g_value_init (&skeleton
->priv
->properties
[2], G_TYPE_STRV
);
10591 g_value_init (&skeleton
->priv
->properties
[3], G_TYPE_BOOLEAN
);
10592 g_value_init (&skeleton
->priv
->properties
[4], G_TYPE_BOOLEAN
);
10593 g_value_init (&skeleton
->priv
->properties
[5], G_TYPE_UINT64
);
10594 g_value_init (&skeleton
->priv
->properties
[6], G_TYPE_UINT64
);
10595 g_value_init (&skeleton
->priv
->properties
[7], G_TYPE_STRING
);
10596 g_value_init (&skeleton
->priv
->properties
[8], G_TYPE_STRING
);
10597 g_value_init (&skeleton
->priv
->properties
[9], G_TYPE_UINT64
);
10598 g_value_init (&skeleton
->priv
->properties
[10], G_TYPE_STRING
);
10599 g_value_init (&skeleton
->priv
->properties
[11], G_TYPE_STRING
);
10600 g_value_init (&skeleton
->priv
->properties
[12], G_TYPE_STRING
);
10601 g_value_init (&skeleton
->priv
->properties
[13], G_TYPE_STRING
);
10602 g_value_init (&skeleton
->priv
->properties
[14], G_TYPE_STRING
);
10603 g_value_init (&skeleton
->priv
->properties
[15], G_TYPE_UINT64
);
10604 g_value_init (&skeleton
->priv
->properties
[16], G_TYPE_BOOLEAN
);
10605 g_value_init (&skeleton
->priv
->properties
[17], G_TYPE_BOOLEAN
);
10609 logind_login1_manager_skeleton_get_nauto_vts (logindLogin1Manager
*object
)
10611 logindLogin1ManagerSkeleton
*skeleton
= LOGIND_LOGIN1_MANAGER_SKELETON (object
);
10613 g_mutex_lock (&skeleton
->priv
->lock
);
10614 value
= g_value_get_uint (&(skeleton
->priv
->properties
[0]));
10615 g_mutex_unlock (&skeleton
->priv
->lock
);
10619 static const gchar
*const *
10620 logind_login1_manager_skeleton_get_kill_only_users (logindLogin1Manager
*object
)
10622 logindLogin1ManagerSkeleton
*skeleton
= LOGIND_LOGIN1_MANAGER_SKELETON (object
);
10623 const gchar
*const *value
;
10624 g_mutex_lock (&skeleton
->priv
->lock
);
10625 value
= g_value_get_boxed (&(skeleton
->priv
->properties
[1]));
10626 g_mutex_unlock (&skeleton
->priv
->lock
);
10630 static const gchar
*const *
10631 logind_login1_manager_skeleton_get_kill_exclude_users (logindLogin1Manager
*object
)
10633 logindLogin1ManagerSkeleton
*skeleton
= LOGIND_LOGIN1_MANAGER_SKELETON (object
);
10634 const gchar
*const *value
;
10635 g_mutex_lock (&skeleton
->priv
->lock
);
10636 value
= g_value_get_boxed (&(skeleton
->priv
->properties
[2]));
10637 g_mutex_unlock (&skeleton
->priv
->lock
);
10642 logind_login1_manager_skeleton_get_kill_user_processes (logindLogin1Manager
*object
)
10644 logindLogin1ManagerSkeleton
*skeleton
= LOGIND_LOGIN1_MANAGER_SKELETON (object
);
10646 g_mutex_lock (&skeleton
->priv
->lock
);
10647 value
= g_value_get_boolean (&(skeleton
->priv
->properties
[3]));
10648 g_mutex_unlock (&skeleton
->priv
->lock
);
10653 logind_login1_manager_skeleton_get_idle_hint (logindLogin1Manager
*object
)
10655 logindLogin1ManagerSkeleton
*skeleton
= LOGIND_LOGIN1_MANAGER_SKELETON (object
);
10657 g_mutex_lock (&skeleton
->priv
->lock
);
10658 value
= g_value_get_boolean (&(skeleton
->priv
->properties
[4]));
10659 g_mutex_unlock (&skeleton
->priv
->lock
);
10664 logind_login1_manager_skeleton_get_idle_since_hint (logindLogin1Manager
*object
)
10666 logindLogin1ManagerSkeleton
*skeleton
= LOGIND_LOGIN1_MANAGER_SKELETON (object
);
10668 g_mutex_lock (&skeleton
->priv
->lock
);
10669 value
= g_value_get_uint64 (&(skeleton
->priv
->properties
[5]));
10670 g_mutex_unlock (&skeleton
->priv
->lock
);
10675 logind_login1_manager_skeleton_get_idle_since_hint_monotonic (logindLogin1Manager
*object
)
10677 logindLogin1ManagerSkeleton
*skeleton
= LOGIND_LOGIN1_MANAGER_SKELETON (object
);
10679 g_mutex_lock (&skeleton
->priv
->lock
);
10680 value
= g_value_get_uint64 (&(skeleton
->priv
->properties
[6]));
10681 g_mutex_unlock (&skeleton
->priv
->lock
);
10685 static const gchar
*
10686 logind_login1_manager_skeleton_get_block_inhibited (logindLogin1Manager
*object
)
10688 logindLogin1ManagerSkeleton
*skeleton
= LOGIND_LOGIN1_MANAGER_SKELETON (object
);
10689 const gchar
*value
;
10690 g_mutex_lock (&skeleton
->priv
->lock
);
10691 value
= g_value_get_string (&(skeleton
->priv
->properties
[7]));
10692 g_mutex_unlock (&skeleton
->priv
->lock
);
10696 static const gchar
*
10697 logind_login1_manager_skeleton_get_delay_inhibited (logindLogin1Manager
*object
)
10699 logindLogin1ManagerSkeleton
*skeleton
= LOGIND_LOGIN1_MANAGER_SKELETON (object
);
10700 const gchar
*value
;
10701 g_mutex_lock (&skeleton
->priv
->lock
);
10702 value
= g_value_get_string (&(skeleton
->priv
->properties
[8]));
10703 g_mutex_unlock (&skeleton
->priv
->lock
);
10708 logind_login1_manager_skeleton_get_inhibit_delay_max_usec (logindLogin1Manager
*object
)
10710 logindLogin1ManagerSkeleton
*skeleton
= LOGIND_LOGIN1_MANAGER_SKELETON (object
);
10712 g_mutex_lock (&skeleton
->priv
->lock
);
10713 value
= g_value_get_uint64 (&(skeleton
->priv
->properties
[9]));
10714 g_mutex_unlock (&skeleton
->priv
->lock
);
10718 static const gchar
*
10719 logind_login1_manager_skeleton_get_handle_power_key (logindLogin1Manager
*object
)
10721 logindLogin1ManagerSkeleton
*skeleton
= LOGIND_LOGIN1_MANAGER_SKELETON (object
);
10722 const gchar
*value
;
10723 g_mutex_lock (&skeleton
->priv
->lock
);
10724 value
= g_value_get_string (&(skeleton
->priv
->properties
[10]));
10725 g_mutex_unlock (&skeleton
->priv
->lock
);
10729 static const gchar
*
10730 logind_login1_manager_skeleton_get_handle_suspend_key (logindLogin1Manager
*object
)
10732 logindLogin1ManagerSkeleton
*skeleton
= LOGIND_LOGIN1_MANAGER_SKELETON (object
);
10733 const gchar
*value
;
10734 g_mutex_lock (&skeleton
->priv
->lock
);
10735 value
= g_value_get_string (&(skeleton
->priv
->properties
[11]));
10736 g_mutex_unlock (&skeleton
->priv
->lock
);
10740 static const gchar
*
10741 logind_login1_manager_skeleton_get_handle_hibernate_key (logindLogin1Manager
*object
)
10743 logindLogin1ManagerSkeleton
*skeleton
= LOGIND_LOGIN1_MANAGER_SKELETON (object
);
10744 const gchar
*value
;
10745 g_mutex_lock (&skeleton
->priv
->lock
);
10746 value
= g_value_get_string (&(skeleton
->priv
->properties
[12]));
10747 g_mutex_unlock (&skeleton
->priv
->lock
);
10751 static const gchar
*
10752 logind_login1_manager_skeleton_get_handle_lid_switch (logindLogin1Manager
*object
)
10754 logindLogin1ManagerSkeleton
*skeleton
= LOGIND_LOGIN1_MANAGER_SKELETON (object
);
10755 const gchar
*value
;
10756 g_mutex_lock (&skeleton
->priv
->lock
);
10757 value
= g_value_get_string (&(skeleton
->priv
->properties
[13]));
10758 g_mutex_unlock (&skeleton
->priv
->lock
);
10762 static const gchar
*
10763 logind_login1_manager_skeleton_get_idle_action (logindLogin1Manager
*object
)
10765 logindLogin1ManagerSkeleton
*skeleton
= LOGIND_LOGIN1_MANAGER_SKELETON (object
);
10766 const gchar
*value
;
10767 g_mutex_lock (&skeleton
->priv
->lock
);
10768 value
= g_value_get_string (&(skeleton
->priv
->properties
[14]));
10769 g_mutex_unlock (&skeleton
->priv
->lock
);
10774 logind_login1_manager_skeleton_get_idle_action_usec (logindLogin1Manager
*object
)
10776 logindLogin1ManagerSkeleton
*skeleton
= LOGIND_LOGIN1_MANAGER_SKELETON (object
);
10778 g_mutex_lock (&skeleton
->priv
->lock
);
10779 value
= g_value_get_uint64 (&(skeleton
->priv
->properties
[15]));
10780 g_mutex_unlock (&skeleton
->priv
->lock
);
10785 logind_login1_manager_skeleton_get_preparing_for_shutdown (logindLogin1Manager
*object
)
10787 logindLogin1ManagerSkeleton
*skeleton
= LOGIND_LOGIN1_MANAGER_SKELETON (object
);
10789 g_mutex_lock (&skeleton
->priv
->lock
);
10790 value
= g_value_get_boolean (&(skeleton
->priv
->properties
[16]));
10791 g_mutex_unlock (&skeleton
->priv
->lock
);
10796 logind_login1_manager_skeleton_get_preparing_for_sleep (logindLogin1Manager
*object
)
10798 logindLogin1ManagerSkeleton
*skeleton
= LOGIND_LOGIN1_MANAGER_SKELETON (object
);
10800 g_mutex_lock (&skeleton
->priv
->lock
);
10801 value
= g_value_get_boolean (&(skeleton
->priv
->properties
[17]));
10802 g_mutex_unlock (&skeleton
->priv
->lock
);
10807 logind_login1_manager_skeleton_class_init (logindLogin1ManagerSkeletonClass
*klass
)
10809 GObjectClass
*gobject_class
;
10810 GDBusInterfaceSkeletonClass
*skeleton_class
;
10812 gobject_class
= G_OBJECT_CLASS (klass
);
10813 gobject_class
->finalize
= logind_login1_manager_skeleton_finalize
;
10814 gobject_class
->get_property
= logind_login1_manager_skeleton_get_property
;
10815 gobject_class
->set_property
= logind_login1_manager_skeleton_set_property
;
10816 gobject_class
->notify
= logind_login1_manager_skeleton_notify
;
10819 logind_login1_manager_override_properties (gobject_class
, 1);
10821 skeleton_class
= G_DBUS_INTERFACE_SKELETON_CLASS (klass
);
10822 skeleton_class
->get_info
= logind_login1_manager_skeleton_dbus_interface_get_info
;
10823 skeleton_class
->get_properties
= logind_login1_manager_skeleton_dbus_interface_get_properties
;
10824 skeleton_class
->flush
= logind_login1_manager_skeleton_dbus_interface_flush
;
10825 skeleton_class
->get_vtable
= logind_login1_manager_skeleton_dbus_interface_get_vtable
;
10827 #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38
10828 g_type_class_add_private (klass
, sizeof (logindLogin1ManagerSkeletonPrivate
));
10833 logind_login1_manager_skeleton_iface_init (logindLogin1ManagerIface
*iface
)
10835 iface
->session_new
= _logind_login1_manager_on_signal_session_new
;
10836 iface
->session_removed
= _logind_login1_manager_on_signal_session_removed
;
10837 iface
->user_new
= _logind_login1_manager_on_signal_user_new
;
10838 iface
->user_removed
= _logind_login1_manager_on_signal_user_removed
;
10839 iface
->seat_new
= _logind_login1_manager_on_signal_seat_new
;
10840 iface
->seat_removed
= _logind_login1_manager_on_signal_seat_removed
;
10841 iface
->prepare_for_shutdown
= _logind_login1_manager_on_signal_prepare_for_shutdown
;
10842 iface
->prepare_for_sleep
= _logind_login1_manager_on_signal_prepare_for_sleep
;
10843 iface
->get_nauto_vts
= logind_login1_manager_skeleton_get_nauto_vts
;
10844 iface
->get_kill_only_users
= logind_login1_manager_skeleton_get_kill_only_users
;
10845 iface
->get_kill_exclude_users
= logind_login1_manager_skeleton_get_kill_exclude_users
;
10846 iface
->get_kill_user_processes
= logind_login1_manager_skeleton_get_kill_user_processes
;
10847 iface
->get_idle_hint
= logind_login1_manager_skeleton_get_idle_hint
;
10848 iface
->get_idle_since_hint
= logind_login1_manager_skeleton_get_idle_since_hint
;
10849 iface
->get_idle_since_hint_monotonic
= logind_login1_manager_skeleton_get_idle_since_hint_monotonic
;
10850 iface
->get_block_inhibited
= logind_login1_manager_skeleton_get_block_inhibited
;
10851 iface
->get_delay_inhibited
= logind_login1_manager_skeleton_get_delay_inhibited
;
10852 iface
->get_inhibit_delay_max_usec
= logind_login1_manager_skeleton_get_inhibit_delay_max_usec
;
10853 iface
->get_handle_power_key
= logind_login1_manager_skeleton_get_handle_power_key
;
10854 iface
->get_handle_suspend_key
= logind_login1_manager_skeleton_get_handle_suspend_key
;
10855 iface
->get_handle_hibernate_key
= logind_login1_manager_skeleton_get_handle_hibernate_key
;
10856 iface
->get_handle_lid_switch
= logind_login1_manager_skeleton_get_handle_lid_switch
;
10857 iface
->get_idle_action
= logind_login1_manager_skeleton_get_idle_action
;
10858 iface
->get_idle_action_usec
= logind_login1_manager_skeleton_get_idle_action_usec
;
10859 iface
->get_preparing_for_shutdown
= logind_login1_manager_skeleton_get_preparing_for_shutdown
;
10860 iface
->get_preparing_for_sleep
= logind_login1_manager_skeleton_get_preparing_for_sleep
;
10864 * logind_login1_manager_skeleton_new:
10866 * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-login1-Manager.top_of_page">org.freedesktop.login1.Manager</link>.
10868 * Returns: (transfer full) (type logindLogin1ManagerSkeleton): The skeleton object.
10870 logindLogin1Manager
*
10871 logind_login1_manager_skeleton_new (void)
10873 return LOGIND_LOGIN1_MANAGER (g_object_new (LOGIND_TYPE_LOGIN1_MANAGER_SKELETON
, NULL
));