regenerate proper namespaced code for other 3 interfaces, fix their includes accordingly
[systembsd.git] / src / interfaces / logind / logind-gen.c
CommitLineData
5047f6bf 1/*
2 * Generated by gdbus-codegen 2.40.0. DO NOT EDIT.
3 *
4 * The license of this code is the same as for the source it was derived from.
5 */
6
7#ifdef HAVE_CONFIG_H
8# include "config.h"
9#endif
10
1aa981f7 11#include "logind-gen.h"
5047f6bf 12
13#include <string.h>
14#ifdef G_OS_UNIX
15# include <gio/gunixfdlist.h>
16#endif
17
18typedef struct
19{
20 GDBusArgInfo parent_struct;
21 gboolean use_gvariant;
22} _ExtendedGDBusArgInfo;
23
24typedef struct
25{
26 GDBusMethodInfo parent_struct;
27 const gchar *signal_name;
28 gboolean pass_fdlist;
29} _ExtendedGDBusMethodInfo;
30
31typedef struct
32{
33 GDBusSignalInfo parent_struct;
34 const gchar *signal_name;
35} _ExtendedGDBusSignalInfo;
36
37typedef struct
38{
39 GDBusPropertyInfo parent_struct;
40 const gchar *hyphen_name;
41 gboolean use_gvariant;
42} _ExtendedGDBusPropertyInfo;
43
44typedef struct
45{
46 GDBusInterfaceInfo parent_struct;
47 const gchar *hyphen_name;
48} _ExtendedGDBusInterfaceInfo;
49
50typedef struct
51{
52 const _ExtendedGDBusPropertyInfo *info;
53 guint prop_id;
54 GValue orig_value; /* the value before the change */
55} ChangedProperty;
56
57static void
58_changed_property_free (ChangedProperty *data)
59{
60 g_value_unset (&data->orig_value);
61 g_free (data);
62}
63
64static gboolean
65_g_strv_equal0 (gchar **a, gchar **b)
66{
67 gboolean ret = FALSE;
68 guint n;
69 if (a == NULL && b == NULL)
70 {
71 ret = TRUE;
72 goto out;
73 }
74 if (a == NULL || b == NULL)
75 goto out;
76 if (g_strv_length (a) != g_strv_length (b))
77 goto out;
78 for (n = 0; a[n] != NULL; n++)
79 if (g_strcmp0 (a[n], b[n]) != 0)
80 goto out;
81 ret = TRUE;
82out:
83 return ret;
84}
85
86static gboolean
87_g_variant_equal0 (GVariant *a, GVariant *b)
88{
89 gboolean ret = FALSE;
90 if (a == NULL && b == NULL)
91 {
92 ret = TRUE;
93 goto out;
94 }
95 if (a == NULL || b == NULL)
96 goto out;
97 ret = g_variant_equal (a, b);
98out:
99 return ret;
100}
101
102G_GNUC_UNUSED static gboolean
103_g_value_equal (const GValue *a, const GValue *b)
104{
105 gboolean ret = FALSE;
106 g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b));
107 switch (G_VALUE_TYPE (a))
108 {
109 case G_TYPE_BOOLEAN:
110 ret = (g_value_get_boolean (a) == g_value_get_boolean (b));
111 break;
112 case G_TYPE_UCHAR:
113 ret = (g_value_get_uchar (a) == g_value_get_uchar (b));
114 break;
115 case G_TYPE_INT:
116 ret = (g_value_get_int (a) == g_value_get_int (b));
117 break;
118 case G_TYPE_UINT:
119 ret = (g_value_get_uint (a) == g_value_get_uint (b));
120 break;
121 case G_TYPE_INT64:
122 ret = (g_value_get_int64 (a) == g_value_get_int64 (b));
123 break;
124 case G_TYPE_UINT64:
125 ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b));
126 break;
127 case G_TYPE_DOUBLE:
128 {
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;
133 }
134 break;
135 case G_TYPE_STRING:
136 ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0);
137 break;
138 case G_TYPE_VARIANT:
139 ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b));
140 break;
141 default:
142 if (G_VALUE_TYPE (a) == G_TYPE_STRV)
143 ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b));
144 else
145 g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a)));
146 break;
147 }
148 return ret;
149}
150
151/* ------------------------------------------------------------------------
152 * Code for interface org.freedesktop.login1.Manager
153 * ------------------------------------------------------------------------
154 */
155
156/**
1aa981f7 157 * SECTION:logindLogin1Manager
158 * @title: logindLogin1Manager
5047f6bf 159 * @short_description: Generated C code for the org.freedesktop.login1.Manager D-Bus interface
160 *
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.
162 */
163
164/* ---- Introspection data for org.freedesktop.login1.Manager ---- */
165
1aa981f7 166static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_get_session_IN_ARG_unnamed_arg0 =
5047f6bf 167{
168 {
169 -1,
170 (gchar *) "unnamed_arg0",
171 (gchar *) "s",
172 NULL
173 },
174 FALSE
175};
176
1aa981f7 177static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_get_session_IN_ARG_pointers[] =
5047f6bf 178{
1aa981f7 179 &_logind_login1_manager_method_info_get_session_IN_ARG_unnamed_arg0,
5047f6bf 180 NULL
181};
182
1aa981f7 183static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_get_session_OUT_ARG_unnamed_arg1 =
5047f6bf 184{
185 {
186 -1,
187 (gchar *) "unnamed_arg1",
188 (gchar *) "o",
189 NULL
190 },
191 FALSE
192};
193
1aa981f7 194static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_get_session_OUT_ARG_pointers[] =
5047f6bf 195{
1aa981f7 196 &_logind_login1_manager_method_info_get_session_OUT_ARG_unnamed_arg1,
5047f6bf 197 NULL
198};
199
1aa981f7 200static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_get_session =
5047f6bf 201{
202 {
203 -1,
204 (gchar *) "GetSession",
1aa981f7 205 (GDBusArgInfo **) &_logind_login1_manager_method_info_get_session_IN_ARG_pointers,
206 (GDBusArgInfo **) &_logind_login1_manager_method_info_get_session_OUT_ARG_pointers,
5047f6bf 207 NULL
208 },
209 "handle-get-session",
210 FALSE
211};
212
1aa981f7 213static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_get_session_by_pid_IN_ARG_unnamed_arg0 =
5047f6bf 214{
215 {
216 -1,
217 (gchar *) "unnamed_arg0",
218 (gchar *) "u",
219 NULL
220 },
221 FALSE
222};
223
1aa981f7 224static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_get_session_by_pid_IN_ARG_pointers[] =
5047f6bf 225{
1aa981f7 226 &_logind_login1_manager_method_info_get_session_by_pid_IN_ARG_unnamed_arg0,
5047f6bf 227 NULL
228};
229
1aa981f7 230static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_get_session_by_pid_OUT_ARG_unnamed_arg1 =
5047f6bf 231{
232 {
233 -1,
234 (gchar *) "unnamed_arg1",
235 (gchar *) "o",
236 NULL
237 },
238 FALSE
239};
240
1aa981f7 241static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_get_session_by_pid_OUT_ARG_pointers[] =
5047f6bf 242{
1aa981f7 243 &_logind_login1_manager_method_info_get_session_by_pid_OUT_ARG_unnamed_arg1,
5047f6bf 244 NULL
245};
246
1aa981f7 247static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_get_session_by_pid =
5047f6bf 248{
249 {
250 -1,
251 (gchar *) "GetSessionByPID",
1aa981f7 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,
5047f6bf 254 NULL
255 },
256 "handle-get-session-by-pid",
257 FALSE
258};
259
1aa981f7 260static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_get_user_IN_ARG_unnamed_arg0 =
5047f6bf 261{
262 {
263 -1,
264 (gchar *) "unnamed_arg0",
265 (gchar *) "u",
266 NULL
267 },
268 FALSE
269};
270
1aa981f7 271static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_get_user_IN_ARG_pointers[] =
5047f6bf 272{
1aa981f7 273 &_logind_login1_manager_method_info_get_user_IN_ARG_unnamed_arg0,
5047f6bf 274 NULL
275};
276
1aa981f7 277static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_get_user_OUT_ARG_unnamed_arg1 =
5047f6bf 278{
279 {
280 -1,
281 (gchar *) "unnamed_arg1",
282 (gchar *) "o",
283 NULL
284 },
285 FALSE
286};
287
1aa981f7 288static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_get_user_OUT_ARG_pointers[] =
5047f6bf 289{
1aa981f7 290 &_logind_login1_manager_method_info_get_user_OUT_ARG_unnamed_arg1,
5047f6bf 291 NULL
292};
293
1aa981f7 294static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_get_user =
5047f6bf 295{
296 {
297 -1,
298 (gchar *) "GetUser",
1aa981f7 299 (GDBusArgInfo **) &_logind_login1_manager_method_info_get_user_IN_ARG_pointers,
300 (GDBusArgInfo **) &_logind_login1_manager_method_info_get_user_OUT_ARG_pointers,
5047f6bf 301 NULL
302 },
303 "handle-get-user",
304 FALSE
305};
306
1aa981f7 307static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_get_user_by_pid_IN_ARG_unnamed_arg0 =
5047f6bf 308{
309 {
310 -1,
311 (gchar *) "unnamed_arg0",
312 (gchar *) "u",
313 NULL
314 },
315 FALSE
316};
317
1aa981f7 318static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_get_user_by_pid_IN_ARG_pointers[] =
5047f6bf 319{
1aa981f7 320 &_logind_login1_manager_method_info_get_user_by_pid_IN_ARG_unnamed_arg0,
5047f6bf 321 NULL
322};
323
1aa981f7 324static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_get_user_by_pid_OUT_ARG_unnamed_arg1 =
5047f6bf 325{
326 {
327 -1,
328 (gchar *) "unnamed_arg1",
329 (gchar *) "o",
330 NULL
331 },
332 FALSE
333};
334
1aa981f7 335static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_get_user_by_pid_OUT_ARG_pointers[] =
5047f6bf 336{
1aa981f7 337 &_logind_login1_manager_method_info_get_user_by_pid_OUT_ARG_unnamed_arg1,
5047f6bf 338 NULL
339};
340
1aa981f7 341static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_get_user_by_pid =
5047f6bf 342{
343 {
344 -1,
345 (gchar *) "GetUserByPID",
1aa981f7 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,
5047f6bf 348 NULL
349 },
350 "handle-get-user-by-pid",
351 FALSE
352};
353
1aa981f7 354static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_get_seat_IN_ARG_unnamed_arg0 =
5047f6bf 355{
356 {
357 -1,
358 (gchar *) "unnamed_arg0",
359 (gchar *) "s",
360 NULL
361 },
362 FALSE
363};
364
1aa981f7 365static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_get_seat_IN_ARG_pointers[] =
5047f6bf 366{
1aa981f7 367 &_logind_login1_manager_method_info_get_seat_IN_ARG_unnamed_arg0,
5047f6bf 368 NULL
369};
370
1aa981f7 371static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_get_seat_OUT_ARG_unnamed_arg1 =
5047f6bf 372{
373 {
374 -1,
375 (gchar *) "unnamed_arg1",
376 (gchar *) "o",
377 NULL
378 },
379 FALSE
380};
381
1aa981f7 382static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_get_seat_OUT_ARG_pointers[] =
5047f6bf 383{
1aa981f7 384 &_logind_login1_manager_method_info_get_seat_OUT_ARG_unnamed_arg1,
5047f6bf 385 NULL
386};
387
1aa981f7 388static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_get_seat =
5047f6bf 389{
390 {
391 -1,
392 (gchar *) "GetSeat",
1aa981f7 393 (GDBusArgInfo **) &_logind_login1_manager_method_info_get_seat_IN_ARG_pointers,
394 (GDBusArgInfo **) &_logind_login1_manager_method_info_get_seat_OUT_ARG_pointers,
5047f6bf 395 NULL
396 },
397 "handle-get-seat",
398 FALSE
399};
400
1aa981f7 401static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_list_sessions_OUT_ARG_unnamed_arg0 =
5047f6bf 402{
403 {
404 -1,
405 (gchar *) "unnamed_arg0",
406 (gchar *) "a(susso)",
407 NULL
408 },
409 FALSE
410};
411
1aa981f7 412static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_list_sessions_OUT_ARG_pointers[] =
5047f6bf 413{
1aa981f7 414 &_logind_login1_manager_method_info_list_sessions_OUT_ARG_unnamed_arg0,
5047f6bf 415 NULL
416};
417
1aa981f7 418static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_list_sessions =
5047f6bf 419{
420 {
421 -1,
422 (gchar *) "ListSessions",
423 NULL,
1aa981f7 424 (GDBusArgInfo **) &_logind_login1_manager_method_info_list_sessions_OUT_ARG_pointers,
5047f6bf 425 NULL
426 },
427 "handle-list-sessions",
428 FALSE
429};
430
1aa981f7 431static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_list_users_OUT_ARG_unnamed_arg0 =
5047f6bf 432{
433 {
434 -1,
435 (gchar *) "unnamed_arg0",
436 (gchar *) "a(uso)",
437 NULL
438 },
439 FALSE
440};
441
1aa981f7 442static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_list_users_OUT_ARG_pointers[] =
5047f6bf 443{
1aa981f7 444 &_logind_login1_manager_method_info_list_users_OUT_ARG_unnamed_arg0,
5047f6bf 445 NULL
446};
447
1aa981f7 448static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_list_users =
5047f6bf 449{
450 {
451 -1,
452 (gchar *) "ListUsers",
453 NULL,
1aa981f7 454 (GDBusArgInfo **) &_logind_login1_manager_method_info_list_users_OUT_ARG_pointers,
5047f6bf 455 NULL
456 },
457 "handle-list-users",
458 FALSE
459};
460
1aa981f7 461static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_list_seats_OUT_ARG_unnamed_arg0 =
5047f6bf 462{
463 {
464 -1,
465 (gchar *) "unnamed_arg0",
466 (gchar *) "a(so)",
467 NULL
468 },
469 FALSE
470};
471
1aa981f7 472static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_list_seats_OUT_ARG_pointers[] =
5047f6bf 473{
1aa981f7 474 &_logind_login1_manager_method_info_list_seats_OUT_ARG_unnamed_arg0,
5047f6bf 475 NULL
476};
477
1aa981f7 478static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_list_seats =
5047f6bf 479{
480 {
481 -1,
482 (gchar *) "ListSeats",
483 NULL,
1aa981f7 484 (GDBusArgInfo **) &_logind_login1_manager_method_info_list_seats_OUT_ARG_pointers,
5047f6bf 485 NULL
486 },
487 "handle-list-seats",
488 FALSE
489};
490
1aa981f7 491static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_list_inhibitors_OUT_ARG_unnamed_arg0 =
5047f6bf 492{
493 {
494 -1,
495 (gchar *) "unnamed_arg0",
496 (gchar *) "a(ssssuu)",
497 NULL
498 },
499 FALSE
500};
501
1aa981f7 502static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_list_inhibitors_OUT_ARG_pointers[] =
5047f6bf 503{
1aa981f7 504 &_logind_login1_manager_method_info_list_inhibitors_OUT_ARG_unnamed_arg0,
5047f6bf 505 NULL
506};
507
1aa981f7 508static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_list_inhibitors =
5047f6bf 509{
510 {
511 -1,
512 (gchar *) "ListInhibitors",
513 NULL,
1aa981f7 514 (GDBusArgInfo **) &_logind_login1_manager_method_info_list_inhibitors_OUT_ARG_pointers,
5047f6bf 515 NULL
516 },
517 "handle-list-inhibitors",
518 FALSE
519};
520
1aa981f7 521static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_create_session_IN_ARG_unnamed_arg0 =
5047f6bf 522{
523 {
524 -1,
525 (gchar *) "unnamed_arg0",
526 (gchar *) "u",
527 NULL
528 },
529 FALSE
530};
531
1aa981f7 532static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_create_session_IN_ARG_unnamed_arg1 =
5047f6bf 533{
534 {
535 -1,
536 (gchar *) "unnamed_arg1",
537 (gchar *) "u",
538 NULL
539 },
540 FALSE
541};
542
1aa981f7 543static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_create_session_IN_ARG_unnamed_arg2 =
5047f6bf 544{
545 {
546 -1,
547 (gchar *) "unnamed_arg2",
548 (gchar *) "s",
549 NULL
550 },
551 FALSE
552};
553
1aa981f7 554static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_create_session_IN_ARG_unnamed_arg3 =
5047f6bf 555{
556 {
557 -1,
558 (gchar *) "unnamed_arg3",
559 (gchar *) "s",
560 NULL
561 },
562 FALSE
563};
564
1aa981f7 565static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_create_session_IN_ARG_unnamed_arg4 =
5047f6bf 566{
567 {
568 -1,
569 (gchar *) "unnamed_arg4",
570 (gchar *) "s",
571 NULL
572 },
573 FALSE
574};
575
1aa981f7 576static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_create_session_IN_ARG_unnamed_arg5 =
5047f6bf 577{
578 {
579 -1,
580 (gchar *) "unnamed_arg5",
581 (gchar *) "s",
582 NULL
583 },
584 FALSE
585};
586
1aa981f7 587static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_create_session_IN_ARG_unnamed_arg6 =
5047f6bf 588{
589 {
590 -1,
591 (gchar *) "unnamed_arg6",
592 (gchar *) "s",
593 NULL
594 },
595 FALSE
596};
597
1aa981f7 598static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_create_session_IN_ARG_unnamed_arg7 =
5047f6bf 599{
600 {
601 -1,
602 (gchar *) "unnamed_arg7",
603 (gchar *) "u",
604 NULL
605 },
606 FALSE
607};
608
1aa981f7 609static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_create_session_IN_ARG_unnamed_arg8 =
5047f6bf 610{
611 {
612 -1,
613 (gchar *) "unnamed_arg8",
614 (gchar *) "s",
615 NULL
616 },
617 FALSE
618};
619
1aa981f7 620static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_create_session_IN_ARG_unnamed_arg9 =
5047f6bf 621{
622 {
623 -1,
624 (gchar *) "unnamed_arg9",
625 (gchar *) "s",
626 NULL
627 },
628 FALSE
629};
630
1aa981f7 631static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_create_session_IN_ARG_unnamed_arg10 =
5047f6bf 632{
633 {
634 -1,
635 (gchar *) "unnamed_arg10",
636 (gchar *) "b",
637 NULL
638 },
639 FALSE
640};
641
1aa981f7 642static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_create_session_IN_ARG_unnamed_arg11 =
5047f6bf 643{
644 {
645 -1,
646 (gchar *) "unnamed_arg11",
647 (gchar *) "s",
648 NULL
649 },
650 FALSE
651};
652
1aa981f7 653static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_create_session_IN_ARG_unnamed_arg12 =
5047f6bf 654{
655 {
656 -1,
657 (gchar *) "unnamed_arg12",
658 (gchar *) "s",
659 NULL
660 },
661 FALSE
662};
663
1aa981f7 664static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_create_session_IN_ARG_unnamed_arg13 =
5047f6bf 665{
666 {
667 -1,
668 (gchar *) "unnamed_arg13",
669 (gchar *) "a(sv)",
670 NULL
671 },
672 FALSE
673};
674
1aa981f7 675static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_create_session_IN_ARG_pointers[] =
5047f6bf 676{
1aa981f7 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,
5047f6bf 691 NULL
692};
693
1aa981f7 694static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_create_session_OUT_ARG_unnamed_arg14 =
5047f6bf 695{
696 {
697 -1,
698 (gchar *) "unnamed_arg14",
699 (gchar *) "s",
700 NULL
701 },
702 FALSE
703};
704
1aa981f7 705static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_create_session_OUT_ARG_unnamed_arg15 =
5047f6bf 706{
707 {
708 -1,
709 (gchar *) "unnamed_arg15",
710 (gchar *) "o",
711 NULL
712 },
713 FALSE
714};
715
1aa981f7 716static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_create_session_OUT_ARG_unnamed_arg16 =
5047f6bf 717{
718 {
719 -1,
720 (gchar *) "unnamed_arg16",
721 (gchar *) "s",
722 NULL
723 },
724 FALSE
725};
726
1aa981f7 727static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_create_session_OUT_ARG_unnamed_arg17 =
5047f6bf 728{
729 {
730 -1,
731 (gchar *) "unnamed_arg17",
732 (gchar *) "h",
733 NULL
734 },
735 FALSE
736};
737
1aa981f7 738static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_create_session_OUT_ARG_unnamed_arg18 =
5047f6bf 739{
740 {
741 -1,
742 (gchar *) "unnamed_arg18",
743 (gchar *) "u",
744 NULL
745 },
746 FALSE
747};
748
1aa981f7 749static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_create_session_OUT_ARG_unnamed_arg19 =
5047f6bf 750{
751 {
752 -1,
753 (gchar *) "unnamed_arg19",
754 (gchar *) "s",
755 NULL
756 },
757 FALSE
758};
759
1aa981f7 760static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_create_session_OUT_ARG_unnamed_arg20 =
5047f6bf 761{
762 {
763 -1,
764 (gchar *) "unnamed_arg20",
765 (gchar *) "u",
766 NULL
767 },
768 FALSE
769};
770
1aa981f7 771static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_create_session_OUT_ARG_unnamed_arg21 =
5047f6bf 772{
773 {
774 -1,
775 (gchar *) "unnamed_arg21",
776 (gchar *) "b",
777 NULL
778 },
779 FALSE
780};
781
1aa981f7 782static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_create_session_OUT_ARG_pointers[] =
5047f6bf 783{
1aa981f7 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,
5047f6bf 792 NULL
793};
794
1aa981f7 795static const GDBusAnnotationInfo _logind_login1_manager_method_create_session_annotation_info_0 =
5047f6bf 796{
797 -1,
798 (gchar *) "org.freedesktop.systemd1.Privileged",
799 (gchar *) "true",
800 NULL
801};
802
1aa981f7 803static const GDBusAnnotationInfo * const _logind_login1_manager_method_create_session_annotation_info_pointers[] =
5047f6bf 804{
1aa981f7 805 &_logind_login1_manager_method_create_session_annotation_info_0,
5047f6bf 806 NULL
807};
808
1aa981f7 809static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_create_session =
5047f6bf 810{
811 {
812 -1,
813 (gchar *) "CreateSession",
1aa981f7 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
5047f6bf 817 },
818 "handle-create-session",
819 FALSE
820};
821
1aa981f7 822static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_release_session_IN_ARG_unnamed_arg0 =
5047f6bf 823{
824 {
825 -1,
826 (gchar *) "unnamed_arg0",
827 (gchar *) "s",
828 NULL
829 },
830 FALSE
831};
832
1aa981f7 833static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_release_session_IN_ARG_pointers[] =
5047f6bf 834{
1aa981f7 835 &_logind_login1_manager_method_info_release_session_IN_ARG_unnamed_arg0,
5047f6bf 836 NULL
837};
838
1aa981f7 839static const GDBusAnnotationInfo _logind_login1_manager_method_release_session_annotation_info_0 =
5047f6bf 840{
841 -1,
842 (gchar *) "org.freedesktop.systemd1.Privileged",
843 (gchar *) "true",
844 NULL
845};
846
1aa981f7 847static const GDBusAnnotationInfo * const _logind_login1_manager_method_release_session_annotation_info_pointers[] =
5047f6bf 848{
1aa981f7 849 &_logind_login1_manager_method_release_session_annotation_info_0,
5047f6bf 850 NULL
851};
852
1aa981f7 853static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_release_session =
5047f6bf 854{
855 {
856 -1,
857 (gchar *) "ReleaseSession",
1aa981f7 858 (GDBusArgInfo **) &_logind_login1_manager_method_info_release_session_IN_ARG_pointers,
5047f6bf 859 NULL,
1aa981f7 860 (GDBusAnnotationInfo **) &_logind_login1_manager_method_release_session_annotation_info_pointers
5047f6bf 861 },
862 "handle-release-session",
863 FALSE
864};
865
1aa981f7 866static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_activate_session_IN_ARG_unnamed_arg0 =
5047f6bf 867{
868 {
869 -1,
870 (gchar *) "unnamed_arg0",
871 (gchar *) "s",
872 NULL
873 },
874 FALSE
875};
876
1aa981f7 877static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_activate_session_IN_ARG_pointers[] =
5047f6bf 878{
1aa981f7 879 &_logind_login1_manager_method_info_activate_session_IN_ARG_unnamed_arg0,
5047f6bf 880 NULL
881};
882
1aa981f7 883static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_activate_session =
5047f6bf 884{
885 {
886 -1,
887 (gchar *) "ActivateSession",
1aa981f7 888 (GDBusArgInfo **) &_logind_login1_manager_method_info_activate_session_IN_ARG_pointers,
5047f6bf 889 NULL,
890 NULL
891 },
892 "handle-activate-session",
893 FALSE
894};
895
1aa981f7 896static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_activate_session_on_seat_IN_ARG_unnamed_arg0 =
5047f6bf 897{
898 {
899 -1,
900 (gchar *) "unnamed_arg0",
901 (gchar *) "s",
902 NULL
903 },
904 FALSE
905};
906
1aa981f7 907static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_activate_session_on_seat_IN_ARG_unnamed_arg1 =
5047f6bf 908{
909 {
910 -1,
911 (gchar *) "unnamed_arg1",
912 (gchar *) "s",
913 NULL
914 },
915 FALSE
916};
917
1aa981f7 918static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_activate_session_on_seat_IN_ARG_pointers[] =
5047f6bf 919{
1aa981f7 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,
5047f6bf 922 NULL
923};
924
1aa981f7 925static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_activate_session_on_seat =
5047f6bf 926{
927 {
928 -1,
929 (gchar *) "ActivateSessionOnSeat",
1aa981f7 930 (GDBusArgInfo **) &_logind_login1_manager_method_info_activate_session_on_seat_IN_ARG_pointers,
5047f6bf 931 NULL,
932 NULL
933 },
934 "handle-activate-session-on-seat",
935 FALSE
936};
937
1aa981f7 938static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_lock_session_IN_ARG_unnamed_arg0 =
5047f6bf 939{
940 {
941 -1,
942 (gchar *) "unnamed_arg0",
943 (gchar *) "s",
944 NULL
945 },
946 FALSE
947};
948
1aa981f7 949static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_lock_session_IN_ARG_pointers[] =
5047f6bf 950{
1aa981f7 951 &_logind_login1_manager_method_info_lock_session_IN_ARG_unnamed_arg0,
5047f6bf 952 NULL
953};
954
1aa981f7 955static const GDBusAnnotationInfo _logind_login1_manager_method_lock_session_annotation_info_0 =
5047f6bf 956{
957 -1,
958 (gchar *) "org.freedesktop.systemd1.Privileged",
959 (gchar *) "true",
960 NULL
961};
962
1aa981f7 963static const GDBusAnnotationInfo * const _logind_login1_manager_method_lock_session_annotation_info_pointers[] =
5047f6bf 964{
1aa981f7 965 &_logind_login1_manager_method_lock_session_annotation_info_0,
5047f6bf 966 NULL
967};
968
1aa981f7 969static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_lock_session =
5047f6bf 970{
971 {
972 -1,
973 (gchar *) "LockSession",
1aa981f7 974 (GDBusArgInfo **) &_logind_login1_manager_method_info_lock_session_IN_ARG_pointers,
5047f6bf 975 NULL,
1aa981f7 976 (GDBusAnnotationInfo **) &_logind_login1_manager_method_lock_session_annotation_info_pointers
5047f6bf 977 },
978 "handle-lock-session",
979 FALSE
980};
981
1aa981f7 982static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_unlock_session_IN_ARG_unnamed_arg0 =
5047f6bf 983{
984 {
985 -1,
986 (gchar *) "unnamed_arg0",
987 (gchar *) "s",
988 NULL
989 },
990 FALSE
991};
992
1aa981f7 993static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_unlock_session_IN_ARG_pointers[] =
5047f6bf 994{
1aa981f7 995 &_logind_login1_manager_method_info_unlock_session_IN_ARG_unnamed_arg0,
5047f6bf 996 NULL
997};
998
1aa981f7 999static const GDBusAnnotationInfo _logind_login1_manager_method_unlock_session_annotation_info_0 =
5047f6bf 1000{
1001 -1,
1002 (gchar *) "org.freedesktop.systemd1.Privileged",
1003 (gchar *) "true",
1004 NULL
1005};
1006
1aa981f7 1007static const GDBusAnnotationInfo * const _logind_login1_manager_method_unlock_session_annotation_info_pointers[] =
5047f6bf 1008{
1aa981f7 1009 &_logind_login1_manager_method_unlock_session_annotation_info_0,
5047f6bf 1010 NULL
1011};
1012
1aa981f7 1013static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_unlock_session =
5047f6bf 1014{
1015 {
1016 -1,
1017 (gchar *) "UnlockSession",
1aa981f7 1018 (GDBusArgInfo **) &_logind_login1_manager_method_info_unlock_session_IN_ARG_pointers,
5047f6bf 1019 NULL,
1aa981f7 1020 (GDBusAnnotationInfo **) &_logind_login1_manager_method_unlock_session_annotation_info_pointers
5047f6bf 1021 },
1022 "handle-unlock-session",
1023 FALSE
1024};
1025
1aa981f7 1026static const GDBusAnnotationInfo _logind_login1_manager_method_lock_sessions_annotation_info_0 =
5047f6bf 1027{
1028 -1,
1029 (gchar *) "org.freedesktop.systemd1.Privileged",
1030 (gchar *) "true",
1031 NULL
1032};
1033
1aa981f7 1034static const GDBusAnnotationInfo * const _logind_login1_manager_method_lock_sessions_annotation_info_pointers[] =
5047f6bf 1035{
1aa981f7 1036 &_logind_login1_manager_method_lock_sessions_annotation_info_0,
5047f6bf 1037 NULL
1038};
1039
1aa981f7 1040static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_lock_sessions =
5047f6bf 1041{
1042 {
1043 -1,
1044 (gchar *) "LockSessions",
1045 NULL,
1046 NULL,
1aa981f7 1047 (GDBusAnnotationInfo **) &_logind_login1_manager_method_lock_sessions_annotation_info_pointers
5047f6bf 1048 },
1049 "handle-lock-sessions",
1050 FALSE
1051};
1052
1aa981f7 1053static const GDBusAnnotationInfo _logind_login1_manager_method_unlock_sessions_annotation_info_0 =
5047f6bf 1054{
1055 -1,
1056 (gchar *) "org.freedesktop.systemd1.Privileged",
1057 (gchar *) "true",
1058 NULL
1059};
1060
1aa981f7 1061static const GDBusAnnotationInfo * const _logind_login1_manager_method_unlock_sessions_annotation_info_pointers[] =
5047f6bf 1062{
1aa981f7 1063 &_logind_login1_manager_method_unlock_sessions_annotation_info_0,
5047f6bf 1064 NULL
1065};
1066
1aa981f7 1067static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_unlock_sessions =
5047f6bf 1068{
1069 {
1070 -1,
1071 (gchar *) "UnlockSessions",
1072 NULL,
1073 NULL,
1aa981f7 1074 (GDBusAnnotationInfo **) &_logind_login1_manager_method_unlock_sessions_annotation_info_pointers
5047f6bf 1075 },
1076 "handle-unlock-sessions",
1077 FALSE
1078};
1079
1aa981f7 1080static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_kill_session_IN_ARG_unnamed_arg0 =
5047f6bf 1081{
1082 {
1083 -1,
1084 (gchar *) "unnamed_arg0",
1085 (gchar *) "s",
1086 NULL
1087 },
1088 FALSE
1089};
1090
1aa981f7 1091static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_kill_session_IN_ARG_unnamed_arg1 =
5047f6bf 1092{
1093 {
1094 -1,
1095 (gchar *) "unnamed_arg1",
1096 (gchar *) "s",
1097 NULL
1098 },
1099 FALSE
1100};
1101
1aa981f7 1102static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_kill_session_IN_ARG_unnamed_arg2 =
5047f6bf 1103{
1104 {
1105 -1,
1106 (gchar *) "unnamed_arg2",
1107 (gchar *) "i",
1108 NULL
1109 },
1110 FALSE
1111};
1112
1aa981f7 1113static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_kill_session_IN_ARG_pointers[] =
5047f6bf 1114{
1aa981f7 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,
5047f6bf 1118 NULL
1119};
1120
1aa981f7 1121static const GDBusAnnotationInfo _logind_login1_manager_method_kill_session_annotation_info_0 =
5047f6bf 1122{
1123 -1,
1124 (gchar *) "org.freedesktop.systemd1.Privileged",
1125 (gchar *) "true",
1126 NULL
1127};
1128
1aa981f7 1129static const GDBusAnnotationInfo * const _logind_login1_manager_method_kill_session_annotation_info_pointers[] =
5047f6bf 1130{
1aa981f7 1131 &_logind_login1_manager_method_kill_session_annotation_info_0,
5047f6bf 1132 NULL
1133};
1134
1aa981f7 1135static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_kill_session =
5047f6bf 1136{
1137 {
1138 -1,
1139 (gchar *) "KillSession",
1aa981f7 1140 (GDBusArgInfo **) &_logind_login1_manager_method_info_kill_session_IN_ARG_pointers,
5047f6bf 1141 NULL,
1aa981f7 1142 (GDBusAnnotationInfo **) &_logind_login1_manager_method_kill_session_annotation_info_pointers
5047f6bf 1143 },
1144 "handle-kill-session",
1145 FALSE
1146};
1147
1aa981f7 1148static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_kill_user_IN_ARG_unnamed_arg0 =
5047f6bf 1149{
1150 {
1151 -1,
1152 (gchar *) "unnamed_arg0",
1153 (gchar *) "u",
1154 NULL
1155 },
1156 FALSE
1157};
1158
1aa981f7 1159static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_kill_user_IN_ARG_unnamed_arg1 =
5047f6bf 1160{
1161 {
1162 -1,
1163 (gchar *) "unnamed_arg1",
1164 (gchar *) "i",
1165 NULL
1166 },
1167 FALSE
1168};
1169
1aa981f7 1170static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_kill_user_IN_ARG_pointers[] =
5047f6bf 1171{
1aa981f7 1172 &_logind_login1_manager_method_info_kill_user_IN_ARG_unnamed_arg0,
1173 &_logind_login1_manager_method_info_kill_user_IN_ARG_unnamed_arg1,
5047f6bf 1174 NULL
1175};
1176
1aa981f7 1177static const GDBusAnnotationInfo _logind_login1_manager_method_kill_user_annotation_info_0 =
5047f6bf 1178{
1179 -1,
1180 (gchar *) "org.freedesktop.systemd1.Privileged",
1181 (gchar *) "true",
1182 NULL
1183};
1184
1aa981f7 1185static const GDBusAnnotationInfo * const _logind_login1_manager_method_kill_user_annotation_info_pointers[] =
5047f6bf 1186{
1aa981f7 1187 &_logind_login1_manager_method_kill_user_annotation_info_0,
5047f6bf 1188 NULL
1189};
1190
1aa981f7 1191static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_kill_user =
5047f6bf 1192{
1193 {
1194 -1,
1195 (gchar *) "KillUser",
1aa981f7 1196 (GDBusArgInfo **) &_logind_login1_manager_method_info_kill_user_IN_ARG_pointers,
5047f6bf 1197 NULL,
1aa981f7 1198 (GDBusAnnotationInfo **) &_logind_login1_manager_method_kill_user_annotation_info_pointers
5047f6bf 1199 },
1200 "handle-kill-user",
1201 FALSE
1202};
1203
1aa981f7 1204static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_terminate_session_IN_ARG_unnamed_arg0 =
5047f6bf 1205{
1206 {
1207 -1,
1208 (gchar *) "unnamed_arg0",
1209 (gchar *) "s",
1210 NULL
1211 },
1212 FALSE
1213};
1214
1aa981f7 1215static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_terminate_session_IN_ARG_pointers[] =
5047f6bf 1216{
1aa981f7 1217 &_logind_login1_manager_method_info_terminate_session_IN_ARG_unnamed_arg0,
5047f6bf 1218 NULL
1219};
1220
1aa981f7 1221static const GDBusAnnotationInfo _logind_login1_manager_method_terminate_session_annotation_info_0 =
5047f6bf 1222{
1223 -1,
1224 (gchar *) "org.freedesktop.systemd1.Privileged",
1225 (gchar *) "true",
1226 NULL
1227};
1228
1aa981f7 1229static const GDBusAnnotationInfo * const _logind_login1_manager_method_terminate_session_annotation_info_pointers[] =
5047f6bf 1230{
1aa981f7 1231 &_logind_login1_manager_method_terminate_session_annotation_info_0,
5047f6bf 1232 NULL
1233};
1234
1aa981f7 1235static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_terminate_session =
5047f6bf 1236{
1237 {
1238 -1,
1239 (gchar *) "TerminateSession",
1aa981f7 1240 (GDBusArgInfo **) &_logind_login1_manager_method_info_terminate_session_IN_ARG_pointers,
5047f6bf 1241 NULL,
1aa981f7 1242 (GDBusAnnotationInfo **) &_logind_login1_manager_method_terminate_session_annotation_info_pointers
5047f6bf 1243 },
1244 "handle-terminate-session",
1245 FALSE
1246};
1247
1aa981f7 1248static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_terminate_user_IN_ARG_unnamed_arg0 =
5047f6bf 1249{
1250 {
1251 -1,
1252 (gchar *) "unnamed_arg0",
1253 (gchar *) "u",
1254 NULL
1255 },
1256 FALSE
1257};
1258
1aa981f7 1259static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_terminate_user_IN_ARG_pointers[] =
5047f6bf 1260{
1aa981f7 1261 &_logind_login1_manager_method_info_terminate_user_IN_ARG_unnamed_arg0,
5047f6bf 1262 NULL
1263};
1264
1aa981f7 1265static const GDBusAnnotationInfo _logind_login1_manager_method_terminate_user_annotation_info_0 =
5047f6bf 1266{
1267 -1,
1268 (gchar *) "org.freedesktop.systemd1.Privileged",
1269 (gchar *) "true",
1270 NULL
1271};
1272
1aa981f7 1273static const GDBusAnnotationInfo * const _logind_login1_manager_method_terminate_user_annotation_info_pointers[] =
5047f6bf 1274{
1aa981f7 1275 &_logind_login1_manager_method_terminate_user_annotation_info_0,
5047f6bf 1276 NULL
1277};
1278
1aa981f7 1279static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_terminate_user =
5047f6bf 1280{
1281 {
1282 -1,
1283 (gchar *) "TerminateUser",
1aa981f7 1284 (GDBusArgInfo **) &_logind_login1_manager_method_info_terminate_user_IN_ARG_pointers,
5047f6bf 1285 NULL,
1aa981f7 1286 (GDBusAnnotationInfo **) &_logind_login1_manager_method_terminate_user_annotation_info_pointers
5047f6bf 1287 },
1288 "handle-terminate-user",
1289 FALSE
1290};
1291
1aa981f7 1292static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_terminate_seat_IN_ARG_unnamed_arg0 =
5047f6bf 1293{
1294 {
1295 -1,
1296 (gchar *) "unnamed_arg0",
1297 (gchar *) "s",
1298 NULL
1299 },
1300 FALSE
1301};
1302
1aa981f7 1303static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_terminate_seat_IN_ARG_pointers[] =
5047f6bf 1304{
1aa981f7 1305 &_logind_login1_manager_method_info_terminate_seat_IN_ARG_unnamed_arg0,
5047f6bf 1306 NULL
1307};
1308
1aa981f7 1309static const GDBusAnnotationInfo _logind_login1_manager_method_terminate_seat_annotation_info_0 =
5047f6bf 1310{
1311 -1,
1312 (gchar *) "org.freedesktop.systemd1.Privileged",
1313 (gchar *) "true",
1314 NULL
1315};
1316
1aa981f7 1317static const GDBusAnnotationInfo * const _logind_login1_manager_method_terminate_seat_annotation_info_pointers[] =
5047f6bf 1318{
1aa981f7 1319 &_logind_login1_manager_method_terminate_seat_annotation_info_0,
5047f6bf 1320 NULL
1321};
1322
1aa981f7 1323static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_terminate_seat =
5047f6bf 1324{
1325 {
1326 -1,
1327 (gchar *) "TerminateSeat",
1aa981f7 1328 (GDBusArgInfo **) &_logind_login1_manager_method_info_terminate_seat_IN_ARG_pointers,
5047f6bf 1329 NULL,
1aa981f7 1330 (GDBusAnnotationInfo **) &_logind_login1_manager_method_terminate_seat_annotation_info_pointers
5047f6bf 1331 },
1332 "handle-terminate-seat",
1333 FALSE
1334};
1335
1aa981f7 1336static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_set_user_linger_IN_ARG_unnamed_arg0 =
5047f6bf 1337{
1338 {
1339 -1,
1340 (gchar *) "unnamed_arg0",
1341 (gchar *) "u",
1342 NULL
1343 },
1344 FALSE
1345};
1346
1aa981f7 1347static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_set_user_linger_IN_ARG_unnamed_arg1 =
5047f6bf 1348{
1349 {
1350 -1,
1351 (gchar *) "unnamed_arg1",
1352 (gchar *) "b",
1353 NULL
1354 },
1355 FALSE
1356};
1357
1aa981f7 1358static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_set_user_linger_IN_ARG_unnamed_arg2 =
5047f6bf 1359{
1360 {
1361 -1,
1362 (gchar *) "unnamed_arg2",
1363 (gchar *) "b",
1364 NULL
1365 },
1366 FALSE
1367};
1368
1aa981f7 1369static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_set_user_linger_IN_ARG_pointers[] =
5047f6bf 1370{
1aa981f7 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,
5047f6bf 1374 NULL
1375};
1376
1aa981f7 1377static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_set_user_linger =
5047f6bf 1378{
1379 {
1380 -1,
1381 (gchar *) "SetUserLinger",
1aa981f7 1382 (GDBusArgInfo **) &_logind_login1_manager_method_info_set_user_linger_IN_ARG_pointers,
5047f6bf 1383 NULL,
1384 NULL
1385 },
1386 "handle-set-user-linger",
1387 FALSE
1388};
1389
1aa981f7 1390static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_attach_device_IN_ARG_unnamed_arg0 =
5047f6bf 1391{
1392 {
1393 -1,
1394 (gchar *) "unnamed_arg0",
1395 (gchar *) "s",
1396 NULL
1397 },
1398 FALSE
1399};
1400
1aa981f7 1401static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_attach_device_IN_ARG_unnamed_arg1 =
5047f6bf 1402{
1403 {
1404 -1,
1405 (gchar *) "unnamed_arg1",
1406 (gchar *) "s",
1407 NULL
1408 },
1409 FALSE
1410};
1411
1aa981f7 1412static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_attach_device_IN_ARG_unnamed_arg2 =
5047f6bf 1413{
1414 {
1415 -1,
1416 (gchar *) "unnamed_arg2",
1417 (gchar *) "b",
1418 NULL
1419 },
1420 FALSE
1421};
1422
1aa981f7 1423static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_attach_device_IN_ARG_pointers[] =
5047f6bf 1424{
1aa981f7 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,
5047f6bf 1428 NULL
1429};
1430
1aa981f7 1431static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_attach_device =
5047f6bf 1432{
1433 {
1434 -1,
1435 (gchar *) "AttachDevice",
1aa981f7 1436 (GDBusArgInfo **) &_logind_login1_manager_method_info_attach_device_IN_ARG_pointers,
5047f6bf 1437 NULL,
1438 NULL
1439 },
1440 "handle-attach-device",
1441 FALSE
1442};
1443
1aa981f7 1444static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_flush_devices_IN_ARG_unnamed_arg0 =
5047f6bf 1445{
1446 {
1447 -1,
1448 (gchar *) "unnamed_arg0",
1449 (gchar *) "b",
1450 NULL
1451 },
1452 FALSE
1453};
1454
1aa981f7 1455static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_flush_devices_IN_ARG_pointers[] =
5047f6bf 1456{
1aa981f7 1457 &_logind_login1_manager_method_info_flush_devices_IN_ARG_unnamed_arg0,
5047f6bf 1458 NULL
1459};
1460
1aa981f7 1461static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_flush_devices =
5047f6bf 1462{
1463 {
1464 -1,
1465 (gchar *) "FlushDevices",
1aa981f7 1466 (GDBusArgInfo **) &_logind_login1_manager_method_info_flush_devices_IN_ARG_pointers,
5047f6bf 1467 NULL,
1468 NULL
1469 },
1470 "handle-flush-devices",
1471 FALSE
1472};
1473
1aa981f7 1474static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_power_off_IN_ARG_unnamed_arg0 =
5047f6bf 1475{
1476 {
1477 -1,
1478 (gchar *) "unnamed_arg0",
1479 (gchar *) "b",
1480 NULL
1481 },
1482 FALSE
1483};
1484
1aa981f7 1485static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_power_off_IN_ARG_pointers[] =
5047f6bf 1486{
1aa981f7 1487 &_logind_login1_manager_method_info_power_off_IN_ARG_unnamed_arg0,
5047f6bf 1488 NULL
1489};
1490
1aa981f7 1491static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_power_off =
5047f6bf 1492{
1493 {
1494 -1,
1495 (gchar *) "PowerOff",
1aa981f7 1496 (GDBusArgInfo **) &_logind_login1_manager_method_info_power_off_IN_ARG_pointers,
5047f6bf 1497 NULL,
1498 NULL
1499 },
1500 "handle-power-off",
1501 FALSE
1502};
1503
1aa981f7 1504static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_reboot_IN_ARG_unnamed_arg0 =
5047f6bf 1505{
1506 {
1507 -1,
1508 (gchar *) "unnamed_arg0",
1509 (gchar *) "b",
1510 NULL
1511 },
1512 FALSE
1513};
1514
1aa981f7 1515static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_reboot_IN_ARG_pointers[] =
5047f6bf 1516{
1aa981f7 1517 &_logind_login1_manager_method_info_reboot_IN_ARG_unnamed_arg0,
5047f6bf 1518 NULL
1519};
1520
1aa981f7 1521static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_reboot =
5047f6bf 1522{
1523 {
1524 -1,
1525 (gchar *) "Reboot",
1aa981f7 1526 (GDBusArgInfo **) &_logind_login1_manager_method_info_reboot_IN_ARG_pointers,
5047f6bf 1527 NULL,
1528 NULL
1529 },
1530 "handle-reboot",
1531 FALSE
1532};
1533
1aa981f7 1534static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_suspend_IN_ARG_unnamed_arg0 =
5047f6bf 1535{
1536 {
1537 -1,
1538 (gchar *) "unnamed_arg0",
1539 (gchar *) "b",
1540 NULL
1541 },
1542 FALSE
1543};
1544
1aa981f7 1545static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_suspend_IN_ARG_pointers[] =
5047f6bf 1546{
1aa981f7 1547 &_logind_login1_manager_method_info_suspend_IN_ARG_unnamed_arg0,
5047f6bf 1548 NULL
1549};
1550
1aa981f7 1551static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_suspend =
5047f6bf 1552{
1553 {
1554 -1,
1555 (gchar *) "Suspend",
1aa981f7 1556 (GDBusArgInfo **) &_logind_login1_manager_method_info_suspend_IN_ARG_pointers,
5047f6bf 1557 NULL,
1558 NULL
1559 },
1560 "handle-suspend",
1561 FALSE
1562};
1563
1aa981f7 1564static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_hibernate_IN_ARG_unnamed_arg0 =
5047f6bf 1565{
1566 {
1567 -1,
1568 (gchar *) "unnamed_arg0",
1569 (gchar *) "b",
1570 NULL
1571 },
1572 FALSE
1573};
1574
1aa981f7 1575static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_hibernate_IN_ARG_pointers[] =
5047f6bf 1576{
1aa981f7 1577 &_logind_login1_manager_method_info_hibernate_IN_ARG_unnamed_arg0,
5047f6bf 1578 NULL
1579};
1580
1aa981f7 1581static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_hibernate =
5047f6bf 1582{
1583 {
1584 -1,
1585 (gchar *) "Hibernate",
1aa981f7 1586 (GDBusArgInfo **) &_logind_login1_manager_method_info_hibernate_IN_ARG_pointers,
5047f6bf 1587 NULL,
1588 NULL
1589 },
1590 "handle-hibernate",
1591 FALSE
1592};
1593
1aa981f7 1594static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_hybrid_sleep_IN_ARG_unnamed_arg0 =
5047f6bf 1595{
1596 {
1597 -1,
1598 (gchar *) "unnamed_arg0",
1599 (gchar *) "b",
1600 NULL
1601 },
1602 FALSE
1603};
1604
1aa981f7 1605static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_hybrid_sleep_IN_ARG_pointers[] =
5047f6bf 1606{
1aa981f7 1607 &_logind_login1_manager_method_info_hybrid_sleep_IN_ARG_unnamed_arg0,
5047f6bf 1608 NULL
1609};
1610
1aa981f7 1611static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_hybrid_sleep =
5047f6bf 1612{
1613 {
1614 -1,
1615 (gchar *) "HybridSleep",
1aa981f7 1616 (GDBusArgInfo **) &_logind_login1_manager_method_info_hybrid_sleep_IN_ARG_pointers,
5047f6bf 1617 NULL,
1618 NULL
1619 },
1620 "handle-hybrid-sleep",
1621 FALSE
1622};
1623
1aa981f7 1624static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_can_power_off_OUT_ARG_unnamed_arg0 =
5047f6bf 1625{
1626 {
1627 -1,
1628 (gchar *) "unnamed_arg0",
1629 (gchar *) "s",
1630 NULL
1631 },
1632 FALSE
1633};
1634
1aa981f7 1635static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_can_power_off_OUT_ARG_pointers[] =
5047f6bf 1636{
1aa981f7 1637 &_logind_login1_manager_method_info_can_power_off_OUT_ARG_unnamed_arg0,
5047f6bf 1638 NULL
1639};
1640
1aa981f7 1641static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_can_power_off =
5047f6bf 1642{
1643 {
1644 -1,
1645 (gchar *) "CanPowerOff",
1646 NULL,
1aa981f7 1647 (GDBusArgInfo **) &_logind_login1_manager_method_info_can_power_off_OUT_ARG_pointers,
5047f6bf 1648 NULL
1649 },
1650 "handle-can-power-off",
1651 FALSE
1652};
1653
1aa981f7 1654static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_can_reboot_OUT_ARG_unnamed_arg0 =
5047f6bf 1655{
1656 {
1657 -1,
1658 (gchar *) "unnamed_arg0",
1659 (gchar *) "s",
1660 NULL
1661 },
1662 FALSE
1663};
1664
1aa981f7 1665static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_can_reboot_OUT_ARG_pointers[] =
5047f6bf 1666{
1aa981f7 1667 &_logind_login1_manager_method_info_can_reboot_OUT_ARG_unnamed_arg0,
5047f6bf 1668 NULL
1669};
1670
1aa981f7 1671static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_can_reboot =
5047f6bf 1672{
1673 {
1674 -1,
1675 (gchar *) "CanReboot",
1676 NULL,
1aa981f7 1677 (GDBusArgInfo **) &_logind_login1_manager_method_info_can_reboot_OUT_ARG_pointers,
5047f6bf 1678 NULL
1679 },
1680 "handle-can-reboot",
1681 FALSE
1682};
1683
1aa981f7 1684static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_can_suspend_OUT_ARG_unnamed_arg0 =
5047f6bf 1685{
1686 {
1687 -1,
1688 (gchar *) "unnamed_arg0",
1689 (gchar *) "s",
1690 NULL
1691 },
1692 FALSE
1693};
1694
1aa981f7 1695static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_can_suspend_OUT_ARG_pointers[] =
5047f6bf 1696{
1aa981f7 1697 &_logind_login1_manager_method_info_can_suspend_OUT_ARG_unnamed_arg0,
5047f6bf 1698 NULL
1699};
1700
1aa981f7 1701static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_can_suspend =
5047f6bf 1702{
1703 {
1704 -1,
1705 (gchar *) "CanSuspend",
1706 NULL,
1aa981f7 1707 (GDBusArgInfo **) &_logind_login1_manager_method_info_can_suspend_OUT_ARG_pointers,
5047f6bf 1708 NULL
1709 },
1710 "handle-can-suspend",
1711 FALSE
1712};
1713
1aa981f7 1714static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_can_hibernate_OUT_ARG_unnamed_arg0 =
5047f6bf 1715{
1716 {
1717 -1,
1718 (gchar *) "unnamed_arg0",
1719 (gchar *) "s",
1720 NULL
1721 },
1722 FALSE
1723};
1724
1aa981f7 1725static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_can_hibernate_OUT_ARG_pointers[] =
5047f6bf 1726{
1aa981f7 1727 &_logind_login1_manager_method_info_can_hibernate_OUT_ARG_unnamed_arg0,
5047f6bf 1728 NULL
1729};
1730
1aa981f7 1731static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_can_hibernate =
5047f6bf 1732{
1733 {
1734 -1,
1735 (gchar *) "CanHibernate",
1736 NULL,
1aa981f7 1737 (GDBusArgInfo **) &_logind_login1_manager_method_info_can_hibernate_OUT_ARG_pointers,
5047f6bf 1738 NULL
1739 },
1740 "handle-can-hibernate",
1741 FALSE
1742};
1743
1aa981f7 1744static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_can_hybrid_sleep_OUT_ARG_unnamed_arg0 =
5047f6bf 1745{
1746 {
1747 -1,
1748 (gchar *) "unnamed_arg0",
1749 (gchar *) "s",
1750 NULL
1751 },
1752 FALSE
1753};
1754
1aa981f7 1755static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_can_hybrid_sleep_OUT_ARG_pointers[] =
5047f6bf 1756{
1aa981f7 1757 &_logind_login1_manager_method_info_can_hybrid_sleep_OUT_ARG_unnamed_arg0,
5047f6bf 1758 NULL
1759};
1760
1aa981f7 1761static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_can_hybrid_sleep =
5047f6bf 1762{
1763 {
1764 -1,
1765 (gchar *) "CanHybridSleep",
1766 NULL,
1aa981f7 1767 (GDBusArgInfo **) &_logind_login1_manager_method_info_can_hybrid_sleep_OUT_ARG_pointers,
5047f6bf 1768 NULL
1769 },
1770 "handle-can-hybrid-sleep",
1771 FALSE
1772};
1773
1aa981f7 1774static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_inhibit_IN_ARG_unnamed_arg0 =
5047f6bf 1775{
1776 {
1777 -1,
1778 (gchar *) "unnamed_arg0",
1779 (gchar *) "s",
1780 NULL
1781 },
1782 FALSE
1783};
1784
1aa981f7 1785static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_inhibit_IN_ARG_unnamed_arg1 =
5047f6bf 1786{
1787 {
1788 -1,
1789 (gchar *) "unnamed_arg1",
1790 (gchar *) "s",
1791 NULL
1792 },
1793 FALSE
1794};
1795
1aa981f7 1796static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_inhibit_IN_ARG_unnamed_arg2 =
5047f6bf 1797{
1798 {
1799 -1,
1800 (gchar *) "unnamed_arg2",
1801 (gchar *) "s",
1802 NULL
1803 },
1804 FALSE
1805};
1806
1aa981f7 1807static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_inhibit_IN_ARG_unnamed_arg3 =
5047f6bf 1808{
1809 {
1810 -1,
1811 (gchar *) "unnamed_arg3",
1812 (gchar *) "s",
1813 NULL
1814 },
1815 FALSE
1816};
1817
1aa981f7 1818static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_inhibit_IN_ARG_pointers[] =
5047f6bf 1819{
1aa981f7 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,
5047f6bf 1824 NULL
1825};
1826
1aa981f7 1827static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_inhibit_OUT_ARG_unnamed_arg4 =
5047f6bf 1828{
1829 {
1830 -1,
1831 (gchar *) "unnamed_arg4",
1832 (gchar *) "h",
1833 NULL
1834 },
1835 FALSE
1836};
1837
1aa981f7 1838static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_inhibit_OUT_ARG_pointers[] =
5047f6bf 1839{
1aa981f7 1840 &_logind_login1_manager_method_info_inhibit_OUT_ARG_unnamed_arg4,
5047f6bf 1841 NULL
1842};
1843
1aa981f7 1844static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_inhibit =
5047f6bf 1845{
1846 {
1847 -1,
1848 (gchar *) "Inhibit",
1aa981f7 1849 (GDBusArgInfo **) &_logind_login1_manager_method_info_inhibit_IN_ARG_pointers,
1850 (GDBusArgInfo **) &_logind_login1_manager_method_info_inhibit_OUT_ARG_pointers,
5047f6bf 1851 NULL
1852 },
1853 "handle-inhibit",
1854 FALSE
1855};
1856
1aa981f7 1857static const _ExtendedGDBusMethodInfo * const _logind_login1_manager_method_info_pointers[] =
1858{
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,
5047f6bf 1895 NULL
1896};
1897
1aa981f7 1898static const _ExtendedGDBusArgInfo _logind_login1_manager_signal_info_session_new_ARG_unnamed_arg0 =
5047f6bf 1899{
1900 {
1901 -1,
1902 (gchar *) "unnamed_arg0",
1903 (gchar *) "s",
1904 NULL
1905 },
1906 FALSE
1907};
1908
1aa981f7 1909static const _ExtendedGDBusArgInfo _logind_login1_manager_signal_info_session_new_ARG_unnamed_arg1 =
5047f6bf 1910{
1911 {
1912 -1,
1913 (gchar *) "unnamed_arg1",
1914 (gchar *) "o",
1915 NULL
1916 },
1917 FALSE
1918};
1919
1aa981f7 1920static const _ExtendedGDBusArgInfo * const _logind_login1_manager_signal_info_session_new_ARG_pointers[] =
5047f6bf 1921{
1aa981f7 1922 &_logind_login1_manager_signal_info_session_new_ARG_unnamed_arg0,
1923 &_logind_login1_manager_signal_info_session_new_ARG_unnamed_arg1,
5047f6bf 1924 NULL
1925};
1926
1aa981f7 1927static const _ExtendedGDBusSignalInfo _logind_login1_manager_signal_info_session_new =
5047f6bf 1928{
1929 {
1930 -1,
1931 (gchar *) "SessionNew",
1aa981f7 1932 (GDBusArgInfo **) &_logind_login1_manager_signal_info_session_new_ARG_pointers,
5047f6bf 1933 NULL
1934 },
1935 "session-new"
1936};
1937
1aa981f7 1938static const _ExtendedGDBusArgInfo _logind_login1_manager_signal_info_session_removed_ARG_unnamed_arg0 =
5047f6bf 1939{
1940 {
1941 -1,
1942 (gchar *) "unnamed_arg0",
1943 (gchar *) "s",
1944 NULL
1945 },
1946 FALSE
1947};
1948
1aa981f7 1949static const _ExtendedGDBusArgInfo _logind_login1_manager_signal_info_session_removed_ARG_unnamed_arg1 =
5047f6bf 1950{
1951 {
1952 -1,
1953 (gchar *) "unnamed_arg1",
1954 (gchar *) "o",
1955 NULL
1956 },
1957 FALSE
1958};
1959
1aa981f7 1960static const _ExtendedGDBusArgInfo * const _logind_login1_manager_signal_info_session_removed_ARG_pointers[] =
5047f6bf 1961{
1aa981f7 1962 &_logind_login1_manager_signal_info_session_removed_ARG_unnamed_arg0,
1963 &_logind_login1_manager_signal_info_session_removed_ARG_unnamed_arg1,
5047f6bf 1964 NULL
1965};
1966
1aa981f7 1967static const _ExtendedGDBusSignalInfo _logind_login1_manager_signal_info_session_removed =
5047f6bf 1968{
1969 {
1970 -1,
1971 (gchar *) "SessionRemoved",
1aa981f7 1972 (GDBusArgInfo **) &_logind_login1_manager_signal_info_session_removed_ARG_pointers,
5047f6bf 1973 NULL
1974 },
1975 "session-removed"
1976};
1977
1aa981f7 1978static const _ExtendedGDBusArgInfo _logind_login1_manager_signal_info_user_new_ARG_unnamed_arg0 =
5047f6bf 1979{
1980 {
1981 -1,
1982 (gchar *) "unnamed_arg0",
1983 (gchar *) "u",
1984 NULL
1985 },
1986 FALSE
1987};
1988
1aa981f7 1989static const _ExtendedGDBusArgInfo _logind_login1_manager_signal_info_user_new_ARG_unnamed_arg1 =
5047f6bf 1990{
1991 {
1992 -1,
1993 (gchar *) "unnamed_arg1",
1994 (gchar *) "o",
1995 NULL
1996 },
1997 FALSE
1998};
1999
1aa981f7 2000static const _ExtendedGDBusArgInfo * const _logind_login1_manager_signal_info_user_new_ARG_pointers[] =
5047f6bf 2001{
1aa981f7 2002 &_logind_login1_manager_signal_info_user_new_ARG_unnamed_arg0,
2003 &_logind_login1_manager_signal_info_user_new_ARG_unnamed_arg1,
5047f6bf 2004 NULL
2005};
2006
1aa981f7 2007static const _ExtendedGDBusSignalInfo _logind_login1_manager_signal_info_user_new =
5047f6bf 2008{
2009 {
2010 -1,
2011 (gchar *) "UserNew",
1aa981f7 2012 (GDBusArgInfo **) &_logind_login1_manager_signal_info_user_new_ARG_pointers,
5047f6bf 2013 NULL
2014 },
2015 "user-new"
2016};
2017
1aa981f7 2018static const _ExtendedGDBusArgInfo _logind_login1_manager_signal_info_user_removed_ARG_unnamed_arg0 =
5047f6bf 2019{
2020 {
2021 -1,
2022 (gchar *) "unnamed_arg0",
2023 (gchar *) "u",
2024 NULL
2025 },
2026 FALSE
2027};
2028
1aa981f7 2029static const _ExtendedGDBusArgInfo _logind_login1_manager_signal_info_user_removed_ARG_unnamed_arg1 =
5047f6bf 2030{
2031 {
2032 -1,
2033 (gchar *) "unnamed_arg1",
2034 (gchar *) "o",
2035 NULL
2036 },
2037 FALSE
2038};
2039
1aa981f7 2040static const _ExtendedGDBusArgInfo * const _logind_login1_manager_signal_info_user_removed_ARG_pointers[] =
5047f6bf 2041{
1aa981f7 2042 &_logind_login1_manager_signal_info_user_removed_ARG_unnamed_arg0,
2043 &_logind_login1_manager_signal_info_user_removed_ARG_unnamed_arg1,
5047f6bf 2044 NULL
2045};
2046
1aa981f7 2047static const _ExtendedGDBusSignalInfo _logind_login1_manager_signal_info_user_removed =
5047f6bf 2048{
2049 {
2050 -1,
2051 (gchar *) "UserRemoved",
1aa981f7 2052 (GDBusArgInfo **) &_logind_login1_manager_signal_info_user_removed_ARG_pointers,
5047f6bf 2053 NULL
2054 },
2055 "user-removed"
2056};
2057
1aa981f7 2058static const _ExtendedGDBusArgInfo _logind_login1_manager_signal_info_seat_new_ARG_unnamed_arg0 =
5047f6bf 2059{
2060 {
2061 -1,
2062 (gchar *) "unnamed_arg0",
2063 (gchar *) "s",
2064 NULL
2065 },
2066 FALSE
2067};
2068
1aa981f7 2069static const _ExtendedGDBusArgInfo _logind_login1_manager_signal_info_seat_new_ARG_unnamed_arg1 =
5047f6bf 2070{
2071 {
2072 -1,
2073 (gchar *) "unnamed_arg1",
2074 (gchar *) "o",
2075 NULL
2076 },
2077 FALSE
2078};
2079
1aa981f7 2080static const _ExtendedGDBusArgInfo * const _logind_login1_manager_signal_info_seat_new_ARG_pointers[] =
5047f6bf 2081{
1aa981f7 2082 &_logind_login1_manager_signal_info_seat_new_ARG_unnamed_arg0,
2083 &_logind_login1_manager_signal_info_seat_new_ARG_unnamed_arg1,
5047f6bf 2084 NULL
2085};
2086
1aa981f7 2087static const _ExtendedGDBusSignalInfo _logind_login1_manager_signal_info_seat_new =
5047f6bf 2088{
2089 {
2090 -1,
2091 (gchar *) "SeatNew",
1aa981f7 2092 (GDBusArgInfo **) &_logind_login1_manager_signal_info_seat_new_ARG_pointers,
5047f6bf 2093 NULL
2094 },
2095 "seat-new"
2096};
2097
1aa981f7 2098static const _ExtendedGDBusArgInfo _logind_login1_manager_signal_info_seat_removed_ARG_unnamed_arg0 =
5047f6bf 2099{
2100 {
2101 -1,
2102 (gchar *) "unnamed_arg0",
2103 (gchar *) "s",
2104 NULL
2105 },
2106 FALSE
2107};
2108
1aa981f7 2109static const _ExtendedGDBusArgInfo _logind_login1_manager_signal_info_seat_removed_ARG_unnamed_arg1 =
5047f6bf 2110{
2111 {
2112 -1,
2113 (gchar *) "unnamed_arg1",
2114 (gchar *) "o",
2115 NULL
2116 },
2117 FALSE
2118};
2119
1aa981f7 2120static const _ExtendedGDBusArgInfo * const _logind_login1_manager_signal_info_seat_removed_ARG_pointers[] =
5047f6bf 2121{
1aa981f7 2122 &_logind_login1_manager_signal_info_seat_removed_ARG_unnamed_arg0,
2123 &_logind_login1_manager_signal_info_seat_removed_ARG_unnamed_arg1,
5047f6bf 2124 NULL
2125};
2126
1aa981f7 2127static const _ExtendedGDBusSignalInfo _logind_login1_manager_signal_info_seat_removed =
5047f6bf 2128{
2129 {
2130 -1,
2131 (gchar *) "SeatRemoved",
1aa981f7 2132 (GDBusArgInfo **) &_logind_login1_manager_signal_info_seat_removed_ARG_pointers,
5047f6bf 2133 NULL
2134 },
2135 "seat-removed"
2136};
2137
1aa981f7 2138static const _ExtendedGDBusArgInfo _logind_login1_manager_signal_info_prepare_for_shutdown_ARG_unnamed_arg0 =
5047f6bf 2139{
2140 {
2141 -1,
2142 (gchar *) "unnamed_arg0",
2143 (gchar *) "b",
2144 NULL
2145 },
2146 FALSE
2147};
2148
1aa981f7 2149static const _ExtendedGDBusArgInfo * const _logind_login1_manager_signal_info_prepare_for_shutdown_ARG_pointers[] =
5047f6bf 2150{
1aa981f7 2151 &_logind_login1_manager_signal_info_prepare_for_shutdown_ARG_unnamed_arg0,
5047f6bf 2152 NULL
2153};
2154
1aa981f7 2155static const _ExtendedGDBusSignalInfo _logind_login1_manager_signal_info_prepare_for_shutdown =
5047f6bf 2156{
2157 {
2158 -1,
2159 (gchar *) "PrepareForShutdown",
1aa981f7 2160 (GDBusArgInfo **) &_logind_login1_manager_signal_info_prepare_for_shutdown_ARG_pointers,
5047f6bf 2161 NULL
2162 },
2163 "prepare-for-shutdown"
2164};
2165
1aa981f7 2166static const _ExtendedGDBusArgInfo _logind_login1_manager_signal_info_prepare_for_sleep_ARG_unnamed_arg0 =
5047f6bf 2167{
2168 {
2169 -1,
2170 (gchar *) "unnamed_arg0",
2171 (gchar *) "b",
2172 NULL
2173 },
2174 FALSE
2175};
2176
1aa981f7 2177static const _ExtendedGDBusArgInfo * const _logind_login1_manager_signal_info_prepare_for_sleep_ARG_pointers[] =
5047f6bf 2178{
1aa981f7 2179 &_logind_login1_manager_signal_info_prepare_for_sleep_ARG_unnamed_arg0,
5047f6bf 2180 NULL
2181};
2182
1aa981f7 2183static const _ExtendedGDBusSignalInfo _logind_login1_manager_signal_info_prepare_for_sleep =
5047f6bf 2184{
2185 {
2186 -1,
2187 (gchar *) "PrepareForSleep",
1aa981f7 2188 (GDBusArgInfo **) &_logind_login1_manager_signal_info_prepare_for_sleep_ARG_pointers,
5047f6bf 2189 NULL
2190 },
2191 "prepare-for-sleep"
2192};
2193
1aa981f7 2194static const _ExtendedGDBusSignalInfo * const _logind_login1_manager_signal_info_pointers[] =
5047f6bf 2195{
1aa981f7 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,
5047f6bf 2204 NULL
2205};
2206
1aa981f7 2207static const GDBusAnnotationInfo _logind_login1_manager_property_nauto_vts_annotation_info_0 =
5047f6bf 2208{
2209 -1,
2210 (gchar *) "org.freedesktop.DBus.Property.EmitsChangedSignal",
2211 (gchar *) "const",
2212 NULL
2213};
2214
1aa981f7 2215static const GDBusAnnotationInfo * const _logind_login1_manager_property_nauto_vts_annotation_info_pointers[] =
5047f6bf 2216{
1aa981f7 2217 &_logind_login1_manager_property_nauto_vts_annotation_info_0,
5047f6bf 2218 NULL
2219};
2220
1aa981f7 2221static const _ExtendedGDBusPropertyInfo _logind_login1_manager_property_info_nauto_vts =
5047f6bf 2222{
2223 {
2224 -1,
2225 (gchar *) "NAutoVTs",
2226 (gchar *) "u",
2227 G_DBUS_PROPERTY_INFO_FLAGS_READABLE,
1aa981f7 2228 (GDBusAnnotationInfo **) &_logind_login1_manager_property_nauto_vts_annotation_info_pointers
5047f6bf 2229 },
2230 "nauto-vts",
2231 FALSE
2232};
2233
1aa981f7 2234static const GDBusAnnotationInfo _logind_login1_manager_property_kill_only_users_annotation_info_0 =
5047f6bf 2235{
2236 -1,
2237 (gchar *) "org.freedesktop.DBus.Property.EmitsChangedSignal",
2238 (gchar *) "const",
2239 NULL
2240};
2241
1aa981f7 2242static const GDBusAnnotationInfo * const _logind_login1_manager_property_kill_only_users_annotation_info_pointers[] =
5047f6bf 2243{
1aa981f7 2244 &_logind_login1_manager_property_kill_only_users_annotation_info_0,
5047f6bf 2245 NULL
2246};
2247
1aa981f7 2248static const _ExtendedGDBusPropertyInfo _logind_login1_manager_property_info_kill_only_users =
5047f6bf 2249{
2250 {
2251 -1,
2252 (gchar *) "KillOnlyUsers",
2253 (gchar *) "as",
2254 G_DBUS_PROPERTY_INFO_FLAGS_READABLE,
1aa981f7 2255 (GDBusAnnotationInfo **) &_logind_login1_manager_property_kill_only_users_annotation_info_pointers
5047f6bf 2256 },
2257 "kill-only-users",
2258 FALSE
2259};
2260
1aa981f7 2261static const GDBusAnnotationInfo _logind_login1_manager_property_kill_exclude_users_annotation_info_0 =
5047f6bf 2262{
2263 -1,
2264 (gchar *) "org.freedesktop.DBus.Property.EmitsChangedSignal",
2265 (gchar *) "const",
2266 NULL
2267};
2268
1aa981f7 2269static const GDBusAnnotationInfo * const _logind_login1_manager_property_kill_exclude_users_annotation_info_pointers[] =
5047f6bf 2270{
1aa981f7 2271 &_logind_login1_manager_property_kill_exclude_users_annotation_info_0,
5047f6bf 2272 NULL
2273};
2274
1aa981f7 2275static const _ExtendedGDBusPropertyInfo _logind_login1_manager_property_info_kill_exclude_users =
5047f6bf 2276{
2277 {
2278 -1,
2279 (gchar *) "KillExcludeUsers",
2280 (gchar *) "as",
2281 G_DBUS_PROPERTY_INFO_FLAGS_READABLE,
1aa981f7 2282 (GDBusAnnotationInfo **) &_logind_login1_manager_property_kill_exclude_users_annotation_info_pointers
5047f6bf 2283 },
2284 "kill-exclude-users",
2285 FALSE
2286};
2287
1aa981f7 2288static const GDBusAnnotationInfo _logind_login1_manager_property_kill_user_processes_annotation_info_0 =
5047f6bf 2289{
2290 -1,
2291 (gchar *) "org.freedesktop.DBus.Property.EmitsChangedSignal",
2292 (gchar *) "const",
2293 NULL
2294};
2295
1aa981f7 2296static const GDBusAnnotationInfo * const _logind_login1_manager_property_kill_user_processes_annotation_info_pointers[] =
5047f6bf 2297{
1aa981f7 2298 &_logind_login1_manager_property_kill_user_processes_annotation_info_0,
5047f6bf 2299 NULL
2300};
2301
1aa981f7 2302static const _ExtendedGDBusPropertyInfo _logind_login1_manager_property_info_kill_user_processes =
5047f6bf 2303{
2304 {
2305 -1,
2306 (gchar *) "KillUserProcesses",
2307 (gchar *) "b",
2308 G_DBUS_PROPERTY_INFO_FLAGS_READABLE,
1aa981f7 2309 (GDBusAnnotationInfo **) &_logind_login1_manager_property_kill_user_processes_annotation_info_pointers
5047f6bf 2310 },
2311 "kill-user-processes",
2312 FALSE
2313};
2314
1aa981f7 2315static const _ExtendedGDBusPropertyInfo _logind_login1_manager_property_info_idle_hint =
5047f6bf 2316{
2317 {
2318 -1,
2319 (gchar *) "IdleHint",
2320 (gchar *) "b",
2321 G_DBUS_PROPERTY_INFO_FLAGS_READABLE,
2322 NULL
2323 },
2324 "idle-hint",
2325 FALSE
2326};
2327
1aa981f7 2328static const _ExtendedGDBusPropertyInfo _logind_login1_manager_property_info_idle_since_hint =
5047f6bf 2329{
2330 {
2331 -1,
2332 (gchar *) "IdleSinceHint",
2333 (gchar *) "t",
2334 G_DBUS_PROPERTY_INFO_FLAGS_READABLE,
2335 NULL
2336 },
2337 "idle-since-hint",
2338 FALSE
2339};
2340
1aa981f7 2341static const _ExtendedGDBusPropertyInfo _logind_login1_manager_property_info_idle_since_hint_monotonic =
5047f6bf 2342{
2343 {
2344 -1,
2345 (gchar *) "IdleSinceHintMonotonic",
2346 (gchar *) "t",
2347 G_DBUS_PROPERTY_INFO_FLAGS_READABLE,
2348 NULL
2349 },
2350 "idle-since-hint-monotonic",
2351 FALSE
2352};
2353
1aa981f7 2354static const _ExtendedGDBusPropertyInfo _logind_login1_manager_property_info_block_inhibited =
5047f6bf 2355{
2356 {
2357 -1,
2358 (gchar *) "BlockInhibited",
2359 (gchar *) "s",
2360 G_DBUS_PROPERTY_INFO_FLAGS_READABLE,
2361 NULL
2362 },
2363 "block-inhibited",
2364 FALSE
2365};
2366
1aa981f7 2367static const _ExtendedGDBusPropertyInfo _logind_login1_manager_property_info_delay_inhibited =
5047f6bf 2368{
2369 {
2370 -1,
2371 (gchar *) "DelayInhibited",
2372 (gchar *) "s",
2373 G_DBUS_PROPERTY_INFO_FLAGS_READABLE,
2374 NULL
2375 },
2376 "delay-inhibited",
2377 FALSE
2378};
2379
1aa981f7 2380static const GDBusAnnotationInfo _logind_login1_manager_property_inhibit_delay_max_usec_annotation_info_0 =
5047f6bf 2381{
2382 -1,
2383 (gchar *) "org.freedesktop.DBus.Property.EmitsChangedSignal",
2384 (gchar *) "const",
2385 NULL
2386};
2387
1aa981f7 2388static const GDBusAnnotationInfo * const _logind_login1_manager_property_inhibit_delay_max_usec_annotation_info_pointers[] =
5047f6bf 2389{
1aa981f7 2390 &_logind_login1_manager_property_inhibit_delay_max_usec_annotation_info_0,
5047f6bf 2391 NULL
2392};
2393
1aa981f7 2394static const _ExtendedGDBusPropertyInfo _logind_login1_manager_property_info_inhibit_delay_max_usec =
5047f6bf 2395{
2396 {
2397 -1,
2398 (gchar *) "InhibitDelayMaxUSec",
2399 (gchar *) "t",
2400 G_DBUS_PROPERTY_INFO_FLAGS_READABLE,
1aa981f7 2401 (GDBusAnnotationInfo **) &_logind_login1_manager_property_inhibit_delay_max_usec_annotation_info_pointers
5047f6bf 2402 },
2403 "inhibit-delay-max-usec",
2404 FALSE
2405};
2406
1aa981f7 2407static const GDBusAnnotationInfo _logind_login1_manager_property_handle_power_key_annotation_info_0 =
5047f6bf 2408{
2409 -1,
2410 (gchar *) "org.freedesktop.DBus.Property.EmitsChangedSignal",
2411 (gchar *) "const",
2412 NULL
2413};
2414
1aa981f7 2415static const GDBusAnnotationInfo * const _logind_login1_manager_property_handle_power_key_annotation_info_pointers[] =
5047f6bf 2416{
1aa981f7 2417 &_logind_login1_manager_property_handle_power_key_annotation_info_0,
5047f6bf 2418 NULL
2419};
2420
1aa981f7 2421static const _ExtendedGDBusPropertyInfo _logind_login1_manager_property_info_handle_power_key =
5047f6bf 2422{
2423 {
2424 -1,
2425 (gchar *) "HandlePowerKey",
2426 (gchar *) "s",
2427 G_DBUS_PROPERTY_INFO_FLAGS_READABLE,
1aa981f7 2428 (GDBusAnnotationInfo **) &_logind_login1_manager_property_handle_power_key_annotation_info_pointers
5047f6bf 2429 },
2430 "handle-power-key",
2431 FALSE
2432};
2433
1aa981f7 2434static const GDBusAnnotationInfo _logind_login1_manager_property_handle_suspend_key_annotation_info_0 =
5047f6bf 2435{
2436 -1,
2437 (gchar *) "org.freedesktop.DBus.Property.EmitsChangedSignal",
2438 (gchar *) "const",
2439 NULL
2440};
2441
1aa981f7 2442static const GDBusAnnotationInfo * const _logind_login1_manager_property_handle_suspend_key_annotation_info_pointers[] =
5047f6bf 2443{
1aa981f7 2444 &_logind_login1_manager_property_handle_suspend_key_annotation_info_0,
5047f6bf 2445 NULL
2446};
2447
1aa981f7 2448static const _ExtendedGDBusPropertyInfo _logind_login1_manager_property_info_handle_suspend_key =
5047f6bf 2449{
2450 {
2451 -1,
2452 (gchar *) "HandleSuspendKey",
2453 (gchar *) "s",
2454 G_DBUS_PROPERTY_INFO_FLAGS_READABLE,
1aa981f7 2455 (GDBusAnnotationInfo **) &_logind_login1_manager_property_handle_suspend_key_annotation_info_pointers
5047f6bf 2456 },
2457 "handle-suspend-key",
2458 FALSE
2459};
2460
1aa981f7 2461static const GDBusAnnotationInfo _logind_login1_manager_property_handle_hibernate_key_annotation_info_0 =
5047f6bf 2462{
2463 -1,
2464 (gchar *) "org.freedesktop.DBus.Property.EmitsChangedSignal",
2465 (gchar *) "const",
2466 NULL
2467};
2468
1aa981f7 2469static const GDBusAnnotationInfo * const _logind_login1_manager_property_handle_hibernate_key_annotation_info_pointers[] =
5047f6bf 2470{
1aa981f7 2471 &_logind_login1_manager_property_handle_hibernate_key_annotation_info_0,
5047f6bf 2472 NULL
2473};
2474
1aa981f7 2475static const _ExtendedGDBusPropertyInfo _logind_login1_manager_property_info_handle_hibernate_key =
5047f6bf 2476{
2477 {
2478 -1,
2479 (gchar *) "HandleHibernateKey",
2480 (gchar *) "s",
2481 G_DBUS_PROPERTY_INFO_FLAGS_READABLE,
1aa981f7 2482 (GDBusAnnotationInfo **) &_logind_login1_manager_property_handle_hibernate_key_annotation_info_pointers
5047f6bf 2483 },
2484 "handle-hibernate-key",
2485 FALSE
2486};
2487
1aa981f7 2488static const GDBusAnnotationInfo _logind_login1_manager_property_handle_lid_switch_annotation_info_0 =
5047f6bf 2489{
2490 -1,
2491 (gchar *) "org.freedesktop.DBus.Property.EmitsChangedSignal",
2492 (gchar *) "const",
2493 NULL
2494};
2495
1aa981f7 2496static const GDBusAnnotationInfo * const _logind_login1_manager_property_handle_lid_switch_annotation_info_pointers[] =
5047f6bf 2497{
1aa981f7 2498 &_logind_login1_manager_property_handle_lid_switch_annotation_info_0,
5047f6bf 2499 NULL
2500};
2501
1aa981f7 2502static const _ExtendedGDBusPropertyInfo _logind_login1_manager_property_info_handle_lid_switch =
5047f6bf 2503{
2504 {
2505 -1,
2506 (gchar *) "HandleLidSwitch",
2507 (gchar *) "s",
2508 G_DBUS_PROPERTY_INFO_FLAGS_READABLE,
1aa981f7 2509 (GDBusAnnotationInfo **) &_logind_login1_manager_property_handle_lid_switch_annotation_info_pointers
5047f6bf 2510 },
2511 "handle-lid-switch",
2512 FALSE
2513};
2514
1aa981f7 2515static const GDBusAnnotationInfo _logind_login1_manager_property_idle_action_annotation_info_0 =
5047f6bf 2516{
2517 -1,
2518 (gchar *) "org.freedesktop.DBus.Property.EmitsChangedSignal",
2519 (gchar *) "const",
2520 NULL
2521};
2522
1aa981f7 2523static const GDBusAnnotationInfo * const _logind_login1_manager_property_idle_action_annotation_info_pointers[] =
5047f6bf 2524{
1aa981f7 2525 &_logind_login1_manager_property_idle_action_annotation_info_0,
5047f6bf 2526 NULL
2527};
2528
1aa981f7 2529static const _ExtendedGDBusPropertyInfo _logind_login1_manager_property_info_idle_action =
5047f6bf 2530{
2531 {
2532 -1,
2533 (gchar *) "IdleAction",
2534 (gchar *) "s",
2535 G_DBUS_PROPERTY_INFO_FLAGS_READABLE,
1aa981f7 2536 (GDBusAnnotationInfo **) &_logind_login1_manager_property_idle_action_annotation_info_pointers
5047f6bf 2537 },
2538 "idle-action",
2539 FALSE
2540};
2541
1aa981f7 2542static const GDBusAnnotationInfo _logind_login1_manager_property_idle_action_usec_annotation_info_0 =
5047f6bf 2543{
2544 -1,
2545 (gchar *) "org.freedesktop.DBus.Property.EmitsChangedSignal",
2546 (gchar *) "const",
2547 NULL
2548};
2549
1aa981f7 2550static const GDBusAnnotationInfo * const _logind_login1_manager_property_idle_action_usec_annotation_info_pointers[] =
5047f6bf 2551{
1aa981f7 2552 &_logind_login1_manager_property_idle_action_usec_annotation_info_0,
5047f6bf 2553 NULL
2554};
2555
1aa981f7 2556static const _ExtendedGDBusPropertyInfo _logind_login1_manager_property_info_idle_action_usec =
5047f6bf 2557{
2558 {
2559 -1,
2560 (gchar *) "IdleActionUSec",
2561 (gchar *) "t",
2562 G_DBUS_PROPERTY_INFO_FLAGS_READABLE,
1aa981f7 2563 (GDBusAnnotationInfo **) &_logind_login1_manager_property_idle_action_usec_annotation_info_pointers
5047f6bf 2564 },
2565 "idle-action-usec",
2566 FALSE
2567};
2568
1aa981f7 2569static const GDBusAnnotationInfo _logind_login1_manager_property_preparing_for_shutdown_annotation_info_0 =
5047f6bf 2570{
2571 -1,
2572 (gchar *) "org.freedesktop.DBus.Property.EmitsChangedSignal",
2573 (gchar *) "false",
2574 NULL
2575};
2576
1aa981f7 2577static const GDBusAnnotationInfo * const _logind_login1_manager_property_preparing_for_shutdown_annotation_info_pointers[] =
5047f6bf 2578{
1aa981f7 2579 &_logind_login1_manager_property_preparing_for_shutdown_annotation_info_0,
5047f6bf 2580 NULL
2581};
2582
1aa981f7 2583static const _ExtendedGDBusPropertyInfo _logind_login1_manager_property_info_preparing_for_shutdown =
5047f6bf 2584{
2585 {
2586 -1,
2587 (gchar *) "PreparingForShutdown",
2588 (gchar *) "b",
2589 G_DBUS_PROPERTY_INFO_FLAGS_READABLE,
1aa981f7 2590 (GDBusAnnotationInfo **) &_logind_login1_manager_property_preparing_for_shutdown_annotation_info_pointers
5047f6bf 2591 },
2592 "preparing-for-shutdown",
2593 FALSE
2594};
2595
1aa981f7 2596static const GDBusAnnotationInfo _logind_login1_manager_property_preparing_for_sleep_annotation_info_0 =
5047f6bf 2597{
2598 -1,
2599 (gchar *) "org.freedesktop.DBus.Property.EmitsChangedSignal",
2600 (gchar *) "false",
2601 NULL
2602};
2603
1aa981f7 2604static const GDBusAnnotationInfo * const _logind_login1_manager_property_preparing_for_sleep_annotation_info_pointers[] =
5047f6bf 2605{
1aa981f7 2606 &_logind_login1_manager_property_preparing_for_sleep_annotation_info_0,
5047f6bf 2607 NULL
2608};
2609
1aa981f7 2610static const _ExtendedGDBusPropertyInfo _logind_login1_manager_property_info_preparing_for_sleep =
5047f6bf 2611{
2612 {
2613 -1,
2614 (gchar *) "PreparingForSleep",
2615 (gchar *) "b",
2616 G_DBUS_PROPERTY_INFO_FLAGS_READABLE,
1aa981f7 2617 (GDBusAnnotationInfo **) &_logind_login1_manager_property_preparing_for_sleep_annotation_info_pointers
5047f6bf 2618 },
2619 "preparing-for-sleep",
2620 FALSE
2621};
2622
1aa981f7 2623static const _ExtendedGDBusPropertyInfo * const _logind_login1_manager_property_info_pointers[] =
2624{
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,
5047f6bf 2643 NULL
2644};
2645
1aa981f7 2646static const _ExtendedGDBusInterfaceInfo _logind_login1_manager_interface_info =
5047f6bf 2647{
2648 {
2649 -1,
2650 (gchar *) "org.freedesktop.login1.Manager",
1aa981f7 2651 (GDBusMethodInfo **) &_logind_login1_manager_method_info_pointers,
2652 (GDBusSignalInfo **) &_logind_login1_manager_signal_info_pointers,
2653 (GDBusPropertyInfo **) &_logind_login1_manager_property_info_pointers,
5047f6bf 2654 NULL
2655 },
2656 "login1-manager",
2657};
2658
2659
2660/**
1aa981f7 2661 * logind_login1_manager_interface_info:
5047f6bf 2662 *
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.
2664 *
2665 * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free.
2666 */
2667GDBusInterfaceInfo *
1aa981f7 2668logind_login1_manager_interface_info (void)
5047f6bf 2669{
1aa981f7 2670 return (GDBusInterfaceInfo *) &_logind_login1_manager_interface_info.parent_struct;
5047f6bf 2671}
2672
2673/**
1aa981f7 2674 * logind_login1_manager_override_properties:
5047f6bf 2675 * @klass: The class structure for a #GObject<!-- -->-derived class.
2676 * @property_id_begin: The property id to assign to the first overridden property.
2677 *
1aa981f7 2678 * Overrides all #GObject properties in the #logindLogin1Manager interface for a concrete class.
5047f6bf 2679 * The properties are overridden in the order they are defined.
2680 *
2681 * Returns: The last property id.
2682 */
2683guint
1aa981f7 2684logind_login1_manager_override_properties (GObjectClass *klass, guint property_id_begin)
5047f6bf 2685{
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;
2705}
2706
2707
2708
2709/**
1aa981f7 2710 * logindLogin1Manager:
5047f6bf 2711 *
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>.
2713 */
2714
2715/**
1aa981f7 2716 * logindLogin1ManagerIface:
5047f6bf 2717 * @parent_iface: The parent interface.
1aa981f7 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.
5047f6bf 2780 *
2781 * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-login1-Manager.top_of_page">org.freedesktop.login1.Manager</link>.
2782 */
2783
1aa981f7 2784typedef logindLogin1ManagerIface logindLogin1ManagerInterface;
2785G_DEFINE_INTERFACE (logindLogin1Manager, logind_login1_manager, G_TYPE_OBJECT);
5047f6bf 2786
2787static void
1aa981f7 2788logind_login1_manager_default_init (logindLogin1ManagerIface *iface)
5047f6bf 2789{
2790 /* GObject signals for incoming D-Bus method calls: */
2791 /**
1aa981f7 2792 * logindLogin1Manager::handle-get-session:
2793 * @object: A #logindLogin1Manager.
5047f6bf 2794 * @invocation: A #GDBusMethodInvocation.
2795 * @arg_unnamed_arg0: Argument passed by remote caller.
2796 *
2797 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-login1-Manager.GetSession">GetSession()</link> D-Bus method.
2798 *
1aa981f7 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.
5047f6bf 2800 *
2801 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
2802 */
2803 g_signal_new ("handle-get-session",
2804 G_TYPE_FROM_INTERFACE (iface),
2805 G_SIGNAL_RUN_LAST,
1aa981f7 2806 G_STRUCT_OFFSET (logindLogin1ManagerIface, handle_get_session),
5047f6bf 2807 g_signal_accumulator_true_handled,
2808 NULL,
2809 g_cclosure_marshal_generic,
2810 G_TYPE_BOOLEAN,
2811 2,
2812 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING);
2813
2814 /**
1aa981f7 2815 * logindLogin1Manager::handle-get-session-by-pid:
2816 * @object: A #logindLogin1Manager.
5047f6bf 2817 * @invocation: A #GDBusMethodInvocation.
2818 * @arg_unnamed_arg0: Argument passed by remote caller.
2819 *
2820 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-login1-Manager.GetSessionByPID">GetSessionByPID()</link> D-Bus method.
2821 *
1aa981f7 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.
5047f6bf 2823 *
2824 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
2825 */
2826 g_signal_new ("handle-get-session-by-pid",
2827 G_TYPE_FROM_INTERFACE (iface),
2828 G_SIGNAL_RUN_LAST,
1aa981f7 2829 G_STRUCT_OFFSET (logindLogin1ManagerIface, handle_get_session_by_pid),
5047f6bf 2830 g_signal_accumulator_true_handled,
2831 NULL,
2832 g_cclosure_marshal_generic,
2833 G_TYPE_BOOLEAN,
2834 2,
2835 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT);
2836
2837 /**
1aa981f7 2838 * logindLogin1Manager::handle-get-user:
2839 * @object: A #logindLogin1Manager.
5047f6bf 2840 * @invocation: A #GDBusMethodInvocation.
2841 * @arg_unnamed_arg0: Argument passed by remote caller.
2842 *
2843 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-login1-Manager.GetUser">GetUser()</link> D-Bus method.
2844 *
1aa981f7 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.
5047f6bf 2846 *
2847 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
2848 */
2849 g_signal_new ("handle-get-user",
2850 G_TYPE_FROM_INTERFACE (iface),
2851 G_SIGNAL_RUN_LAST,
1aa981f7 2852 G_STRUCT_OFFSET (logindLogin1ManagerIface, handle_get_user),
5047f6bf 2853 g_signal_accumulator_true_handled,
2854 NULL,
2855 g_cclosure_marshal_generic,
2856 G_TYPE_BOOLEAN,
2857 2,
2858 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT);
2859
2860 /**
1aa981f7 2861 * logindLogin1Manager::handle-get-user-by-pid:
2862 * @object: A #logindLogin1Manager.
5047f6bf 2863 * @invocation: A #GDBusMethodInvocation.
2864 * @arg_unnamed_arg0: Argument passed by remote caller.
2865 *
2866 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-login1-Manager.GetUserByPID">GetUserByPID()</link> D-Bus method.
2867 *
1aa981f7 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.
5047f6bf 2869 *
2870 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
2871 */
2872 g_signal_new ("handle-get-user-by-pid",
2873 G_TYPE_FROM_INTERFACE (iface),
2874 G_SIGNAL_RUN_LAST,
1aa981f7 2875 G_STRUCT_OFFSET (logindLogin1ManagerIface, handle_get_user_by_pid),
5047f6bf 2876 g_signal_accumulator_true_handled,
2877 NULL,
2878 g_cclosure_marshal_generic,
2879 G_TYPE_BOOLEAN,
2880 2,
2881 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT);
2882
2883 /**
1aa981f7 2884 * logindLogin1Manager::handle-get-seat:
2885 * @object: A #logindLogin1Manager.
5047f6bf 2886 * @invocation: A #GDBusMethodInvocation.
2887 * @arg_unnamed_arg0: Argument passed by remote caller.
2888 *
2889 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-login1-Manager.GetSeat">GetSeat()</link> D-Bus method.
2890 *
1aa981f7 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.
5047f6bf 2892 *
2893 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
2894 */
2895 g_signal_new ("handle-get-seat",
2896 G_TYPE_FROM_INTERFACE (iface),
2897 G_SIGNAL_RUN_LAST,
1aa981f7 2898 G_STRUCT_OFFSET (logindLogin1ManagerIface, handle_get_seat),
5047f6bf 2899 g_signal_accumulator_true_handled,
2900 NULL,
2901 g_cclosure_marshal_generic,
2902 G_TYPE_BOOLEAN,
2903 2,
2904 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING);
2905
2906 /**
1aa981f7 2907 * logindLogin1Manager::handle-list-sessions:
2908 * @object: A #logindLogin1Manager.
5047f6bf 2909 * @invocation: A #GDBusMethodInvocation.
2910 *
2911 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-login1-Manager.ListSessions">ListSessions()</link> D-Bus method.
2912 *
1aa981f7 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.
5047f6bf 2914 *
2915 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
2916 */
2917 g_signal_new ("handle-list-sessions",
2918 G_TYPE_FROM_INTERFACE (iface),
2919 G_SIGNAL_RUN_LAST,
1aa981f7 2920 G_STRUCT_OFFSET (logindLogin1ManagerIface, handle_list_sessions),
5047f6bf 2921 g_signal_accumulator_true_handled,
2922 NULL,
2923 g_cclosure_marshal_generic,
2924 G_TYPE_BOOLEAN,
2925 1,
2926 G_TYPE_DBUS_METHOD_INVOCATION);
2927
2928 /**
1aa981f7 2929 * logindLogin1Manager::handle-list-users:
2930 * @object: A #logindLogin1Manager.
5047f6bf 2931 * @invocation: A #GDBusMethodInvocation.
2932 *
2933 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-login1-Manager.ListUsers">ListUsers()</link> D-Bus method.
2934 *
1aa981f7 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.
5047f6bf 2936 *
2937 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
2938 */
2939 g_signal_new ("handle-list-users",
2940 G_TYPE_FROM_INTERFACE (iface),
2941 G_SIGNAL_RUN_LAST,
1aa981f7 2942 G_STRUCT_OFFSET (logindLogin1ManagerIface, handle_list_users),
5047f6bf 2943 g_signal_accumulator_true_handled,
2944 NULL,
2945 g_cclosure_marshal_generic,
2946 G_TYPE_BOOLEAN,
2947 1,
2948 G_TYPE_DBUS_METHOD_INVOCATION);
2949
2950 /**
1aa981f7 2951 * logindLogin1Manager::handle-list-seats:
2952 * @object: A #logindLogin1Manager.
5047f6bf 2953 * @invocation: A #GDBusMethodInvocation.
2954 *
2955 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-login1-Manager.ListSeats">ListSeats()</link> D-Bus method.
2956 *
1aa981f7 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.
5047f6bf 2958 *
2959 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
2960 */
2961 g_signal_new ("handle-list-seats",
2962 G_TYPE_FROM_INTERFACE (iface),
2963 G_SIGNAL_RUN_LAST,
1aa981f7 2964 G_STRUCT_OFFSET (logindLogin1ManagerIface, handle_list_seats),
5047f6bf 2965 g_signal_accumulator_true_handled,
2966 NULL,
2967 g_cclosure_marshal_generic,
2968 G_TYPE_BOOLEAN,
2969 1,
2970 G_TYPE_DBUS_METHOD_INVOCATION);
2971
2972 /**
1aa981f7 2973 * logindLogin1Manager::handle-list-inhibitors:
2974 * @object: A #logindLogin1Manager.
5047f6bf 2975 * @invocation: A #GDBusMethodInvocation.
2976 *
2977 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-login1-Manager.ListInhibitors">ListInhibitors()</link> D-Bus method.
2978 *
1aa981f7 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.
5047f6bf 2980 *
2981 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
2982 */
2983 g_signal_new ("handle-list-inhibitors",
2984 G_TYPE_FROM_INTERFACE (iface),
2985 G_SIGNAL_RUN_LAST,
1aa981f7 2986 G_STRUCT_OFFSET (logindLogin1ManagerIface, handle_list_inhibitors),
5047f6bf 2987 g_signal_accumulator_true_handled,
2988 NULL,
2989 g_cclosure_marshal_generic,
2990 G_TYPE_BOOLEAN,
2991 1,
2992 G_TYPE_DBUS_METHOD_INVOCATION);
2993
2994 /**
1aa981f7 2995 * logindLogin1Manager::handle-create-session:
2996 * @object: A #logindLogin1Manager.
5047f6bf 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.
3012 *
3013 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-login1-Manager.CreateSession">CreateSession()</link> D-Bus method.
3014 *
1aa981f7 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.
5047f6bf 3016 *
3017 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
3018 */
3019 g_signal_new ("handle-create-session",
3020 G_TYPE_FROM_INTERFACE (iface),
3021 G_SIGNAL_RUN_LAST,
1aa981f7 3022 G_STRUCT_OFFSET (logindLogin1ManagerIface, handle_create_session),
5047f6bf 3023 g_signal_accumulator_true_handled,
3024 NULL,
3025 g_cclosure_marshal_generic,
3026 G_TYPE_BOOLEAN,
3027 15,
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);
3029
3030 /**
1aa981f7 3031 * logindLogin1Manager::handle-release-session:
3032 * @object: A #logindLogin1Manager.
5047f6bf 3033 * @invocation: A #GDBusMethodInvocation.
3034 * @arg_unnamed_arg0: Argument passed by remote caller.
3035 *
3036 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-login1-Manager.ReleaseSession">ReleaseSession()</link> D-Bus method.
3037 *
1aa981f7 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.
5047f6bf 3039 *
3040 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
3041 */
3042 g_signal_new ("handle-release-session",
3043 G_TYPE_FROM_INTERFACE (iface),
3044 G_SIGNAL_RUN_LAST,
1aa981f7 3045 G_STRUCT_OFFSET (logindLogin1ManagerIface, handle_release_session),
5047f6bf 3046 g_signal_accumulator_true_handled,
3047 NULL,
3048 g_cclosure_marshal_generic,
3049 G_TYPE_BOOLEAN,
3050 2,
3051 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING);
3052
3053 /**
1aa981f7 3054 * logindLogin1Manager::handle-activate-session:
3055 * @object: A #logindLogin1Manager.
5047f6bf 3056 * @invocation: A #GDBusMethodInvocation.
3057 * @arg_unnamed_arg0: Argument passed by remote caller.
3058 *
3059 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-login1-Manager.ActivateSession">ActivateSession()</link> D-Bus method.
3060 *
1aa981f7 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.
5047f6bf 3062 *
3063 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
3064 */
3065 g_signal_new ("handle-activate-session",
3066 G_TYPE_FROM_INTERFACE (iface),
3067 G_SIGNAL_RUN_LAST,
1aa981f7 3068 G_STRUCT_OFFSET (logindLogin1ManagerIface, handle_activate_session),
5047f6bf 3069 g_signal_accumulator_true_handled,
3070 NULL,
3071 g_cclosure_marshal_generic,
3072 G_TYPE_BOOLEAN,
3073 2,
3074 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING);
3075
3076 /**
1aa981f7 3077 * logindLogin1Manager::handle-activate-session-on-seat:
3078 * @object: A #logindLogin1Manager.
5047f6bf 3079 * @invocation: A #GDBusMethodInvocation.
3080 * @arg_unnamed_arg0: Argument passed by remote caller.
3081 * @arg_unnamed_arg1: Argument passed by remote caller.
3082 *
3083 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-login1-Manager.ActivateSessionOnSeat">ActivateSessionOnSeat()</link> D-Bus method.
3084 *
1aa981f7 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.
5047f6bf 3086 *
3087 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
3088 */
3089 g_signal_new ("handle-activate-session-on-seat",
3090 G_TYPE_FROM_INTERFACE (iface),
3091 G_SIGNAL_RUN_LAST,
1aa981f7 3092 G_STRUCT_OFFSET (logindLogin1ManagerIface, handle_activate_session_on_seat),
5047f6bf 3093 g_signal_accumulator_true_handled,
3094 NULL,
3095 g_cclosure_marshal_generic,
3096 G_TYPE_BOOLEAN,
3097 3,
3098 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_STRING);
3099
3100 /**
1aa981f7 3101 * logindLogin1Manager::handle-lock-session:
3102 * @object: A #logindLogin1Manager.
5047f6bf 3103 * @invocation: A #GDBusMethodInvocation.
3104 * @arg_unnamed_arg0: Argument passed by remote caller.
3105 *
3106 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-login1-Manager.LockSession">LockSession()</link> D-Bus method.
3107 *
1aa981f7 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.
5047f6bf 3109 *
3110 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
3111 */
3112 g_signal_new ("handle-lock-session",
3113 G_TYPE_FROM_INTERFACE (iface),
3114 G_SIGNAL_RUN_LAST,
1aa981f7 3115 G_STRUCT_OFFSET (logindLogin1ManagerIface, handle_lock_session),
5047f6bf 3116 g_signal_accumulator_true_handled,
3117 NULL,
3118 g_cclosure_marshal_generic,
3119 G_TYPE_BOOLEAN,
3120 2,
3121 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING);
3122
3123 /**
1aa981f7 3124 * logindLogin1Manager::handle-unlock-session:
3125 * @object: A #logindLogin1Manager.
5047f6bf 3126 * @invocation: A #GDBusMethodInvocation.
3127 * @arg_unnamed_arg0: Argument passed by remote caller.
3128 *
3129 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-login1-Manager.UnlockSession">UnlockSession()</link> D-Bus method.
3130 *
1aa981f7 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.
5047f6bf 3132 *
3133 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
3134 */
3135 g_signal_new ("handle-unlock-session",
3136 G_TYPE_FROM_INTERFACE (iface),
3137 G_SIGNAL_RUN_LAST,
1aa981f7 3138 G_STRUCT_OFFSET (logindLogin1ManagerIface, handle_unlock_session),
5047f6bf 3139 g_signal_accumulator_true_handled,
3140 NULL,
3141 g_cclosure_marshal_generic,
3142 G_TYPE_BOOLEAN,
3143 2,
3144 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING);
3145
3146 /**
1aa981f7 3147 * logindLogin1Manager::handle-lock-sessions:
3148 * @object: A #logindLogin1Manager.
5047f6bf 3149 * @invocation: A #GDBusMethodInvocation.
3150 *
3151 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-login1-Manager.LockSessions">LockSessions()</link> D-Bus method.
3152 *
1aa981f7 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.
5047f6bf 3154 *
3155 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
3156 */
3157 g_signal_new ("handle-lock-sessions",
3158 G_TYPE_FROM_INTERFACE (iface),
3159 G_SIGNAL_RUN_LAST,
1aa981f7 3160 G_STRUCT_OFFSET (logindLogin1ManagerIface, handle_lock_sessions),
5047f6bf 3161 g_signal_accumulator_true_handled,
3162 NULL,
3163 g_cclosure_marshal_generic,
3164 G_TYPE_BOOLEAN,
3165 1,
3166 G_TYPE_DBUS_METHOD_INVOCATION);
3167
3168 /**
1aa981f7 3169 * logindLogin1Manager::handle-unlock-sessions:
3170 * @object: A #logindLogin1Manager.
5047f6bf 3171 * @invocation: A #GDBusMethodInvocation.
3172 *
3173 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-login1-Manager.UnlockSessions">UnlockSessions()</link> D-Bus method.
3174 *
1aa981f7 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.
5047f6bf 3176 *
3177 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
3178 */
3179 g_signal_new ("handle-unlock-sessions",
3180 G_TYPE_FROM_INTERFACE (iface),
3181 G_SIGNAL_RUN_LAST,
1aa981f7 3182 G_STRUCT_OFFSET (logindLogin1ManagerIface, handle_unlock_sessions),
5047f6bf 3183 g_signal_accumulator_true_handled,
3184 NULL,
3185 g_cclosure_marshal_generic,
3186 G_TYPE_BOOLEAN,
3187 1,
3188 G_TYPE_DBUS_METHOD_INVOCATION);
3189
3190 /**
1aa981f7 3191 * logindLogin1Manager::handle-kill-session:
3192 * @object: A #logindLogin1Manager.
5047f6bf 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.
3197 *
3198 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-login1-Manager.KillSession">KillSession()</link> D-Bus method.
3199 *
1aa981f7 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.
5047f6bf 3201 *
3202 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
3203 */
3204 g_signal_new ("handle-kill-session",
3205 G_TYPE_FROM_INTERFACE (iface),
3206 G_SIGNAL_RUN_LAST,
1aa981f7 3207 G_STRUCT_OFFSET (logindLogin1ManagerIface, handle_kill_session),
5047f6bf 3208 g_signal_accumulator_true_handled,
3209 NULL,
3210 g_cclosure_marshal_generic,
3211 G_TYPE_BOOLEAN,
3212 4,
3213 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_INT);
3214
3215 /**
1aa981f7 3216 * logindLogin1Manager::handle-kill-user:
3217 * @object: A #logindLogin1Manager.
5047f6bf 3218 * @invocation: A #GDBusMethodInvocation.
3219 * @arg_unnamed_arg0: Argument passed by remote caller.
3220 * @arg_unnamed_arg1: Argument passed by remote caller.
3221 *
3222 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-login1-Manager.KillUser">KillUser()</link> D-Bus method.
3223 *
1aa981f7 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.
5047f6bf 3225 *
3226 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
3227 */
3228 g_signal_new ("handle-kill-user",
3229 G_TYPE_FROM_INTERFACE (iface),
3230 G_SIGNAL_RUN_LAST,
1aa981f7 3231 G_STRUCT_OFFSET (logindLogin1ManagerIface, handle_kill_user),
5047f6bf 3232 g_signal_accumulator_true_handled,
3233 NULL,
3234 g_cclosure_marshal_generic,
3235 G_TYPE_BOOLEAN,
3236 3,
3237 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT, G_TYPE_INT);
3238
3239 /**
1aa981f7 3240 * logindLogin1Manager::handle-terminate-session:
3241 * @object: A #logindLogin1Manager.
5047f6bf 3242 * @invocation: A #GDBusMethodInvocation.
3243 * @arg_unnamed_arg0: Argument passed by remote caller.
3244 *
3245 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-login1-Manager.TerminateSession">TerminateSession()</link> D-Bus method.
3246 *
1aa981f7 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.
5047f6bf 3248 *
3249 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
3250 */
3251 g_signal_new ("handle-terminate-session",
3252 G_TYPE_FROM_INTERFACE (iface),
3253 G_SIGNAL_RUN_LAST,
1aa981f7 3254 G_STRUCT_OFFSET (logindLogin1ManagerIface, handle_terminate_session),
5047f6bf 3255 g_signal_accumulator_true_handled,
3256 NULL,
3257 g_cclosure_marshal_generic,
3258 G_TYPE_BOOLEAN,
3259 2,
3260 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING);
3261
3262 /**
1aa981f7 3263 * logindLogin1Manager::handle-terminate-user:
3264 * @object: A #logindLogin1Manager.
5047f6bf 3265 * @invocation: A #GDBusMethodInvocation.
3266 * @arg_unnamed_arg0: Argument passed by remote caller.
3267 *
3268 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-login1-Manager.TerminateUser">TerminateUser()</link> D-Bus method.
3269 *
1aa981f7 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.
5047f6bf 3271 *
3272 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
3273 */
3274 g_signal_new ("handle-terminate-user",
3275 G_TYPE_FROM_INTERFACE (iface),
3276 G_SIGNAL_RUN_LAST,
1aa981f7 3277 G_STRUCT_OFFSET (logindLogin1ManagerIface, handle_terminate_user),
5047f6bf 3278 g_signal_accumulator_true_handled,
3279 NULL,
3280 g_cclosure_marshal_generic,
3281 G_TYPE_BOOLEAN,
3282 2,
3283 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT);
3284
3285 /**
1aa981f7 3286 * logindLogin1Manager::handle-terminate-seat:
3287 * @object: A #logindLogin1Manager.
5047f6bf 3288 * @invocation: A #GDBusMethodInvocation.
3289 * @arg_unnamed_arg0: Argument passed by remote caller.
3290 *
3291 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-login1-Manager.TerminateSeat">TerminateSeat()</link> D-Bus method.
3292 *
1aa981f7 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.
5047f6bf 3294 *
3295 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
3296 */
3297 g_signal_new ("handle-terminate-seat",
3298 G_TYPE_FROM_INTERFACE (iface),
3299 G_SIGNAL_RUN_LAST,
1aa981f7 3300 G_STRUCT_OFFSET (logindLogin1ManagerIface, handle_terminate_seat),
5047f6bf 3301 g_signal_accumulator_true_handled,
3302 NULL,
3303 g_cclosure_marshal_generic,
3304 G_TYPE_BOOLEAN,
3305 2,
3306 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING);
3307
3308 /**
1aa981f7 3309 * logindLogin1Manager::handle-set-user-linger:
3310 * @object: A #logindLogin1Manager.
5047f6bf 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.
3315 *
3316 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-login1-Manager.SetUserLinger">SetUserLinger()</link> D-Bus method.
3317 *
1aa981f7 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.
5047f6bf 3319 *
3320 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
3321 */
3322 g_signal_new ("handle-set-user-linger",
3323 G_TYPE_FROM_INTERFACE (iface),
3324 G_SIGNAL_RUN_LAST,
1aa981f7 3325 G_STRUCT_OFFSET (logindLogin1ManagerIface, handle_set_user_linger),
5047f6bf 3326 g_signal_accumulator_true_handled,
3327 NULL,
3328 g_cclosure_marshal_generic,
3329 G_TYPE_BOOLEAN,
3330 4,
3331 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT, G_TYPE_BOOLEAN, G_TYPE_BOOLEAN);
3332
3333 /**
1aa981f7 3334 * logindLogin1Manager::handle-attach-device:
3335 * @object: A #logindLogin1Manager.
5047f6bf 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.
3340 *
3341 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-login1-Manager.AttachDevice">AttachDevice()</link> D-Bus method.
3342 *
1aa981f7 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.
5047f6bf 3344 *
3345 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
3346 */
3347 g_signal_new ("handle-attach-device",
3348 G_TYPE_FROM_INTERFACE (iface),
3349 G_SIGNAL_RUN_LAST,
1aa981f7 3350 G_STRUCT_OFFSET (logindLogin1ManagerIface, handle_attach_device),
5047f6bf 3351 g_signal_accumulator_true_handled,
3352 NULL,
3353 g_cclosure_marshal_generic,
3354 G_TYPE_BOOLEAN,
3355 4,
3356 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_BOOLEAN);
3357
3358 /**
1aa981f7 3359 * logindLogin1Manager::handle-flush-devices:
3360 * @object: A #logindLogin1Manager.
5047f6bf 3361 * @invocation: A #GDBusMethodInvocation.
3362 * @arg_unnamed_arg0: Argument passed by remote caller.
3363 *
3364 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-login1-Manager.FlushDevices">FlushDevices()</link> D-Bus method.
3365 *
1aa981f7 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.
5047f6bf 3367 *
3368 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
3369 */
3370 g_signal_new ("handle-flush-devices",
3371 G_TYPE_FROM_INTERFACE (iface),
3372 G_SIGNAL_RUN_LAST,
1aa981f7 3373 G_STRUCT_OFFSET (logindLogin1ManagerIface, handle_flush_devices),
5047f6bf 3374 g_signal_accumulator_true_handled,
3375 NULL,
3376 g_cclosure_marshal_generic,
3377 G_TYPE_BOOLEAN,
3378 2,
3379 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_BOOLEAN);
3380
3381 /**
1aa981f7 3382 * logindLogin1Manager::handle-power-off:
3383 * @object: A #logindLogin1Manager.
5047f6bf 3384 * @invocation: A #GDBusMethodInvocation.
3385 * @arg_unnamed_arg0: Argument passed by remote caller.
3386 *
3387 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-login1-Manager.PowerOff">PowerOff()</link> D-Bus method.
3388 *
1aa981f7 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.
5047f6bf 3390 *
3391 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
3392 */
3393 g_signal_new ("handle-power-off",
3394 G_TYPE_FROM_INTERFACE (iface),
3395 G_SIGNAL_RUN_LAST,
1aa981f7 3396 G_STRUCT_OFFSET (logindLogin1ManagerIface, handle_power_off),
5047f6bf 3397 g_signal_accumulator_true_handled,
3398 NULL,
3399 g_cclosure_marshal_generic,
3400 G_TYPE_BOOLEAN,
3401 2,
3402 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_BOOLEAN);
3403
3404 /**
1aa981f7 3405 * logindLogin1Manager::handle-reboot:
3406 * @object: A #logindLogin1Manager.
5047f6bf 3407 * @invocation: A #GDBusMethodInvocation.
3408 * @arg_unnamed_arg0: Argument passed by remote caller.
3409 *
3410 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-login1-Manager.Reboot">Reboot()</link> D-Bus method.
3411 *
1aa981f7 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.
5047f6bf 3413 *
3414 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
3415 */
3416 g_signal_new ("handle-reboot",
3417 G_TYPE_FROM_INTERFACE (iface),
3418 G_SIGNAL_RUN_LAST,
1aa981f7 3419 G_STRUCT_OFFSET (logindLogin1ManagerIface, handle_reboot),
5047f6bf 3420 g_signal_accumulator_true_handled,
3421 NULL,
3422 g_cclosure_marshal_generic,
3423 G_TYPE_BOOLEAN,
3424 2,
3425 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_BOOLEAN);
3426
3427 /**
1aa981f7 3428 * logindLogin1Manager::handle-suspend:
3429 * @object: A #logindLogin1Manager.
5047f6bf 3430 * @invocation: A #GDBusMethodInvocation.
3431 * @arg_unnamed_arg0: Argument passed by remote caller.
3432 *
3433 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-login1-Manager.Suspend">Suspend()</link> D-Bus method.
3434 *
1aa981f7 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.
5047f6bf 3436 *
3437 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
3438 */
3439 g_signal_new ("handle-suspend",
3440 G_TYPE_FROM_INTERFACE (iface),
3441 G_SIGNAL_RUN_LAST,
1aa981f7 3442 G_STRUCT_OFFSET (logindLogin1ManagerIface, handle_suspend),
5047f6bf 3443 g_signal_accumulator_true_handled,
3444 NULL,
3445 g_cclosure_marshal_generic,
3446 G_TYPE_BOOLEAN,
3447 2,
3448 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_BOOLEAN);
3449
3450 /**
1aa981f7 3451 * logindLogin1Manager::handle-hibernate:
3452 * @object: A #logindLogin1Manager.
5047f6bf 3453 * @invocation: A #GDBusMethodInvocation.
3454 * @arg_unnamed_arg0: Argument passed by remote caller.
3455 *
3456 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-login1-Manager.Hibernate">Hibernate()</link> D-Bus method.
3457 *
1aa981f7 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.
5047f6bf 3459 *
3460 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
3461 */
3462 g_signal_new ("handle-hibernate",
3463 G_TYPE_FROM_INTERFACE (iface),
3464 G_SIGNAL_RUN_LAST,
1aa981f7 3465 G_STRUCT_OFFSET (logindLogin1ManagerIface, handle_hibernate),
5047f6bf 3466 g_signal_accumulator_true_handled,
3467 NULL,
3468 g_cclosure_marshal_generic,
3469 G_TYPE_BOOLEAN,
3470 2,
3471 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_BOOLEAN);
3472
3473 /**
1aa981f7 3474 * logindLogin1Manager::handle-hybrid-sleep:
3475 * @object: A #logindLogin1Manager.
5047f6bf 3476 * @invocation: A #GDBusMethodInvocation.
3477 * @arg_unnamed_arg0: Argument passed by remote caller.
3478 *
3479 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-login1-Manager.HybridSleep">HybridSleep()</link> D-Bus method.
3480 *
1aa981f7 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.
5047f6bf 3482 *
3483 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
3484 */
3485 g_signal_new ("handle-hybrid-sleep",
3486 G_TYPE_FROM_INTERFACE (iface),
3487 G_SIGNAL_RUN_LAST,
1aa981f7 3488 G_STRUCT_OFFSET (logindLogin1ManagerIface, handle_hybrid_sleep),
5047f6bf 3489 g_signal_accumulator_true_handled,
3490 NULL,
3491 g_cclosure_marshal_generic,
3492 G_TYPE_BOOLEAN,
3493 2,
3494 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_BOOLEAN);
3495
3496 /**
1aa981f7 3497 * logindLogin1Manager::handle-can-power-off:
3498 * @object: A #logindLogin1Manager.
5047f6bf 3499 * @invocation: A #GDBusMethodInvocation.
3500 *
3501 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-login1-Manager.CanPowerOff">CanPowerOff()</link> D-Bus method.
3502 *
1aa981f7 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.
5047f6bf 3504 *
3505 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
3506 */
3507 g_signal_new ("handle-can-power-off",
3508 G_TYPE_FROM_INTERFACE (iface),
3509 G_SIGNAL_RUN_LAST,
1aa981f7 3510 G_STRUCT_OFFSET (logindLogin1ManagerIface, handle_can_power_off),
5047f6bf 3511 g_signal_accumulator_true_handled,
3512 NULL,
3513 g_cclosure_marshal_generic,
3514 G_TYPE_BOOLEAN,
3515 1,
3516 G_TYPE_DBUS_METHOD_INVOCATION);
3517
3518 /**
1aa981f7 3519 * logindLogin1Manager::handle-can-reboot:
3520 * @object: A #logindLogin1Manager.
5047f6bf 3521 * @invocation: A #GDBusMethodInvocation.
3522 *
3523 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-login1-Manager.CanReboot">CanReboot()</link> D-Bus method.
3524 *
1aa981f7 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.
5047f6bf 3526 *
3527 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
3528 */
3529 g_signal_new ("handle-can-reboot",
3530 G_TYPE_FROM_INTERFACE (iface),
3531 G_SIGNAL_RUN_LAST,
1aa981f7 3532 G_STRUCT_OFFSET (logindLogin1ManagerIface, handle_can_reboot),
5047f6bf 3533 g_signal_accumulator_true_handled,
3534 NULL,
3535 g_cclosure_marshal_generic,
3536 G_TYPE_BOOLEAN,
3537 1,
3538 G_TYPE_DBUS_METHOD_INVOCATION);
3539
3540 /**
1aa981f7 3541 * logindLogin1Manager::handle-can-suspend:
3542 * @object: A #logindLogin1Manager.
5047f6bf 3543 * @invocation: A #GDBusMethodInvocation.
3544 *
3545 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-login1-Manager.CanSuspend">CanSuspend()</link> D-Bus method.
3546 *
1aa981f7 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.
5047f6bf 3548 *
3549 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
3550 */
3551 g_signal_new ("handle-can-suspend",
3552 G_TYPE_FROM_INTERFACE (iface),
3553 G_SIGNAL_RUN_LAST,
1aa981f7 3554 G_STRUCT_OFFSET (logindLogin1ManagerIface, handle_can_suspend),
5047f6bf 3555 g_signal_accumulator_true_handled,
3556 NULL,
3557 g_cclosure_marshal_generic,
3558 G_TYPE_BOOLEAN,
3559 1,
3560 G_TYPE_DBUS_METHOD_INVOCATION);
3561
3562 /**
1aa981f7 3563 * logindLogin1Manager::handle-can-hibernate:
3564 * @object: A #logindLogin1Manager.
5047f6bf 3565 * @invocation: A #GDBusMethodInvocation.
3566 *
3567 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-login1-Manager.CanHibernate">CanHibernate()</link> D-Bus method.
3568 *
1aa981f7 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.
5047f6bf 3570 *
3571 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
3572 */
3573 g_signal_new ("handle-can-hibernate",
3574 G_TYPE_FROM_INTERFACE (iface),
3575 G_SIGNAL_RUN_LAST,
1aa981f7 3576 G_STRUCT_OFFSET (logindLogin1ManagerIface, handle_can_hibernate),
5047f6bf 3577 g_signal_accumulator_true_handled,
3578 NULL,
3579 g_cclosure_marshal_generic,
3580 G_TYPE_BOOLEAN,
3581 1,
3582 G_TYPE_DBUS_METHOD_INVOCATION);
3583
3584 /**
1aa981f7 3585 * logindLogin1Manager::handle-can-hybrid-sleep:
3586 * @object: A #logindLogin1Manager.
5047f6bf 3587 * @invocation: A #GDBusMethodInvocation.
3588 *
3589 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-login1-Manager.CanHybridSleep">CanHybridSleep()</link> D-Bus method.
3590 *
1aa981f7 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.
5047f6bf 3592 *
3593 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
3594 */
3595 g_signal_new ("handle-can-hybrid-sleep",
3596 G_TYPE_FROM_INTERFACE (iface),
3597 G_SIGNAL_RUN_LAST,
1aa981f7 3598 G_STRUCT_OFFSET (logindLogin1ManagerIface, handle_can_hybrid_sleep),
5047f6bf 3599 g_signal_accumulator_true_handled,
3600 NULL,
3601 g_cclosure_marshal_generic,
3602 G_TYPE_BOOLEAN,
3603 1,
3604 G_TYPE_DBUS_METHOD_INVOCATION);
3605
3606 /**
1aa981f7 3607 * logindLogin1Manager::handle-inhibit:
3608 * @object: A #logindLogin1Manager.
5047f6bf 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.
3614 *
3615 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-freedesktop-login1-Manager.Inhibit">Inhibit()</link> D-Bus method.
3616 *
1aa981f7 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.
5047f6bf 3618 *
3619 * Returns: %TRUE if the invocation was handled, %FALSE to let other signal handlers run.
3620 */
3621 g_signal_new ("handle-inhibit",
3622 G_TYPE_FROM_INTERFACE (iface),
3623 G_SIGNAL_RUN_LAST,
1aa981f7 3624 G_STRUCT_OFFSET (logindLogin1ManagerIface, handle_inhibit),
5047f6bf 3625 g_signal_accumulator_true_handled,
3626 NULL,
3627 g_cclosure_marshal_generic,
3628 G_TYPE_BOOLEAN,
3629 5,
3630 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING);
3631
3632 /* GObject signals for received D-Bus signals: */
3633 /**
1aa981f7 3634 * logindLogin1Manager::session-new:
3635 * @object: A #logindLogin1Manager.
5047f6bf 3636 * @arg_unnamed_arg0: Argument.
3637 * @arg_unnamed_arg1: Argument.
3638 *
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.
3640 *
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.
3642 */
3643 g_signal_new ("session-new",
3644 G_TYPE_FROM_INTERFACE (iface),
3645 G_SIGNAL_RUN_LAST,
1aa981f7 3646 G_STRUCT_OFFSET (logindLogin1ManagerIface, session_new),
5047f6bf 3647 NULL,
3648 NULL,
3649 g_cclosure_marshal_generic,
3650 G_TYPE_NONE,
3651 2, G_TYPE_STRING, G_TYPE_STRING);
3652
3653 /**
1aa981f7 3654 * logindLogin1Manager::session-removed:
3655 * @object: A #logindLogin1Manager.
5047f6bf 3656 * @arg_unnamed_arg0: Argument.
3657 * @arg_unnamed_arg1: Argument.
3658 *
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.
3660 *
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.
3662 */
3663 g_signal_new ("session-removed",
3664 G_TYPE_FROM_INTERFACE (iface),
3665 G_SIGNAL_RUN_LAST,
1aa981f7 3666 G_STRUCT_OFFSET (logindLogin1ManagerIface, session_removed),
5047f6bf 3667 NULL,
3668 NULL,
3669 g_cclosure_marshal_generic,
3670 G_TYPE_NONE,
3671 2, G_TYPE_STRING, G_TYPE_STRING);
3672
3673 /**
1aa981f7 3674 * logindLogin1Manager::user-new:
3675 * @object: A #logindLogin1Manager.
5047f6bf 3676 * @arg_unnamed_arg0: Argument.
3677 * @arg_unnamed_arg1: Argument.
3678 *
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.
3680 *
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.
3682 */
3683 g_signal_new ("user-new",
3684 G_TYPE_FROM_INTERFACE (iface),
3685 G_SIGNAL_RUN_LAST,
1aa981f7 3686 G_STRUCT_OFFSET (logindLogin1ManagerIface, user_new),
5047f6bf 3687 NULL,
3688 NULL,
3689 g_cclosure_marshal_generic,
3690 G_TYPE_NONE,
3691 2, G_TYPE_UINT, G_TYPE_STRING);
3692
3693 /**
1aa981f7 3694 * logindLogin1Manager::user-removed:
3695 * @object: A #logindLogin1Manager.
5047f6bf 3696 * @arg_unnamed_arg0: Argument.
3697 * @arg_unnamed_arg1: Argument.
3698 *
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.
3700 *
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.
3702 */
3703 g_signal_new ("user-removed",
3704 G_TYPE_FROM_INTERFACE (iface),
3705 G_SIGNAL_RUN_LAST,
1aa981f7 3706 G_STRUCT_OFFSET (logindLogin1ManagerIface, user_removed),
5047f6bf 3707 NULL,
3708 NULL,
3709 g_cclosure_marshal_generic,
3710 G_TYPE_NONE,
3711 2, G_TYPE_UINT, G_TYPE_STRING);
3712
3713 /**
1aa981f7 3714 * logindLogin1Manager::seat-new:
3715 * @object: A #logindLogin1Manager.
5047f6bf 3716 * @arg_unnamed_arg0: Argument.
3717 * @arg_unnamed_arg1: Argument.
3718 *
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.
3720 *
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.
3722 */
3723 g_signal_new ("seat-new",
3724 G_TYPE_FROM_INTERFACE (iface),
3725 G_SIGNAL_RUN_LAST,
1aa981f7 3726 G_STRUCT_OFFSET (logindLogin1ManagerIface, seat_new),
5047f6bf 3727 NULL,
3728 NULL,
3729 g_cclosure_marshal_generic,
3730 G_TYPE_NONE,
3731 2, G_TYPE_STRING, G_TYPE_STRING);
3732
3733 /**
1aa981f7 3734 * logindLogin1Manager::seat-removed:
3735 * @object: A #logindLogin1Manager.
5047f6bf 3736 * @arg_unnamed_arg0: Argument.
3737 * @arg_unnamed_arg1: Argument.
3738 *
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.
3740 *
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.
3742 */
3743 g_signal_new ("seat-removed",
3744 G_TYPE_FROM_INTERFACE (iface),
3745 G_SIGNAL_RUN_LAST,
1aa981f7 3746 G_STRUCT_OFFSET (logindLogin1ManagerIface, seat_removed),
5047f6bf 3747 NULL,
3748 NULL,
3749 g_cclosure_marshal_generic,
3750 G_TYPE_NONE,
3751 2, G_TYPE_STRING, G_TYPE_STRING);
3752
3753 /**
1aa981f7 3754 * logindLogin1Manager::prepare-for-shutdown:
3755 * @object: A #logindLogin1Manager.
5047f6bf 3756 * @arg_unnamed_arg0: Argument.
3757 *
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.
3759 *
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.
3761 */
3762 g_signal_new ("prepare-for-shutdown",
3763 G_TYPE_FROM_INTERFACE (iface),
3764 G_SIGNAL_RUN_LAST,
1aa981f7 3765 G_STRUCT_OFFSET (logindLogin1ManagerIface, prepare_for_shutdown),
5047f6bf 3766 NULL,
3767 NULL,
3768 g_cclosure_marshal_generic,
3769 G_TYPE_NONE,
3770 1, G_TYPE_BOOLEAN);
3771
3772 /**
1aa981f7 3773 * logindLogin1Manager::prepare-for-sleep:
3774 * @object: A #logindLogin1Manager.
5047f6bf 3775 * @arg_unnamed_arg0: Argument.
3776 *
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.
3778 *
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.
3780 */
3781 g_signal_new ("prepare-for-sleep",
3782 G_TYPE_FROM_INTERFACE (iface),
3783 G_SIGNAL_RUN_LAST,
1aa981f7 3784 G_STRUCT_OFFSET (logindLogin1ManagerIface, prepare_for_sleep),
5047f6bf 3785 NULL,
3786 NULL,
3787 g_cclosure_marshal_generic,
3788 G_TYPE_NONE,
3789 1, G_TYPE_BOOLEAN);
3790
3791 /* GObject properties for D-Bus properties: */
3792 /**
1aa981f7 3793 * logindLogin1Manager:nauto-vts:
5047f6bf 3794 *
3795 * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-login1-Manager.NAutoVTs">"NAutoVTs"</link>.
3796 *
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.
3798 */
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));
3801 /**
1aa981f7 3802 * logindLogin1Manager:kill-only-users:
5047f6bf 3803 *
3804 * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-login1-Manager.KillOnlyUsers">"KillOnlyUsers"</link>.
3805 *
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.
3807 */
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));
3810 /**
1aa981f7 3811 * logindLogin1Manager:kill-exclude-users:
5047f6bf 3812 *
3813 * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-login1-Manager.KillExcludeUsers">"KillExcludeUsers"</link>.
3814 *
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.
3816 */
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));
3819 /**
1aa981f7 3820 * logindLogin1Manager:kill-user-processes:
5047f6bf 3821 *
3822 * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-login1-Manager.KillUserProcesses">"KillUserProcesses"</link>.
3823 *
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.
3825 */
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));
3828 /**
1aa981f7 3829 * logindLogin1Manager:idle-hint:
5047f6bf 3830 *
3831 * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-login1-Manager.IdleHint">"IdleHint"</link>.
3832 *
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.
3834 */
3835 g_object_interface_install_property (iface,
3836 g_param_spec_boolean ("idle-hint", "IdleHint", "IdleHint", FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
3837 /**
1aa981f7 3838 * logindLogin1Manager:idle-since-hint:
5047f6bf 3839 *
3840 * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-login1-Manager.IdleSinceHint">"IdleSinceHint"</link>.
3841 *
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.
3843 */
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));
3846 /**
1aa981f7 3847 * logindLogin1Manager:idle-since-hint-monotonic:
5047f6bf 3848 *
3849 * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-login1-Manager.IdleSinceHintMonotonic">"IdleSinceHintMonotonic"</link>.
3850 *
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.
3852 */
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));
3855 /**
1aa981f7 3856 * logindLogin1Manager:block-inhibited:
5047f6bf 3857 *
3858 * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-login1-Manager.BlockInhibited">"BlockInhibited"</link>.
3859 *
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.
3861 */
3862 g_object_interface_install_property (iface,
3863 g_param_spec_string ("block-inhibited", "BlockInhibited", "BlockInhibited", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
3864 /**
1aa981f7 3865 * logindLogin1Manager:delay-inhibited:
5047f6bf 3866 *
3867 * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-login1-Manager.DelayInhibited">"DelayInhibited"</link>.
3868 *
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.
3870 */
3871 g_object_interface_install_property (iface,
3872 g_param_spec_string ("delay-inhibited", "DelayInhibited", "DelayInhibited", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
3873 /**
1aa981f7 3874 * logindLogin1Manager:inhibit-delay-max-usec:
5047f6bf 3875 *
3876 * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-login1-Manager.InhibitDelayMaxUSec">"InhibitDelayMaxUSec"</link>.
3877 *
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.
3879 */
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));
3882 /**
1aa981f7 3883 * logindLogin1Manager:handle-power-key:
5047f6bf 3884 *
3885 * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-login1-Manager.HandlePowerKey">"HandlePowerKey"</link>.
3886 *
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.
3888 */
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));
3891 /**
1aa981f7 3892 * logindLogin1Manager:handle-suspend-key:
5047f6bf 3893 *
3894 * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-login1-Manager.HandleSuspendKey">"HandleSuspendKey"</link>.
3895 *
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.
3897 */
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));
3900 /**
1aa981f7 3901 * logindLogin1Manager:handle-hibernate-key:
5047f6bf 3902 *
3903 * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-login1-Manager.HandleHibernateKey">"HandleHibernateKey"</link>.
3904 *
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.
3906 */
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));
3909 /**
1aa981f7 3910 * logindLogin1Manager:handle-lid-switch:
5047f6bf 3911 *
3912 * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-login1-Manager.HandleLidSwitch">"HandleLidSwitch"</link>.
3913 *
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.
3915 */
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));
3918 /**
1aa981f7 3919 * logindLogin1Manager:idle-action:
5047f6bf 3920 *
3921 * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-login1-Manager.IdleAction">"IdleAction"</link>.
3922 *
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.
3924 */
3925 g_object_interface_install_property (iface,
3926 g_param_spec_string ("idle-action", "IdleAction", "IdleAction", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
3927 /**
1aa981f7 3928 * logindLogin1Manager:idle-action-usec:
5047f6bf 3929 *
3930 * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-login1-Manager.IdleActionUSec">"IdleActionUSec"</link>.
3931 *
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.
3933 */
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));
3936 /**
1aa981f7 3937 * logindLogin1Manager:preparing-for-shutdown:
5047f6bf 3938 *
3939 * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-login1-Manager.PreparingForShutdown">"PreparingForShutdown"</link>.
3940 *
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.
3942 */
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));
3945 /**
1aa981f7 3946 * logindLogin1Manager:preparing-for-sleep:
5047f6bf 3947 *
3948 * Represents the D-Bus property <link linkend="gdbus-property-org-freedesktop-login1-Manager.PreparingForSleep">"PreparingForSleep"</link>.
3949 *
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.
3951 */
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));
3954}
3955
3956/**
1aa981f7 3957 * logind_login1_manager_get_nauto_vts: (skip)
3958 * @object: A #logindLogin1Manager.
5047f6bf 3959 *
3960 * Gets the value of the <link linkend="gdbus-property-org-freedesktop-login1-Manager.NAutoVTs">"NAutoVTs"</link> D-Bus property.
3961 *
3962 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
3963 *
3964 * Returns: The property value.
3965 */
3966guint
1aa981f7 3967logind_login1_manager_get_nauto_vts (logindLogin1Manager *object)
5047f6bf 3968{
1aa981f7 3969 return LOGIND_LOGIN1_MANAGER_GET_IFACE (object)->get_nauto_vts (object);
5047f6bf 3970}
3971
3972/**
1aa981f7 3973 * logind_login1_manager_set_nauto_vts: (skip)
3974 * @object: A #logindLogin1Manager.
5047f6bf 3975 * @value: The value to set.
3976 *
3977 * Sets the <link linkend="gdbus-property-org-freedesktop-login1-Manager.NAutoVTs">"NAutoVTs"</link> D-Bus property to @value.
3978 *
3979 * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
3980 */
3981void
1aa981f7 3982logind_login1_manager_set_nauto_vts (logindLogin1Manager *object, guint value)
5047f6bf 3983{
3984 g_object_set (G_OBJECT (object), "nauto-vts", value, NULL);
3985}
3986
3987/**
1aa981f7 3988 * logind_login1_manager_get_kill_only_users: (skip)
3989 * @object: A #logindLogin1Manager.
5047f6bf 3990 *
3991 * Gets the value of the <link linkend="gdbus-property-org-freedesktop-login1-Manager.KillOnlyUsers">"KillOnlyUsers"</link> D-Bus property.
3992 *
3993 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
3994 *
1aa981f7 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>
5047f6bf 3996 *
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.
3998 */
3999const gchar *const *
1aa981f7 4000logind_login1_manager_get_kill_only_users (logindLogin1Manager *object)
5047f6bf 4001{
1aa981f7 4002 return LOGIND_LOGIN1_MANAGER_GET_IFACE (object)->get_kill_only_users (object);
5047f6bf 4003}
4004
4005/**
1aa981f7 4006 * logind_login1_manager_dup_kill_only_users: (skip)
4007 * @object: A #logindLogin1Manager.
5047f6bf 4008 *
4009 * Gets a copy of the <link linkend="gdbus-property-org-freedesktop-login1-Manager.KillOnlyUsers">"KillOnlyUsers"</link> D-Bus property.
4010 *
4011 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
4012 *
4013 * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_strfreev().
4014 */
4015gchar **
1aa981f7 4016logind_login1_manager_dup_kill_only_users (logindLogin1Manager *object)
5047f6bf 4017{
4018 gchar **value;
4019 g_object_get (G_OBJECT (object), "kill-only-users", &value, NULL);
4020 return value;
4021}
4022
4023/**
1aa981f7 4024 * logind_login1_manager_set_kill_only_users: (skip)
4025 * @object: A #logindLogin1Manager.
5047f6bf 4026 * @value: The value to set.
4027 *
4028 * Sets the <link linkend="gdbus-property-org-freedesktop-login1-Manager.KillOnlyUsers">"KillOnlyUsers"</link> D-Bus property to @value.
4029 *
4030 * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
4031 */
4032void
1aa981f7 4033logind_login1_manager_set_kill_only_users (logindLogin1Manager *object, const gchar *const *value)
5047f6bf 4034{
4035 g_object_set (G_OBJECT (object), "kill-only-users", value, NULL);
4036}
4037
4038/**
1aa981f7 4039 * logind_login1_manager_get_kill_exclude_users: (skip)
4040 * @object: A #logindLogin1Manager.
5047f6bf 4041 *
4042 * Gets the value of the <link linkend="gdbus-property-org-freedesktop-login1-Manager.KillExcludeUsers">"KillExcludeUsers"</link> D-Bus property.
4043 *
4044 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
4045 *
1aa981f7 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>
5047f6bf 4047 *
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.
4049 */
4050const gchar *const *
1aa981f7 4051logind_login1_manager_get_kill_exclude_users (logindLogin1Manager *object)
5047f6bf 4052{
1aa981f7 4053 return LOGIND_LOGIN1_MANAGER_GET_IFACE (object)->get_kill_exclude_users (object);
5047f6bf 4054}
4055
4056/**
1aa981f7 4057 * logind_login1_manager_dup_kill_exclude_users: (skip)
4058 * @object: A #logindLogin1Manager.
5047f6bf 4059 *
4060 * Gets a copy of the <link linkend="gdbus-property-org-freedesktop-login1-Manager.KillExcludeUsers">"KillExcludeUsers"</link> D-Bus property.
4061 *
4062 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
4063 *
4064 * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_strfreev().
4065 */
4066gchar **
1aa981f7 4067logind_login1_manager_dup_kill_exclude_users (logindLogin1Manager *object)
5047f6bf 4068{
4069 gchar **value;
4070 g_object_get (G_OBJECT (object), "kill-exclude-users", &value, NULL);
4071 return value;
4072}
4073
4074/**
1aa981f7 4075 * logind_login1_manager_set_kill_exclude_users: (skip)
4076 * @object: A #logindLogin1Manager.
5047f6bf 4077 * @value: The value to set.
4078 *
4079 * Sets the <link linkend="gdbus-property-org-freedesktop-login1-Manager.KillExcludeUsers">"KillExcludeUsers"</link> D-Bus property to @value.
4080 *
4081 * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
4082 */
4083void
1aa981f7 4084logind_login1_manager_set_kill_exclude_users (logindLogin1Manager *object, const gchar *const *value)
5047f6bf 4085{
4086 g_object_set (G_OBJECT (object), "kill-exclude-users", value, NULL);
4087}
4088
4089/**
1aa981f7 4090 * logind_login1_manager_get_kill_user_processes: (skip)
4091 * @object: A #logindLogin1Manager.
5047f6bf 4092 *
4093 * Gets the value of the <link linkend="gdbus-property-org-freedesktop-login1-Manager.KillUserProcesses">"KillUserProcesses"</link> D-Bus property.
4094 *
4095 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
4096 *
4097 * Returns: The property value.
4098 */
4099gboolean
1aa981f7 4100logind_login1_manager_get_kill_user_processes (logindLogin1Manager *object)
5047f6bf 4101{
1aa981f7 4102 return LOGIND_LOGIN1_MANAGER_GET_IFACE (object)->get_kill_user_processes (object);
5047f6bf 4103}
4104
4105/**
1aa981f7 4106 * logind_login1_manager_set_kill_user_processes: (skip)
4107 * @object: A #logindLogin1Manager.
5047f6bf 4108 * @value: The value to set.
4109 *
4110 * Sets the <link linkend="gdbus-property-org-freedesktop-login1-Manager.KillUserProcesses">"KillUserProcesses"</link> D-Bus property to @value.
4111 *
4112 * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
4113 */
4114void
1aa981f7 4115logind_login1_manager_set_kill_user_processes (logindLogin1Manager *object, gboolean value)
5047f6bf 4116{
4117 g_object_set (G_OBJECT (object), "kill-user-processes", value, NULL);
4118}
4119
4120/**
1aa981f7 4121 * logind_login1_manager_get_idle_hint: (skip)
4122 * @object: A #logindLogin1Manager.
5047f6bf 4123 *
4124 * Gets the value of the <link linkend="gdbus-property-org-freedesktop-login1-Manager.IdleHint">"IdleHint"</link> D-Bus property.
4125 *
4126 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
4127 *
4128 * Returns: The property value.
4129 */
4130gboolean
1aa981f7 4131logind_login1_manager_get_idle_hint (logindLogin1Manager *object)
5047f6bf 4132{
1aa981f7 4133 return LOGIND_LOGIN1_MANAGER_GET_IFACE (object)->get_idle_hint (object);
5047f6bf 4134}
4135
4136/**
1aa981f7 4137 * logind_login1_manager_set_idle_hint: (skip)
4138 * @object: A #logindLogin1Manager.
5047f6bf 4139 * @value: The value to set.
4140 *
4141 * Sets the <link linkend="gdbus-property-org-freedesktop-login1-Manager.IdleHint">"IdleHint"</link> D-Bus property to @value.
4142 *
4143 * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
4144 */
4145void
1aa981f7 4146logind_login1_manager_set_idle_hint (logindLogin1Manager *object, gboolean value)
5047f6bf 4147{
4148 g_object_set (G_OBJECT (object), "idle-hint", value, NULL);
4149}
4150
4151/**
1aa981f7 4152 * logind_login1_manager_get_idle_since_hint: (skip)
4153 * @object: A #logindLogin1Manager.
5047f6bf 4154 *
4155 * Gets the value of the <link linkend="gdbus-property-org-freedesktop-login1-Manager.IdleSinceHint">"IdleSinceHint"</link> D-Bus property.
4156 *
4157 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
4158 *
4159 * Returns: The property value.
4160 */
4161guint64
1aa981f7 4162logind_login1_manager_get_idle_since_hint (logindLogin1Manager *object)
5047f6bf 4163{
1aa981f7 4164 return LOGIND_LOGIN1_MANAGER_GET_IFACE (object)->get_idle_since_hint (object);
5047f6bf 4165}
4166
4167/**
1aa981f7 4168 * logind_login1_manager_set_idle_since_hint: (skip)
4169 * @object: A #logindLogin1Manager.
5047f6bf 4170 * @value: The value to set.
4171 *
4172 * Sets the <link linkend="gdbus-property-org-freedesktop-login1-Manager.IdleSinceHint">"IdleSinceHint"</link> D-Bus property to @value.
4173 *
4174 * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
4175 */
4176void
1aa981f7 4177logind_login1_manager_set_idle_since_hint (logindLogin1Manager *object, guint64 value)
5047f6bf 4178{
4179 g_object_set (G_OBJECT (object), "idle-since-hint", value, NULL);
4180}
4181
4182/**
1aa981f7 4183 * logind_login1_manager_get_idle_since_hint_monotonic: (skip)
4184 * @object: A #logindLogin1Manager.
5047f6bf 4185 *
4186 * Gets the value of the <link linkend="gdbus-property-org-freedesktop-login1-Manager.IdleSinceHintMonotonic">"IdleSinceHintMonotonic"</link> D-Bus property.
4187 *
4188 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
4189 *
4190 * Returns: The property value.
4191 */
4192guint64
1aa981f7 4193logind_login1_manager_get_idle_since_hint_monotonic (logindLogin1Manager *object)
5047f6bf 4194{
1aa981f7 4195 return LOGIND_LOGIN1_MANAGER_GET_IFACE (object)->get_idle_since_hint_monotonic (object);
5047f6bf 4196}
4197
4198/**
1aa981f7 4199 * logind_login1_manager_set_idle_since_hint_monotonic: (skip)
4200 * @object: A #logindLogin1Manager.
5047f6bf 4201 * @value: The value to set.
4202 *
4203 * Sets the <link linkend="gdbus-property-org-freedesktop-login1-Manager.IdleSinceHintMonotonic">"IdleSinceHintMonotonic"</link> D-Bus property to @value.
4204 *
4205 * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
4206 */
4207void
1aa981f7 4208logind_login1_manager_set_idle_since_hint_monotonic (logindLogin1Manager *object, guint64 value)
5047f6bf 4209{
4210 g_object_set (G_OBJECT (object), "idle-since-hint-monotonic", value, NULL);
4211}
4212
4213/**
1aa981f7 4214 * logind_login1_manager_get_block_inhibited: (skip)
4215 * @object: A #logindLogin1Manager.
5047f6bf 4216 *
4217 * Gets the value of the <link linkend="gdbus-property-org-freedesktop-login1-Manager.BlockInhibited">"BlockInhibited"</link> D-Bus property.
4218 *
4219 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
4220 *
1aa981f7 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>
5047f6bf 4222 *
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.
4224 */
4225const gchar *
1aa981f7 4226logind_login1_manager_get_block_inhibited (logindLogin1Manager *object)
5047f6bf 4227{
1aa981f7 4228 return LOGIND_LOGIN1_MANAGER_GET_IFACE (object)->get_block_inhibited (object);
5047f6bf 4229}
4230
4231/**
1aa981f7 4232 * logind_login1_manager_dup_block_inhibited: (skip)
4233 * @object: A #logindLogin1Manager.
5047f6bf 4234 *
4235 * Gets a copy of the <link linkend="gdbus-property-org-freedesktop-login1-Manager.BlockInhibited">"BlockInhibited"</link> D-Bus property.
4236 *
4237 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
4238 *
4239 * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_free().
4240 */
4241gchar *
1aa981f7 4242logind_login1_manager_dup_block_inhibited (logindLogin1Manager *object)
5047f6bf 4243{
4244 gchar *value;
4245 g_object_get (G_OBJECT (object), "block-inhibited", &value, NULL);
4246 return value;
4247}
4248
4249/**
1aa981f7 4250 * logind_login1_manager_set_block_inhibited: (skip)
4251 * @object: A #logindLogin1Manager.
5047f6bf 4252 * @value: The value to set.
4253 *
4254 * Sets the <link linkend="gdbus-property-org-freedesktop-login1-Manager.BlockInhibited">"BlockInhibited"</link> D-Bus property to @value.
4255 *
4256 * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
4257 */
4258void
1aa981f7 4259logind_login1_manager_set_block_inhibited (logindLogin1Manager *object, const gchar *value)
5047f6bf 4260{
4261 g_object_set (G_OBJECT (object), "block-inhibited", value, NULL);
4262}
4263
4264/**
1aa981f7 4265 * logind_login1_manager_get_delay_inhibited: (skip)
4266 * @object: A #logindLogin1Manager.
5047f6bf 4267 *
4268 * Gets the value of the <link linkend="gdbus-property-org-freedesktop-login1-Manager.DelayInhibited">"DelayInhibited"</link> D-Bus property.
4269 *
4270 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
4271 *
1aa981f7 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>
5047f6bf 4273 *
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.
4275 */
4276const gchar *
1aa981f7 4277logind_login1_manager_get_delay_inhibited (logindLogin1Manager *object)
5047f6bf 4278{
1aa981f7 4279 return LOGIND_LOGIN1_MANAGER_GET_IFACE (object)->get_delay_inhibited (object);
5047f6bf 4280}
4281
4282/**
1aa981f7 4283 * logind_login1_manager_dup_delay_inhibited: (skip)
4284 * @object: A #logindLogin1Manager.
5047f6bf 4285 *
4286 * Gets a copy of the <link linkend="gdbus-property-org-freedesktop-login1-Manager.DelayInhibited">"DelayInhibited"</link> D-Bus property.
4287 *
4288 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
4289 *
4290 * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_free().
4291 */
4292gchar *
1aa981f7 4293logind_login1_manager_dup_delay_inhibited (logindLogin1Manager *object)
5047f6bf 4294{
4295 gchar *value;
4296 g_object_get (G_OBJECT (object), "delay-inhibited", &value, NULL);
4297 return value;
4298}
4299
4300/**
1aa981f7 4301 * logind_login1_manager_set_delay_inhibited: (skip)
4302 * @object: A #logindLogin1Manager.
5047f6bf 4303 * @value: The value to set.
4304 *
4305 * Sets the <link linkend="gdbus-property-org-freedesktop-login1-Manager.DelayInhibited">"DelayInhibited"</link> D-Bus property to @value.
4306 *
4307 * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
4308 */
4309void
1aa981f7 4310logind_login1_manager_set_delay_inhibited (logindLogin1Manager *object, const gchar *value)
5047f6bf 4311{
4312 g_object_set (G_OBJECT (object), "delay-inhibited", value, NULL);
4313}
4314
4315/**
1aa981f7 4316 * logind_login1_manager_get_inhibit_delay_max_usec: (skip)
4317 * @object: A #logindLogin1Manager.
5047f6bf 4318 *
4319 * Gets the value of the <link linkend="gdbus-property-org-freedesktop-login1-Manager.InhibitDelayMaxUSec">"InhibitDelayMaxUSec"</link> D-Bus property.
4320 *
4321 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
4322 *
4323 * Returns: The property value.
4324 */
4325guint64
1aa981f7 4326logind_login1_manager_get_inhibit_delay_max_usec (logindLogin1Manager *object)
5047f6bf 4327{
1aa981f7 4328 return LOGIND_LOGIN1_MANAGER_GET_IFACE (object)->get_inhibit_delay_max_usec (object);
5047f6bf 4329}
4330
4331/**
1aa981f7 4332 * logind_login1_manager_set_inhibit_delay_max_usec: (skip)
4333 * @object: A #logindLogin1Manager.
5047f6bf 4334 * @value: The value to set.
4335 *
4336 * Sets the <link linkend="gdbus-property-org-freedesktop-login1-Manager.InhibitDelayMaxUSec">"InhibitDelayMaxUSec"</link> D-Bus property to @value.
4337 *
4338 * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
4339 */
4340void
1aa981f7 4341logind_login1_manager_set_inhibit_delay_max_usec (logindLogin1Manager *object, guint64 value)
5047f6bf 4342{
4343 g_object_set (G_OBJECT (object), "inhibit-delay-max-usec", value, NULL);
4344}
4345
4346/**
1aa981f7 4347 * logind_login1_manager_get_handle_power_key: (skip)
4348 * @object: A #logindLogin1Manager.
5047f6bf 4349 *
4350 * Gets the value of the <link linkend="gdbus-property-org-freedesktop-login1-Manager.HandlePowerKey">"HandlePowerKey"</link> D-Bus property.
4351 *
4352 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
4353 *
1aa981f7 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>
5047f6bf 4355 *
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.
4357 */
4358const gchar *
1aa981f7 4359logind_login1_manager_get_handle_power_key (logindLogin1Manager *object)
5047f6bf 4360{
1aa981f7 4361 return LOGIND_LOGIN1_MANAGER_GET_IFACE (object)->get_handle_power_key (object);
5047f6bf 4362}
4363
4364/**
1aa981f7 4365 * logind_login1_manager_dup_handle_power_key: (skip)
4366 * @object: A #logindLogin1Manager.
5047f6bf 4367 *
4368 * Gets a copy of the <link linkend="gdbus-property-org-freedesktop-login1-Manager.HandlePowerKey">"HandlePowerKey"</link> D-Bus property.
4369 *
4370 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
4371 *
4372 * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_free().
4373 */
4374gchar *
1aa981f7 4375logind_login1_manager_dup_handle_power_key (logindLogin1Manager *object)
5047f6bf 4376{
4377 gchar *value;
4378 g_object_get (G_OBJECT (object), "handle-power-key", &value, NULL);
4379 return value;
4380}
4381
4382/**
1aa981f7 4383 * logind_login1_manager_set_handle_power_key: (skip)
4384 * @object: A #logindLogin1Manager.
5047f6bf 4385 * @value: The value to set.
4386 *
4387 * Sets the <link linkend="gdbus-property-org-freedesktop-login1-Manager.HandlePowerKey">"HandlePowerKey"</link> D-Bus property to @value.
4388 *
4389 * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
4390 */
4391void
1aa981f7 4392logind_login1_manager_set_handle_power_key (logindLogin1Manager *object, const gchar *value)
5047f6bf 4393{
4394 g_object_set (G_OBJECT (object), "handle-power-key", value, NULL);
4395}
4396
4397/**
1aa981f7 4398 * logind_login1_manager_get_handle_suspend_key: (skip)
4399 * @object: A #logindLogin1Manager.
5047f6bf 4400 *
4401 * Gets the value of the <link linkend="gdbus-property-org-freedesktop-login1-Manager.HandleSuspendKey">"HandleSuspendKey"</link> D-Bus property.
4402 *
4403 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
4404 *
1aa981f7 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>
5047f6bf 4406 *
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.
4408 */
4409const gchar *
1aa981f7 4410logind_login1_manager_get_handle_suspend_key (logindLogin1Manager *object)
5047f6bf 4411{
1aa981f7 4412 return LOGIND_LOGIN1_MANAGER_GET_IFACE (object)->get_handle_suspend_key (object);
5047f6bf 4413}
4414
4415/**
1aa981f7 4416 * logind_login1_manager_dup_handle_suspend_key: (skip)
4417 * @object: A #logindLogin1Manager.
5047f6bf 4418 *
4419 * Gets a copy of the <link linkend="gdbus-property-org-freedesktop-login1-Manager.HandleSuspendKey">"HandleSuspendKey"</link> D-Bus property.
4420 *
4421 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
4422 *
4423 * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_free().
4424 */
4425gchar *
1aa981f7 4426logind_login1_manager_dup_handle_suspend_key (logindLogin1Manager *object)
5047f6bf 4427{
4428 gchar *value;
4429 g_object_get (G_OBJECT (object), "handle-suspend-key", &value, NULL);
4430 return value;
4431}
4432
4433/**
1aa981f7 4434 * logind_login1_manager_set_handle_suspend_key: (skip)
4435 * @object: A #logindLogin1Manager.
5047f6bf 4436 * @value: The value to set.
4437 *
4438 * Sets the <link linkend="gdbus-property-org-freedesktop-login1-Manager.HandleSuspendKey">"HandleSuspendKey"</link> D-Bus property to @value.
4439 *
4440 * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
4441 */
4442void
1aa981f7 4443logind_login1_manager_set_handle_suspend_key (logindLogin1Manager *object, const gchar *value)
5047f6bf 4444{
4445 g_object_set (G_OBJECT (object), "handle-suspend-key", value, NULL);
4446}
4447
4448/**
1aa981f7 4449 * logind_login1_manager_get_handle_hibernate_key: (skip)
4450 * @object: A #logindLogin1Manager.
5047f6bf 4451 *
4452 * Gets the value of the <link linkend="gdbus-property-org-freedesktop-login1-Manager.HandleHibernateKey">"HandleHibernateKey"</link> D-Bus property.
4453 *
4454 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
4455 *
1aa981f7 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>
5047f6bf 4457 *
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.
4459 */
4460const gchar *
1aa981f7 4461logind_login1_manager_get_handle_hibernate_key (logindLogin1Manager *object)
5047f6bf 4462{
1aa981f7 4463 return LOGIND_LOGIN1_MANAGER_GET_IFACE (object)->get_handle_hibernate_key (object);
5047f6bf 4464}
4465
4466/**
1aa981f7 4467 * logind_login1_manager_dup_handle_hibernate_key: (skip)
4468 * @object: A #logindLogin1Manager.
5047f6bf 4469 *
4470 * Gets a copy of the <link linkend="gdbus-property-org-freedesktop-login1-Manager.HandleHibernateKey">"HandleHibernateKey"</link> D-Bus property.
4471 *
4472 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
4473 *
4474 * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_free().
4475 */
4476gchar *
1aa981f7 4477logind_login1_manager_dup_handle_hibernate_key (logindLogin1Manager *object)
5047f6bf 4478{
4479 gchar *value;
4480 g_object_get (G_OBJECT (object), "handle-hibernate-key", &value, NULL);
4481 return value;
4482}
4483
4484/**
1aa981f7 4485 * logind_login1_manager_set_handle_hibernate_key: (skip)
4486 * @object: A #logindLogin1Manager.
5047f6bf 4487 * @value: The value to set.
4488 *
4489 * Sets the <link linkend="gdbus-property-org-freedesktop-login1-Manager.HandleHibernateKey">"HandleHibernateKey"</link> D-Bus property to @value.
4490 *
4491 * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
4492 */
4493void
1aa981f7 4494logind_login1_manager_set_handle_hibernate_key (logindLogin1Manager *object, const gchar *value)
5047f6bf 4495{
4496 g_object_set (G_OBJECT (object), "handle-hibernate-key", value, NULL);
4497}
4498
4499/**
1aa981f7 4500 * logind_login1_manager_get_handle_lid_switch: (skip)
4501 * @object: A #logindLogin1Manager.
5047f6bf 4502 *
4503 * Gets the value of the <link linkend="gdbus-property-org-freedesktop-login1-Manager.HandleLidSwitch">"HandleLidSwitch"</link> D-Bus property.
4504 *
4505 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
4506 *
1aa981f7 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>
5047f6bf 4508 *
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.
4510 */
4511const gchar *
1aa981f7 4512logind_login1_manager_get_handle_lid_switch (logindLogin1Manager *object)
5047f6bf 4513{
1aa981f7 4514 return LOGIND_LOGIN1_MANAGER_GET_IFACE (object)->get_handle_lid_switch (object);
5047f6bf 4515}
4516
4517/**
1aa981f7 4518 * logind_login1_manager_dup_handle_lid_switch: (skip)
4519 * @object: A #logindLogin1Manager.
5047f6bf 4520 *
4521 * Gets a copy of the <link linkend="gdbus-property-org-freedesktop-login1-Manager.HandleLidSwitch">"HandleLidSwitch"</link> D-Bus property.
4522 *
4523 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
4524 *
4525 * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_free().
4526 */
4527gchar *
1aa981f7 4528logind_login1_manager_dup_handle_lid_switch (logindLogin1Manager *object)
5047f6bf 4529{
4530 gchar *value;
4531 g_object_get (G_OBJECT (object), "handle-lid-switch", &value, NULL);
4532 return value;
4533}
4534
4535/**
1aa981f7 4536 * logind_login1_manager_set_handle_lid_switch: (skip)
4537 * @object: A #logindLogin1Manager.
5047f6bf 4538 * @value: The value to set.
4539 *
4540 * Sets the <link linkend="gdbus-property-org-freedesktop-login1-Manager.HandleLidSwitch">"HandleLidSwitch"</link> D-Bus property to @value.
4541 *
4542 * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
4543 */
4544void
1aa981f7 4545logind_login1_manager_set_handle_lid_switch (logindLogin1Manager *object, const gchar *value)
5047f6bf 4546{
4547 g_object_set (G_OBJECT (object), "handle-lid-switch", value, NULL);
4548}
4549
4550/**
1aa981f7 4551 * logind_login1_manager_get_idle_action: (skip)
4552 * @object: A #logindLogin1Manager.
5047f6bf 4553 *
4554 * Gets the value of the <link linkend="gdbus-property-org-freedesktop-login1-Manager.IdleAction">"IdleAction"</link> D-Bus property.
4555 *
4556 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
4557 *
1aa981f7 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>
5047f6bf 4559 *
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.
4561 */
4562const gchar *
1aa981f7 4563logind_login1_manager_get_idle_action (logindLogin1Manager *object)
5047f6bf 4564{
1aa981f7 4565 return LOGIND_LOGIN1_MANAGER_GET_IFACE (object)->get_idle_action (object);
5047f6bf 4566}
4567
4568/**
1aa981f7 4569 * logind_login1_manager_dup_idle_action: (skip)
4570 * @object: A #logindLogin1Manager.
5047f6bf 4571 *
4572 * Gets a copy of the <link linkend="gdbus-property-org-freedesktop-login1-Manager.IdleAction">"IdleAction"</link> D-Bus property.
4573 *
4574 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
4575 *
4576 * Returns: (transfer full): The property value or %NULL if the property is not set. The returned value should be freed with g_free().
4577 */
4578gchar *
1aa981f7 4579logind_login1_manager_dup_idle_action (logindLogin1Manager *object)
5047f6bf 4580{
4581 gchar *value;
4582 g_object_get (G_OBJECT (object), "idle-action", &value, NULL);
4583 return value;
4584}
4585
4586/**
1aa981f7 4587 * logind_login1_manager_set_idle_action: (skip)
4588 * @object: A #logindLogin1Manager.
5047f6bf 4589 * @value: The value to set.
4590 *
4591 * Sets the <link linkend="gdbus-property-org-freedesktop-login1-Manager.IdleAction">"IdleAction"</link> D-Bus property to @value.
4592 *
4593 * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
4594 */
4595void
1aa981f7 4596logind_login1_manager_set_idle_action (logindLogin1Manager *object, const gchar *value)
5047f6bf 4597{
4598 g_object_set (G_OBJECT (object), "idle-action", value, NULL);
4599}
4600
4601/**
1aa981f7 4602 * logind_login1_manager_get_idle_action_usec: (skip)
4603 * @object: A #logindLogin1Manager.
5047f6bf 4604 *
4605 * Gets the value of the <link linkend="gdbus-property-org-freedesktop-login1-Manager.IdleActionUSec">"IdleActionUSec"</link> D-Bus property.
4606 *
4607 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
4608 *
4609 * Returns: The property value.
4610 */
4611guint64
1aa981f7 4612logind_login1_manager_get_idle_action_usec (logindLogin1Manager *object)
5047f6bf 4613{
1aa981f7 4614 return LOGIND_LOGIN1_MANAGER_GET_IFACE (object)->get_idle_action_usec (object);
5047f6bf 4615}
4616
4617/**
1aa981f7 4618 * logind_login1_manager_set_idle_action_usec: (skip)
4619 * @object: A #logindLogin1Manager.
5047f6bf 4620 * @value: The value to set.
4621 *
4622 * Sets the <link linkend="gdbus-property-org-freedesktop-login1-Manager.IdleActionUSec">"IdleActionUSec"</link> D-Bus property to @value.
4623 *
4624 * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
4625 */
4626void
1aa981f7 4627logind_login1_manager_set_idle_action_usec (logindLogin1Manager *object, guint64 value)
5047f6bf 4628{
4629 g_object_set (G_OBJECT (object), "idle-action-usec", value, NULL);
4630}
4631
4632/**
1aa981f7 4633 * logind_login1_manager_get_preparing_for_shutdown: (skip)
4634 * @object: A #logindLogin1Manager.
5047f6bf 4635 *
4636 * Gets the value of the <link linkend="gdbus-property-org-freedesktop-login1-Manager.PreparingForShutdown">"PreparingForShutdown"</link> D-Bus property.
4637 *
4638 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
4639 *
4640 * Returns: The property value.
4641 */
4642gboolean
1aa981f7 4643logind_login1_manager_get_preparing_for_shutdown (logindLogin1Manager *object)
5047f6bf 4644{
1aa981f7 4645 return LOGIND_LOGIN1_MANAGER_GET_IFACE (object)->get_preparing_for_shutdown (object);
5047f6bf 4646}
4647
4648/**
1aa981f7 4649 * logind_login1_manager_set_preparing_for_shutdown: (skip)
4650 * @object: A #logindLogin1Manager.
5047f6bf 4651 * @value: The value to set.
4652 *
4653 * Sets the <link linkend="gdbus-property-org-freedesktop-login1-Manager.PreparingForShutdown">"PreparingForShutdown"</link> D-Bus property to @value.
4654 *
4655 * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
4656 */
4657void
1aa981f7 4658logind_login1_manager_set_preparing_for_shutdown (logindLogin1Manager *object, gboolean value)
5047f6bf 4659{
4660 g_object_set (G_OBJECT (object), "preparing-for-shutdown", value, NULL);
4661}
4662
4663/**
1aa981f7 4664 * logind_login1_manager_get_preparing_for_sleep: (skip)
4665 * @object: A #logindLogin1Manager.
5047f6bf 4666 *
4667 * Gets the value of the <link linkend="gdbus-property-org-freedesktop-login1-Manager.PreparingForSleep">"PreparingForSleep"</link> D-Bus property.
4668 *
4669 * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.
4670 *
4671 * Returns: The property value.
4672 */
4673gboolean
1aa981f7 4674logind_login1_manager_get_preparing_for_sleep (logindLogin1Manager *object)
5047f6bf 4675{
1aa981f7 4676 return LOGIND_LOGIN1_MANAGER_GET_IFACE (object)->get_preparing_for_sleep (object);
5047f6bf 4677}
4678
4679/**
1aa981f7 4680 * logind_login1_manager_set_preparing_for_sleep: (skip)
4681 * @object: A #logindLogin1Manager.
5047f6bf 4682 * @value: The value to set.
4683 *
4684 * Sets the <link linkend="gdbus-property-org-freedesktop-login1-Manager.PreparingForSleep">"PreparingForSleep"</link> D-Bus property to @value.
4685 *
4686 * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.
4687 */
4688void
1aa981f7 4689logind_login1_manager_set_preparing_for_sleep (logindLogin1Manager *object, gboolean value)
5047f6bf 4690{
4691 g_object_set (G_OBJECT (object), "preparing-for-sleep", value, NULL);
4692}
4693
4694/**
1aa981f7 4695 * logind_login1_manager_emit_session_new:
4696 * @object: A #logindLogin1Manager.
5047f6bf 4697 * @arg_unnamed_arg0: Argument to pass with the signal.
4698 * @arg_unnamed_arg1: Argument to pass with the signal.
4699 *
4700 * Emits the <link linkend="gdbus-signal-org-freedesktop-login1-Manager.SessionNew">"SessionNew"</link> D-Bus signal.
4701 */
4702void
1aa981f7 4703logind_login1_manager_emit_session_new (
4704 logindLogin1Manager *object,
5047f6bf 4705 const gchar *arg_unnamed_arg0,
4706 const gchar *arg_unnamed_arg1)
4707{
4708 g_signal_emit_by_name (object, "session-new", arg_unnamed_arg0, arg_unnamed_arg1);
4709}
4710
4711/**
1aa981f7 4712 * logind_login1_manager_emit_session_removed:
4713 * @object: A #logindLogin1Manager.
5047f6bf 4714 * @arg_unnamed_arg0: Argument to pass with the signal.
4715 * @arg_unnamed_arg1: Argument to pass with the signal.
4716 *
4717 * Emits the <link linkend="gdbus-signal-org-freedesktop-login1-Manager.SessionRemoved">"SessionRemoved"</link> D-Bus signal.
4718 */
4719void
1aa981f7 4720logind_login1_manager_emit_session_removed (
4721 logindLogin1Manager *object,
5047f6bf 4722 const gchar *arg_unnamed_arg0,
4723 const gchar *arg_unnamed_arg1)
4724{
4725 g_signal_emit_by_name (object, "session-removed", arg_unnamed_arg0, arg_unnamed_arg1);
4726}
4727
4728/**
1aa981f7 4729 * logind_login1_manager_emit_user_new:
4730 * @object: A #logindLogin1Manager.
5047f6bf 4731 * @arg_unnamed_arg0: Argument to pass with the signal.
4732 * @arg_unnamed_arg1: Argument to pass with the signal.
4733 *
4734 * Emits the <link linkend="gdbus-signal-org-freedesktop-login1-Manager.UserNew">"UserNew"</link> D-Bus signal.
4735 */
4736void
1aa981f7 4737logind_login1_manager_emit_user_new (
4738 logindLogin1Manager *object,
5047f6bf 4739 guint arg_unnamed_arg0,
4740 const gchar *arg_unnamed_arg1)
4741{
4742 g_signal_emit_by_name (object, "user-new", arg_unnamed_arg0, arg_unnamed_arg1);
4743}
4744
4745/**
1aa981f7 4746 * logind_login1_manager_emit_user_removed:
4747 * @object: A #logindLogin1Manager.
5047f6bf 4748 * @arg_unnamed_arg0: Argument to pass with the signal.
4749 * @arg_unnamed_arg1: Argument to pass with the signal.
4750 *
4751 * Emits the <link linkend="gdbus-signal-org-freedesktop-login1-Manager.UserRemoved">"UserRemoved"</link> D-Bus signal.
4752 */
4753void
1aa981f7 4754logind_login1_manager_emit_user_removed (
4755 logindLogin1Manager *object,
5047f6bf 4756 guint arg_unnamed_arg0,
4757 const gchar *arg_unnamed_arg1)
4758{
4759 g_signal_emit_by_name (object, "user-removed", arg_unnamed_arg0, arg_unnamed_arg1);
4760}
4761
4762/**
1aa981f7 4763 * logind_login1_manager_emit_seat_new:
4764 * @object: A #logindLogin1Manager.
5047f6bf 4765 * @arg_unnamed_arg0: Argument to pass with the signal.
4766 * @arg_unnamed_arg1: Argument to pass with the signal.
4767 *
4768 * Emits the <link linkend="gdbus-signal-org-freedesktop-login1-Manager.SeatNew">"SeatNew"</link> D-Bus signal.
4769 */
4770void
1aa981f7 4771logind_login1_manager_emit_seat_new (
4772 logindLogin1Manager *object,
5047f6bf 4773 const gchar *arg_unnamed_arg0,
4774 const gchar *arg_unnamed_arg1)
4775{
4776 g_signal_emit_by_name (object, "seat-new", arg_unnamed_arg0, arg_unnamed_arg1);
4777}
4778
4779/**
1aa981f7 4780 * logind_login1_manager_emit_seat_removed:
4781 * @object: A #logindLogin1Manager.
5047f6bf 4782 * @arg_unnamed_arg0: Argument to pass with the signal.
4783 * @arg_unnamed_arg1: Argument to pass with the signal.
4784 *
4785 * Emits the <link linkend="gdbus-signal-org-freedesktop-login1-Manager.SeatRemoved">"SeatRemoved"</link> D-Bus signal.
4786 */
4787void
1aa981f7 4788logind_login1_manager_emit_seat_removed (
4789 logindLogin1Manager *object,
5047f6bf 4790 const gchar *arg_unnamed_arg0,
4791 const gchar *arg_unnamed_arg1)
4792{
4793 g_signal_emit_by_name (object, "seat-removed", arg_unnamed_arg0, arg_unnamed_arg1);
4794}
4795
4796/**
1aa981f7 4797 * logind_login1_manager_emit_prepare_for_shutdown:
4798 * @object: A #logindLogin1Manager.
5047f6bf 4799 * @arg_unnamed_arg0: Argument to pass with the signal.
4800 *
4801 * Emits the <link linkend="gdbus-signal-org-freedesktop-login1-Manager.PrepareForShutdown">"PrepareForShutdown"</link> D-Bus signal.
4802 */
4803void
1aa981f7 4804logind_login1_manager_emit_prepare_for_shutdown (
4805 logindLogin1Manager *object,
5047f6bf 4806 gboolean arg_unnamed_arg0)
4807{
4808 g_signal_emit_by_name (object, "prepare-for-shutdown", arg_unnamed_arg0);
4809}
4810
4811/**
1aa981f7 4812 * logind_login1_manager_emit_prepare_for_sleep:
4813 * @object: A #logindLogin1Manager.
5047f6bf 4814 * @arg_unnamed_arg0: Argument to pass with the signal.
4815 *
4816 * Emits the <link linkend="gdbus-signal-org-freedesktop-login1-Manager.PrepareForSleep">"PrepareForSleep"</link> D-Bus signal.
4817 */
4818void
1aa981f7 4819logind_login1_manager_emit_prepare_for_sleep (
4820 logindLogin1Manager *object,
5047f6bf 4821 gboolean arg_unnamed_arg0)
4822{
4823 g_signal_emit_by_name (object, "prepare-for-sleep", arg_unnamed_arg0);
4824}
4825
4826/**
1aa981f7 4827 * logind_login1_manager_call_get_session:
4828 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 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.
4833 *
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.
1aa981f7 4836 * You can then call logind_login1_manager_call_get_session_finish() to get the result of the operation.
5047f6bf 4837 *
1aa981f7 4838 * See logind_login1_manager_call_get_session_sync() for the synchronous, blocking version of this method.
5047f6bf 4839 */
4840void
1aa981f7 4841logind_login1_manager_call_get_session (
4842 logindLogin1Manager *proxy,
5047f6bf 4843 const gchar *arg_unnamed_arg0,
4844 GCancellable *cancellable,
4845 GAsyncReadyCallback callback,
4846 gpointer user_data)
4847{
4848 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
4849 "GetSession",
4850 g_variant_new ("(s)",
4851 arg_unnamed_arg0),
4852 G_DBUS_CALL_FLAGS_NONE,
4853 -1,
4854 cancellable,
4855 callback,
4856 user_data);
4857}
4858
4859/**
1aa981f7 4860 * logind_login1_manager_call_get_session_finish:
4861 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 4862 * @out_unnamed_arg1: (out): Return location for return parameter or %NULL to ignore.
1aa981f7 4863 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to logind_login1_manager_call_get_session().
5047f6bf 4864 * @error: Return location for error or %NULL.
4865 *
1aa981f7 4866 * Finishes an operation started with logind_login1_manager_call_get_session().
5047f6bf 4867 *
4868 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
4869 */
4870gboolean
1aa981f7 4871logind_login1_manager_call_get_session_finish (
4872 logindLogin1Manager *proxy,
5047f6bf 4873 gchar **out_unnamed_arg1,
4874 GAsyncResult *res,
4875 GError **error)
4876{
4877 GVariant *_ret;
4878 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
4879 if (_ret == NULL)
4880 goto _out;
4881 g_variant_get (_ret,
4882 "(o)",
4883 out_unnamed_arg1);
4884 g_variant_unref (_ret);
4885_out:
4886 return _ret != NULL;
4887}
4888
4889/**
1aa981f7 4890 * logind_login1_manager_call_get_session_sync:
4891 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 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.
4896 *
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.
4898 *
1aa981f7 4899 * See logind_login1_manager_call_get_session() for the asynchronous version of this method.
5047f6bf 4900 *
4901 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
4902 */
4903gboolean
1aa981f7 4904logind_login1_manager_call_get_session_sync (
4905 logindLogin1Manager *proxy,
5047f6bf 4906 const gchar *arg_unnamed_arg0,
4907 gchar **out_unnamed_arg1,
4908 GCancellable *cancellable,
4909 GError **error)
4910{
4911 GVariant *_ret;
4912 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
4913 "GetSession",
4914 g_variant_new ("(s)",
4915 arg_unnamed_arg0),
4916 G_DBUS_CALL_FLAGS_NONE,
4917 -1,
4918 cancellable,
4919 error);
4920 if (_ret == NULL)
4921 goto _out;
4922 g_variant_get (_ret,
4923 "(o)",
4924 out_unnamed_arg1);
4925 g_variant_unref (_ret);
4926_out:
4927 return _ret != NULL;
4928}
4929
4930/**
1aa981f7 4931 * logind_login1_manager_call_get_session_by_pid:
4932 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 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.
4937 *
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.
1aa981f7 4940 * You can then call logind_login1_manager_call_get_session_by_pid_finish() to get the result of the operation.
5047f6bf 4941 *
1aa981f7 4942 * See logind_login1_manager_call_get_session_by_pid_sync() for the synchronous, blocking version of this method.
5047f6bf 4943 */
4944void
1aa981f7 4945logind_login1_manager_call_get_session_by_pid (
4946 logindLogin1Manager *proxy,
5047f6bf 4947 guint arg_unnamed_arg0,
4948 GCancellable *cancellable,
4949 GAsyncReadyCallback callback,
4950 gpointer user_data)
4951{
4952 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
4953 "GetSessionByPID",
4954 g_variant_new ("(u)",
4955 arg_unnamed_arg0),
4956 G_DBUS_CALL_FLAGS_NONE,
4957 -1,
4958 cancellable,
4959 callback,
4960 user_data);
4961}
4962
4963/**
1aa981f7 4964 * logind_login1_manager_call_get_session_by_pid_finish:
4965 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 4966 * @out_unnamed_arg1: (out): Return location for return parameter or %NULL to ignore.
1aa981f7 4967 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to logind_login1_manager_call_get_session_by_pid().
5047f6bf 4968 * @error: Return location for error or %NULL.
4969 *
1aa981f7 4970 * Finishes an operation started with logind_login1_manager_call_get_session_by_pid().
5047f6bf 4971 *
4972 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
4973 */
4974gboolean
1aa981f7 4975logind_login1_manager_call_get_session_by_pid_finish (
4976 logindLogin1Manager *proxy,
5047f6bf 4977 gchar **out_unnamed_arg1,
4978 GAsyncResult *res,
4979 GError **error)
4980{
4981 GVariant *_ret;
4982 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
4983 if (_ret == NULL)
4984 goto _out;
4985 g_variant_get (_ret,
4986 "(o)",
4987 out_unnamed_arg1);
4988 g_variant_unref (_ret);
4989_out:
4990 return _ret != NULL;
4991}
4992
4993/**
1aa981f7 4994 * logind_login1_manager_call_get_session_by_pid_sync:
4995 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 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.
5000 *
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.
5002 *
1aa981f7 5003 * See logind_login1_manager_call_get_session_by_pid() for the asynchronous version of this method.
5047f6bf 5004 *
5005 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
5006 */
5007gboolean
1aa981f7 5008logind_login1_manager_call_get_session_by_pid_sync (
5009 logindLogin1Manager *proxy,
5047f6bf 5010 guint arg_unnamed_arg0,
5011 gchar **out_unnamed_arg1,
5012 GCancellable *cancellable,
5013 GError **error)
5014{
5015 GVariant *_ret;
5016 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
5017 "GetSessionByPID",
5018 g_variant_new ("(u)",
5019 arg_unnamed_arg0),
5020 G_DBUS_CALL_FLAGS_NONE,
5021 -1,
5022 cancellable,
5023 error);
5024 if (_ret == NULL)
5025 goto _out;
5026 g_variant_get (_ret,
5027 "(o)",
5028 out_unnamed_arg1);
5029 g_variant_unref (_ret);
5030_out:
5031 return _ret != NULL;
5032}
5033
5034/**
1aa981f7 5035 * logind_login1_manager_call_get_user:
5036 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 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.
5041 *
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.
1aa981f7 5044 * You can then call logind_login1_manager_call_get_user_finish() to get the result of the operation.
5047f6bf 5045 *
1aa981f7 5046 * See logind_login1_manager_call_get_user_sync() for the synchronous, blocking version of this method.
5047f6bf 5047 */
5048void
1aa981f7 5049logind_login1_manager_call_get_user (
5050 logindLogin1Manager *proxy,
5047f6bf 5051 guint arg_unnamed_arg0,
5052 GCancellable *cancellable,
5053 GAsyncReadyCallback callback,
5054 gpointer user_data)
5055{
5056 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
5057 "GetUser",
5058 g_variant_new ("(u)",
5059 arg_unnamed_arg0),
5060 G_DBUS_CALL_FLAGS_NONE,
5061 -1,
5062 cancellable,
5063 callback,
5064 user_data);
5065}
5066
5067/**
1aa981f7 5068 * logind_login1_manager_call_get_user_finish:
5069 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 5070 * @out_unnamed_arg1: (out): Return location for return parameter or %NULL to ignore.
1aa981f7 5071 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to logind_login1_manager_call_get_user().
5047f6bf 5072 * @error: Return location for error or %NULL.
5073 *
1aa981f7 5074 * Finishes an operation started with logind_login1_manager_call_get_user().
5047f6bf 5075 *
5076 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
5077 */
5078gboolean
1aa981f7 5079logind_login1_manager_call_get_user_finish (
5080 logindLogin1Manager *proxy,
5047f6bf 5081 gchar **out_unnamed_arg1,
5082 GAsyncResult *res,
5083 GError **error)
5084{
5085 GVariant *_ret;
5086 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
5087 if (_ret == NULL)
5088 goto _out;
5089 g_variant_get (_ret,
5090 "(o)",
5091 out_unnamed_arg1);
5092 g_variant_unref (_ret);
5093_out:
5094 return _ret != NULL;
5095}
5096
5097/**
1aa981f7 5098 * logind_login1_manager_call_get_user_sync:
5099 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 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.
5104 *
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.
5106 *
1aa981f7 5107 * See logind_login1_manager_call_get_user() for the asynchronous version of this method.
5047f6bf 5108 *
5109 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
5110 */
5111gboolean
1aa981f7 5112logind_login1_manager_call_get_user_sync (
5113 logindLogin1Manager *proxy,
5047f6bf 5114 guint arg_unnamed_arg0,
5115 gchar **out_unnamed_arg1,
5116 GCancellable *cancellable,
5117 GError **error)
5118{
5119 GVariant *_ret;
5120 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
5121 "GetUser",
5122 g_variant_new ("(u)",
5123 arg_unnamed_arg0),
5124 G_DBUS_CALL_FLAGS_NONE,
5125 -1,
5126 cancellable,
5127 error);
5128 if (_ret == NULL)
5129 goto _out;
5130 g_variant_get (_ret,
5131 "(o)",
5132 out_unnamed_arg1);
5133 g_variant_unref (_ret);
5134_out:
5135 return _ret != NULL;
5136}
5137
5138/**
1aa981f7 5139 * logind_login1_manager_call_get_user_by_pid:
5140 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 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.
5145 *
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.
1aa981f7 5148 * You can then call logind_login1_manager_call_get_user_by_pid_finish() to get the result of the operation.
5047f6bf 5149 *
1aa981f7 5150 * See logind_login1_manager_call_get_user_by_pid_sync() for the synchronous, blocking version of this method.
5047f6bf 5151 */
5152void
1aa981f7 5153logind_login1_manager_call_get_user_by_pid (
5154 logindLogin1Manager *proxy,
5047f6bf 5155 guint arg_unnamed_arg0,
5156 GCancellable *cancellable,
5157 GAsyncReadyCallback callback,
5158 gpointer user_data)
5159{
5160 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
5161 "GetUserByPID",
5162 g_variant_new ("(u)",
5163 arg_unnamed_arg0),
5164 G_DBUS_CALL_FLAGS_NONE,
5165 -1,
5166 cancellable,
5167 callback,
5168 user_data);
5169}
5170
5171/**
1aa981f7 5172 * logind_login1_manager_call_get_user_by_pid_finish:
5173 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 5174 * @out_unnamed_arg1: (out): Return location for return parameter or %NULL to ignore.
1aa981f7 5175 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to logind_login1_manager_call_get_user_by_pid().
5047f6bf 5176 * @error: Return location for error or %NULL.
5177 *
1aa981f7 5178 * Finishes an operation started with logind_login1_manager_call_get_user_by_pid().
5047f6bf 5179 *
5180 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
5181 */
5182gboolean
1aa981f7 5183logind_login1_manager_call_get_user_by_pid_finish (
5184 logindLogin1Manager *proxy,
5047f6bf 5185 gchar **out_unnamed_arg1,
5186 GAsyncResult *res,
5187 GError **error)
5188{
5189 GVariant *_ret;
5190 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
5191 if (_ret == NULL)
5192 goto _out;
5193 g_variant_get (_ret,
5194 "(o)",
5195 out_unnamed_arg1);
5196 g_variant_unref (_ret);
5197_out:
5198 return _ret != NULL;
5199}
5200
5201/**
1aa981f7 5202 * logind_login1_manager_call_get_user_by_pid_sync:
5203 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 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.
5208 *
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.
5210 *
1aa981f7 5211 * See logind_login1_manager_call_get_user_by_pid() for the asynchronous version of this method.
5047f6bf 5212 *
5213 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
5214 */
5215gboolean
1aa981f7 5216logind_login1_manager_call_get_user_by_pid_sync (
5217 logindLogin1Manager *proxy,
5047f6bf 5218 guint arg_unnamed_arg0,
5219 gchar **out_unnamed_arg1,
5220 GCancellable *cancellable,
5221 GError **error)
5222{
5223 GVariant *_ret;
5224 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
5225 "GetUserByPID",
5226 g_variant_new ("(u)",
5227 arg_unnamed_arg0),
5228 G_DBUS_CALL_FLAGS_NONE,
5229 -1,
5230 cancellable,
5231 error);
5232 if (_ret == NULL)
5233 goto _out;
5234 g_variant_get (_ret,
5235 "(o)",
5236 out_unnamed_arg1);
5237 g_variant_unref (_ret);
5238_out:
5239 return _ret != NULL;
5240}
5241
5242/**
1aa981f7 5243 * logind_login1_manager_call_get_seat:
5244 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 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.
5249 *
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.
1aa981f7 5252 * You can then call logind_login1_manager_call_get_seat_finish() to get the result of the operation.
5047f6bf 5253 *
1aa981f7 5254 * See logind_login1_manager_call_get_seat_sync() for the synchronous, blocking version of this method.
5047f6bf 5255 */
5256void
1aa981f7 5257logind_login1_manager_call_get_seat (
5258 logindLogin1Manager *proxy,
5047f6bf 5259 const gchar *arg_unnamed_arg0,
5260 GCancellable *cancellable,
5261 GAsyncReadyCallback callback,
5262 gpointer user_data)
5263{
5264 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
5265 "GetSeat",
5266 g_variant_new ("(s)",
5267 arg_unnamed_arg0),
5268 G_DBUS_CALL_FLAGS_NONE,
5269 -1,
5270 cancellable,
5271 callback,
5272 user_data);
5273}
5274
5275/**
1aa981f7 5276 * logind_login1_manager_call_get_seat_finish:
5277 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 5278 * @out_unnamed_arg1: (out): Return location for return parameter or %NULL to ignore.
1aa981f7 5279 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to logind_login1_manager_call_get_seat().
5047f6bf 5280 * @error: Return location for error or %NULL.
5281 *
1aa981f7 5282 * Finishes an operation started with logind_login1_manager_call_get_seat().
5047f6bf 5283 *
5284 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
5285 */
5286gboolean
1aa981f7 5287logind_login1_manager_call_get_seat_finish (
5288 logindLogin1Manager *proxy,
5047f6bf 5289 gchar **out_unnamed_arg1,
5290 GAsyncResult *res,
5291 GError **error)
5292{
5293 GVariant *_ret;
5294 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
5295 if (_ret == NULL)
5296 goto _out;
5297 g_variant_get (_ret,
5298 "(o)",
5299 out_unnamed_arg1);
5300 g_variant_unref (_ret);
5301_out:
5302 return _ret != NULL;
5303}
5304
5305/**
1aa981f7 5306 * logind_login1_manager_call_get_seat_sync:
5307 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 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.
5312 *
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.
5314 *
1aa981f7 5315 * See logind_login1_manager_call_get_seat() for the asynchronous version of this method.
5047f6bf 5316 *
5317 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
5318 */
5319gboolean
1aa981f7 5320logind_login1_manager_call_get_seat_sync (
5321 logindLogin1Manager *proxy,
5047f6bf 5322 const gchar *arg_unnamed_arg0,
5323 gchar **out_unnamed_arg1,
5324 GCancellable *cancellable,
5325 GError **error)
5326{
5327 GVariant *_ret;
5328 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
5329 "GetSeat",
5330 g_variant_new ("(s)",
5331 arg_unnamed_arg0),
5332 G_DBUS_CALL_FLAGS_NONE,
5333 -1,
5334 cancellable,
5335 error);
5336 if (_ret == NULL)
5337 goto _out;
5338 g_variant_get (_ret,
5339 "(o)",
5340 out_unnamed_arg1);
5341 g_variant_unref (_ret);
5342_out:
5343 return _ret != NULL;
5344}
5345
5346/**
1aa981f7 5347 * logind_login1_manager_call_list_sessions:
5348 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 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.
5352 *
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.
1aa981f7 5355 * You can then call logind_login1_manager_call_list_sessions_finish() to get the result of the operation.
5047f6bf 5356 *
1aa981f7 5357 * See logind_login1_manager_call_list_sessions_sync() for the synchronous, blocking version of this method.
5047f6bf 5358 */
5359void
1aa981f7 5360logind_login1_manager_call_list_sessions (
5361 logindLogin1Manager *proxy,
5047f6bf 5362 GCancellable *cancellable,
5363 GAsyncReadyCallback callback,
5364 gpointer user_data)
5365{
5366 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
5367 "ListSessions",
5368 g_variant_new ("()"),
5369 G_DBUS_CALL_FLAGS_NONE,
5370 -1,
5371 cancellable,
5372 callback,
5373 user_data);
5374}
5375
5376/**
1aa981f7 5377 * logind_login1_manager_call_list_sessions_finish:
5378 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 5379 * @out_unnamed_arg0: (out): Return location for return parameter or %NULL to ignore.
1aa981f7 5380 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to logind_login1_manager_call_list_sessions().
5047f6bf 5381 * @error: Return location for error or %NULL.
5382 *
1aa981f7 5383 * Finishes an operation started with logind_login1_manager_call_list_sessions().
5047f6bf 5384 *
5385 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
5386 */
5387gboolean
1aa981f7 5388logind_login1_manager_call_list_sessions_finish (
5389 logindLogin1Manager *proxy,
5047f6bf 5390 GVariant **out_unnamed_arg0,
5391 GAsyncResult *res,
5392 GError **error)
5393{
5394 GVariant *_ret;
5395 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
5396 if (_ret == NULL)
5397 goto _out;
5398 g_variant_get (_ret,
5399 "(@a(susso))",
5400 out_unnamed_arg0);
5401 g_variant_unref (_ret);
5402_out:
5403 return _ret != NULL;
5404}
5405
5406/**
1aa981f7 5407 * logind_login1_manager_call_list_sessions_sync:
5408 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 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.
5412 *
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.
5414 *
1aa981f7 5415 * See logind_login1_manager_call_list_sessions() for the asynchronous version of this method.
5047f6bf 5416 *
5417 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
5418 */
5419gboolean
1aa981f7 5420logind_login1_manager_call_list_sessions_sync (
5421 logindLogin1Manager *proxy,
5047f6bf 5422 GVariant **out_unnamed_arg0,
5423 GCancellable *cancellable,
5424 GError **error)
5425{
5426 GVariant *_ret;
5427 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
5428 "ListSessions",
5429 g_variant_new ("()"),
5430 G_DBUS_CALL_FLAGS_NONE,
5431 -1,
5432 cancellable,
5433 error);
5434 if (_ret == NULL)
5435 goto _out;
5436 g_variant_get (_ret,
5437 "(@a(susso))",
5438 out_unnamed_arg0);
5439 g_variant_unref (_ret);
5440_out:
5441 return _ret != NULL;
5442}
5443
5444/**
1aa981f7 5445 * logind_login1_manager_call_list_users:
5446 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 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.
5450 *
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.
1aa981f7 5453 * You can then call logind_login1_manager_call_list_users_finish() to get the result of the operation.
5047f6bf 5454 *
1aa981f7 5455 * See logind_login1_manager_call_list_users_sync() for the synchronous, blocking version of this method.
5047f6bf 5456 */
5457void
1aa981f7 5458logind_login1_manager_call_list_users (
5459 logindLogin1Manager *proxy,
5047f6bf 5460 GCancellable *cancellable,
5461 GAsyncReadyCallback callback,
5462 gpointer user_data)
5463{
5464 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
5465 "ListUsers",
5466 g_variant_new ("()"),
5467 G_DBUS_CALL_FLAGS_NONE,
5468 -1,
5469 cancellable,
5470 callback,
5471 user_data);
5472}
5473
5474/**
1aa981f7 5475 * logind_login1_manager_call_list_users_finish:
5476 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 5477 * @out_unnamed_arg0: (out): Return location for return parameter or %NULL to ignore.
1aa981f7 5478 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to logind_login1_manager_call_list_users().
5047f6bf 5479 * @error: Return location for error or %NULL.
5480 *
1aa981f7 5481 * Finishes an operation started with logind_login1_manager_call_list_users().
5047f6bf 5482 *
5483 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
5484 */
5485gboolean
1aa981f7 5486logind_login1_manager_call_list_users_finish (
5487 logindLogin1Manager *proxy,
5047f6bf 5488 GVariant **out_unnamed_arg0,
5489 GAsyncResult *res,
5490 GError **error)
5491{
5492 GVariant *_ret;
5493 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
5494 if (_ret == NULL)
5495 goto _out;
5496 g_variant_get (_ret,
5497 "(@a(uso))",
5498 out_unnamed_arg0);
5499 g_variant_unref (_ret);
5500_out:
5501 return _ret != NULL;
5502}
5503
5504/**
1aa981f7 5505 * logind_login1_manager_call_list_users_sync:
5506 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 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.
5510 *
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.
5512 *
1aa981f7 5513 * See logind_login1_manager_call_list_users() for the asynchronous version of this method.
5047f6bf 5514 *
5515 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
5516 */
5517gboolean
1aa981f7 5518logind_login1_manager_call_list_users_sync (
5519 logindLogin1Manager *proxy,
5047f6bf 5520 GVariant **out_unnamed_arg0,
5521 GCancellable *cancellable,
5522 GError **error)
5523{
5524 GVariant *_ret;
5525 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
5526 "ListUsers",
5527 g_variant_new ("()"),
5528 G_DBUS_CALL_FLAGS_NONE,
5529 -1,
5530 cancellable,
5531 error);
5532 if (_ret == NULL)
5533 goto _out;
5534 g_variant_get (_ret,
5535 "(@a(uso))",
5536 out_unnamed_arg0);
5537 g_variant_unref (_ret);
5538_out:
5539 return _ret != NULL;
5540}
5541
5542/**
1aa981f7 5543 * logind_login1_manager_call_list_seats:
5544 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 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.
5548 *
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.
1aa981f7 5551 * You can then call logind_login1_manager_call_list_seats_finish() to get the result of the operation.
5047f6bf 5552 *
1aa981f7 5553 * See logind_login1_manager_call_list_seats_sync() for the synchronous, blocking version of this method.
5047f6bf 5554 */
5555void
1aa981f7 5556logind_login1_manager_call_list_seats (
5557 logindLogin1Manager *proxy,
5047f6bf 5558 GCancellable *cancellable,
5559 GAsyncReadyCallback callback,
5560 gpointer user_data)
5561{
5562 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
5563 "ListSeats",
5564 g_variant_new ("()"),
5565 G_DBUS_CALL_FLAGS_NONE,
5566 -1,
5567 cancellable,
5568 callback,
5569 user_data);
5570}
5571
5572/**
1aa981f7 5573 * logind_login1_manager_call_list_seats_finish:
5574 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 5575 * @out_unnamed_arg0: (out): Return location for return parameter or %NULL to ignore.
1aa981f7 5576 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to logind_login1_manager_call_list_seats().
5047f6bf 5577 * @error: Return location for error or %NULL.
5578 *
1aa981f7 5579 * Finishes an operation started with logind_login1_manager_call_list_seats().
5047f6bf 5580 *
5581 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
5582 */
5583gboolean
1aa981f7 5584logind_login1_manager_call_list_seats_finish (
5585 logindLogin1Manager *proxy,
5047f6bf 5586 GVariant **out_unnamed_arg0,
5587 GAsyncResult *res,
5588 GError **error)
5589{
5590 GVariant *_ret;
5591 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
5592 if (_ret == NULL)
5593 goto _out;
5594 g_variant_get (_ret,
5595 "(@a(so))",
5596 out_unnamed_arg0);
5597 g_variant_unref (_ret);
5598_out:
5599 return _ret != NULL;
5600}
5601
5602/**
1aa981f7 5603 * logind_login1_manager_call_list_seats_sync:
5604 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 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.
5608 *
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.
5610 *
1aa981f7 5611 * See logind_login1_manager_call_list_seats() for the asynchronous version of this method.
5047f6bf 5612 *
5613 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
5614 */
5615gboolean
1aa981f7 5616logind_login1_manager_call_list_seats_sync (
5617 logindLogin1Manager *proxy,
5047f6bf 5618 GVariant **out_unnamed_arg0,
5619 GCancellable *cancellable,
5620 GError **error)
5621{
5622 GVariant *_ret;
5623 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
5624 "ListSeats",
5625 g_variant_new ("()"),
5626 G_DBUS_CALL_FLAGS_NONE,
5627 -1,
5628 cancellable,
5629 error);
5630 if (_ret == NULL)
5631 goto _out;
5632 g_variant_get (_ret,
5633 "(@a(so))",
5634 out_unnamed_arg0);
5635 g_variant_unref (_ret);
5636_out:
5637 return _ret != NULL;
5638}
5639
5640/**
1aa981f7 5641 * logind_login1_manager_call_list_inhibitors:
5642 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 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.
5646 *
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.
1aa981f7 5649 * You can then call logind_login1_manager_call_list_inhibitors_finish() to get the result of the operation.
5047f6bf 5650 *
1aa981f7 5651 * See logind_login1_manager_call_list_inhibitors_sync() for the synchronous, blocking version of this method.
5047f6bf 5652 */
5653void
1aa981f7 5654logind_login1_manager_call_list_inhibitors (
5655 logindLogin1Manager *proxy,
5047f6bf 5656 GCancellable *cancellable,
5657 GAsyncReadyCallback callback,
5658 gpointer user_data)
5659{
5660 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
5661 "ListInhibitors",
5662 g_variant_new ("()"),
5663 G_DBUS_CALL_FLAGS_NONE,
5664 -1,
5665 cancellable,
5666 callback,
5667 user_data);
5668}
5669
5670/**
1aa981f7 5671 * logind_login1_manager_call_list_inhibitors_finish:
5672 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 5673 * @out_unnamed_arg0: (out): Return location for return parameter or %NULL to ignore.
1aa981f7 5674 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to logind_login1_manager_call_list_inhibitors().
5047f6bf 5675 * @error: Return location for error or %NULL.
5676 *
1aa981f7 5677 * Finishes an operation started with logind_login1_manager_call_list_inhibitors().
5047f6bf 5678 *
5679 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
5680 */
5681gboolean
1aa981f7 5682logind_login1_manager_call_list_inhibitors_finish (
5683 logindLogin1Manager *proxy,
5047f6bf 5684 GVariant **out_unnamed_arg0,
5685 GAsyncResult *res,
5686 GError **error)
5687{
5688 GVariant *_ret;
5689 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
5690 if (_ret == NULL)
5691 goto _out;
5692 g_variant_get (_ret,
5693 "(@a(ssssuu))",
5694 out_unnamed_arg0);
5695 g_variant_unref (_ret);
5696_out:
5697 return _ret != NULL;
5698}
5699
5700/**
1aa981f7 5701 * logind_login1_manager_call_list_inhibitors_sync:
5702 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 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.
5706 *
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.
5708 *
1aa981f7 5709 * See logind_login1_manager_call_list_inhibitors() for the asynchronous version of this method.
5047f6bf 5710 *
5711 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
5712 */
5713gboolean
1aa981f7 5714logind_login1_manager_call_list_inhibitors_sync (
5715 logindLogin1Manager *proxy,
5047f6bf 5716 GVariant **out_unnamed_arg0,
5717 GCancellable *cancellable,
5718 GError **error)
5719{
5720 GVariant *_ret;
5721 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
5722 "ListInhibitors",
5723 g_variant_new ("()"),
5724 G_DBUS_CALL_FLAGS_NONE,
5725 -1,
5726 cancellable,
5727 error);
5728 if (_ret == NULL)
5729 goto _out;
5730 g_variant_get (_ret,
5731 "(@a(ssssuu))",
5732 out_unnamed_arg0);
5733 g_variant_unref (_ret);
5734_out:
5735 return _ret != NULL;
5736}
5737
5738/**
1aa981f7 5739 * logind_login1_manager_call_create_session:
5740 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 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.
5758 *
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.
1aa981f7 5761 * You can then call logind_login1_manager_call_create_session_finish() to get the result of the operation.
5047f6bf 5762 *
1aa981f7 5763 * See logind_login1_manager_call_create_session_sync() for the synchronous, blocking version of this method.
5047f6bf 5764 */
5765void
1aa981f7 5766logind_login1_manager_call_create_session (
5767 logindLogin1Manager *proxy,
5047f6bf 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,
5784 gpointer user_data)
5785{
5786 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
5787 "CreateSession",
5788 g_variant_new ("(uusssssussbss@a(sv))",
5789 arg_unnamed_arg0,
5790 arg_unnamed_arg1,
5791 arg_unnamed_arg2,
5792 arg_unnamed_arg3,
5793 arg_unnamed_arg4,
5794 arg_unnamed_arg5,
5795 arg_unnamed_arg6,
5796 arg_unnamed_arg7,
5797 arg_unnamed_arg8,
5798 arg_unnamed_arg9,
5799 arg_unnamed_arg10,
5800 arg_unnamed_arg11,
5801 arg_unnamed_arg12,
5802 arg_unnamed_arg13),
5803 G_DBUS_CALL_FLAGS_NONE,
5804 -1,
5805 cancellable,
5806 callback,
5807 user_data);
5808}
5809
5810/**
1aa981f7 5811 * logind_login1_manager_call_create_session_finish:
5812 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 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.
1aa981f7 5821 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to logind_login1_manager_call_create_session().
5047f6bf 5822 * @error: Return location for error or %NULL.
5823 *
1aa981f7 5824 * Finishes an operation started with logind_login1_manager_call_create_session().
5047f6bf 5825 *
5826 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
5827 */
5828gboolean
1aa981f7 5829logind_login1_manager_call_create_session_finish (
5830 logindLogin1Manager *proxy,
5047f6bf 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,
5839 GAsyncResult *res,
5840 GError **error)
5841{
5842 GVariant *_ret;
5843 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
5844 if (_ret == NULL)
5845 goto _out;
5846 g_variant_get (_ret,
5847 "(sos@husub)",
5848 out_unnamed_arg14,
5849 out_unnamed_arg15,
5850 out_unnamed_arg16,
5851 out_unnamed_arg17,
5852 out_unnamed_arg18,
5853 out_unnamed_arg19,
5854 out_unnamed_arg20,
5855 out_unnamed_arg21);
5856 g_variant_unref (_ret);
5857_out:
5858 return _ret != NULL;
5859}
5860
5861/**
1aa981f7 5862 * logind_login1_manager_call_create_session_sync:
5863 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 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.
5888 *
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.
5890 *
1aa981f7 5891 * See logind_login1_manager_call_create_session() for the asynchronous version of this method.
5047f6bf 5892 *
5893 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
5894 */
5895gboolean
1aa981f7 5896logind_login1_manager_call_create_session_sync (
5897 logindLogin1Manager *proxy,
5047f6bf 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,
5921 GError **error)
5922{
5923 GVariant *_ret;
5924 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
5925 "CreateSession",
5926 g_variant_new ("(uusssssussbss@a(sv))",
5927 arg_unnamed_arg0,
5928 arg_unnamed_arg1,
5929 arg_unnamed_arg2,
5930 arg_unnamed_arg3,
5931 arg_unnamed_arg4,
5932 arg_unnamed_arg5,
5933 arg_unnamed_arg6,
5934 arg_unnamed_arg7,
5935 arg_unnamed_arg8,
5936 arg_unnamed_arg9,
5937 arg_unnamed_arg10,
5938 arg_unnamed_arg11,
5939 arg_unnamed_arg12,
5940 arg_unnamed_arg13),
5941 G_DBUS_CALL_FLAGS_NONE,
5942 -1,
5943 cancellable,
5944 error);
5945 if (_ret == NULL)
5946 goto _out;
5947 g_variant_get (_ret,
5948 "(sos@husub)",
5949 out_unnamed_arg14,
5950 out_unnamed_arg15,
5951 out_unnamed_arg16,
5952 out_unnamed_arg17,
5953 out_unnamed_arg18,
5954 out_unnamed_arg19,
5955 out_unnamed_arg20,
5956 out_unnamed_arg21);
5957 g_variant_unref (_ret);
5958_out:
5959 return _ret != NULL;
5960}
5961
5962/**
1aa981f7 5963 * logind_login1_manager_call_release_session:
5964 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 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.
5969 *
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.
1aa981f7 5972 * You can then call logind_login1_manager_call_release_session_finish() to get the result of the operation.
5047f6bf 5973 *
1aa981f7 5974 * See logind_login1_manager_call_release_session_sync() for the synchronous, blocking version of this method.
5047f6bf 5975 */
5976void
1aa981f7 5977logind_login1_manager_call_release_session (
5978 logindLogin1Manager *proxy,
5047f6bf 5979 const gchar *arg_unnamed_arg0,
5980 GCancellable *cancellable,
5981 GAsyncReadyCallback callback,
5982 gpointer user_data)
5983{
5984 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
5985 "ReleaseSession",
5986 g_variant_new ("(s)",
5987 arg_unnamed_arg0),
5988 G_DBUS_CALL_FLAGS_NONE,
5989 -1,
5990 cancellable,
5991 callback,
5992 user_data);
5993}
5994
5995/**
1aa981f7 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().
5047f6bf 5999 * @error: Return location for error or %NULL.
6000 *
1aa981f7 6001 * Finishes an operation started with logind_login1_manager_call_release_session().
5047f6bf 6002 *
6003 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
6004 */
6005gboolean
1aa981f7 6006logind_login1_manager_call_release_session_finish (
6007 logindLogin1Manager *proxy,
5047f6bf 6008 GAsyncResult *res,
6009 GError **error)
6010{
6011 GVariant *_ret;
6012 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
6013 if (_ret == NULL)
6014 goto _out;
6015 g_variant_get (_ret,
6016 "()");
6017 g_variant_unref (_ret);
6018_out:
6019 return _ret != NULL;
6020}
6021
6022/**
1aa981f7 6023 * logind_login1_manager_call_release_session_sync:
6024 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 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.
6028 *
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.
6030 *
1aa981f7 6031 * See logind_login1_manager_call_release_session() for the asynchronous version of this method.
5047f6bf 6032 *
6033 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
6034 */
6035gboolean
1aa981f7 6036logind_login1_manager_call_release_session_sync (
6037 logindLogin1Manager *proxy,
5047f6bf 6038 const gchar *arg_unnamed_arg0,
6039 GCancellable *cancellable,
6040 GError **error)
6041{
6042 GVariant *_ret;
6043 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
6044 "ReleaseSession",
6045 g_variant_new ("(s)",
6046 arg_unnamed_arg0),
6047 G_DBUS_CALL_FLAGS_NONE,
6048 -1,
6049 cancellable,
6050 error);
6051 if (_ret == NULL)
6052 goto _out;
6053 g_variant_get (_ret,
6054 "()");
6055 g_variant_unref (_ret);
6056_out:
6057 return _ret != NULL;
6058}
6059
6060/**
1aa981f7 6061 * logind_login1_manager_call_activate_session:
6062 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 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.
6067 *
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.
1aa981f7 6070 * You can then call logind_login1_manager_call_activate_session_finish() to get the result of the operation.
5047f6bf 6071 *
1aa981f7 6072 * See logind_login1_manager_call_activate_session_sync() for the synchronous, blocking version of this method.
5047f6bf 6073 */
6074void
1aa981f7 6075logind_login1_manager_call_activate_session (
6076 logindLogin1Manager *proxy,
5047f6bf 6077 const gchar *arg_unnamed_arg0,
6078 GCancellable *cancellable,
6079 GAsyncReadyCallback callback,
6080 gpointer user_data)
6081{
6082 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
6083 "ActivateSession",
6084 g_variant_new ("(s)",
6085 arg_unnamed_arg0),
6086 G_DBUS_CALL_FLAGS_NONE,
6087 -1,
6088 cancellable,
6089 callback,
6090 user_data);
6091}
6092
6093/**
1aa981f7 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().
5047f6bf 6097 * @error: Return location for error or %NULL.
6098 *
1aa981f7 6099 * Finishes an operation started with logind_login1_manager_call_activate_session().
5047f6bf 6100 *
6101 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
6102 */
6103gboolean
1aa981f7 6104logind_login1_manager_call_activate_session_finish (
6105 logindLogin1Manager *proxy,
5047f6bf 6106 GAsyncResult *res,
6107 GError **error)
6108{
6109 GVariant *_ret;
6110 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
6111 if (_ret == NULL)
6112 goto _out;
6113 g_variant_get (_ret,
6114 "()");
6115 g_variant_unref (_ret);
6116_out:
6117 return _ret != NULL;
6118}
6119
6120/**
1aa981f7 6121 * logind_login1_manager_call_activate_session_sync:
6122 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 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.
6126 *
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.
6128 *
1aa981f7 6129 * See logind_login1_manager_call_activate_session() for the asynchronous version of this method.
5047f6bf 6130 *
6131 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
6132 */
6133gboolean
1aa981f7 6134logind_login1_manager_call_activate_session_sync (
6135 logindLogin1Manager *proxy,
5047f6bf 6136 const gchar *arg_unnamed_arg0,
6137 GCancellable *cancellable,
6138 GError **error)
6139{
6140 GVariant *_ret;
6141 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
6142 "ActivateSession",
6143 g_variant_new ("(s)",
6144 arg_unnamed_arg0),
6145 G_DBUS_CALL_FLAGS_NONE,
6146 -1,
6147 cancellable,
6148 error);
6149 if (_ret == NULL)
6150 goto _out;
6151 g_variant_get (_ret,
6152 "()");
6153 g_variant_unref (_ret);
6154_out:
6155 return _ret != NULL;
6156}
6157
6158/**
1aa981f7 6159 * logind_login1_manager_call_activate_session_on_seat:
6160 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 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.
6166 *
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.
1aa981f7 6169 * You can then call logind_login1_manager_call_activate_session_on_seat_finish() to get the result of the operation.
5047f6bf 6170 *
1aa981f7 6171 * See logind_login1_manager_call_activate_session_on_seat_sync() for the synchronous, blocking version of this method.
5047f6bf 6172 */
6173void
1aa981f7 6174logind_login1_manager_call_activate_session_on_seat (
6175 logindLogin1Manager *proxy,
5047f6bf 6176 const gchar *arg_unnamed_arg0,
6177 const gchar *arg_unnamed_arg1,
6178 GCancellable *cancellable,
6179 GAsyncReadyCallback callback,
6180 gpointer user_data)
6181{
6182 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
6183 "ActivateSessionOnSeat",
6184 g_variant_new ("(ss)",
6185 arg_unnamed_arg0,
6186 arg_unnamed_arg1),
6187 G_DBUS_CALL_FLAGS_NONE,
6188 -1,
6189 cancellable,
6190 callback,
6191 user_data);
6192}
6193
6194/**
1aa981f7 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().
5047f6bf 6198 * @error: Return location for error or %NULL.
6199 *
1aa981f7 6200 * Finishes an operation started with logind_login1_manager_call_activate_session_on_seat().
5047f6bf 6201 *
6202 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
6203 */
6204gboolean
1aa981f7 6205logind_login1_manager_call_activate_session_on_seat_finish (
6206 logindLogin1Manager *proxy,
5047f6bf 6207 GAsyncResult *res,
6208 GError **error)
6209{
6210 GVariant *_ret;
6211 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
6212 if (_ret == NULL)
6213 goto _out;
6214 g_variant_get (_ret,
6215 "()");
6216 g_variant_unref (_ret);
6217_out:
6218 return _ret != NULL;
6219}
6220
6221/**
1aa981f7 6222 * logind_login1_manager_call_activate_session_on_seat_sync:
6223 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 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.
6228 *
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.
6230 *
1aa981f7 6231 * See logind_login1_manager_call_activate_session_on_seat() for the asynchronous version of this method.
5047f6bf 6232 *
6233 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
6234 */
6235gboolean
1aa981f7 6236logind_login1_manager_call_activate_session_on_seat_sync (
6237 logindLogin1Manager *proxy,
5047f6bf 6238 const gchar *arg_unnamed_arg0,
6239 const gchar *arg_unnamed_arg1,
6240 GCancellable *cancellable,
6241 GError **error)
6242{
6243 GVariant *_ret;
6244 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
6245 "ActivateSessionOnSeat",
6246 g_variant_new ("(ss)",
6247 arg_unnamed_arg0,
6248 arg_unnamed_arg1),
6249 G_DBUS_CALL_FLAGS_NONE,
6250 -1,
6251 cancellable,
6252 error);
6253 if (_ret == NULL)
6254 goto _out;
6255 g_variant_get (_ret,
6256 "()");
6257 g_variant_unref (_ret);
6258_out:
6259 return _ret != NULL;
6260}
6261
6262/**
1aa981f7 6263 * logind_login1_manager_call_lock_session:
6264 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 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.
6269 *
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.
1aa981f7 6272 * You can then call logind_login1_manager_call_lock_session_finish() to get the result of the operation.
5047f6bf 6273 *
1aa981f7 6274 * See logind_login1_manager_call_lock_session_sync() for the synchronous, blocking version of this method.
5047f6bf 6275 */
6276void
1aa981f7 6277logind_login1_manager_call_lock_session (
6278 logindLogin1Manager *proxy,
5047f6bf 6279 const gchar *arg_unnamed_arg0,
6280 GCancellable *cancellable,
6281 GAsyncReadyCallback callback,
6282 gpointer user_data)
6283{
6284 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
6285 "LockSession",
6286 g_variant_new ("(s)",
6287 arg_unnamed_arg0),
6288 G_DBUS_CALL_FLAGS_NONE,
6289 -1,
6290 cancellable,
6291 callback,
6292 user_data);
6293}
6294
6295/**
1aa981f7 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().
5047f6bf 6299 * @error: Return location for error or %NULL.
6300 *
1aa981f7 6301 * Finishes an operation started with logind_login1_manager_call_lock_session().
5047f6bf 6302 *
6303 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
6304 */
6305gboolean
1aa981f7 6306logind_login1_manager_call_lock_session_finish (
6307 logindLogin1Manager *proxy,
5047f6bf 6308 GAsyncResult *res,
6309 GError **error)
6310{
6311 GVariant *_ret;
6312 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
6313 if (_ret == NULL)
6314 goto _out;
6315 g_variant_get (_ret,
6316 "()");
6317 g_variant_unref (_ret);
6318_out:
6319 return _ret != NULL;
6320}
6321
6322/**
1aa981f7 6323 * logind_login1_manager_call_lock_session_sync:
6324 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 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.
6328 *
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.
6330 *
1aa981f7 6331 * See logind_login1_manager_call_lock_session() for the asynchronous version of this method.
5047f6bf 6332 *
6333 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
6334 */
6335gboolean
1aa981f7 6336logind_login1_manager_call_lock_session_sync (
6337 logindLogin1Manager *proxy,
5047f6bf 6338 const gchar *arg_unnamed_arg0,
6339 GCancellable *cancellable,
6340 GError **error)
6341{
6342 GVariant *_ret;
6343 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
6344 "LockSession",
6345 g_variant_new ("(s)",
6346 arg_unnamed_arg0),
6347 G_DBUS_CALL_FLAGS_NONE,
6348 -1,
6349 cancellable,
6350 error);
6351 if (_ret == NULL)
6352 goto _out;
6353 g_variant_get (_ret,
6354 "()");
6355 g_variant_unref (_ret);
6356_out:
6357 return _ret != NULL;
6358}
6359
6360/**
1aa981f7 6361 * logind_login1_manager_call_unlock_session:
6362 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 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.
6367 *
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.
1aa981f7 6370 * You can then call logind_login1_manager_call_unlock_session_finish() to get the result of the operation.
5047f6bf 6371 *
1aa981f7 6372 * See logind_login1_manager_call_unlock_session_sync() for the synchronous, blocking version of this method.
5047f6bf 6373 */
6374void
1aa981f7 6375logind_login1_manager_call_unlock_session (
6376 logindLogin1Manager *proxy,
5047f6bf 6377 const gchar *arg_unnamed_arg0,
6378 GCancellable *cancellable,
6379 GAsyncReadyCallback callback,
6380 gpointer user_data)
6381{
6382 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
6383 "UnlockSession",
6384 g_variant_new ("(s)",
6385 arg_unnamed_arg0),
6386 G_DBUS_CALL_FLAGS_NONE,
6387 -1,
6388 cancellable,
6389 callback,
6390 user_data);
6391}
6392
6393/**
1aa981f7 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().
5047f6bf 6397 * @error: Return location for error or %NULL.
6398 *
1aa981f7 6399 * Finishes an operation started with logind_login1_manager_call_unlock_session().
5047f6bf 6400 *
6401 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
6402 */
6403gboolean
1aa981f7 6404logind_login1_manager_call_unlock_session_finish (
6405 logindLogin1Manager *proxy,
5047f6bf 6406 GAsyncResult *res,
6407 GError **error)
6408{
6409 GVariant *_ret;
6410 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
6411 if (_ret == NULL)
6412 goto _out;
6413 g_variant_get (_ret,
6414 "()");
6415 g_variant_unref (_ret);
6416_out:
6417 return _ret != NULL;
6418}
6419
6420/**
1aa981f7 6421 * logind_login1_manager_call_unlock_session_sync:
6422 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 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.
6426 *
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.
6428 *
1aa981f7 6429 * See logind_login1_manager_call_unlock_session() for the asynchronous version of this method.
5047f6bf 6430 *
6431 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
6432 */
6433gboolean
1aa981f7 6434logind_login1_manager_call_unlock_session_sync (
6435 logindLogin1Manager *proxy,
5047f6bf 6436 const gchar *arg_unnamed_arg0,
6437 GCancellable *cancellable,
6438 GError **error)
6439{
6440 GVariant *_ret;
6441 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
6442 "UnlockSession",
6443 g_variant_new ("(s)",
6444 arg_unnamed_arg0),
6445 G_DBUS_CALL_FLAGS_NONE,
6446 -1,
6447 cancellable,
6448 error);
6449 if (_ret == NULL)
6450 goto _out;
6451 g_variant_get (_ret,
6452 "()");
6453 g_variant_unref (_ret);
6454_out:
6455 return _ret != NULL;
6456}
6457
6458/**
1aa981f7 6459 * logind_login1_manager_call_lock_sessions:
6460 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 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.
6464 *
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.
1aa981f7 6467 * You can then call logind_login1_manager_call_lock_sessions_finish() to get the result of the operation.
5047f6bf 6468 *
1aa981f7 6469 * See logind_login1_manager_call_lock_sessions_sync() for the synchronous, blocking version of this method.
5047f6bf 6470 */
6471void
1aa981f7 6472logind_login1_manager_call_lock_sessions (
6473 logindLogin1Manager *proxy,
5047f6bf 6474 GCancellable *cancellable,
6475 GAsyncReadyCallback callback,
6476 gpointer user_data)
6477{
6478 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
6479 "LockSessions",
6480 g_variant_new ("()"),
6481 G_DBUS_CALL_FLAGS_NONE,
6482 -1,
6483 cancellable,
6484 callback,
6485 user_data);
6486}
6487
6488/**
1aa981f7 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().
5047f6bf 6492 * @error: Return location for error or %NULL.
6493 *
1aa981f7 6494 * Finishes an operation started with logind_login1_manager_call_lock_sessions().
5047f6bf 6495 *
6496 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
6497 */
6498gboolean
1aa981f7 6499logind_login1_manager_call_lock_sessions_finish (
6500 logindLogin1Manager *proxy,
5047f6bf 6501 GAsyncResult *res,
6502 GError **error)
6503{
6504 GVariant *_ret;
6505 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
6506 if (_ret == NULL)
6507 goto _out;
6508 g_variant_get (_ret,
6509 "()");
6510 g_variant_unref (_ret);
6511_out:
6512 return _ret != NULL;
6513}
6514
6515/**
1aa981f7 6516 * logind_login1_manager_call_lock_sessions_sync:
6517 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 6518 * @cancellable: (allow-none): A #GCancellable or %NULL.
6519 * @error: Return location for error or %NULL.
6520 *
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.
6522 *
1aa981f7 6523 * See logind_login1_manager_call_lock_sessions() for the asynchronous version of this method.
5047f6bf 6524 *
6525 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
6526 */
6527gboolean
1aa981f7 6528logind_login1_manager_call_lock_sessions_sync (
6529 logindLogin1Manager *proxy,
5047f6bf 6530 GCancellable *cancellable,
6531 GError **error)
6532{
6533 GVariant *_ret;
6534 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
6535 "LockSessions",
6536 g_variant_new ("()"),
6537 G_DBUS_CALL_FLAGS_NONE,
6538 -1,
6539 cancellable,
6540 error);
6541 if (_ret == NULL)
6542 goto _out;
6543 g_variant_get (_ret,
6544 "()");
6545 g_variant_unref (_ret);
6546_out:
6547 return _ret != NULL;
6548}
6549
6550/**
1aa981f7 6551 * logind_login1_manager_call_unlock_sessions:
6552 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 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.
6556 *
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.
1aa981f7 6559 * You can then call logind_login1_manager_call_unlock_sessions_finish() to get the result of the operation.
5047f6bf 6560 *
1aa981f7 6561 * See logind_login1_manager_call_unlock_sessions_sync() for the synchronous, blocking version of this method.
5047f6bf 6562 */
6563void
1aa981f7 6564logind_login1_manager_call_unlock_sessions (
6565 logindLogin1Manager *proxy,
5047f6bf 6566 GCancellable *cancellable,
6567 GAsyncReadyCallback callback,
6568 gpointer user_data)
6569{
6570 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
6571 "UnlockSessions",
6572 g_variant_new ("()"),
6573 G_DBUS_CALL_FLAGS_NONE,
6574 -1,
6575 cancellable,
6576 callback,
6577 user_data);
6578}
6579
6580/**
1aa981f7 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().
5047f6bf 6584 * @error: Return location for error or %NULL.
6585 *
1aa981f7 6586 * Finishes an operation started with logind_login1_manager_call_unlock_sessions().
5047f6bf 6587 *
6588 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
6589 */
6590gboolean
1aa981f7 6591logind_login1_manager_call_unlock_sessions_finish (
6592 logindLogin1Manager *proxy,
5047f6bf 6593 GAsyncResult *res,
6594 GError **error)
6595{
6596 GVariant *_ret;
6597 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
6598 if (_ret == NULL)
6599 goto _out;
6600 g_variant_get (_ret,
6601 "()");
6602 g_variant_unref (_ret);
6603_out:
6604 return _ret != NULL;
6605}
6606
6607/**
1aa981f7 6608 * logind_login1_manager_call_unlock_sessions_sync:
6609 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 6610 * @cancellable: (allow-none): A #GCancellable or %NULL.
6611 * @error: Return location for error or %NULL.
6612 *
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.
6614 *
1aa981f7 6615 * See logind_login1_manager_call_unlock_sessions() for the asynchronous version of this method.
5047f6bf 6616 *
6617 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
6618 */
6619gboolean
1aa981f7 6620logind_login1_manager_call_unlock_sessions_sync (
6621 logindLogin1Manager *proxy,
5047f6bf 6622 GCancellable *cancellable,
6623 GError **error)
6624{
6625 GVariant *_ret;
6626 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
6627 "UnlockSessions",
6628 g_variant_new ("()"),
6629 G_DBUS_CALL_FLAGS_NONE,
6630 -1,
6631 cancellable,
6632 error);
6633 if (_ret == NULL)
6634 goto _out;
6635 g_variant_get (_ret,
6636 "()");
6637 g_variant_unref (_ret);
6638_out:
6639 return _ret != NULL;
6640}
6641
6642/**
1aa981f7 6643 * logind_login1_manager_call_kill_session:
6644 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 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.
6651 *
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.
1aa981f7 6654 * You can then call logind_login1_manager_call_kill_session_finish() to get the result of the operation.
5047f6bf 6655 *
1aa981f7 6656 * See logind_login1_manager_call_kill_session_sync() for the synchronous, blocking version of this method.
5047f6bf 6657 */
6658void
1aa981f7 6659logind_login1_manager_call_kill_session (
6660 logindLogin1Manager *proxy,
5047f6bf 6661 const gchar *arg_unnamed_arg0,
6662 const gchar *arg_unnamed_arg1,
6663 gint arg_unnamed_arg2,
6664 GCancellable *cancellable,
6665 GAsyncReadyCallback callback,
6666 gpointer user_data)
6667{
6668 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
6669 "KillSession",
6670 g_variant_new ("(ssi)",
6671 arg_unnamed_arg0,
6672 arg_unnamed_arg1,
6673 arg_unnamed_arg2),
6674 G_DBUS_CALL_FLAGS_NONE,
6675 -1,
6676 cancellable,
6677 callback,
6678 user_data);
6679}
6680
6681/**
1aa981f7 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().
5047f6bf 6685 * @error: Return location for error or %NULL.
6686 *
1aa981f7 6687 * Finishes an operation started with logind_login1_manager_call_kill_session().
5047f6bf 6688 *
6689 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
6690 */
6691gboolean
1aa981f7 6692logind_login1_manager_call_kill_session_finish (
6693 logindLogin1Manager *proxy,
5047f6bf 6694 GAsyncResult *res,
6695 GError **error)
6696{
6697 GVariant *_ret;
6698 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
6699 if (_ret == NULL)
6700 goto _out;
6701 g_variant_get (_ret,
6702 "()");
6703 g_variant_unref (_ret);
6704_out:
6705 return _ret != NULL;
6706}
6707
6708/**
1aa981f7 6709 * logind_login1_manager_call_kill_session_sync:
6710 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 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.
6716 *
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.
6718 *
1aa981f7 6719 * See logind_login1_manager_call_kill_session() for the asynchronous version of this method.
5047f6bf 6720 *
6721 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
6722 */
6723gboolean
1aa981f7 6724logind_login1_manager_call_kill_session_sync (
6725 logindLogin1Manager *proxy,
5047f6bf 6726 const gchar *arg_unnamed_arg0,
6727 const gchar *arg_unnamed_arg1,
6728 gint arg_unnamed_arg2,
6729 GCancellable *cancellable,
6730 GError **error)
6731{
6732 GVariant *_ret;
6733 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
6734 "KillSession",
6735 g_variant_new ("(ssi)",
6736 arg_unnamed_arg0,
6737 arg_unnamed_arg1,
6738 arg_unnamed_arg2),
6739 G_DBUS_CALL_FLAGS_NONE,
6740 -1,
6741 cancellable,
6742 error);
6743 if (_ret == NULL)
6744 goto _out;
6745 g_variant_get (_ret,
6746 "()");
6747 g_variant_unref (_ret);
6748_out:
6749 return _ret != NULL;
6750}
6751
6752/**
1aa981f7 6753 * logind_login1_manager_call_kill_user:
6754 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 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.
6760 *
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.
1aa981f7 6763 * You can then call logind_login1_manager_call_kill_user_finish() to get the result of the operation.
5047f6bf 6764 *
1aa981f7 6765 * See logind_login1_manager_call_kill_user_sync() for the synchronous, blocking version of this method.
5047f6bf 6766 */
6767void
1aa981f7 6768logind_login1_manager_call_kill_user (
6769 logindLogin1Manager *proxy,
5047f6bf 6770 guint arg_unnamed_arg0,
6771 gint arg_unnamed_arg1,
6772 GCancellable *cancellable,
6773 GAsyncReadyCallback callback,
6774 gpointer user_data)
6775{
6776 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
6777 "KillUser",
6778 g_variant_new ("(ui)",
6779 arg_unnamed_arg0,
6780 arg_unnamed_arg1),
6781 G_DBUS_CALL_FLAGS_NONE,
6782 -1,
6783 cancellable,
6784 callback,
6785 user_data);
6786}
6787
6788/**
1aa981f7 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().
5047f6bf 6792 * @error: Return location for error or %NULL.
6793 *
1aa981f7 6794 * Finishes an operation started with logind_login1_manager_call_kill_user().
5047f6bf 6795 *
6796 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
6797 */
6798gboolean
1aa981f7 6799logind_login1_manager_call_kill_user_finish (
6800 logindLogin1Manager *proxy,
5047f6bf 6801 GAsyncResult *res,
6802 GError **error)
6803{
6804 GVariant *_ret;
6805 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
6806 if (_ret == NULL)
6807 goto _out;
6808 g_variant_get (_ret,
6809 "()");
6810 g_variant_unref (_ret);
6811_out:
6812 return _ret != NULL;
6813}
6814
6815/**
1aa981f7 6816 * logind_login1_manager_call_kill_user_sync:
6817 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 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.
6822 *
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.
6824 *
1aa981f7 6825 * See logind_login1_manager_call_kill_user() for the asynchronous version of this method.
5047f6bf 6826 *
6827 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
6828 */
6829gboolean
1aa981f7 6830logind_login1_manager_call_kill_user_sync (
6831 logindLogin1Manager *proxy,
5047f6bf 6832 guint arg_unnamed_arg0,
6833 gint arg_unnamed_arg1,
6834 GCancellable *cancellable,
6835 GError **error)
6836{
6837 GVariant *_ret;
6838 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
6839 "KillUser",
6840 g_variant_new ("(ui)",
6841 arg_unnamed_arg0,
6842 arg_unnamed_arg1),
6843 G_DBUS_CALL_FLAGS_NONE,
6844 -1,
6845 cancellable,
6846 error);
6847 if (_ret == NULL)
6848 goto _out;
6849 g_variant_get (_ret,
6850 "()");
6851 g_variant_unref (_ret);
6852_out:
6853 return _ret != NULL;
6854}
6855
6856/**
1aa981f7 6857 * logind_login1_manager_call_terminate_session:
6858 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 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.
6863 *
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.
1aa981f7 6866 * You can then call logind_login1_manager_call_terminate_session_finish() to get the result of the operation.
5047f6bf 6867 *
1aa981f7 6868 * See logind_login1_manager_call_terminate_session_sync() for the synchronous, blocking version of this method.
5047f6bf 6869 */
6870void
1aa981f7 6871logind_login1_manager_call_terminate_session (
6872 logindLogin1Manager *proxy,
5047f6bf 6873 const gchar *arg_unnamed_arg0,
6874 GCancellable *cancellable,
6875 GAsyncReadyCallback callback,
6876 gpointer user_data)
6877{
6878 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
6879 "TerminateSession",
6880 g_variant_new ("(s)",
6881 arg_unnamed_arg0),
6882 G_DBUS_CALL_FLAGS_NONE,
6883 -1,
6884 cancellable,
6885 callback,
6886 user_data);
6887}
6888
6889/**
1aa981f7 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().
5047f6bf 6893 * @error: Return location for error or %NULL.
6894 *
1aa981f7 6895 * Finishes an operation started with logind_login1_manager_call_terminate_session().
5047f6bf 6896 *
6897 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
6898 */
6899gboolean
1aa981f7 6900logind_login1_manager_call_terminate_session_finish (
6901 logindLogin1Manager *proxy,
5047f6bf 6902 GAsyncResult *res,
6903 GError **error)
6904{
6905 GVariant *_ret;
6906 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
6907 if (_ret == NULL)
6908 goto _out;
6909 g_variant_get (_ret,
6910 "()");
6911 g_variant_unref (_ret);
6912_out:
6913 return _ret != NULL;
6914}
6915
6916/**
1aa981f7 6917 * logind_login1_manager_call_terminate_session_sync:
6918 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 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.
6922 *
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.
6924 *
1aa981f7 6925 * See logind_login1_manager_call_terminate_session() for the asynchronous version of this method.
5047f6bf 6926 *
6927 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
6928 */
6929gboolean
1aa981f7 6930logind_login1_manager_call_terminate_session_sync (
6931 logindLogin1Manager *proxy,
5047f6bf 6932 const gchar *arg_unnamed_arg0,
6933 GCancellable *cancellable,
6934 GError **error)
6935{
6936 GVariant *_ret;
6937 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
6938 "TerminateSession",
6939 g_variant_new ("(s)",
6940 arg_unnamed_arg0),
6941 G_DBUS_CALL_FLAGS_NONE,
6942 -1,
6943 cancellable,
6944 error);
6945 if (_ret == NULL)
6946 goto _out;
6947 g_variant_get (_ret,
6948 "()");
6949 g_variant_unref (_ret);
6950_out:
6951 return _ret != NULL;
6952}
6953
6954/**
1aa981f7 6955 * logind_login1_manager_call_terminate_user:
6956 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 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.
6961 *
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.
1aa981f7 6964 * You can then call logind_login1_manager_call_terminate_user_finish() to get the result of the operation.
5047f6bf 6965 *
1aa981f7 6966 * See logind_login1_manager_call_terminate_user_sync() for the synchronous, blocking version of this method.
5047f6bf 6967 */
6968void
1aa981f7 6969logind_login1_manager_call_terminate_user (
6970 logindLogin1Manager *proxy,
5047f6bf 6971 guint arg_unnamed_arg0,
6972 GCancellable *cancellable,
6973 GAsyncReadyCallback callback,
6974 gpointer user_data)
6975{
6976 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
6977 "TerminateUser",
6978 g_variant_new ("(u)",
6979 arg_unnamed_arg0),
6980 G_DBUS_CALL_FLAGS_NONE,
6981 -1,
6982 cancellable,
6983 callback,
6984 user_data);
6985}
6986
6987/**
1aa981f7 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().
5047f6bf 6991 * @error: Return location for error or %NULL.
6992 *
1aa981f7 6993 * Finishes an operation started with logind_login1_manager_call_terminate_user().
5047f6bf 6994 *
6995 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
6996 */
6997gboolean
1aa981f7 6998logind_login1_manager_call_terminate_user_finish (
6999 logindLogin1Manager *proxy,
5047f6bf 7000 GAsyncResult *res,
7001 GError **error)
7002{
7003 GVariant *_ret;
7004 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
7005 if (_ret == NULL)
7006 goto _out;
7007 g_variant_get (_ret,
7008 "()");
7009 g_variant_unref (_ret);
7010_out:
7011 return _ret != NULL;
7012}
7013
7014/**
1aa981f7 7015 * logind_login1_manager_call_terminate_user_sync:
7016 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 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.
7020 *
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.
7022 *
1aa981f7 7023 * See logind_login1_manager_call_terminate_user() for the asynchronous version of this method.
5047f6bf 7024 *
7025 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
7026 */
7027gboolean
1aa981f7 7028logind_login1_manager_call_terminate_user_sync (
7029 logindLogin1Manager *proxy,
5047f6bf 7030 guint arg_unnamed_arg0,
7031 GCancellable *cancellable,
7032 GError **error)
7033{
7034 GVariant *_ret;
7035 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
7036 "TerminateUser",
7037 g_variant_new ("(u)",
7038 arg_unnamed_arg0),
7039 G_DBUS_CALL_FLAGS_NONE,
7040 -1,
7041 cancellable,
7042 error);
7043 if (_ret == NULL)
7044 goto _out;
7045 g_variant_get (_ret,
7046 "()");
7047 g_variant_unref (_ret);
7048_out:
7049 return _ret != NULL;
7050}
7051
7052/**
1aa981f7 7053 * logind_login1_manager_call_terminate_seat:
7054 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 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.
7059 *
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.
1aa981f7 7062 * You can then call logind_login1_manager_call_terminate_seat_finish() to get the result of the operation.
5047f6bf 7063 *
1aa981f7 7064 * See logind_login1_manager_call_terminate_seat_sync() for the synchronous, blocking version of this method.
5047f6bf 7065 */
7066void
1aa981f7 7067logind_login1_manager_call_terminate_seat (
7068 logindLogin1Manager *proxy,
5047f6bf 7069 const gchar *arg_unnamed_arg0,
7070 GCancellable *cancellable,
7071 GAsyncReadyCallback callback,
7072 gpointer user_data)
7073{
7074 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
7075 "TerminateSeat",
7076 g_variant_new ("(s)",
7077 arg_unnamed_arg0),
7078 G_DBUS_CALL_FLAGS_NONE,
7079 -1,
7080 cancellable,
7081 callback,
7082 user_data);
7083}
7084
7085/**
1aa981f7 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().
5047f6bf 7089 * @error: Return location for error or %NULL.
7090 *
1aa981f7 7091 * Finishes an operation started with logind_login1_manager_call_terminate_seat().
5047f6bf 7092 *
7093 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
7094 */
7095gboolean
1aa981f7 7096logind_login1_manager_call_terminate_seat_finish (
7097 logindLogin1Manager *proxy,
5047f6bf 7098 GAsyncResult *res,
7099 GError **error)
7100{
7101 GVariant *_ret;
7102 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
7103 if (_ret == NULL)
7104 goto _out;
7105 g_variant_get (_ret,
7106 "()");
7107 g_variant_unref (_ret);
7108_out:
7109 return _ret != NULL;
7110}
7111
7112/**
1aa981f7 7113 * logind_login1_manager_call_terminate_seat_sync:
7114 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 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.
7118 *
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.
7120 *
1aa981f7 7121 * See logind_login1_manager_call_terminate_seat() for the asynchronous version of this method.
5047f6bf 7122 *
7123 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
7124 */
7125gboolean
1aa981f7 7126logind_login1_manager_call_terminate_seat_sync (
7127 logindLogin1Manager *proxy,
5047f6bf 7128 const gchar *arg_unnamed_arg0,
7129 GCancellable *cancellable,
7130 GError **error)
7131{
7132 GVariant *_ret;
7133 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
7134 "TerminateSeat",
7135 g_variant_new ("(s)",
7136 arg_unnamed_arg0),
7137 G_DBUS_CALL_FLAGS_NONE,
7138 -1,
7139 cancellable,
7140 error);
7141 if (_ret == NULL)
7142 goto _out;
7143 g_variant_get (_ret,
7144 "()");
7145 g_variant_unref (_ret);
7146_out:
7147 return _ret != NULL;
7148}
7149
7150/**
1aa981f7 7151 * logind_login1_manager_call_set_user_linger:
7152 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 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.
7159 *
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.
1aa981f7 7162 * You can then call logind_login1_manager_call_set_user_linger_finish() to get the result of the operation.
5047f6bf 7163 *
1aa981f7 7164 * See logind_login1_manager_call_set_user_linger_sync() for the synchronous, blocking version of this method.
5047f6bf 7165 */
7166void
1aa981f7 7167logind_login1_manager_call_set_user_linger (
7168 logindLogin1Manager *proxy,
5047f6bf 7169 guint arg_unnamed_arg0,
7170 gboolean arg_unnamed_arg1,
7171 gboolean arg_unnamed_arg2,
7172 GCancellable *cancellable,
7173 GAsyncReadyCallback callback,
7174 gpointer user_data)
7175{
7176 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
7177 "SetUserLinger",
7178 g_variant_new ("(ubb)",
7179 arg_unnamed_arg0,
7180 arg_unnamed_arg1,
7181 arg_unnamed_arg2),
7182 G_DBUS_CALL_FLAGS_NONE,
7183 -1,
7184 cancellable,
7185 callback,
7186 user_data);
7187}
7188
7189/**
1aa981f7 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().
5047f6bf 7193 * @error: Return location for error or %NULL.
7194 *
1aa981f7 7195 * Finishes an operation started with logind_login1_manager_call_set_user_linger().
5047f6bf 7196 *
7197 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
7198 */
7199gboolean
1aa981f7 7200logind_login1_manager_call_set_user_linger_finish (
7201 logindLogin1Manager *proxy,
5047f6bf 7202 GAsyncResult *res,
7203 GError **error)
7204{
7205 GVariant *_ret;
7206 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
7207 if (_ret == NULL)
7208 goto _out;
7209 g_variant_get (_ret,
7210 "()");
7211 g_variant_unref (_ret);
7212_out:
7213 return _ret != NULL;
7214}
7215
7216/**
1aa981f7 7217 * logind_login1_manager_call_set_user_linger_sync:
7218 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 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.
7224 *
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.
7226 *
1aa981f7 7227 * See logind_login1_manager_call_set_user_linger() for the asynchronous version of this method.
5047f6bf 7228 *
7229 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
7230 */
7231gboolean
1aa981f7 7232logind_login1_manager_call_set_user_linger_sync (
7233 logindLogin1Manager *proxy,
5047f6bf 7234 guint arg_unnamed_arg0,
7235 gboolean arg_unnamed_arg1,
7236 gboolean arg_unnamed_arg2,
7237 GCancellable *cancellable,
7238 GError **error)
7239{
7240 GVariant *_ret;
7241 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
7242 "SetUserLinger",
7243 g_variant_new ("(ubb)",
7244 arg_unnamed_arg0,
7245 arg_unnamed_arg1,
7246 arg_unnamed_arg2),
7247 G_DBUS_CALL_FLAGS_NONE,
7248 -1,
7249 cancellable,
7250 error);
7251 if (_ret == NULL)
7252 goto _out;
7253 g_variant_get (_ret,
7254 "()");
7255 g_variant_unref (_ret);
7256_out:
7257 return _ret != NULL;
7258}
7259
7260/**
1aa981f7 7261 * logind_login1_manager_call_attach_device:
7262 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 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.
7269 *
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.
1aa981f7 7272 * You can then call logind_login1_manager_call_attach_device_finish() to get the result of the operation.
5047f6bf 7273 *
1aa981f7 7274 * See logind_login1_manager_call_attach_device_sync() for the synchronous, blocking version of this method.
5047f6bf 7275 */
7276void
1aa981f7 7277logind_login1_manager_call_attach_device (
7278 logindLogin1Manager *proxy,
5047f6bf 7279 const gchar *arg_unnamed_arg0,
7280 const gchar *arg_unnamed_arg1,
7281 gboolean arg_unnamed_arg2,
7282 GCancellable *cancellable,
7283 GAsyncReadyCallback callback,
7284 gpointer user_data)
7285{
7286 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
7287 "AttachDevice",
7288 g_variant_new ("(ssb)",
7289 arg_unnamed_arg0,
7290 arg_unnamed_arg1,
7291 arg_unnamed_arg2),
7292 G_DBUS_CALL_FLAGS_NONE,
7293 -1,
7294 cancellable,
7295 callback,
7296 user_data);
7297}
7298
7299/**
1aa981f7 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().
5047f6bf 7303 * @error: Return location for error or %NULL.
7304 *
1aa981f7 7305 * Finishes an operation started with logind_login1_manager_call_attach_device().
5047f6bf 7306 *
7307 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
7308 */
7309gboolean
1aa981f7 7310logind_login1_manager_call_attach_device_finish (
7311 logindLogin1Manager *proxy,
5047f6bf 7312 GAsyncResult *res,
7313 GError **error)
7314{
7315 GVariant *_ret;
7316 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
7317 if (_ret == NULL)
7318 goto _out;
7319 g_variant_get (_ret,
7320 "()");
7321 g_variant_unref (_ret);
7322_out:
7323 return _ret != NULL;
7324}
7325
7326/**
1aa981f7 7327 * logind_login1_manager_call_attach_device_sync:
7328 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 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.
7334 *
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.
7336 *
1aa981f7 7337 * See logind_login1_manager_call_attach_device() for the asynchronous version of this method.
5047f6bf 7338 *
7339 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
7340 */
7341gboolean
1aa981f7 7342logind_login1_manager_call_attach_device_sync (
7343 logindLogin1Manager *proxy,
5047f6bf 7344 const gchar *arg_unnamed_arg0,
7345 const gchar *arg_unnamed_arg1,
7346 gboolean arg_unnamed_arg2,
7347 GCancellable *cancellable,
7348 GError **error)
7349{
7350 GVariant *_ret;
7351 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
7352 "AttachDevice",
7353 g_variant_new ("(ssb)",
7354 arg_unnamed_arg0,
7355 arg_unnamed_arg1,
7356 arg_unnamed_arg2),
7357 G_DBUS_CALL_FLAGS_NONE,
7358 -1,
7359 cancellable,
7360 error);
7361 if (_ret == NULL)
7362 goto _out;
7363 g_variant_get (_ret,
7364 "()");
7365 g_variant_unref (_ret);
7366_out:
7367 return _ret != NULL;
7368}
7369
7370/**
1aa981f7 7371 * logind_login1_manager_call_flush_devices:
7372 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 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.
7377 *
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.
1aa981f7 7380 * You can then call logind_login1_manager_call_flush_devices_finish() to get the result of the operation.
5047f6bf 7381 *
1aa981f7 7382 * See logind_login1_manager_call_flush_devices_sync() for the synchronous, blocking version of this method.
5047f6bf 7383 */
7384void
1aa981f7 7385logind_login1_manager_call_flush_devices (
7386 logindLogin1Manager *proxy,
5047f6bf 7387 gboolean arg_unnamed_arg0,
7388 GCancellable *cancellable,
7389 GAsyncReadyCallback callback,
7390 gpointer user_data)
7391{
7392 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
7393 "FlushDevices",
7394 g_variant_new ("(b)",
7395 arg_unnamed_arg0),
7396 G_DBUS_CALL_FLAGS_NONE,
7397 -1,
7398 cancellable,
7399 callback,
7400 user_data);
7401}
7402
7403/**
1aa981f7 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().
5047f6bf 7407 * @error: Return location for error or %NULL.
7408 *
1aa981f7 7409 * Finishes an operation started with logind_login1_manager_call_flush_devices().
5047f6bf 7410 *
7411 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
7412 */
7413gboolean
1aa981f7 7414logind_login1_manager_call_flush_devices_finish (
7415 logindLogin1Manager *proxy,
5047f6bf 7416 GAsyncResult *res,
7417 GError **error)
7418{
7419 GVariant *_ret;
7420 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
7421 if (_ret == NULL)
7422 goto _out;
7423 g_variant_get (_ret,
7424 "()");
7425 g_variant_unref (_ret);
7426_out:
7427 return _ret != NULL;
7428}
7429
7430/**
1aa981f7 7431 * logind_login1_manager_call_flush_devices_sync:
7432 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 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.
7436 *
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.
7438 *
1aa981f7 7439 * See logind_login1_manager_call_flush_devices() for the asynchronous version of this method.
5047f6bf 7440 *
7441 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
7442 */
7443gboolean
1aa981f7 7444logind_login1_manager_call_flush_devices_sync (
7445 logindLogin1Manager *proxy,
5047f6bf 7446 gboolean arg_unnamed_arg0,
7447 GCancellable *cancellable,
7448 GError **error)
7449{
7450 GVariant *_ret;
7451 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
7452 "FlushDevices",
7453 g_variant_new ("(b)",
7454 arg_unnamed_arg0),
7455 G_DBUS_CALL_FLAGS_NONE,
7456 -1,
7457 cancellable,
7458 error);
7459 if (_ret == NULL)
7460 goto _out;
7461 g_variant_get (_ret,
7462 "()");
7463 g_variant_unref (_ret);
7464_out:
7465 return _ret != NULL;
7466}
7467
7468/**
1aa981f7 7469 * logind_login1_manager_call_power_off:
7470 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 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.
7475 *
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.
1aa981f7 7478 * You can then call logind_login1_manager_call_power_off_finish() to get the result of the operation.
5047f6bf 7479 *
1aa981f7 7480 * See logind_login1_manager_call_power_off_sync() for the synchronous, blocking version of this method.
5047f6bf 7481 */
7482void
1aa981f7 7483logind_login1_manager_call_power_off (
7484 logindLogin1Manager *proxy,
5047f6bf 7485 gboolean arg_unnamed_arg0,
7486 GCancellable *cancellable,
7487 GAsyncReadyCallback callback,
7488 gpointer user_data)
7489{
7490 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
7491 "PowerOff",
7492 g_variant_new ("(b)",
7493 arg_unnamed_arg0),
7494 G_DBUS_CALL_FLAGS_NONE,
7495 -1,
7496 cancellable,
7497 callback,
7498 user_data);
7499}
7500
7501/**
1aa981f7 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().
5047f6bf 7505 * @error: Return location for error or %NULL.
7506 *
1aa981f7 7507 * Finishes an operation started with logind_login1_manager_call_power_off().
5047f6bf 7508 *
7509 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
7510 */
7511gboolean
1aa981f7 7512logind_login1_manager_call_power_off_finish (
7513 logindLogin1Manager *proxy,
5047f6bf 7514 GAsyncResult *res,
7515 GError **error)
7516{
7517 GVariant *_ret;
7518 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
7519 if (_ret == NULL)
7520 goto _out;
7521 g_variant_get (_ret,
7522 "()");
7523 g_variant_unref (_ret);
7524_out:
7525 return _ret != NULL;
7526}
7527
7528/**
1aa981f7 7529 * logind_login1_manager_call_power_off_sync:
7530 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 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.
7534 *
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.
7536 *
1aa981f7 7537 * See logind_login1_manager_call_power_off() for the asynchronous version of this method.
5047f6bf 7538 *
7539 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
7540 */
7541gboolean
1aa981f7 7542logind_login1_manager_call_power_off_sync (
7543 logindLogin1Manager *proxy,
5047f6bf 7544 gboolean arg_unnamed_arg0,
7545 GCancellable *cancellable,
7546 GError **error)
7547{
7548 GVariant *_ret;
7549 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
7550 "PowerOff",
7551 g_variant_new ("(b)",
7552 arg_unnamed_arg0),
7553 G_DBUS_CALL_FLAGS_NONE,
7554 -1,
7555 cancellable,
7556 error);
7557 if (_ret == NULL)
7558 goto _out;
7559 g_variant_get (_ret,
7560 "()");
7561 g_variant_unref (_ret);
7562_out:
7563 return _ret != NULL;
7564}
7565
7566/**
1aa981f7 7567 * logind_login1_manager_call_reboot:
7568 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 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.
7573 *
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.
1aa981f7 7576 * You can then call logind_login1_manager_call_reboot_finish() to get the result of the operation.
5047f6bf 7577 *
1aa981f7 7578 * See logind_login1_manager_call_reboot_sync() for the synchronous, blocking version of this method.
5047f6bf 7579 */
7580void
1aa981f7 7581logind_login1_manager_call_reboot (
7582 logindLogin1Manager *proxy,
5047f6bf 7583 gboolean arg_unnamed_arg0,
7584 GCancellable *cancellable,
7585 GAsyncReadyCallback callback,
7586 gpointer user_data)
7587{
7588 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
7589 "Reboot",
7590 g_variant_new ("(b)",
7591 arg_unnamed_arg0),
7592 G_DBUS_CALL_FLAGS_NONE,
7593 -1,
7594 cancellable,
7595 callback,
7596 user_data);
7597}
7598
7599/**
1aa981f7 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().
5047f6bf 7603 * @error: Return location for error or %NULL.
7604 *
1aa981f7 7605 * Finishes an operation started with logind_login1_manager_call_reboot().
5047f6bf 7606 *
7607 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
7608 */
7609gboolean
1aa981f7 7610logind_login1_manager_call_reboot_finish (
7611 logindLogin1Manager *proxy,
5047f6bf 7612 GAsyncResult *res,
7613 GError **error)
7614{
7615 GVariant *_ret;
7616 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
7617 if (_ret == NULL)
7618 goto _out;
7619 g_variant_get (_ret,
7620 "()");
7621 g_variant_unref (_ret);
7622_out:
7623 return _ret != NULL;
7624}
7625
7626/**
1aa981f7 7627 * logind_login1_manager_call_reboot_sync:
7628 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 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.
7632 *
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.
7634 *
1aa981f7 7635 * See logind_login1_manager_call_reboot() for the asynchronous version of this method.
5047f6bf 7636 *
7637 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
7638 */
7639gboolean
1aa981f7 7640logind_login1_manager_call_reboot_sync (
7641 logindLogin1Manager *proxy,
5047f6bf 7642 gboolean arg_unnamed_arg0,
7643 GCancellable *cancellable,
7644 GError **error)
7645{
7646 GVariant *_ret;
7647 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
7648 "Reboot",
7649 g_variant_new ("(b)",
7650 arg_unnamed_arg0),
7651 G_DBUS_CALL_FLAGS_NONE,
7652 -1,
7653 cancellable,
7654 error);
7655 if (_ret == NULL)
7656 goto _out;
7657 g_variant_get (_ret,
7658 "()");
7659 g_variant_unref (_ret);
7660_out:
7661 return _ret != NULL;
7662}
7663
7664/**
1aa981f7 7665 * logind_login1_manager_call_suspend:
7666 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 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.
7671 *
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.
1aa981f7 7674 * You can then call logind_login1_manager_call_suspend_finish() to get the result of the operation.
5047f6bf 7675 *
1aa981f7 7676 * See logind_login1_manager_call_suspend_sync() for the synchronous, blocking version of this method.
5047f6bf 7677 */
7678void
1aa981f7 7679logind_login1_manager_call_suspend (
7680 logindLogin1Manager *proxy,
5047f6bf 7681 gboolean arg_unnamed_arg0,
7682 GCancellable *cancellable,
7683 GAsyncReadyCallback callback,
7684 gpointer user_data)
7685{
7686 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
7687 "Suspend",
7688 g_variant_new ("(b)",
7689 arg_unnamed_arg0),
7690 G_DBUS_CALL_FLAGS_NONE,
7691 -1,
7692 cancellable,
7693 callback,
7694 user_data);
7695}
7696
7697/**
1aa981f7 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().
5047f6bf 7701 * @error: Return location for error or %NULL.
7702 *
1aa981f7 7703 * Finishes an operation started with logind_login1_manager_call_suspend().
5047f6bf 7704 *
7705 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
7706 */
7707gboolean
1aa981f7 7708logind_login1_manager_call_suspend_finish (
7709 logindLogin1Manager *proxy,
5047f6bf 7710 GAsyncResult *res,
7711 GError **error)
7712{
7713 GVariant *_ret;
7714 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
7715 if (_ret == NULL)
7716 goto _out;
7717 g_variant_get (_ret,
7718 "()");
7719 g_variant_unref (_ret);
7720_out:
7721 return _ret != NULL;
7722}
7723
7724/**
1aa981f7 7725 * logind_login1_manager_call_suspend_sync:
7726 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 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.
7730 *
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.
7732 *
1aa981f7 7733 * See logind_login1_manager_call_suspend() for the asynchronous version of this method.
5047f6bf 7734 *
7735 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
7736 */
7737gboolean
1aa981f7 7738logind_login1_manager_call_suspend_sync (
7739 logindLogin1Manager *proxy,
5047f6bf 7740 gboolean arg_unnamed_arg0,
7741 GCancellable *cancellable,
7742 GError **error)
7743{
7744 GVariant *_ret;
7745 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
7746 "Suspend",
7747 g_variant_new ("(b)",
7748 arg_unnamed_arg0),
7749 G_DBUS_CALL_FLAGS_NONE,
7750 -1,
7751 cancellable,
7752 error);
7753 if (_ret == NULL)
7754 goto _out;
7755 g_variant_get (_ret,
7756 "()");
7757 g_variant_unref (_ret);
7758_out:
7759 return _ret != NULL;
7760}
7761
7762/**
1aa981f7 7763 * logind_login1_manager_call_hibernate:
7764 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 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.
7769 *
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.
1aa981f7 7772 * You can then call logind_login1_manager_call_hibernate_finish() to get the result of the operation.
5047f6bf 7773 *
1aa981f7 7774 * See logind_login1_manager_call_hibernate_sync() for the synchronous, blocking version of this method.
5047f6bf 7775 */
7776void
1aa981f7 7777logind_login1_manager_call_hibernate (
7778 logindLogin1Manager *proxy,
5047f6bf 7779 gboolean arg_unnamed_arg0,
7780 GCancellable *cancellable,
7781 GAsyncReadyCallback callback,
7782 gpointer user_data)
7783{
7784 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
7785 "Hibernate",
7786 g_variant_new ("(b)",
7787 arg_unnamed_arg0),
7788 G_DBUS_CALL_FLAGS_NONE,
7789 -1,
7790 cancellable,
7791 callback,
7792 user_data);
7793}
7794
7795/**
1aa981f7 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().
5047f6bf 7799 * @error: Return location for error or %NULL.
7800 *
1aa981f7 7801 * Finishes an operation started with logind_login1_manager_call_hibernate().
5047f6bf 7802 *
7803 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
7804 */
7805gboolean
1aa981f7 7806logind_login1_manager_call_hibernate_finish (
7807 logindLogin1Manager *proxy,
5047f6bf 7808 GAsyncResult *res,
7809 GError **error)
7810{
7811 GVariant *_ret;
7812 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
7813 if (_ret == NULL)
7814 goto _out;
7815 g_variant_get (_ret,
7816 "()");
7817 g_variant_unref (_ret);
7818_out:
7819 return _ret != NULL;
7820}
7821
7822/**
1aa981f7 7823 * logind_login1_manager_call_hibernate_sync:
7824 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 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.
7828 *
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.
7830 *
1aa981f7 7831 * See logind_login1_manager_call_hibernate() for the asynchronous version of this method.
5047f6bf 7832 *
7833 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
7834 */
7835gboolean
1aa981f7 7836logind_login1_manager_call_hibernate_sync (
7837 logindLogin1Manager *proxy,
5047f6bf 7838 gboolean arg_unnamed_arg0,
7839 GCancellable *cancellable,
7840 GError **error)
7841{
7842 GVariant *_ret;
7843 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
7844 "Hibernate",
7845 g_variant_new ("(b)",
7846 arg_unnamed_arg0),
7847 G_DBUS_CALL_FLAGS_NONE,
7848 -1,
7849 cancellable,
7850 error);
7851 if (_ret == NULL)
7852 goto _out;
7853 g_variant_get (_ret,
7854 "()");
7855 g_variant_unref (_ret);
7856_out:
7857 return _ret != NULL;
7858}
7859
7860/**
1aa981f7 7861 * logind_login1_manager_call_hybrid_sleep:
7862 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 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.
7867 *
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.
1aa981f7 7870 * You can then call logind_login1_manager_call_hybrid_sleep_finish() to get the result of the operation.
5047f6bf 7871 *
1aa981f7 7872 * See logind_login1_manager_call_hybrid_sleep_sync() for the synchronous, blocking version of this method.
5047f6bf 7873 */
7874void
1aa981f7 7875logind_login1_manager_call_hybrid_sleep (
7876 logindLogin1Manager *proxy,
5047f6bf 7877 gboolean arg_unnamed_arg0,
7878 GCancellable *cancellable,
7879 GAsyncReadyCallback callback,
7880 gpointer user_data)
7881{
7882 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
7883 "HybridSleep",
7884 g_variant_new ("(b)",
7885 arg_unnamed_arg0),
7886 G_DBUS_CALL_FLAGS_NONE,
7887 -1,
7888 cancellable,
7889 callback,
7890 user_data);
7891}
7892
7893/**
1aa981f7 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().
5047f6bf 7897 * @error: Return location for error or %NULL.
7898 *
1aa981f7 7899 * Finishes an operation started with logind_login1_manager_call_hybrid_sleep().
5047f6bf 7900 *
7901 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
7902 */
7903gboolean
1aa981f7 7904logind_login1_manager_call_hybrid_sleep_finish (
7905 logindLogin1Manager *proxy,
5047f6bf 7906 GAsyncResult *res,
7907 GError **error)
7908{
7909 GVariant *_ret;
7910 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
7911 if (_ret == NULL)
7912 goto _out;
7913 g_variant_get (_ret,
7914 "()");
7915 g_variant_unref (_ret);
7916_out:
7917 return _ret != NULL;
7918}
7919
7920/**
1aa981f7 7921 * logind_login1_manager_call_hybrid_sleep_sync:
7922 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 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.
7926 *
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.
7928 *
1aa981f7 7929 * See logind_login1_manager_call_hybrid_sleep() for the asynchronous version of this method.
5047f6bf 7930 *
7931 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
7932 */
7933gboolean
1aa981f7 7934logind_login1_manager_call_hybrid_sleep_sync (
7935 logindLogin1Manager *proxy,
5047f6bf 7936 gboolean arg_unnamed_arg0,
7937 GCancellable *cancellable,
7938 GError **error)
7939{
7940 GVariant *_ret;
7941 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
7942 "HybridSleep",
7943 g_variant_new ("(b)",
7944 arg_unnamed_arg0),
7945 G_DBUS_CALL_FLAGS_NONE,
7946 -1,
7947 cancellable,
7948 error);
7949 if (_ret == NULL)
7950 goto _out;
7951 g_variant_get (_ret,
7952 "()");
7953 g_variant_unref (_ret);
7954_out:
7955 return _ret != NULL;
7956}
7957
7958/**
1aa981f7 7959 * logind_login1_manager_call_can_power_off:
7960 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 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.
7964 *
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.
1aa981f7 7967 * You can then call logind_login1_manager_call_can_power_off_finish() to get the result of the operation.
5047f6bf 7968 *
1aa981f7 7969 * See logind_login1_manager_call_can_power_off_sync() for the synchronous, blocking version of this method.
5047f6bf 7970 */
7971void
1aa981f7 7972logind_login1_manager_call_can_power_off (
7973 logindLogin1Manager *proxy,
5047f6bf 7974 GCancellable *cancellable,
7975 GAsyncReadyCallback callback,
7976 gpointer user_data)
7977{
7978 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
7979 "CanPowerOff",
7980 g_variant_new ("()"),
7981 G_DBUS_CALL_FLAGS_NONE,
7982 -1,
7983 cancellable,
7984 callback,
7985 user_data);
7986}
7987
7988/**
1aa981f7 7989 * logind_login1_manager_call_can_power_off_finish:
7990 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 7991 * @out_unnamed_arg0: (out): Return location for return parameter or %NULL to ignore.
1aa981f7 7992 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to logind_login1_manager_call_can_power_off().
5047f6bf 7993 * @error: Return location for error or %NULL.
7994 *
1aa981f7 7995 * Finishes an operation started with logind_login1_manager_call_can_power_off().
5047f6bf 7996 *
7997 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
7998 */
7999gboolean
1aa981f7 8000logind_login1_manager_call_can_power_off_finish (
8001 logindLogin1Manager *proxy,
5047f6bf 8002 gchar **out_unnamed_arg0,
8003 GAsyncResult *res,
8004 GError **error)
8005{
8006 GVariant *_ret;
8007 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
8008 if (_ret == NULL)
8009 goto _out;
8010 g_variant_get (_ret,
8011 "(s)",
8012 out_unnamed_arg0);
8013 g_variant_unref (_ret);
8014_out:
8015 return _ret != NULL;
8016}
8017
8018/**
1aa981f7 8019 * logind_login1_manager_call_can_power_off_sync:
8020 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 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.
8024 *
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.
8026 *
1aa981f7 8027 * See logind_login1_manager_call_can_power_off() for the asynchronous version of this method.
5047f6bf 8028 *
8029 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
8030 */
8031gboolean
1aa981f7 8032logind_login1_manager_call_can_power_off_sync (
8033 logindLogin1Manager *proxy,
5047f6bf 8034 gchar **out_unnamed_arg0,
8035 GCancellable *cancellable,
8036 GError **error)
8037{
8038 GVariant *_ret;
8039 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
8040 "CanPowerOff",
8041 g_variant_new ("()"),
8042 G_DBUS_CALL_FLAGS_NONE,
8043 -1,
8044 cancellable,
8045 error);
8046 if (_ret == NULL)
8047 goto _out;
8048 g_variant_get (_ret,
8049 "(s)",
8050 out_unnamed_arg0);
8051 g_variant_unref (_ret);
8052_out:
8053 return _ret != NULL;
8054}
8055
8056/**
1aa981f7 8057 * logind_login1_manager_call_can_reboot:
8058 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 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.
8062 *
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.
1aa981f7 8065 * You can then call logind_login1_manager_call_can_reboot_finish() to get the result of the operation.
5047f6bf 8066 *
1aa981f7 8067 * See logind_login1_manager_call_can_reboot_sync() for the synchronous, blocking version of this method.
5047f6bf 8068 */
8069void
1aa981f7 8070logind_login1_manager_call_can_reboot (
8071 logindLogin1Manager *proxy,
5047f6bf 8072 GCancellable *cancellable,
8073 GAsyncReadyCallback callback,
8074 gpointer user_data)
8075{
8076 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
8077 "CanReboot",
8078 g_variant_new ("()"),
8079 G_DBUS_CALL_FLAGS_NONE,
8080 -1,
8081 cancellable,
8082 callback,
8083 user_data);
8084}
8085
8086/**
1aa981f7 8087 * logind_login1_manager_call_can_reboot_finish:
8088 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 8089 * @out_unnamed_arg0: (out): Return location for return parameter or %NULL to ignore.
1aa981f7 8090 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to logind_login1_manager_call_can_reboot().
5047f6bf 8091 * @error: Return location for error or %NULL.
8092 *
1aa981f7 8093 * Finishes an operation started with logind_login1_manager_call_can_reboot().
5047f6bf 8094 *
8095 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
8096 */
8097gboolean
1aa981f7 8098logind_login1_manager_call_can_reboot_finish (
8099 logindLogin1Manager *proxy,
5047f6bf 8100 gchar **out_unnamed_arg0,
8101 GAsyncResult *res,
8102 GError **error)
8103{
8104 GVariant *_ret;
8105 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
8106 if (_ret == NULL)
8107 goto _out;
8108 g_variant_get (_ret,
8109 "(s)",
8110 out_unnamed_arg0);
8111 g_variant_unref (_ret);
8112_out:
8113 return _ret != NULL;
8114}
8115
8116/**
1aa981f7 8117 * logind_login1_manager_call_can_reboot_sync:
8118 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 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.
8122 *
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.
8124 *
1aa981f7 8125 * See logind_login1_manager_call_can_reboot() for the asynchronous version of this method.
5047f6bf 8126 *
8127 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
8128 */
8129gboolean
1aa981f7 8130logind_login1_manager_call_can_reboot_sync (
8131 logindLogin1Manager *proxy,
5047f6bf 8132 gchar **out_unnamed_arg0,
8133 GCancellable *cancellable,
8134 GError **error)
8135{
8136 GVariant *_ret;
8137 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
8138 "CanReboot",
8139 g_variant_new ("()"),
8140 G_DBUS_CALL_FLAGS_NONE,
8141 -1,
8142 cancellable,
8143 error);
8144 if (_ret == NULL)
8145 goto _out;
8146 g_variant_get (_ret,
8147 "(s)",
8148 out_unnamed_arg0);
8149 g_variant_unref (_ret);
8150_out:
8151 return _ret != NULL;
8152}
8153
8154/**
1aa981f7 8155 * logind_login1_manager_call_can_suspend:
8156 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 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.
8160 *
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.
1aa981f7 8163 * You can then call logind_login1_manager_call_can_suspend_finish() to get the result of the operation.
5047f6bf 8164 *
1aa981f7 8165 * See logind_login1_manager_call_can_suspend_sync() for the synchronous, blocking version of this method.
5047f6bf 8166 */
8167void
1aa981f7 8168logind_login1_manager_call_can_suspend (
8169 logindLogin1Manager *proxy,
5047f6bf 8170 GCancellable *cancellable,
8171 GAsyncReadyCallback callback,
8172 gpointer user_data)
8173{
8174 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
8175 "CanSuspend",
8176 g_variant_new ("()"),
8177 G_DBUS_CALL_FLAGS_NONE,
8178 -1,
8179 cancellable,
8180 callback,
8181 user_data);
8182}
8183
8184/**
1aa981f7 8185 * logind_login1_manager_call_can_suspend_finish:
8186 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 8187 * @out_unnamed_arg0: (out): Return location for return parameter or %NULL to ignore.
1aa981f7 8188 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to logind_login1_manager_call_can_suspend().
5047f6bf 8189 * @error: Return location for error or %NULL.
8190 *
1aa981f7 8191 * Finishes an operation started with logind_login1_manager_call_can_suspend().
5047f6bf 8192 *
8193 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
8194 */
8195gboolean
1aa981f7 8196logind_login1_manager_call_can_suspend_finish (
8197 logindLogin1Manager *proxy,
5047f6bf 8198 gchar **out_unnamed_arg0,
8199 GAsyncResult *res,
8200 GError **error)
8201{
8202 GVariant *_ret;
8203 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
8204 if (_ret == NULL)
8205 goto _out;
8206 g_variant_get (_ret,
8207 "(s)",
8208 out_unnamed_arg0);
8209 g_variant_unref (_ret);
8210_out:
8211 return _ret != NULL;
8212}
8213
8214/**
1aa981f7 8215 * logind_login1_manager_call_can_suspend_sync:
8216 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 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.
8220 *
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.
8222 *
1aa981f7 8223 * See logind_login1_manager_call_can_suspend() for the asynchronous version of this method.
5047f6bf 8224 *
8225 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
8226 */
8227gboolean
1aa981f7 8228logind_login1_manager_call_can_suspend_sync (
8229 logindLogin1Manager *proxy,
5047f6bf 8230 gchar **out_unnamed_arg0,
8231 GCancellable *cancellable,
8232 GError **error)
8233{
8234 GVariant *_ret;
8235 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
8236 "CanSuspend",
8237 g_variant_new ("()"),
8238 G_DBUS_CALL_FLAGS_NONE,
8239 -1,
8240 cancellable,
8241 error);
8242 if (_ret == NULL)
8243 goto _out;
8244 g_variant_get (_ret,
8245 "(s)",
8246 out_unnamed_arg0);
8247 g_variant_unref (_ret);
8248_out:
8249 return _ret != NULL;
8250}
8251
8252/**
1aa981f7 8253 * logind_login1_manager_call_can_hibernate:
8254 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 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.
8258 *
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.
1aa981f7 8261 * You can then call logind_login1_manager_call_can_hibernate_finish() to get the result of the operation.
5047f6bf 8262 *
1aa981f7 8263 * See logind_login1_manager_call_can_hibernate_sync() for the synchronous, blocking version of this method.
5047f6bf 8264 */
8265void
1aa981f7 8266logind_login1_manager_call_can_hibernate (
8267 logindLogin1Manager *proxy,
5047f6bf 8268 GCancellable *cancellable,
8269 GAsyncReadyCallback callback,
8270 gpointer user_data)
8271{
8272 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
8273 "CanHibernate",
8274 g_variant_new ("()"),
8275 G_DBUS_CALL_FLAGS_NONE,
8276 -1,
8277 cancellable,
8278 callback,
8279 user_data);
8280}
8281
8282/**
1aa981f7 8283 * logind_login1_manager_call_can_hibernate_finish:
8284 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 8285 * @out_unnamed_arg0: (out): Return location for return parameter or %NULL to ignore.
1aa981f7 8286 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to logind_login1_manager_call_can_hibernate().
5047f6bf 8287 * @error: Return location for error or %NULL.
8288 *
1aa981f7 8289 * Finishes an operation started with logind_login1_manager_call_can_hibernate().
5047f6bf 8290 *
8291 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
8292 */
8293gboolean
1aa981f7 8294logind_login1_manager_call_can_hibernate_finish (
8295 logindLogin1Manager *proxy,
5047f6bf 8296 gchar **out_unnamed_arg0,
8297 GAsyncResult *res,
8298 GError **error)
8299{
8300 GVariant *_ret;
8301 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
8302 if (_ret == NULL)
8303 goto _out;
8304 g_variant_get (_ret,
8305 "(s)",
8306 out_unnamed_arg0);
8307 g_variant_unref (_ret);
8308_out:
8309 return _ret != NULL;
8310}
8311
8312/**
1aa981f7 8313 * logind_login1_manager_call_can_hibernate_sync:
8314 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 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.
8318 *
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.
8320 *
1aa981f7 8321 * See logind_login1_manager_call_can_hibernate() for the asynchronous version of this method.
5047f6bf 8322 *
8323 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
8324 */
8325gboolean
1aa981f7 8326logind_login1_manager_call_can_hibernate_sync (
8327 logindLogin1Manager *proxy,
5047f6bf 8328 gchar **out_unnamed_arg0,
8329 GCancellable *cancellable,
8330 GError **error)
8331{
8332 GVariant *_ret;
8333 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
8334 "CanHibernate",
8335 g_variant_new ("()"),
8336 G_DBUS_CALL_FLAGS_NONE,
8337 -1,
8338 cancellable,
8339 error);
8340 if (_ret == NULL)
8341 goto _out;
8342 g_variant_get (_ret,
8343 "(s)",
8344 out_unnamed_arg0);
8345 g_variant_unref (_ret);
8346_out:
8347 return _ret != NULL;
8348}
8349
8350/**
1aa981f7 8351 * logind_login1_manager_call_can_hybrid_sleep:
8352 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 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.
8356 *
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.
1aa981f7 8359 * You can then call logind_login1_manager_call_can_hybrid_sleep_finish() to get the result of the operation.
5047f6bf 8360 *
1aa981f7 8361 * See logind_login1_manager_call_can_hybrid_sleep_sync() for the synchronous, blocking version of this method.
5047f6bf 8362 */
8363void
1aa981f7 8364logind_login1_manager_call_can_hybrid_sleep (
8365 logindLogin1Manager *proxy,
5047f6bf 8366 GCancellable *cancellable,
8367 GAsyncReadyCallback callback,
8368 gpointer user_data)
8369{
8370 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
8371 "CanHybridSleep",
8372 g_variant_new ("()"),
8373 G_DBUS_CALL_FLAGS_NONE,
8374 -1,
8375 cancellable,
8376 callback,
8377 user_data);
8378}
8379
8380/**
1aa981f7 8381 * logind_login1_manager_call_can_hybrid_sleep_finish:
8382 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 8383 * @out_unnamed_arg0: (out): Return location for return parameter or %NULL to ignore.
1aa981f7 8384 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to logind_login1_manager_call_can_hybrid_sleep().
5047f6bf 8385 * @error: Return location for error or %NULL.
8386 *
1aa981f7 8387 * Finishes an operation started with logind_login1_manager_call_can_hybrid_sleep().
5047f6bf 8388 *
8389 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
8390 */
8391gboolean
1aa981f7 8392logind_login1_manager_call_can_hybrid_sleep_finish (
8393 logindLogin1Manager *proxy,
5047f6bf 8394 gchar **out_unnamed_arg0,
8395 GAsyncResult *res,
8396 GError **error)
8397{
8398 GVariant *_ret;
8399 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
8400 if (_ret == NULL)
8401 goto _out;
8402 g_variant_get (_ret,
8403 "(s)",
8404 out_unnamed_arg0);
8405 g_variant_unref (_ret);
8406_out:
8407 return _ret != NULL;
8408}
8409
8410/**
1aa981f7 8411 * logind_login1_manager_call_can_hybrid_sleep_sync:
8412 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 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.
8416 *
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.
8418 *
1aa981f7 8419 * See logind_login1_manager_call_can_hybrid_sleep() for the asynchronous version of this method.
5047f6bf 8420 *
8421 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
8422 */
8423gboolean
1aa981f7 8424logind_login1_manager_call_can_hybrid_sleep_sync (
8425 logindLogin1Manager *proxy,
5047f6bf 8426 gchar **out_unnamed_arg0,
8427 GCancellable *cancellable,
8428 GError **error)
8429{
8430 GVariant *_ret;
8431 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
8432 "CanHybridSleep",
8433 g_variant_new ("()"),
8434 G_DBUS_CALL_FLAGS_NONE,
8435 -1,
8436 cancellable,
8437 error);
8438 if (_ret == NULL)
8439 goto _out;
8440 g_variant_get (_ret,
8441 "(s)",
8442 out_unnamed_arg0);
8443 g_variant_unref (_ret);
8444_out:
8445 return _ret != NULL;
8446}
8447
8448/**
1aa981f7 8449 * logind_login1_manager_call_inhibit:
8450 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 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.
8458 *
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.
1aa981f7 8461 * You can then call logind_login1_manager_call_inhibit_finish() to get the result of the operation.
5047f6bf 8462 *
1aa981f7 8463 * See logind_login1_manager_call_inhibit_sync() for the synchronous, blocking version of this method.
5047f6bf 8464 */
8465void
1aa981f7 8466logind_login1_manager_call_inhibit (
8467 logindLogin1Manager *proxy,
5047f6bf 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,
8474 gpointer user_data)
8475{
8476 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
8477 "Inhibit",
8478 g_variant_new ("(ssss)",
8479 arg_unnamed_arg0,
8480 arg_unnamed_arg1,
8481 arg_unnamed_arg2,
8482 arg_unnamed_arg3),
8483 G_DBUS_CALL_FLAGS_NONE,
8484 -1,
8485 cancellable,
8486 callback,
8487 user_data);
8488}
8489
8490/**
1aa981f7 8491 * logind_login1_manager_call_inhibit_finish:
8492 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 8493 * @out_unnamed_arg4: (out): Return location for return parameter or %NULL to ignore.
1aa981f7 8494 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to logind_login1_manager_call_inhibit().
5047f6bf 8495 * @error: Return location for error or %NULL.
8496 *
1aa981f7 8497 * Finishes an operation started with logind_login1_manager_call_inhibit().
5047f6bf 8498 *
8499 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
8500 */
8501gboolean
1aa981f7 8502logind_login1_manager_call_inhibit_finish (
8503 logindLogin1Manager *proxy,
5047f6bf 8504 GVariant **out_unnamed_arg4,
8505 GAsyncResult *res,
8506 GError **error)
8507{
8508 GVariant *_ret;
8509 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
8510 if (_ret == NULL)
8511 goto _out;
8512 g_variant_get (_ret,
8513 "(@h)",
8514 out_unnamed_arg4);
8515 g_variant_unref (_ret);
8516_out:
8517 return _ret != NULL;
8518}
8519
8520/**
1aa981f7 8521 * logind_login1_manager_call_inhibit_sync:
8522 * @proxy: A #logindLogin1ManagerProxy.
5047f6bf 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.
8530 *
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.
8532 *
1aa981f7 8533 * See logind_login1_manager_call_inhibit() for the asynchronous version of this method.
5047f6bf 8534 *
8535 * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set.
8536 */
8537gboolean
1aa981f7 8538logind_login1_manager_call_inhibit_sync (
8539 logindLogin1Manager *proxy,
5047f6bf 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,
8546 GError **error)
8547{
8548 GVariant *_ret;
8549 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
8550 "Inhibit",
8551 g_variant_new ("(ssss)",
8552 arg_unnamed_arg0,
8553 arg_unnamed_arg1,
8554 arg_unnamed_arg2,
8555 arg_unnamed_arg3),
8556 G_DBUS_CALL_FLAGS_NONE,
8557 -1,
8558 cancellable,
8559 error);
8560 if (_ret == NULL)
8561 goto _out;
8562 g_variant_get (_ret,
8563 "(@h)",
8564 out_unnamed_arg4);
8565 g_variant_unref (_ret);
8566_out:
8567 return _ret != NULL;
8568}
8569
8570/**
1aa981f7 8571 * logind_login1_manager_complete_get_session:
8572 * @object: A #logindLogin1Manager.
5047f6bf 8573 * @invocation: (transfer full): A #GDBusMethodInvocation.
8574 * @unnamed_arg1: Parameter to return.
8575 *
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.
8577 *
8578 * This method will free @invocation, you cannot use it afterwards.
8579 */
8580void
1aa981f7 8581logind_login1_manager_complete_get_session (
8582 logindLogin1Manager *object,
5047f6bf 8583 GDBusMethodInvocation *invocation,
8584 const gchar *unnamed_arg1)
8585{
8586 g_dbus_method_invocation_return_value (invocation,
8587 g_variant_new ("(o)",
8588 unnamed_arg1));
8589}
8590
8591/**
1aa981f7 8592 * logind_login1_manager_complete_get_session_by_pid:
8593 * @object: A #logindLogin1Manager.
5047f6bf 8594 * @invocation: (transfer full): A #GDBusMethodInvocation.
8595 * @unnamed_arg1: Parameter to return.
8596 *
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.
8598 *
8599 * This method will free @invocation, you cannot use it afterwards.
8600 */
8601void
1aa981f7 8602logind_login1_manager_complete_get_session_by_pid (
8603 logindLogin1Manager *object,
5047f6bf 8604 GDBusMethodInvocation *invocation,
8605 const gchar *unnamed_arg1)
8606{
8607 g_dbus_method_invocation_return_value (invocation,
8608 g_variant_new ("(o)",
8609 unnamed_arg1));
8610}
8611
8612/**
1aa981f7 8613 * logind_login1_manager_complete_get_user:
8614 * @object: A #logindLogin1Manager.
5047f6bf 8615 * @invocation: (transfer full): A #GDBusMethodInvocation.
8616 * @unnamed_arg1: Parameter to return.
8617 *
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.
8619 *
8620 * This method will free @invocation, you cannot use it afterwards.
8621 */
8622void
1aa981f7 8623logind_login1_manager_complete_get_user (
8624 logindLogin1Manager *object,
5047f6bf 8625 GDBusMethodInvocation *invocation,
8626 const gchar *unnamed_arg1)
8627{
8628 g_dbus_method_invocation_return_value (invocation,
8629 g_variant_new ("(o)",
8630 unnamed_arg1));
8631}
8632
8633/**
1aa981f7 8634 * logind_login1_manager_complete_get_user_by_pid:
8635 * @object: A #logindLogin1Manager.
5047f6bf 8636 * @invocation: (transfer full): A #GDBusMethodInvocation.
8637 * @unnamed_arg1: Parameter to return.
8638 *
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.
8640 *
8641 * This method will free @invocation, you cannot use it afterwards.
8642 */
8643void
1aa981f7 8644logind_login1_manager_complete_get_user_by_pid (
8645 logindLogin1Manager *object,
5047f6bf 8646 GDBusMethodInvocation *invocation,
8647 const gchar *unnamed_arg1)
8648{
8649 g_dbus_method_invocation_return_value (invocation,
8650 g_variant_new ("(o)",
8651 unnamed_arg1));
8652}
8653
8654/**
1aa981f7 8655 * logind_login1_manager_complete_get_seat:
8656 * @object: A #logindLogin1Manager.
5047f6bf 8657 * @invocation: (transfer full): A #GDBusMethodInvocation.
8658 * @unnamed_arg1: Parameter to return.
8659 *
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.
8661 *
8662 * This method will free @invocation, you cannot use it afterwards.
8663 */
8664void
1aa981f7 8665logind_login1_manager_complete_get_seat (
8666 logindLogin1Manager *object,
5047f6bf 8667 GDBusMethodInvocation *invocation,
8668 const gchar *unnamed_arg1)
8669{
8670 g_dbus_method_invocation_return_value (invocation,
8671 g_variant_new ("(o)",
8672 unnamed_arg1));
8673}
8674
8675/**
1aa981f7 8676 * logind_login1_manager_complete_list_sessions:
8677 * @object: A #logindLogin1Manager.
5047f6bf 8678 * @invocation: (transfer full): A #GDBusMethodInvocation.
8679 * @unnamed_arg0: Parameter to return.
8680 *
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.
8682 *
8683 * This method will free @invocation, you cannot use it afterwards.
8684 */
8685void
1aa981f7 8686logind_login1_manager_complete_list_sessions (
8687 logindLogin1Manager *object,
5047f6bf 8688 GDBusMethodInvocation *invocation,
8689 GVariant *unnamed_arg0)
8690{
8691 g_dbus_method_invocation_return_value (invocation,
8692 g_variant_new ("(@a(susso))",
8693 unnamed_arg0));
8694}
8695
8696/**
1aa981f7 8697 * logind_login1_manager_complete_list_users:
8698 * @object: A #logindLogin1Manager.
5047f6bf 8699 * @invocation: (transfer full): A #GDBusMethodInvocation.
8700 * @unnamed_arg0: Parameter to return.
8701 *
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.
8703 *
8704 * This method will free @invocation, you cannot use it afterwards.
8705 */
8706void
1aa981f7 8707logind_login1_manager_complete_list_users (
8708 logindLogin1Manager *object,
5047f6bf 8709 GDBusMethodInvocation *invocation,
8710 GVariant *unnamed_arg0)
8711{
8712 g_dbus_method_invocation_return_value (invocation,
8713 g_variant_new ("(@a(uso))",
8714 unnamed_arg0));
8715}
8716
8717/**
1aa981f7 8718 * logind_login1_manager_complete_list_seats:
8719 * @object: A #logindLogin1Manager.
5047f6bf 8720 * @invocation: (transfer full): A #GDBusMethodInvocation.
8721 * @unnamed_arg0: Parameter to return.
8722 *
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.
8724 *
8725 * This method will free @invocation, you cannot use it afterwards.
8726 */
8727void
1aa981f7 8728logind_login1_manager_complete_list_seats (
8729 logindLogin1Manager *object,
5047f6bf 8730 GDBusMethodInvocation *invocation,
8731 GVariant *unnamed_arg0)
8732{
8733 g_dbus_method_invocation_return_value (invocation,
8734 g_variant_new ("(@a(so))",
8735 unnamed_arg0));
8736}
8737
8738/**
1aa981f7 8739 * logind_login1_manager_complete_list_inhibitors:
8740 * @object: A #logindLogin1Manager.
5047f6bf 8741 * @invocation: (transfer full): A #GDBusMethodInvocation.
8742 * @unnamed_arg0: Parameter to return.
8743 *
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.
8745 *
8746 * This method will free @invocation, you cannot use it afterwards.
8747 */
8748void
1aa981f7 8749logind_login1_manager_complete_list_inhibitors (
8750 logindLogin1Manager *object,
5047f6bf 8751 GDBusMethodInvocation *invocation,
8752 GVariant *unnamed_arg0)
8753{
8754 g_dbus_method_invocation_return_value (invocation,
8755 g_variant_new ("(@a(ssssuu))",
8756 unnamed_arg0));
8757}
8758
8759/**
1aa981f7 8760 * logind_login1_manager_complete_create_session:
8761 * @object: A #logindLogin1Manager.
5047f6bf 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.
8771 *
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.
8773 *
8774 * This method will free @invocation, you cannot use it afterwards.
8775 */
8776void
1aa981f7 8777logind_login1_manager_complete_create_session (
8778 logindLogin1Manager *object,
5047f6bf 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)
8788{
8789 g_dbus_method_invocation_return_value (invocation,
8790 g_variant_new ("(sos@husub)",
8791 unnamed_arg14,
8792 unnamed_arg15,
8793 unnamed_arg16,
8794 unnamed_arg17,
8795 unnamed_arg18,
8796 unnamed_arg19,
8797 unnamed_arg20,
8798 unnamed_arg21));
8799}
8800
8801/**
1aa981f7 8802 * logind_login1_manager_complete_release_session:
8803 * @object: A #logindLogin1Manager.
5047f6bf 8804 * @invocation: (transfer full): A #GDBusMethodInvocation.
8805 *
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.
8807 *
8808 * This method will free @invocation, you cannot use it afterwards.
8809 */
8810void
1aa981f7 8811logind_login1_manager_complete_release_session (
8812 logindLogin1Manager *object,
5047f6bf 8813 GDBusMethodInvocation *invocation)
8814{
8815 g_dbus_method_invocation_return_value (invocation,
8816 g_variant_new ("()"));
8817}
8818
8819/**
1aa981f7 8820 * logind_login1_manager_complete_activate_session:
8821 * @object: A #logindLogin1Manager.
5047f6bf 8822 * @invocation: (transfer full): A #GDBusMethodInvocation.
8823 *
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.
8825 *
8826 * This method will free @invocation, you cannot use it afterwards.
8827 */
8828void
1aa981f7 8829logind_login1_manager_complete_activate_session (
8830 logindLogin1Manager *object,
5047f6bf 8831 GDBusMethodInvocation *invocation)
8832{
8833 g_dbus_method_invocation_return_value (invocation,
8834 g_variant_new ("()"));
8835}
8836
8837/**
1aa981f7 8838 * logind_login1_manager_complete_activate_session_on_seat:
8839 * @object: A #logindLogin1Manager.
5047f6bf 8840 * @invocation: (transfer full): A #GDBusMethodInvocation.
8841 *
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.
8843 *
8844 * This method will free @invocation, you cannot use it afterwards.
8845 */
8846void
1aa981f7 8847logind_login1_manager_complete_activate_session_on_seat (
8848 logindLogin1Manager *object,
5047f6bf 8849 GDBusMethodInvocation *invocation)
8850{
8851 g_dbus_method_invocation_return_value (invocation,
8852 g_variant_new ("()"));
8853}
8854
8855/**
1aa981f7 8856 * logind_login1_manager_complete_lock_session:
8857 * @object: A #logindLogin1Manager.
5047f6bf 8858 * @invocation: (transfer full): A #GDBusMethodInvocation.
8859 *
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.
8861 *
8862 * This method will free @invocation, you cannot use it afterwards.
8863 */
8864void
1aa981f7 8865logind_login1_manager_complete_lock_session (
8866 logindLogin1Manager *object,
5047f6bf 8867 GDBusMethodInvocation *invocation)
8868{
8869 g_dbus_method_invocation_return_value (invocation,
8870 g_variant_new ("()"));
8871}
8872
8873/**
1aa981f7 8874 * logind_login1_manager_complete_unlock_session:
8875 * @object: A #logindLogin1Manager.
5047f6bf 8876 * @invocation: (transfer full): A #GDBusMethodInvocation.
8877 *
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.
8879 *
8880 * This method will free @invocation, you cannot use it afterwards.
8881 */
8882void
1aa981f7 8883logind_login1_manager_complete_unlock_session (
8884 logindLogin1Manager *object,
5047f6bf 8885 GDBusMethodInvocation *invocation)
8886{
8887 g_dbus_method_invocation_return_value (invocation,
8888 g_variant_new ("()"));
8889}
8890
8891/**
1aa981f7 8892 * logind_login1_manager_complete_lock_sessions:
8893 * @object: A #logindLogin1Manager.
5047f6bf 8894 * @invocation: (transfer full): A #GDBusMethodInvocation.
8895 *
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.
8897 *
8898 * This method will free @invocation, you cannot use it afterwards.
8899 */
8900void
1aa981f7 8901logind_login1_manager_complete_lock_sessions (
8902 logindLogin1Manager *object,
5047f6bf 8903 GDBusMethodInvocation *invocation)
8904{
8905 g_dbus_method_invocation_return_value (invocation,
8906 g_variant_new ("()"));
8907}
8908
8909/**
1aa981f7 8910 * logind_login1_manager_complete_unlock_sessions:
8911 * @object: A #logindLogin1Manager.
5047f6bf 8912 * @invocation: (transfer full): A #GDBusMethodInvocation.
8913 *
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.
8915 *
8916 * This method will free @invocation, you cannot use it afterwards.
8917 */
8918void
1aa981f7 8919logind_login1_manager_complete_unlock_sessions (
8920 logindLogin1Manager *object,
5047f6bf 8921 GDBusMethodInvocation *invocation)
8922{
8923 g_dbus_method_invocation_return_value (invocation,
8924 g_variant_new ("()"));
8925}
8926
8927/**
1aa981f7 8928 * logind_login1_manager_complete_kill_session:
8929 * @object: A #logindLogin1Manager.
5047f6bf 8930 * @invocation: (transfer full): A #GDBusMethodInvocation.
8931 *
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.
8933 *
8934 * This method will free @invocation, you cannot use it afterwards.
8935 */
8936void
1aa981f7 8937logind_login1_manager_complete_kill_session (
8938 logindLogin1Manager *object,
5047f6bf 8939 GDBusMethodInvocation *invocation)
8940{
8941 g_dbus_method_invocation_return_value (invocation,
8942 g_variant_new ("()"));
8943}
8944
8945/**
1aa981f7 8946 * logind_login1_manager_complete_kill_user:
8947 * @object: A #logindLogin1Manager.
5047f6bf 8948 * @invocation: (transfer full): A #GDBusMethodInvocation.
8949 *
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.
8951 *
8952 * This method will free @invocation, you cannot use it afterwards.
8953 */
8954void
1aa981f7 8955logind_login1_manager_complete_kill_user (
8956 logindLogin1Manager *object,
5047f6bf 8957 GDBusMethodInvocation *invocation)
8958{
8959 g_dbus_method_invocation_return_value (invocation,
8960 g_variant_new ("()"));
8961}
8962
8963/**
1aa981f7 8964 * logind_login1_manager_complete_terminate_session:
8965 * @object: A #logindLogin1Manager.
5047f6bf 8966 * @invocation: (transfer full): A #GDBusMethodInvocation.
8967 *
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.
8969 *
8970 * This method will free @invocation, you cannot use it afterwards.
8971 */
8972void
1aa981f7 8973logind_login1_manager_complete_terminate_session (
8974 logindLogin1Manager *object,
5047f6bf 8975 GDBusMethodInvocation *invocation)
8976{
8977 g_dbus_method_invocation_return_value (invocation,
8978 g_variant_new ("()"));
8979}
8980
8981/**
1aa981f7 8982 * logind_login1_manager_complete_terminate_user:
8983 * @object: A #logindLogin1Manager.
5047f6bf 8984 * @invocation: (transfer full): A #GDBusMethodInvocation.
8985 *
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.
8987 *
8988 * This method will free @invocation, you cannot use it afterwards.
8989 */
8990void
1aa981f7 8991logind_login1_manager_complete_terminate_user (
8992 logindLogin1Manager *object,
5047f6bf 8993 GDBusMethodInvocation *invocation)
8994{
8995 g_dbus_method_invocation_return_value (invocation,
8996 g_variant_new ("()"));
8997}
8998
8999/**
1aa981f7 9000 * logind_login1_manager_complete_terminate_seat:
9001 * @object: A #logindLogin1Manager.
5047f6bf 9002 * @invocation: (transfer full): A #GDBusMethodInvocation.
9003 *
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.
9005 *
9006 * This method will free @invocation, you cannot use it afterwards.
9007 */
9008void
1aa981f7 9009logind_login1_manager_complete_terminate_seat (
9010 logindLogin1Manager *object,
5047f6bf 9011 GDBusMethodInvocation *invocation)
9012{
9013 g_dbus_method_invocation_return_value (invocation,
9014 g_variant_new ("()"));
9015}
9016
9017/**
1aa981f7 9018 * logind_login1_manager_complete_set_user_linger:
9019 * @object: A #logindLogin1Manager.
5047f6bf 9020 * @invocation: (transfer full): A #GDBusMethodInvocation.
9021 *
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.
9023 *
9024 * This method will free @invocation, you cannot use it afterwards.
9025 */
9026void
1aa981f7 9027logind_login1_manager_complete_set_user_linger (
9028 logindLogin1Manager *object,
5047f6bf 9029 GDBusMethodInvocation *invocation)
9030{
9031 g_dbus_method_invocation_return_value (invocation,
9032 g_variant_new ("()"));
9033}
9034
9035/**
1aa981f7 9036 * logind_login1_manager_complete_attach_device:
9037 * @object: A #logindLogin1Manager.
5047f6bf 9038 * @invocation: (transfer full): A #GDBusMethodInvocation.
9039 *
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.
9041 *
9042 * This method will free @invocation, you cannot use it afterwards.
9043 */
9044void
1aa981f7 9045logind_login1_manager_complete_attach_device (
9046 logindLogin1Manager *object,
5047f6bf 9047 GDBusMethodInvocation *invocation)
9048{
9049 g_dbus_method_invocation_return_value (invocation,
9050 g_variant_new ("()"));
9051}
9052
9053/**
1aa981f7 9054 * logind_login1_manager_complete_flush_devices:
9055 * @object: A #logindLogin1Manager.
5047f6bf 9056 * @invocation: (transfer full): A #GDBusMethodInvocation.
9057 *
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.
9059 *
9060 * This method will free @invocation, you cannot use it afterwards.
9061 */
9062void
1aa981f7 9063logind_login1_manager_complete_flush_devices (
9064 logindLogin1Manager *object,
5047f6bf 9065 GDBusMethodInvocation *invocation)
9066{
9067 g_dbus_method_invocation_return_value (invocation,
9068 g_variant_new ("()"));
9069}
9070
9071/**
1aa981f7 9072 * logind_login1_manager_complete_power_off:
9073 * @object: A #logindLogin1Manager.
5047f6bf 9074 * @invocation: (transfer full): A #GDBusMethodInvocation.
9075 *
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.
9077 *
9078 * This method will free @invocation, you cannot use it afterwards.
9079 */
9080void
1aa981f7 9081logind_login1_manager_complete_power_off (
9082 logindLogin1Manager *object,
5047f6bf 9083 GDBusMethodInvocation *invocation)
9084{
9085 g_dbus_method_invocation_return_value (invocation,
9086 g_variant_new ("()"));
9087}
9088
9089/**
1aa981f7 9090 * logind_login1_manager_complete_reboot:
9091 * @object: A #logindLogin1Manager.
5047f6bf 9092 * @invocation: (transfer full): A #GDBusMethodInvocation.
9093 *
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.
9095 *
9096 * This method will free @invocation, you cannot use it afterwards.
9097 */
9098void
1aa981f7 9099logind_login1_manager_complete_reboot (
9100 logindLogin1Manager *object,
5047f6bf 9101 GDBusMethodInvocation *invocation)
9102{
9103 g_dbus_method_invocation_return_value (invocation,
9104 g_variant_new ("()"));
9105}
9106
9107/**
1aa981f7 9108 * logind_login1_manager_complete_suspend:
9109 * @object: A #logindLogin1Manager.
5047f6bf 9110 * @invocation: (transfer full): A #GDBusMethodInvocation.
9111 *
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.
9113 *
9114 * This method will free @invocation, you cannot use it afterwards.
9115 */
9116void
1aa981f7 9117logind_login1_manager_complete_suspend (
9118 logindLogin1Manager *object,
5047f6bf 9119 GDBusMethodInvocation *invocation)
9120{
9121 g_dbus_method_invocation_return_value (invocation,
9122 g_variant_new ("()"));
9123}
9124
9125/**
1aa981f7 9126 * logind_login1_manager_complete_hibernate:
9127 * @object: A #logindLogin1Manager.
5047f6bf 9128 * @invocation: (transfer full): A #GDBusMethodInvocation.
9129 *
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.
9131 *
9132 * This method will free @invocation, you cannot use it afterwards.
9133 */
9134void
1aa981f7 9135logind_login1_manager_complete_hibernate (
9136 logindLogin1Manager *object,
5047f6bf 9137 GDBusMethodInvocation *invocation)
9138{
9139 g_dbus_method_invocation_return_value (invocation,
9140 g_variant_new ("()"));
9141}
9142
9143/**
1aa981f7 9144 * logind_login1_manager_complete_hybrid_sleep:
9145 * @object: A #logindLogin1Manager.
5047f6bf 9146 * @invocation: (transfer full): A #GDBusMethodInvocation.
9147 *
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.
9149 *
9150 * This method will free @invocation, you cannot use it afterwards.
9151 */
9152void
1aa981f7 9153logind_login1_manager_complete_hybrid_sleep (
9154 logindLogin1Manager *object,
5047f6bf 9155 GDBusMethodInvocation *invocation)
9156{
9157 g_dbus_method_invocation_return_value (invocation,
9158 g_variant_new ("()"));
9159}
9160
9161/**
1aa981f7 9162 * logind_login1_manager_complete_can_power_off:
9163 * @object: A #logindLogin1Manager.
5047f6bf 9164 * @invocation: (transfer full): A #GDBusMethodInvocation.
9165 * @unnamed_arg0: Parameter to return.
9166 *
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.
9168 *
9169 * This method will free @invocation, you cannot use it afterwards.
9170 */
9171void
1aa981f7 9172logind_login1_manager_complete_can_power_off (
9173 logindLogin1Manager *object,
5047f6bf 9174 GDBusMethodInvocation *invocation,
9175 const gchar *unnamed_arg0)
9176{
9177 g_dbus_method_invocation_return_value (invocation,
9178 g_variant_new ("(s)",
9179 unnamed_arg0));
9180}
9181
9182/**
1aa981f7 9183 * logind_login1_manager_complete_can_reboot:
9184 * @object: A #logindLogin1Manager.
5047f6bf 9185 * @invocation: (transfer full): A #GDBusMethodInvocation.
9186 * @unnamed_arg0: Parameter to return.
9187 *
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.
9189 *
9190 * This method will free @invocation, you cannot use it afterwards.
9191 */
9192void
1aa981f7 9193logind_login1_manager_complete_can_reboot (
9194 logindLogin1Manager *object,
5047f6bf 9195 GDBusMethodInvocation *invocation,
9196 const gchar *unnamed_arg0)
9197{
9198 g_dbus_method_invocation_return_value (invocation,
9199 g_variant_new ("(s)",
9200 unnamed_arg0));
9201}
9202
9203/**
1aa981f7 9204 * logind_login1_manager_complete_can_suspend:
9205 * @object: A #logindLogin1Manager.
5047f6bf 9206 * @invocation: (transfer full): A #GDBusMethodInvocation.
9207 * @unnamed_arg0: Parameter to return.
9208 *
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.
9210 *
9211 * This method will free @invocation, you cannot use it afterwards.
9212 */
9213void
1aa981f7 9214logind_login1_manager_complete_can_suspend (
9215 logindLogin1Manager *object,
5047f6bf 9216 GDBusMethodInvocation *invocation,
9217 const gchar *unnamed_arg0)
9218{
9219 g_dbus_method_invocation_return_value (invocation,
9220 g_variant_new ("(s)",
9221 unnamed_arg0));
9222}
9223
9224/**
1aa981f7 9225 * logind_login1_manager_complete_can_hibernate:
9226 * @object: A #logindLogin1Manager.
5047f6bf 9227 * @invocation: (transfer full): A #GDBusMethodInvocation.
9228 * @unnamed_arg0: Parameter to return.
9229 *
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.
9231 *
9232 * This method will free @invocation, you cannot use it afterwards.
9233 */
9234void
1aa981f7 9235logind_login1_manager_complete_can_hibernate (
9236 logindLogin1Manager *object,
5047f6bf 9237 GDBusMethodInvocation *invocation,
9238 const gchar *unnamed_arg0)
9239{
9240 g_dbus_method_invocation_return_value (invocation,
9241 g_variant_new ("(s)",
9242 unnamed_arg0));
9243}
9244
9245/**
1aa981f7 9246 * logind_login1_manager_complete_can_hybrid_sleep:
9247 * @object: A #logindLogin1Manager.
5047f6bf 9248 * @invocation: (transfer full): A #GDBusMethodInvocation.
9249 * @unnamed_arg0: Parameter to return.
9250 *
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.
9252 *
9253 * This method will free @invocation, you cannot use it afterwards.
9254 */
9255void
1aa981f7 9256logind_login1_manager_complete_can_hybrid_sleep (
9257 logindLogin1Manager *object,
5047f6bf 9258 GDBusMethodInvocation *invocation,
9259 const gchar *unnamed_arg0)
9260{
9261 g_dbus_method_invocation_return_value (invocation,
9262 g_variant_new ("(s)",
9263 unnamed_arg0));
9264}
9265
9266/**
1aa981f7 9267 * logind_login1_manager_complete_inhibit:
9268 * @object: A #logindLogin1Manager.
5047f6bf 9269 * @invocation: (transfer full): A #GDBusMethodInvocation.
9270 * @unnamed_arg4: Parameter to return.
9271 *
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.
9273 *
9274 * This method will free @invocation, you cannot use it afterwards.
9275 */
9276void
1aa981f7 9277logind_login1_manager_complete_inhibit (
9278 logindLogin1Manager *object,
5047f6bf 9279 GDBusMethodInvocation *invocation,
9280 GVariant *unnamed_arg4)
9281{
9282 g_dbus_method_invocation_return_value (invocation,
9283 g_variant_new ("(@h)",
9284 unnamed_arg4));
9285}
9286
9287/* ------------------------------------------------------------------------ */
9288
9289/**
1aa981f7 9290 * logindLogin1ManagerProxy:
5047f6bf 9291 *
1aa981f7 9292 * The #logindLogin1ManagerProxy structure contains only private data and should only be accessed using the provided API.
5047f6bf 9293 */
9294
9295/**
1aa981f7 9296 * logindLogin1ManagerProxyClass:
5047f6bf 9297 * @parent_class: The parent class.
9298 *
1aa981f7 9299 * Class structure for #logindLogin1ManagerProxy.
5047f6bf 9300 */
9301
1aa981f7 9302struct _logindLogin1ManagerProxyPrivate
5047f6bf 9303{
9304 GData *qdata;
9305};
9306
1aa981f7 9307static void logind_login1_manager_proxy_iface_init (logindLogin1ManagerIface *iface);
5047f6bf 9308
9309#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
1aa981f7 9310G_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));
5047f6bf 9313
9314#else
1aa981f7 9315G_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));
5047f6bf 9317
9318#endif
9319static void
1aa981f7 9320logind_login1_manager_proxy_finalize (GObject *object)
5047f6bf 9321{
1aa981f7 9322 logindLogin1ManagerProxy *proxy = LOGIND_LOGIN1_MANAGER_PROXY (object);
5047f6bf 9323 g_datalist_clear (&proxy->priv->qdata);
1aa981f7 9324 G_OBJECT_CLASS (logind_login1_manager_proxy_parent_class)->finalize (object);
5047f6bf 9325}
9326
9327static void
1aa981f7 9328logind_login1_manager_proxy_get_property (GObject *object,
5047f6bf 9329 guint prop_id,
9330 GValue *value,
9331 GParamSpec *pspec G_GNUC_UNUSED)
9332{
9333 const _ExtendedGDBusPropertyInfo *info;
9334 GVariant *variant;
9335 g_assert (prop_id != 0 && prop_id - 1 < 18);
1aa981f7 9336 info = _logind_login1_manager_property_info_pointers[prop_id - 1];
5047f6bf 9337 variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name);
9338 if (info->use_gvariant)
9339 {
9340 g_value_set_variant (value, variant);
9341 }
9342 else
9343 {
9344 if (variant != NULL)
9345 g_dbus_gvariant_to_gvalue (variant, value);
9346 }
9347 if (variant != NULL)
9348 g_variant_unref (variant);
9349}
9350
9351static void
1aa981f7 9352logind_login1_manager_proxy_set_property_cb (GDBusProxy *proxy,
5047f6bf 9353 GAsyncResult *res,
9354 gpointer user_data)
9355{
9356 const _ExtendedGDBusPropertyInfo *info = user_data;
9357 GError *error;
9358 GVariant *_ret;
9359 error = NULL;
9360 _ret = g_dbus_proxy_call_finish (proxy, res, &error);
9361 if (!_ret)
9362 {
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);
9367 }
9368 else
9369 {
9370 g_variant_unref (_ret);
9371 }
9372}
9373
9374static void
1aa981f7 9375logind_login1_manager_proxy_set_property (GObject *object,
5047f6bf 9376 guint prop_id,
9377 const GValue *value,
9378 GParamSpec *pspec G_GNUC_UNUSED)
9379{
9380 const _ExtendedGDBusPropertyInfo *info;
9381 GVariant *variant;
9382 g_assert (prop_id != 0 && prop_id - 1 < 18);
1aa981f7 9383 info = _logind_login1_manager_property_info_pointers[prop_id - 1];
5047f6bf 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,
9389 -1,
1aa981f7 9390 NULL, (GAsyncReadyCallback) logind_login1_manager_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct);
5047f6bf 9391 g_variant_unref (variant);
9392}
9393
9394static void
1aa981f7 9395logind_login1_manager_proxy_g_signal (GDBusProxy *proxy,
5047f6bf 9396 const gchar *sender_name G_GNUC_UNUSED,
9397 const gchar *signal_name,
9398 GVariant *parameters)
9399{
9400 _ExtendedGDBusSignalInfo *info;
9401 GVariantIter iter;
9402 GVariant *child;
9403 GValue *paramv;
9404 guint num_params;
9405 guint n;
9406 guint signal_id;
1aa981f7 9407 info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_logind_login1_manager_interface_info.parent_struct, signal_name);
5047f6bf 9408 if (info == NULL)
9409 return;
9410 num_params = g_variant_n_children (parameters);
9411 paramv = g_new0 (GValue, num_params + 1);
1aa981f7 9412 g_value_init (&paramv[0], LOGIND_TYPE_LOGIN1_MANAGER);
5047f6bf 9413 g_value_set_object (&paramv[0], proxy);
9414 g_variant_iter_init (&iter, parameters);
9415 n = 1;
9416 while ((child = g_variant_iter_next_value (&iter)) != NULL)
9417 {
9418 _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1];
9419 if (arg_info->use_gvariant)
9420 {
9421 g_value_init (&paramv[n], G_TYPE_VARIANT);
9422 g_value_set_variant (&paramv[n], child);
9423 n++;
9424 }
9425 else
9426 g_dbus_gvariant_to_gvalue (child, &paramv[n++]);
9427 g_variant_unref (child);
9428 }
1aa981f7 9429 signal_id = g_signal_lookup (info->signal_name, LOGIND_TYPE_LOGIN1_MANAGER);
5047f6bf 9430 g_signal_emitv (paramv, signal_id, 0, NULL);
9431 for (n = 0; n < num_params + 1; n++)
9432 g_value_unset (&paramv[n]);
9433 g_free (paramv);
9434}
9435
9436static void
1aa981f7 9437logind_login1_manager_proxy_g_properties_changed (GDBusProxy *_proxy,
5047f6bf 9438 GVariant *changed_properties,
9439 const gchar *const *invalidated_properties)
9440{
1aa981f7 9441 logindLogin1ManagerProxy *proxy = LOGIND_LOGIN1_MANAGER_PROXY (_proxy);
5047f6bf 9442 guint n;
9443 const gchar *key;
9444 GVariantIter *iter;
9445 _ExtendedGDBusPropertyInfo *info;
9446 g_variant_get (changed_properties, "a{sv}", &iter);
9447 while (g_variant_iter_next (iter, "{&sv}", &key, NULL))
9448 {
1aa981f7 9449 info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_logind_login1_manager_interface_info.parent_struct, key);
5047f6bf 9450 g_datalist_remove_data (&proxy->priv->qdata, key);
9451 if (info != NULL)
9452 g_object_notify (G_OBJECT (proxy), info->hyphen_name);
9453 }
9454 g_variant_iter_free (iter);
9455 for (n = 0; invalidated_properties[n] != NULL; n++)
9456 {
1aa981f7 9457 info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_logind_login1_manager_interface_info.parent_struct, invalidated_properties[n]);
5047f6bf 9458 g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]);
9459 if (info != NULL)
9460 g_object_notify (G_OBJECT (proxy), info->hyphen_name);
9461 }
9462}
9463
9464static guint
1aa981f7 9465logind_login1_manager_proxy_get_nauto_vts (logindLogin1Manager *object)
5047f6bf 9466{
1aa981f7 9467 logindLogin1ManagerProxy *proxy = LOGIND_LOGIN1_MANAGER_PROXY (object);
5047f6bf 9468 GVariant *variant;
9469 guint value = 0;
9470 variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "NAutoVTs");
9471 if (variant != NULL)
9472 {
9473 value = g_variant_get_uint32 (variant);
9474 g_variant_unref (variant);
9475 }
9476 return value;
9477}
9478
9479static const gchar *const *
1aa981f7 9480logind_login1_manager_proxy_get_kill_only_users (logindLogin1Manager *object)
5047f6bf 9481{
1aa981f7 9482 logindLogin1ManagerProxy *proxy = LOGIND_LOGIN1_MANAGER_PROXY (object);
5047f6bf 9483 GVariant *variant;
9484 const gchar *const *value = NULL;
9485 value = g_datalist_get_data (&proxy->priv->qdata, "KillOnlyUsers");
9486 if (value != NULL)
9487 return value;
9488 variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "KillOnlyUsers");
9489 if (variant != NULL)
9490 {
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);
9494 }
9495 return value;
9496}
9497
9498static const gchar *const *
1aa981f7 9499logind_login1_manager_proxy_get_kill_exclude_users (logindLogin1Manager *object)
5047f6bf 9500{
1aa981f7 9501 logindLogin1ManagerProxy *proxy = LOGIND_LOGIN1_MANAGER_PROXY (object);
5047f6bf 9502 GVariant *variant;
9503 const gchar *const *value = NULL;
9504 value = g_datalist_get_data (&proxy->priv->qdata, "KillExcludeUsers");
9505 if (value != NULL)
9506 return value;
9507 variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "KillExcludeUsers");
9508 if (variant != NULL)
9509 {
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);
9513 }
9514 return value;
9515}
9516
9517static gboolean
1aa981f7 9518logind_login1_manager_proxy_get_kill_user_processes (logindLogin1Manager *object)
5047f6bf 9519{
1aa981f7 9520 logindLogin1ManagerProxy *proxy = LOGIND_LOGIN1_MANAGER_PROXY (object);
5047f6bf 9521 GVariant *variant;
9522 gboolean value = 0;
9523 variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "KillUserProcesses");
9524 if (variant != NULL)
9525 {
9526 value = g_variant_get_boolean (variant);
9527 g_variant_unref (variant);
9528 }
9529 return value;
9530}
9531
9532static gboolean
1aa981f7 9533logind_login1_manager_proxy_get_idle_hint (logindLogin1Manager *object)
5047f6bf 9534{
1aa981f7 9535 logindLogin1ManagerProxy *proxy = LOGIND_LOGIN1_MANAGER_PROXY (object);
5047f6bf 9536 GVariant *variant;
9537 gboolean value = 0;
9538 variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "IdleHint");
9539 if (variant != NULL)
9540 {
9541 value = g_variant_get_boolean (variant);
9542 g_variant_unref (variant);
9543 }
9544 return value;
9545}
9546
9547static guint64
1aa981f7 9548logind_login1_manager_proxy_get_idle_since_hint (logindLogin1Manager *object)
5047f6bf 9549{
1aa981f7 9550 logindLogin1ManagerProxy *proxy = LOGIND_LOGIN1_MANAGER_PROXY (object);
5047f6bf 9551 GVariant *variant;
9552 guint64 value = 0;
9553 variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "IdleSinceHint");
9554 if (variant != NULL)
9555 {
9556 value = g_variant_get_uint64 (variant);
9557 g_variant_unref (variant);
9558 }
9559 return value;
9560}
9561
9562static guint64
1aa981f7 9563logind_login1_manager_proxy_get_idle_since_hint_monotonic (logindLogin1Manager *object)
5047f6bf 9564{
1aa981f7 9565 logindLogin1ManagerProxy *proxy = LOGIND_LOGIN1_MANAGER_PROXY (object);
5047f6bf 9566 GVariant *variant;
9567 guint64 value = 0;
9568 variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "IdleSinceHintMonotonic");
9569 if (variant != NULL)
9570 {
9571 value = g_variant_get_uint64 (variant);
9572 g_variant_unref (variant);
9573 }
9574 return value;
9575}
9576
9577static const gchar *
1aa981f7 9578logind_login1_manager_proxy_get_block_inhibited (logindLogin1Manager *object)
5047f6bf 9579{
1aa981f7 9580 logindLogin1ManagerProxy *proxy = LOGIND_LOGIN1_MANAGER_PROXY (object);
5047f6bf 9581 GVariant *variant;
9582 const gchar *value = NULL;
9583 variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "BlockInhibited");
9584 if (variant != NULL)
9585 {
9586 value = g_variant_get_string (variant, NULL);
9587 g_variant_unref (variant);
9588 }
9589 return value;
9590}
9591
9592static const gchar *
1aa981f7 9593logind_login1_manager_proxy_get_delay_inhibited (logindLogin1Manager *object)
5047f6bf 9594{
1aa981f7 9595 logindLogin1ManagerProxy *proxy = LOGIND_LOGIN1_MANAGER_PROXY (object);
5047f6bf 9596 GVariant *variant;
9597 const gchar *value = NULL;
9598 variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "DelayInhibited");
9599 if (variant != NULL)
9600 {
9601 value = g_variant_get_string (variant, NULL);
9602 g_variant_unref (variant);
9603 }
9604 return value;
9605}
9606
9607static guint64
1aa981f7 9608logind_login1_manager_proxy_get_inhibit_delay_max_usec (logindLogin1Manager *object)
5047f6bf 9609{
1aa981f7 9610 logindLogin1ManagerProxy *proxy = LOGIND_LOGIN1_MANAGER_PROXY (object);
5047f6bf 9611 GVariant *variant;
9612 guint64 value = 0;
9613 variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "InhibitDelayMaxUSec");
9614 if (variant != NULL)
9615 {
9616 value = g_variant_get_uint64 (variant);
9617 g_variant_unref (variant);
9618 }
9619 return value;
9620}
9621
9622static const gchar *
1aa981f7 9623logind_login1_manager_proxy_get_handle_power_key (logindLogin1Manager *object)
5047f6bf 9624{
1aa981f7 9625 logindLogin1ManagerProxy *proxy = LOGIND_LOGIN1_MANAGER_PROXY (object);
5047f6bf 9626 GVariant *variant;
9627 const gchar *value = NULL;
9628 variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "HandlePowerKey");
9629 if (variant != NULL)
9630 {
9631 value = g_variant_get_string (variant, NULL);
9632 g_variant_unref (variant);
9633 }
9634 return value;
9635}
9636
9637static const gchar *
1aa981f7 9638logind_login1_manager_proxy_get_handle_suspend_key (logindLogin1Manager *object)
5047f6bf 9639{
1aa981f7 9640 logindLogin1ManagerProxy *proxy = LOGIND_LOGIN1_MANAGER_PROXY (object);
5047f6bf 9641 GVariant *variant;
9642 const gchar *value = NULL;
9643 variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "HandleSuspendKey");
9644 if (variant != NULL)
9645 {
9646 value = g_variant_get_string (variant, NULL);
9647 g_variant_unref (variant);
9648 }
9649 return value;
9650}
9651
9652static const gchar *
1aa981f7 9653logind_login1_manager_proxy_get_handle_hibernate_key (logindLogin1Manager *object)
5047f6bf 9654{
1aa981f7 9655 logindLogin1ManagerProxy *proxy = LOGIND_LOGIN1_MANAGER_PROXY (object);
5047f6bf 9656 GVariant *variant;
9657 const gchar *value = NULL;
9658 variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "HandleHibernateKey");
9659 if (variant != NULL)
9660 {
9661 value = g_variant_get_string (variant, NULL);
9662 g_variant_unref (variant);
9663 }
9664 return value;
9665}
9666
9667static const gchar *
1aa981f7 9668logind_login1_manager_proxy_get_handle_lid_switch (logindLogin1Manager *object)
5047f6bf 9669{
1aa981f7 9670 logindLogin1ManagerProxy *proxy = LOGIND_LOGIN1_MANAGER_PROXY (object);
5047f6bf 9671 GVariant *variant;
9672 const gchar *value = NULL;
9673 variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "HandleLidSwitch");
9674 if (variant != NULL)
9675 {
9676 value = g_variant_get_string (variant, NULL);
9677 g_variant_unref (variant);
9678 }
9679 return value;
9680}
9681
9682static const gchar *
1aa981f7 9683logind_login1_manager_proxy_get_idle_action (logindLogin1Manager *object)
5047f6bf 9684{
1aa981f7 9685 logindLogin1ManagerProxy *proxy = LOGIND_LOGIN1_MANAGER_PROXY (object);
5047f6bf 9686 GVariant *variant;
9687 const gchar *value = NULL;
9688 variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "IdleAction");
9689 if (variant != NULL)
9690 {
9691 value = g_variant_get_string (variant, NULL);
9692 g_variant_unref (variant);
9693 }
9694 return value;
9695}
9696
9697static guint64
1aa981f7 9698logind_login1_manager_proxy_get_idle_action_usec (logindLogin1Manager *object)
5047f6bf 9699{
1aa981f7 9700 logindLogin1ManagerProxy *proxy = LOGIND_LOGIN1_MANAGER_PROXY (object);
5047f6bf 9701 GVariant *variant;
9702 guint64 value = 0;
9703 variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "IdleActionUSec");
9704 if (variant != NULL)
9705 {
9706 value = g_variant_get_uint64 (variant);
9707 g_variant_unref (variant);
9708 }
9709 return value;
9710}
9711
9712static gboolean
1aa981f7 9713logind_login1_manager_proxy_get_preparing_for_shutdown (logindLogin1Manager *object)
5047f6bf 9714{
1aa981f7 9715 logindLogin1ManagerProxy *proxy = LOGIND_LOGIN1_MANAGER_PROXY (object);
5047f6bf 9716 GVariant *variant;
9717 gboolean value = 0;
9718 variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "PreparingForShutdown");
9719 if (variant != NULL)
9720 {
9721 value = g_variant_get_boolean (variant);
9722 g_variant_unref (variant);
9723 }
9724 return value;
9725}
9726
9727static gboolean
1aa981f7 9728logind_login1_manager_proxy_get_preparing_for_sleep (logindLogin1Manager *object)
5047f6bf 9729{
1aa981f7 9730 logindLogin1ManagerProxy *proxy = LOGIND_LOGIN1_MANAGER_PROXY (object);
5047f6bf 9731 GVariant *variant;
9732 gboolean value = 0;
9733 variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "PreparingForSleep");
9734 if (variant != NULL)
9735 {
9736 value = g_variant_get_boolean (variant);
9737 g_variant_unref (variant);
9738 }
9739 return value;
9740}
9741
9742static void
1aa981f7 9743logind_login1_manager_proxy_init (logindLogin1ManagerProxy *proxy)
5047f6bf 9744{
9745#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
1aa981f7 9746 proxy->priv = logind_login1_manager_proxy_get_instance_private (proxy);
5047f6bf 9747#else
1aa981f7 9748 proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, LOGIND_TYPE_LOGIN1_MANAGER_PROXY, logindLogin1ManagerProxyPrivate);
5047f6bf 9749#endif
9750
1aa981f7 9751 g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), logind_login1_manager_interface_info ());
5047f6bf 9752}
9753
9754static void
1aa981f7 9755logind_login1_manager_proxy_class_init (logindLogin1ManagerProxyClass *klass)
5047f6bf 9756{
9757 GObjectClass *gobject_class;
9758 GDBusProxyClass *proxy_class;
9759
9760 gobject_class = G_OBJECT_CLASS (klass);
1aa981f7 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;
5047f6bf 9764
9765 proxy_class = G_DBUS_PROXY_CLASS (klass);
1aa981f7 9766 proxy_class->g_signal = logind_login1_manager_proxy_g_signal;
9767 proxy_class->g_properties_changed = logind_login1_manager_proxy_g_properties_changed;
5047f6bf 9768
1aa981f7 9769 logind_login1_manager_override_properties (gobject_class, 1);
5047f6bf 9770
9771#if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38
1aa981f7 9772 g_type_class_add_private (klass, sizeof (logindLogin1ManagerProxyPrivate));
5047f6bf 9773#endif
9774}
9775
9776static void
1aa981f7 9777logind_login1_manager_proxy_iface_init (logindLogin1ManagerIface *iface)
9778{
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;
9797}
9798
9799/**
9800 * logind_login1_manager_proxy_new:
5047f6bf 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.
9808 *
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.
9810 *
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.
1aa981f7 9812 * You can then call logind_login1_manager_proxy_new_finish() to get the result of the operation.
5047f6bf 9813 *
1aa981f7 9814 * See logind_login1_manager_proxy_new_sync() for the synchronous, blocking version of this constructor.
5047f6bf 9815 */
9816void
1aa981f7 9817logind_login1_manager_proxy_new (
5047f6bf 9818 GDBusConnection *connection,
9819 GDBusProxyFlags flags,
9820 const gchar *name,
9821 const gchar *object_path,
9822 GCancellable *cancellable,
9823 GAsyncReadyCallback callback,
9824 gpointer user_data)
9825{
1aa981f7 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);
5047f6bf 9827}
9828
9829/**
1aa981f7 9830 * logind_login1_manager_proxy_new_finish:
9831 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to logind_login1_manager_proxy_new().
5047f6bf 9832 * @error: Return location for error or %NULL
9833 *
1aa981f7 9834 * Finishes an operation started with logind_login1_manager_proxy_new().
5047f6bf 9835 *
1aa981f7 9836 * Returns: (transfer full) (type logindLogin1ManagerProxy): The constructed proxy object or %NULL if @error is set.
5047f6bf 9837 */
1aa981f7 9838logindLogin1Manager *
9839logind_login1_manager_proxy_new_finish (
5047f6bf 9840 GAsyncResult *res,
9841 GError **error)
9842{
9843 GObject *ret;
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);
9848 if (ret != NULL)
1aa981f7 9849 return LOGIND_LOGIN1_MANAGER (ret);
5047f6bf 9850 else
9851 return NULL;
9852}
9853
9854/**
1aa981f7 9855 * logind_login1_manager_proxy_new_sync:
5047f6bf 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
9862 *
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.
9864 *
9865 * The calling thread is blocked until a reply is received.
9866 *
1aa981f7 9867 * See logind_login1_manager_proxy_new() for the asynchronous version of this constructor.
5047f6bf 9868 *
1aa981f7 9869 * Returns: (transfer full) (type logindLogin1ManagerProxy): The constructed proxy object or %NULL if @error is set.
5047f6bf 9870 */
1aa981f7 9871logindLogin1Manager *
9872logind_login1_manager_proxy_new_sync (
5047f6bf 9873 GDBusConnection *connection,
9874 GDBusProxyFlags flags,
9875 const gchar *name,
9876 const gchar *object_path,
9877 GCancellable *cancellable,
9878 GError **error)
9879{
9880 GInitable *ret;
1aa981f7 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);
5047f6bf 9882 if (ret != NULL)
1aa981f7 9883 return LOGIND_LOGIN1_MANAGER (ret);
5047f6bf 9884 else
9885 return NULL;
9886}
9887
9888
9889/**
1aa981f7 9890 * logind_login1_manager_proxy_new_for_bus:
5047f6bf 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.
9898 *
1aa981f7 9899 * Like logind_login1_manager_proxy_new() but takes a #GBusType instead of a #GDBusConnection.
5047f6bf 9900 *
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.
1aa981f7 9902 * You can then call logind_login1_manager_proxy_new_for_bus_finish() to get the result of the operation.
5047f6bf 9903 *
1aa981f7 9904 * See logind_login1_manager_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor.
5047f6bf 9905 */
9906void
1aa981f7 9907logind_login1_manager_proxy_new_for_bus (
5047f6bf 9908 GBusType bus_type,
9909 GDBusProxyFlags flags,
9910 const gchar *name,
9911 const gchar *object_path,
9912 GCancellable *cancellable,
9913 GAsyncReadyCallback callback,
9914 gpointer user_data)
9915{
1aa981f7 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);
5047f6bf 9917}
9918
9919/**
1aa981f7 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().
5047f6bf 9922 * @error: Return location for error or %NULL
9923 *
1aa981f7 9924 * Finishes an operation started with logind_login1_manager_proxy_new_for_bus().
5047f6bf 9925 *
1aa981f7 9926 * Returns: (transfer full) (type logindLogin1ManagerProxy): The constructed proxy object or %NULL if @error is set.
5047f6bf 9927 */
1aa981f7 9928logindLogin1Manager *
9929logind_login1_manager_proxy_new_for_bus_finish (
5047f6bf 9930 GAsyncResult *res,
9931 GError **error)
9932{
9933 GObject *ret;
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);
9938 if (ret != NULL)
1aa981f7 9939 return LOGIND_LOGIN1_MANAGER (ret);
5047f6bf 9940 else
9941 return NULL;
9942}
9943
9944/**
1aa981f7 9945 * logind_login1_manager_proxy_new_for_bus_sync:
5047f6bf 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
9952 *
1aa981f7 9953 * Like logind_login1_manager_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection.
5047f6bf 9954 *
9955 * The calling thread is blocked until a reply is received.
9956 *
1aa981f7 9957 * See logind_login1_manager_proxy_new_for_bus() for the asynchronous version of this constructor.
5047f6bf 9958 *
1aa981f7 9959 * Returns: (transfer full) (type logindLogin1ManagerProxy): The constructed proxy object or %NULL if @error is set.
5047f6bf 9960 */
1aa981f7 9961logindLogin1Manager *
9962logind_login1_manager_proxy_new_for_bus_sync (
5047f6bf 9963 GBusType bus_type,
9964 GDBusProxyFlags flags,
9965 const gchar *name,
9966 const gchar *object_path,
9967 GCancellable *cancellable,
9968 GError **error)
9969{
9970 GInitable *ret;
1aa981f7 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);
5047f6bf 9972 if (ret != NULL)
1aa981f7 9973 return LOGIND_LOGIN1_MANAGER (ret);
5047f6bf 9974 else
9975 return NULL;
9976}
9977
9978
9979/* ------------------------------------------------------------------------ */
9980
9981/**
1aa981f7 9982 * logindLogin1ManagerSkeleton:
5047f6bf 9983 *
1aa981f7 9984 * The #logindLogin1ManagerSkeleton structure contains only private data and should only be accessed using the provided API.
5047f6bf 9985 */
9986
9987/**
1aa981f7 9988 * logindLogin1ManagerSkeletonClass:
5047f6bf 9989 * @parent_class: The parent class.
9990 *
1aa981f7 9991 * Class structure for #logindLogin1ManagerSkeleton.
5047f6bf 9992 */
9993
1aa981f7 9994struct _logindLogin1ManagerSkeletonPrivate
5047f6bf 9995{
9996 GValue *properties;
9997 GList *changed_properties;
9998 GSource *changed_properties_idle_source;
9999 GMainContext *context;
10000 GMutex lock;
10001};
10002
10003static void
1aa981f7 10004_logind_login1_manager_skeleton_handle_method_call (
5047f6bf 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)
10013{
1aa981f7 10014 logindLogin1ManagerSkeleton *skeleton = LOGIND_LOGIN1_MANAGER_SKELETON (user_data);
5047f6bf 10015 _ExtendedGDBusMethodInfo *info;
10016 GVariantIter iter;
10017 GVariant *child;
10018 GValue *paramv;
10019 guint num_params;
10020 guint num_extra;
10021 guint n;
10022 guint signal_id;
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);
10028 n = 0;
1aa981f7 10029 g_value_init (&paramv[n], LOGIND_TYPE_LOGIN1_MANAGER);
5047f6bf 10030 g_value_set_object (&paramv[n++], skeleton);
10031 g_value_init (&paramv[n], G_TYPE_DBUS_METHOD_INVOCATION);
10032 g_value_set_object (&paramv[n++], invocation);
10033 if (info->pass_fdlist)
10034 {
10035#ifdef G_OS_UNIX
10036 g_value_init (&paramv[n], G_TYPE_UNIX_FD_LIST);
10037 g_value_set_object (&paramv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation)));
10038#else
10039 g_assert_not_reached ();
10040#endif
10041 }
10042 g_variant_iter_init (&iter, parameters);
10043 while ((child = g_variant_iter_next_value (&iter)) != NULL)
10044 {
10045 _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra];
10046 if (arg_info->use_gvariant)
10047 {
10048 g_value_init (&paramv[n], G_TYPE_VARIANT);
10049 g_value_set_variant (&paramv[n], child);
10050 n++;
10051 }
10052 else
10053 g_dbus_gvariant_to_gvalue (child, &paramv[n++]);
10054 g_variant_unref (child);
10055 }
1aa981f7 10056 signal_id = g_signal_lookup (info->signal_name, LOGIND_TYPE_LOGIN1_MANAGER);
5047f6bf 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 (&paramv[n]);
10064 g_free (paramv);
10065}
10066
10067static GVariant *
1aa981f7 10068_logind_login1_manager_skeleton_handle_get_property (
5047f6bf 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,
10074 GError **error,
10075 gpointer user_data)
10076{
1aa981f7 10077 logindLogin1ManagerSkeleton *skeleton = LOGIND_LOGIN1_MANAGER_SKELETON (user_data);
5047f6bf 10078 GValue value = G_VALUE_INIT;
10079 GParamSpec *pspec;
10080 _ExtendedGDBusPropertyInfo *info;
10081 GVariant *ret;
10082 ret = NULL;
1aa981f7 10083 info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_logind_login1_manager_interface_info.parent_struct, property_name);
5047f6bf 10084 g_assert (info != NULL);
10085 pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name);
10086 if (pspec == NULL)
10087 {
10088 g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name);
10089 }
10090 else
10091 {
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);
10096 }
10097 return ret;
10098}
10099
10100static gboolean
1aa981f7 10101_logind_login1_manager_skeleton_handle_set_property (
5047f6bf 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,
10107 GVariant *variant,
10108 GError **error,
10109 gpointer user_data)
10110{
1aa981f7 10111 logindLogin1ManagerSkeleton *skeleton = LOGIND_LOGIN1_MANAGER_SKELETON (user_data);
5047f6bf 10112 GValue value = G_VALUE_INIT;
10113 GParamSpec *pspec;
10114 _ExtendedGDBusPropertyInfo *info;
10115 gboolean ret;
10116 ret = FALSE;
1aa981f7 10117 info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_logind_login1_manager_interface_info.parent_struct, property_name);
5047f6bf 10118 g_assert (info != NULL);
10119 pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name);
10120 if (pspec == NULL)
10121 {
10122 g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name);
10123 }
10124 else
10125 {
10126 if (info->use_gvariant)
10127 g_value_set_variant (&value, variant);
10128 else
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);
10132 ret = TRUE;
10133 }
10134 return ret;
10135}
10136
1aa981f7 10137static const GDBusInterfaceVTable _logind_login1_manager_skeleton_vtable =
5047f6bf 10138{
1aa981f7 10139 _logind_login1_manager_skeleton_handle_method_call,
10140 _logind_login1_manager_skeleton_handle_get_property,
10141 _logind_login1_manager_skeleton_handle_set_property,
5047f6bf 10142 {NULL}
10143};
10144
10145static GDBusInterfaceInfo *
1aa981f7 10146logind_login1_manager_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED)
5047f6bf 10147{
1aa981f7 10148 return logind_login1_manager_interface_info ();
5047f6bf 10149}
10150
10151static GDBusInterfaceVTable *
1aa981f7 10152logind_login1_manager_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED)
5047f6bf 10153{
1aa981f7 10154 return (GDBusInterfaceVTable *) &_logind_login1_manager_skeleton_vtable;
5047f6bf 10155}
10156
10157static GVariant *
1aa981f7 10158logind_login1_manager_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton)
5047f6bf 10159{
1aa981f7 10160 logindLogin1ManagerSkeleton *skeleton = LOGIND_LOGIN1_MANAGER_SKELETON (_skeleton);
5047f6bf 10161
10162 GVariantBuilder builder;
10163 guint n;
10164 g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}"));
1aa981f7 10165 if (_logind_login1_manager_interface_info.parent_struct.properties == NULL)
5047f6bf 10166 goto out;
1aa981f7 10167 for (n = 0; _logind_login1_manager_interface_info.parent_struct.properties[n] != NULL; n++)
5047f6bf 10168 {
1aa981f7 10169 GDBusPropertyInfo *info = _logind_login1_manager_interface_info.parent_struct.properties[n];
5047f6bf 10170 if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE)
10171 {
10172 GVariant *value;
1aa981f7 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);
5047f6bf 10174 if (value != NULL)
10175 {
10176 g_variant_take_ref (value);
10177 g_variant_builder_add (&builder, "{sv}", info->name, value);
10178 g_variant_unref (value);
10179 }
10180 }
10181 }
10182out:
10183 return g_variant_builder_end (&builder);
10184}
10185
1aa981f7 10186static gboolean _logind_login1_manager_emit_changed (gpointer user_data);
5047f6bf 10187
10188static void
1aa981f7 10189logind_login1_manager_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton)
5047f6bf 10190{
1aa981f7 10191 logindLogin1ManagerSkeleton *skeleton = LOGIND_LOGIN1_MANAGER_SKELETON (_skeleton);
5047f6bf 10192 gboolean emit_changed = FALSE;
10193
10194 g_mutex_lock (&skeleton->priv->lock);
10195 if (skeleton->priv->changed_properties_idle_source != NULL)
10196 {
10197 g_source_destroy (skeleton->priv->changed_properties_idle_source);
10198 skeleton->priv->changed_properties_idle_source = NULL;
10199 emit_changed = TRUE;
10200 }
10201 g_mutex_unlock (&skeleton->priv->lock);
10202
10203 if (emit_changed)
1aa981f7 10204 _logind_login1_manager_emit_changed (skeleton);
5047f6bf 10205}
10206
10207static void
1aa981f7 10208_logind_login1_manager_on_signal_session_new (
10209 logindLogin1Manager *object,
5047f6bf 10210 const gchar *arg_unnamed_arg0,
10211 const gchar *arg_unnamed_arg1)
10212{
1aa981f7 10213 logindLogin1ManagerSkeleton *skeleton = LOGIND_LOGIN1_MANAGER_SKELETON (object);
5047f6bf 10214
10215 GList *connections, *l;
10216 GVariant *signal_variant;
10217 connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
10218
10219 signal_variant = g_variant_ref_sink (g_variant_new ("(so)",
10220 arg_unnamed_arg0,
10221 arg_unnamed_arg1));
10222 for (l = connections; l != NULL; l = l->next)
10223 {
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);
10228 }
10229 g_variant_unref (signal_variant);
10230 g_list_free_full (connections, g_object_unref);
10231}
10232
10233static void
1aa981f7 10234_logind_login1_manager_on_signal_session_removed (
10235 logindLogin1Manager *object,
5047f6bf 10236 const gchar *arg_unnamed_arg0,
10237 const gchar *arg_unnamed_arg1)
10238{
1aa981f7 10239 logindLogin1ManagerSkeleton *skeleton = LOGIND_LOGIN1_MANAGER_SKELETON (object);
5047f6bf 10240
10241 GList *connections, *l;
10242 GVariant *signal_variant;
10243 connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
10244
10245 signal_variant = g_variant_ref_sink (g_variant_new ("(so)",
10246 arg_unnamed_arg0,
10247 arg_unnamed_arg1));
10248 for (l = connections; l != NULL; l = l->next)
10249 {
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);
10254 }
10255 g_variant_unref (signal_variant);
10256 g_list_free_full (connections, g_object_unref);
10257}
10258
10259static void
1aa981f7 10260_logind_login1_manager_on_signal_user_new (
10261 logindLogin1Manager *object,
5047f6bf 10262 guint arg_unnamed_arg0,
10263 const gchar *arg_unnamed_arg1)
10264{
1aa981f7 10265 logindLogin1ManagerSkeleton *skeleton = LOGIND_LOGIN1_MANAGER_SKELETON (object);
5047f6bf 10266
10267 GList *connections, *l;
10268 GVariant *signal_variant;
10269 connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
10270
10271 signal_variant = g_variant_ref_sink (g_variant_new ("(uo)",
10272 arg_unnamed_arg0,
10273 arg_unnamed_arg1));
10274 for (l = connections; l != NULL; l = l->next)
10275 {
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);
10280 }
10281 g_variant_unref (signal_variant);
10282 g_list_free_full (connections, g_object_unref);
10283}
10284
10285static void
1aa981f7 10286_logind_login1_manager_on_signal_user_removed (
10287 logindLogin1Manager *object,
5047f6bf 10288 guint arg_unnamed_arg0,
10289 const gchar *arg_unnamed_arg1)
10290{
1aa981f7 10291 logindLogin1ManagerSkeleton *skeleton = LOGIND_LOGIN1_MANAGER_SKELETON (object);
5047f6bf 10292
10293 GList *connections, *l;
10294 GVariant *signal_variant;
10295 connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
10296
10297 signal_variant = g_variant_ref_sink (g_variant_new ("(uo)",
10298 arg_unnamed_arg0,
10299 arg_unnamed_arg1));
10300 for (l = connections; l != NULL; l = l->next)
10301 {
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);
10306 }
10307 g_variant_unref (signal_variant);
10308 g_list_free_full (connections, g_object_unref);
10309}
10310
10311static void
1aa981f7 10312_logind_login1_manager_on_signal_seat_new (
10313 logindLogin1Manager *object,
5047f6bf 10314 const gchar *arg_unnamed_arg0,
10315 const gchar *arg_unnamed_arg1)
10316{
1aa981f7 10317 logindLogin1ManagerSkeleton *skeleton = LOGIND_LOGIN1_MANAGER_SKELETON (object);
5047f6bf 10318
10319 GList *connections, *l;
10320 GVariant *signal_variant;
10321 connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
10322
10323 signal_variant = g_variant_ref_sink (g_variant_new ("(so)",
10324 arg_unnamed_arg0,
10325 arg_unnamed_arg1));
10326 for (l = connections; l != NULL; l = l->next)
10327 {
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);
10332 }
10333 g_variant_unref (signal_variant);
10334 g_list_free_full (connections, g_object_unref);
10335}
10336
10337static void
1aa981f7 10338_logind_login1_manager_on_signal_seat_removed (
10339 logindLogin1Manager *object,
5047f6bf 10340 const gchar *arg_unnamed_arg0,
10341 const gchar *arg_unnamed_arg1)
10342{
1aa981f7 10343 logindLogin1ManagerSkeleton *skeleton = LOGIND_LOGIN1_MANAGER_SKELETON (object);
5047f6bf 10344
10345 GList *connections, *l;
10346 GVariant *signal_variant;
10347 connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
10348
10349 signal_variant = g_variant_ref_sink (g_variant_new ("(so)",
10350 arg_unnamed_arg0,
10351 arg_unnamed_arg1));
10352 for (l = connections; l != NULL; l = l->next)
10353 {
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);
10358 }
10359 g_variant_unref (signal_variant);
10360 g_list_free_full (connections, g_object_unref);
10361}
10362
10363static void
1aa981f7 10364_logind_login1_manager_on_signal_prepare_for_shutdown (
10365 logindLogin1Manager *object,
5047f6bf 10366 gboolean arg_unnamed_arg0)
10367{
1aa981f7 10368 logindLogin1ManagerSkeleton *skeleton = LOGIND_LOGIN1_MANAGER_SKELETON (object);
5047f6bf 10369
10370 GList *connections, *l;
10371 GVariant *signal_variant;
10372 connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
10373
10374 signal_variant = g_variant_ref_sink (g_variant_new ("(b)",
10375 arg_unnamed_arg0));
10376 for (l = connections; l != NULL; l = l->next)
10377 {
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);
10382 }
10383 g_variant_unref (signal_variant);
10384 g_list_free_full (connections, g_object_unref);
10385}
10386
10387static void
1aa981f7 10388_logind_login1_manager_on_signal_prepare_for_sleep (
10389 logindLogin1Manager *object,
5047f6bf 10390 gboolean arg_unnamed_arg0)
10391{
1aa981f7 10392 logindLogin1ManagerSkeleton *skeleton = LOGIND_LOGIN1_MANAGER_SKELETON (object);
5047f6bf 10393
10394 GList *connections, *l;
10395 GVariant *signal_variant;
10396 connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
10397
10398 signal_variant = g_variant_ref_sink (g_variant_new ("(b)",
10399 arg_unnamed_arg0));
10400 for (l = connections; l != NULL; l = l->next)
10401 {
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);
10406 }
10407 g_variant_unref (signal_variant);
10408 g_list_free_full (connections, g_object_unref);
10409}
10410
1aa981f7 10411static void logind_login1_manager_skeleton_iface_init (logindLogin1ManagerIface *iface);
5047f6bf 10412#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
1aa981f7 10413G_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));
5047f6bf 10416
10417#else
1aa981f7 10418G_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));
5047f6bf 10420
10421#endif
10422static void
1aa981f7 10423logind_login1_manager_skeleton_finalize (GObject *object)
5047f6bf 10424{
1aa981f7 10425 logindLogin1ManagerSkeleton *skeleton = LOGIND_LOGIN1_MANAGER_SKELETON (object);
5047f6bf 10426 guint n;
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);
1aa981f7 10435 G_OBJECT_CLASS (logind_login1_manager_skeleton_parent_class)->finalize (object);
5047f6bf 10436}
10437
10438static void
1aa981f7 10439logind_login1_manager_skeleton_get_property (GObject *object,
5047f6bf 10440 guint prop_id,
10441 GValue *value,
10442 GParamSpec *pspec G_GNUC_UNUSED)
10443{
1aa981f7 10444 logindLogin1ManagerSkeleton *skeleton = LOGIND_LOGIN1_MANAGER_SKELETON (object);
5047f6bf 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);
10449}
10450
10451static gboolean
1aa981f7 10452_logind_login1_manager_emit_changed (gpointer user_data)
5047f6bf 10453{
1aa981f7 10454 logindLogin1ManagerSkeleton *skeleton = LOGIND_LOGIN1_MANAGER_SKELETON (user_data);
5047f6bf 10455 GList *l;
10456 GVariantBuilder builder;
10457 GVariantBuilder invalidated_builder;
10458 guint num_changes;
10459
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)
10464 {
10465 ChangedProperty *cp = l->data;
10466 GVariant *variant;
10467 const GValue *cur_value;
10468
10469 cur_value = &skeleton->priv->properties[cp->prop_id - 1];
10470 if (!_g_value_equal (cur_value, &cp->orig_value))
10471 {
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);
10475 num_changes++;
10476 }
10477 }
10478 if (num_changes > 0)
10479 {
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)
10486 {
10487 GDBusConnection *connection = ll->data;
10488
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",
10493 signal_variant,
10494 NULL);
10495 }
10496 g_variant_unref (signal_variant);
10497 g_list_free_full (connections, g_object_unref);
10498 }
10499 else
10500 {
10501 g_variant_builder_clear (&builder);
10502 g_variant_builder_clear (&invalidated_builder);
10503 }
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);
10508 return FALSE;
10509}
10510
10511static void
1aa981f7 10512_logind_login1_manager_schedule_emit_changed (logindLogin1ManagerSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value)
5047f6bf 10513{
10514 ChangedProperty *cp;
10515 GList *l;
10516 cp = NULL;
10517 for (l = skeleton->priv->changed_properties; l != NULL; l = l->next)
10518 {
10519 ChangedProperty *i_cp = l->data;
10520 if (i_cp->info == info)
10521 {
10522 cp = i_cp;
10523 break;
10524 }
10525 }
10526 if (cp == NULL)
10527 {
10528 cp = g_new0 (ChangedProperty, 1);
10529 cp->prop_id = prop_id;
10530 cp->info = info;
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);
10534 }
10535}
10536
10537static void
1aa981f7 10538logind_login1_manager_skeleton_notify (GObject *object,
5047f6bf 10539 GParamSpec *pspec G_GNUC_UNUSED)
10540{
1aa981f7 10541 logindLogin1ManagerSkeleton *skeleton = LOGIND_LOGIN1_MANAGER_SKELETON (object);
5047f6bf 10542 g_mutex_lock (&skeleton->priv->lock);
10543 if (skeleton->priv->changed_properties != NULL &&
10544 skeleton->priv->changed_properties_idle_source == NULL)
10545 {
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);
1aa981f7 10548 g_source_set_callback (skeleton->priv->changed_properties_idle_source, _logind_login1_manager_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref);
5047f6bf 10549 g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context);
10550 g_source_unref (skeleton->priv->changed_properties_idle_source);
10551 }
10552 g_mutex_unlock (&skeleton->priv->lock);
10553}
10554
10555static void
1aa981f7 10556logind_login1_manager_skeleton_set_property (GObject *object,
5047f6bf 10557 guint prop_id,
10558 const GValue *value,
10559 GParamSpec *pspec)
10560{
1aa981f7 10561 logindLogin1ManagerSkeleton *skeleton = LOGIND_LOGIN1_MANAGER_SKELETON (object);
5047f6bf 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]))
10566 {
10567 if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL)
1aa981f7 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]);
5047f6bf 10569 g_value_copy (value, &skeleton->priv->properties[prop_id - 1]);
10570 g_object_notify_by_pspec (object, pspec);
10571 }
10572 g_mutex_unlock (&skeleton->priv->lock);
10573 g_object_thaw_notify (object);
10574}
10575
10576static void
1aa981f7 10577logind_login1_manager_skeleton_init (logindLogin1ManagerSkeleton *skeleton)
5047f6bf 10578{
10579#if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
1aa981f7 10580 skeleton->priv = logind_login1_manager_skeleton_get_instance_private (skeleton);
5047f6bf 10581#else
1aa981f7 10582 skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, LOGIND_TYPE_LOGIN1_MANAGER_SKELETON, logindLogin1ManagerSkeletonPrivate);
5047f6bf 10583#endif
10584
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);
10606}
10607
10608static guint
1aa981f7 10609logind_login1_manager_skeleton_get_nauto_vts (logindLogin1Manager *object)
5047f6bf 10610{
1aa981f7 10611 logindLogin1ManagerSkeleton *skeleton = LOGIND_LOGIN1_MANAGER_SKELETON (object);
5047f6bf 10612 guint value;
10613 g_mutex_lock (&skeleton->priv->lock);
10614 value = g_value_get_uint (&(skeleton->priv->properties[0]));
10615 g_mutex_unlock (&skeleton->priv->lock);
10616 return value;
10617}
10618
10619static const gchar *const *
1aa981f7 10620logind_login1_manager_skeleton_get_kill_only_users (logindLogin1Manager *object)
5047f6bf 10621{
1aa981f7 10622 logindLogin1ManagerSkeleton *skeleton = LOGIND_LOGIN1_MANAGER_SKELETON (object);
5047f6bf 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);
10627 return value;
10628}
10629
10630static const gchar *const *
1aa981f7 10631logind_login1_manager_skeleton_get_kill_exclude_users (logindLogin1Manager *object)
5047f6bf 10632{
1aa981f7 10633 logindLogin1ManagerSkeleton *skeleton = LOGIND_LOGIN1_MANAGER_SKELETON (object);
5047f6bf 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);
10638 return value;
10639}
10640
10641static gboolean
1aa981f7 10642logind_login1_manager_skeleton_get_kill_user_processes (logindLogin1Manager *object)
5047f6bf 10643{
1aa981f7 10644 logindLogin1ManagerSkeleton *skeleton = LOGIND_LOGIN1_MANAGER_SKELETON (object);
5047f6bf 10645 gboolean value;
10646 g_mutex_lock (&skeleton->priv->lock);
10647 value = g_value_get_boolean (&(skeleton->priv->properties[3]));
10648 g_mutex_unlock (&skeleton->priv->lock);
10649 return value;
10650}
10651
10652static gboolean
1aa981f7 10653logind_login1_manager_skeleton_get_idle_hint (logindLogin1Manager *object)
5047f6bf 10654{
1aa981f7 10655 logindLogin1ManagerSkeleton *skeleton = LOGIND_LOGIN1_MANAGER_SKELETON (object);
5047f6bf 10656 gboolean value;
10657 g_mutex_lock (&skeleton->priv->lock);
10658 value = g_value_get_boolean (&(skeleton->priv->properties[4]));
10659 g_mutex_unlock (&skeleton->priv->lock);
10660 return value;
10661}
10662
10663static guint64
1aa981f7 10664logind_login1_manager_skeleton_get_idle_since_hint (logindLogin1Manager *object)
5047f6bf 10665{
1aa981f7 10666 logindLogin1ManagerSkeleton *skeleton = LOGIND_LOGIN1_MANAGER_SKELETON (object);
5047f6bf 10667 guint64 value;
10668 g_mutex_lock (&skeleton->priv->lock);
10669 value = g_value_get_uint64 (&(skeleton->priv->properties[5]));
10670 g_mutex_unlock (&skeleton->priv->lock);
10671 return value;
10672}
10673
10674static guint64
1aa981f7 10675logind_login1_manager_skeleton_get_idle_since_hint_monotonic (logindLogin1Manager *object)
5047f6bf 10676{
1aa981f7 10677 logindLogin1ManagerSkeleton *skeleton = LOGIND_LOGIN1_MANAGER_SKELETON (object);
5047f6bf 10678 guint64 value;
10679 g_mutex_lock (&skeleton->priv->lock);
10680 value = g_value_get_uint64 (&(skeleton->priv->properties[6]));
10681 g_mutex_unlock (&skeleton->priv->lock);
10682 return value;
10683}
10684
10685static const gchar *
1aa981f7 10686logind_login1_manager_skeleton_get_block_inhibited (logindLogin1Manager *object)
5047f6bf 10687{
1aa981f7 10688 logindLogin1ManagerSkeleton *skeleton = LOGIND_LOGIN1_MANAGER_SKELETON (object);
5047f6bf 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);
10693 return value;
10694}
10695
10696static const gchar *
1aa981f7 10697logind_login1_manager_skeleton_get_delay_inhibited (logindLogin1Manager *object)
5047f6bf 10698{
1aa981f7 10699 logindLogin1ManagerSkeleton *skeleton = LOGIND_LOGIN1_MANAGER_SKELETON (object);
5047f6bf 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);
10704 return value;
10705}
10706
10707static guint64
1aa981f7 10708logind_login1_manager_skeleton_get_inhibit_delay_max_usec (logindLogin1Manager *object)
5047f6bf 10709{
1aa981f7 10710 logindLogin1ManagerSkeleton *skeleton = LOGIND_LOGIN1_MANAGER_SKELETON (object);
5047f6bf 10711 guint64 value;
10712 g_mutex_lock (&skeleton->priv->lock);
10713 value = g_value_get_uint64 (&(skeleton->priv->properties[9]));
10714 g_mutex_unlock (&skeleton->priv->lock);
10715 return value;
10716}
10717
10718static const gchar *
1aa981f7 10719logind_login1_manager_skeleton_get_handle_power_key (logindLogin1Manager *object)
5047f6bf 10720{
1aa981f7 10721 logindLogin1ManagerSkeleton *skeleton = LOGIND_LOGIN1_MANAGER_SKELETON (object);
5047f6bf 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);
10726 return value;
10727}
10728
10729static const gchar *
1aa981f7 10730logind_login1_manager_skeleton_get_handle_suspend_key (logindLogin1Manager *object)
5047f6bf 10731{
1aa981f7 10732 logindLogin1ManagerSkeleton *skeleton = LOGIND_LOGIN1_MANAGER_SKELETON (object);
5047f6bf 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);
10737 return value;
10738}
10739
10740static const gchar *
1aa981f7 10741logind_login1_manager_skeleton_get_handle_hibernate_key (logindLogin1Manager *object)
5047f6bf 10742{
1aa981f7 10743 logindLogin1ManagerSkeleton *skeleton = LOGIND_LOGIN1_MANAGER_SKELETON (object);
5047f6bf 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);
10748 return value;
10749}
10750
10751static const gchar *
1aa981f7 10752logind_login1_manager_skeleton_get_handle_lid_switch (logindLogin1Manager *object)
5047f6bf 10753{
1aa981f7 10754 logindLogin1ManagerSkeleton *skeleton = LOGIND_LOGIN1_MANAGER_SKELETON (object);
5047f6bf 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);
10759 return value;
10760}
10761
10762static const gchar *
1aa981f7 10763logind_login1_manager_skeleton_get_idle_action (logindLogin1Manager *object)
5047f6bf 10764{
1aa981f7 10765 logindLogin1ManagerSkeleton *skeleton = LOGIND_LOGIN1_MANAGER_SKELETON (object);
5047f6bf 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);
10770 return value;
10771}
10772
10773static guint64
1aa981f7 10774logind_login1_manager_skeleton_get_idle_action_usec (logindLogin1Manager *object)
5047f6bf 10775{
1aa981f7 10776 logindLogin1ManagerSkeleton *skeleton = LOGIND_LOGIN1_MANAGER_SKELETON (object);
5047f6bf 10777 guint64 value;
10778 g_mutex_lock (&skeleton->priv->lock);
10779 value = g_value_get_uint64 (&(skeleton->priv->properties[15]));
10780 g_mutex_unlock (&skeleton->priv->lock);
10781 return value;
10782}
10783
10784static gboolean
1aa981f7 10785logind_login1_manager_skeleton_get_preparing_for_shutdown (logindLogin1Manager *object)
5047f6bf 10786{
1aa981f7 10787 logindLogin1ManagerSkeleton *skeleton = LOGIND_LOGIN1_MANAGER_SKELETON (object);
5047f6bf 10788 gboolean value;
10789 g_mutex_lock (&skeleton->priv->lock);
10790 value = g_value_get_boolean (&(skeleton->priv->properties[16]));
10791 g_mutex_unlock (&skeleton->priv->lock);
10792 return value;
10793}
10794
10795static gboolean
1aa981f7 10796logind_login1_manager_skeleton_get_preparing_for_sleep (logindLogin1Manager *object)
5047f6bf 10797{
1aa981f7 10798 logindLogin1ManagerSkeleton *skeleton = LOGIND_LOGIN1_MANAGER_SKELETON (object);
5047f6bf 10799 gboolean value;
10800 g_mutex_lock (&skeleton->priv->lock);
10801 value = g_value_get_boolean (&(skeleton->priv->properties[17]));
10802 g_mutex_unlock (&skeleton->priv->lock);
10803 return value;
10804}
10805
10806static void
1aa981f7 10807logind_login1_manager_skeleton_class_init (logindLogin1ManagerSkeletonClass *klass)
5047f6bf 10808{
10809 GObjectClass *gobject_class;
10810 GDBusInterfaceSkeletonClass *skeleton_class;
10811
10812 gobject_class = G_OBJECT_CLASS (klass);
1aa981f7 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;
5047f6bf 10817
10818
1aa981f7 10819 logind_login1_manager_override_properties (gobject_class, 1);
5047f6bf 10820
10821 skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass);
1aa981f7 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;
5047f6bf 10826
10827#if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38
1aa981f7 10828 g_type_class_add_private (klass, sizeof (logindLogin1ManagerSkeletonPrivate));
5047f6bf 10829#endif
10830}
10831
10832static void
1aa981f7 10833logind_login1_manager_skeleton_iface_init (logindLogin1ManagerIface *iface)
10834{
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;
10861}
10862
10863/**
10864 * logind_login1_manager_skeleton_new:
5047f6bf 10865 *
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>.
10867 *
1aa981f7 10868 * Returns: (transfer full) (type logindLogin1ManagerSkeleton): The skeleton object.
5047f6bf 10869 */
1aa981f7 10870logindLogin1Manager *
10871logind_login1_manager_skeleton_new (void)
5047f6bf 10872{
1aa981f7 10873 return LOGIND_LOGIN1_MANAGER (g_object_new (LOGIND_TYPE_LOGIN1_MANAGER_SKELETON, NULL));
5047f6bf 10874}
10875
1aa981f7 10876/* ------------------------------------------------------------------------
10877 * Code for Object, ObjectProxy and ObjectSkeleton
10878 * ------------------------------------------------------------------------
10879 */
10880
10881/**
10882 * SECTION:logindObject
10883 * @title: logindObject
10884 * @short_description: Specialized GDBusObject types
10885 *
10886 * This section contains the #logindObject, #logindObjectProxy, and #logindObjectSkeleton types which make it easier to work with objects implementing generated types for D-Bus interfaces.
10887 */
10888
10889/**
10890 * logindObject:
10891 *
10892 * The #logindObject type is a specialized container of interfaces.
10893 */
10894
10895/**
10896 * logindObjectIface:
10897 * @parent_iface: The parent interface.
10898 *
10899 * Virtual table for the #logindObject interface.
10900 */
10901
10902typedef logindObjectIface logindObjectInterface;
10903G_DEFINE_INTERFACE_WITH_CODE (logindObject, logind_object, G_TYPE_OBJECT, g_type_interface_add_prerequisite (g_define_type_id, G_TYPE_DBUS_OBJECT));
10904
10905static void
10906logind_object_default_init (logindObjectIface *iface)
10907{
10908 /**
10909 * logindObject:login1-manager:
10910 *
10911 * The #logindLogin1Manager instance corresponding to the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-login1-Manager.top_of_page">org.freedesktop.login1.Manager</link>, if any.
10912 *
10913 * Connect to the #GObject::notify signal to get informed of property changes.
10914 */
10915 g_object_interface_install_property (iface, g_param_spec_object ("login1-manager", "login1-manager", "login1-manager", LOGIND_TYPE_LOGIN1_MANAGER, G_PARAM_READWRITE|G_PARAM_STATIC_STRINGS));
10916
10917}
10918
10919/**
10920 * logind_object_get_login1_manager:
10921 * @object: A #logindObject.
10922 *
10923 * Gets the #logindLogin1Manager instance for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-login1-Manager.top_of_page">org.freedesktop.login1.Manager</link> on @object, if any.
10924 *
10925 * Returns: (transfer full): A #logindLogin1Manager that must be freed with g_object_unref() or %NULL if @object does not implement the interface.
10926 */
10927logindLogin1Manager *logind_object_get_login1_manager (logindObject *object)
10928{
10929 GDBusInterface *ret;
10930 ret = g_dbus_object_get_interface (G_DBUS_OBJECT (object), "org.freedesktop.login1.Manager");
10931 if (ret == NULL)
10932 return NULL;
10933 return LOGIND_LOGIN1_MANAGER (ret);
10934}
10935
10936
10937/**
10938 * logind_object_peek_login1_manager: (skip)
10939 * @object: A #logindObject.
10940 *
10941 * Like logind_object_get_login1_manager() but doesn't increase the reference count on the returned object.
10942 *
10943 * <warning>It is not safe to use the returned object if you are on another thread than the one where the #GDBusObjectManagerClient or #GDBusObjectManagerServer for @object is running.</warning>
10944 *
10945 * Returns: (transfer none): A #logindLogin1Manager or %NULL if @object does not implement the interface. Do not free the returned object, it is owned by @object.
10946 */
10947logindLogin1Manager *logind_object_peek_login1_manager (logindObject *object)
10948{
10949 GDBusInterface *ret;
10950 ret = g_dbus_object_get_interface (G_DBUS_OBJECT (object), "org.freedesktop.login1.Manager");
10951 if (ret == NULL)
10952 return NULL;
10953 g_object_unref (ret);
10954 return LOGIND_LOGIN1_MANAGER (ret);
10955}
10956
10957
10958static void
10959logind_object_notify (GDBusObject *object, GDBusInterface *interface)
10960{
10961 _ExtendedGDBusInterfaceInfo *info = (_ExtendedGDBusInterfaceInfo *) g_dbus_interface_get_info (interface);
10962 /* info can be NULL if the other end is using a D-Bus interface we don't know
10963 * anything about, for example old generated code in this process talking to
10964 * newer generated code in the other process. */
10965 if (info != NULL)
10966 g_object_notify (G_OBJECT (object), info->hyphen_name);
10967}
10968
10969/**
10970 * logindObjectProxy:
10971 *
10972 * The #logindObjectProxy structure contains only private data and should only be accessed using the provided API.
10973 */
10974
10975/**
10976 * logindObjectProxyClass:
10977 * @parent_class: The parent class.
10978 *
10979 * Class structure for #logindObjectProxy.
10980 */
10981
10982static void
10983logind_object_proxy__logind_object_iface_init (logindObjectIface *iface G_GNUC_UNUSED)
10984{
10985}
10986
10987static void
10988logind_object_proxy__g_dbus_object_iface_init (GDBusObjectIface *iface)
10989{
10990 iface->interface_added = logind_object_notify;
10991 iface->interface_removed = logind_object_notify;
10992}
10993
10994
10995G_DEFINE_TYPE_WITH_CODE (logindObjectProxy, logind_object_proxy, G_TYPE_DBUS_OBJECT_PROXY,
10996 G_IMPLEMENT_INTERFACE (LOGIND_TYPE_OBJECT, logind_object_proxy__logind_object_iface_init)
10997 G_IMPLEMENT_INTERFACE (G_TYPE_DBUS_OBJECT, logind_object_proxy__g_dbus_object_iface_init));
10998
10999static void
11000logind_object_proxy_init (logindObjectProxy *object G_GNUC_UNUSED)
11001{
11002}
11003
11004static void
11005logind_object_proxy_set_property (GObject *gobject,
11006 guint prop_id,
11007 const GValue *value G_GNUC_UNUSED,
11008 GParamSpec *pspec)
11009{
11010 G_OBJECT_WARN_INVALID_PROPERTY_ID (gobject, prop_id, pspec);
11011}
11012
11013static void
11014logind_object_proxy_get_property (GObject *gobject,
11015 guint prop_id,
11016 GValue *value,
11017 GParamSpec *pspec)
11018{
11019 logindObjectProxy *object = LOGIND_OBJECT_PROXY (gobject);
11020 GDBusInterface *interface;
11021
11022 switch (prop_id)
11023 {
11024 case 1:
11025 interface = g_dbus_object_get_interface (G_DBUS_OBJECT (object), "org.freedesktop.login1.Manager");
11026 g_value_take_object (value, interface);
11027 break;
11028
11029 default:
11030 G_OBJECT_WARN_INVALID_PROPERTY_ID (gobject, prop_id, pspec);
11031 break;
11032 }
11033}
11034
11035static void
11036logind_object_proxy_class_init (logindObjectProxyClass *klass)
11037{
11038 GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
11039
11040 gobject_class->set_property = logind_object_proxy_set_property;
11041 gobject_class->get_property = logind_object_proxy_get_property;
11042
11043 g_object_class_override_property (gobject_class, 1, "login1-manager");
11044}
11045
11046/**
11047 * logind_object_proxy_new:
11048 * @connection: A #GDBusConnection.
11049 * @object_path: An object path.
11050 *
11051 * Creates a new proxy object.
11052 *
11053 * Returns: (transfer full): The proxy object.
11054 */
11055logindObjectProxy *
11056logind_object_proxy_new (GDBusConnection *connection,
11057 const gchar *object_path)
11058{
11059 g_return_val_if_fail (G_IS_DBUS_CONNECTION (connection), NULL);
11060 g_return_val_if_fail (g_variant_is_object_path (object_path), NULL);
11061 return LOGIND_OBJECT_PROXY (g_object_new (LOGIND_TYPE_OBJECT_PROXY, "g-connection", connection, "g-object-path", object_path, NULL));
11062}
11063
11064/**
11065 * logindObjectSkeleton:
11066 *
11067 * The #logindObjectSkeleton structure contains only private data and should only be accessed using the provided API.
11068 */
11069
11070/**
11071 * logindObjectSkeletonClass:
11072 * @parent_class: The parent class.
11073 *
11074 * Class structure for #logindObjectSkeleton.
11075 */
11076
11077static void
11078logind_object_skeleton__logind_object_iface_init (logindObjectIface *iface G_GNUC_UNUSED)
11079{
11080}
11081
11082
11083static void
11084logind_object_skeleton__g_dbus_object_iface_init (GDBusObjectIface *iface)
11085{
11086 iface->interface_added = logind_object_notify;
11087 iface->interface_removed = logind_object_notify;
11088}
11089
11090G_DEFINE_TYPE_WITH_CODE (logindObjectSkeleton, logind_object_skeleton, G_TYPE_DBUS_OBJECT_SKELETON,
11091 G_IMPLEMENT_INTERFACE (LOGIND_TYPE_OBJECT, logind_object_skeleton__logind_object_iface_init)
11092 G_IMPLEMENT_INTERFACE (G_TYPE_DBUS_OBJECT, logind_object_skeleton__g_dbus_object_iface_init));
11093
11094static void
11095logind_object_skeleton_init (logindObjectSkeleton *object G_GNUC_UNUSED)
11096{
11097}
11098
11099static void
11100logind_object_skeleton_set_property (GObject *gobject,
11101 guint prop_id,
11102 const GValue *value,
11103 GParamSpec *pspec)
11104{
11105 logindObjectSkeleton *object = LOGIND_OBJECT_SKELETON (gobject);
11106 GDBusInterfaceSkeleton *interface;
11107
11108 switch (prop_id)
11109 {
11110 case 1:
11111 interface = g_value_get_object (value);
11112 if (interface != NULL)
11113 {
11114 g_warn_if_fail (LOGIND_IS_LOGIN1_MANAGER (interface));
11115 g_dbus_object_skeleton_add_interface (G_DBUS_OBJECT_SKELETON (object), interface);
11116 }
11117 else
11118 {
11119 g_dbus_object_skeleton_remove_interface_by_name (G_DBUS_OBJECT_SKELETON (object), "org.freedesktop.login1.Manager");
11120 }
11121 break;
11122
11123 default:
11124 G_OBJECT_WARN_INVALID_PROPERTY_ID (gobject, prop_id, pspec);
11125 break;
11126 }
11127}
11128
11129static void
11130logind_object_skeleton_get_property (GObject *gobject,
11131 guint prop_id,
11132 GValue *value,
11133 GParamSpec *pspec)
11134{
11135 logindObjectSkeleton *object = LOGIND_OBJECT_SKELETON (gobject);
11136 GDBusInterface *interface;
11137
11138 switch (prop_id)
11139 {
11140 case 1:
11141 interface = g_dbus_object_get_interface (G_DBUS_OBJECT (object), "org.freedesktop.login1.Manager");
11142 g_value_take_object (value, interface);
11143 break;
11144
11145 default:
11146 G_OBJECT_WARN_INVALID_PROPERTY_ID (gobject, prop_id, pspec);
11147 break;
11148 }
11149}
11150
11151static void
11152logind_object_skeleton_class_init (logindObjectSkeletonClass *klass)
11153{
11154 GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
11155
11156 gobject_class->set_property = logind_object_skeleton_set_property;
11157 gobject_class->get_property = logind_object_skeleton_get_property;
11158
11159 g_object_class_override_property (gobject_class, 1, "login1-manager");
11160}
11161
11162/**
11163 * logind_object_skeleton_new:
11164 * @object_path: An object path.
11165 *
11166 * Creates a new skeleton object.
11167 *
11168 * Returns: (transfer full): The skeleton object.
11169 */
11170logindObjectSkeleton *
11171logind_object_skeleton_new (const gchar *object_path)
11172{
11173 g_return_val_if_fail (g_variant_is_object_path (object_path), NULL);
11174 return LOGIND_OBJECT_SKELETON (g_object_new (LOGIND_TYPE_OBJECT_SKELETON, "g-object-path", object_path, NULL));
11175}
11176
11177/**
11178 * logind_object_skeleton_set_login1_manager:
11179 * @object: A #logindObjectSkeleton.
11180 * @interface_: (allow-none): A #logindLogin1Manager or %NULL to clear the interface.
11181 *
11182 * Sets the #logindLogin1Manager instance for the D-Bus interface <link linkend="gdbus-interface-org-freedesktop-login1-Manager.top_of_page">org.freedesktop.login1.Manager</link> on @object.
11183 */
11184void logind_object_skeleton_set_login1_manager (logindObjectSkeleton *object, logindLogin1Manager *interface_)
11185{
11186 g_object_set (G_OBJECT (object), "login1-manager", interface_, NULL);
11187}
11188
11189
11190/* ------------------------------------------------------------------------
11191 * Code for ObjectManager client
11192 * ------------------------------------------------------------------------
11193 */
11194
11195/**
11196 * SECTION:logindObjectManagerClient
11197 * @title: logindObjectManagerClient
11198 * @short_description: Generated GDBusObjectManagerClient type
11199 *
11200 * This section contains a #GDBusObjectManagerClient that uses logind_object_manager_client_get_proxy_type() as the #GDBusProxyTypeFunc.
11201 */
11202
11203/**
11204 * logindObjectManagerClient:
11205 *
11206 * The #logindObjectManagerClient structure contains only private data and should only be accessed using the provided API.
11207 */
11208
11209/**
11210 * logindObjectManagerClientClass:
11211 * @parent_class: The parent class.
11212 *
11213 * Class structure for #logindObjectManagerClient.
11214 */
11215
11216G_DEFINE_TYPE (logindObjectManagerClient, logind_object_manager_client, G_TYPE_DBUS_OBJECT_MANAGER_CLIENT);
11217
11218static void
11219logind_object_manager_client_init (logindObjectManagerClient *manager G_GNUC_UNUSED)
11220{
11221}
11222
11223static void
11224logind_object_manager_client_class_init (logindObjectManagerClientClass *klass G_GNUC_UNUSED)
11225{
11226}
11227
11228/**
11229 * logind_object_manager_client_get_proxy_type:
11230 * @manager: A #GDBusObjectManagerClient.
11231 * @object_path: The object path of the remote object (unused).
11232 * @interface_name: (allow-none): Interface name of the remote object or %NULL to get the object proxy #GType.
11233 * @user_data: User data (unused).
11234 *
11235 * A #GDBusProxyTypeFunc that maps @interface_name to the generated #GDBusObjectProxy<!-- -->- and #GDBusProxy<!-- -->-derived types.
11236 *
11237 * Returns: A #GDBusProxy<!-- -->-derived #GType if @interface_name is not %NULL, otherwise the #GType for #logindObjectProxy.
11238 */
11239GType
11240logind_object_manager_client_get_proxy_type (GDBusObjectManagerClient *manager G_GNUC_UNUSED, const gchar *object_path G_GNUC_UNUSED, const gchar *interface_name, gpointer user_data G_GNUC_UNUSED)
11241{
11242 static gsize once_init_value = 0;
11243 static GHashTable *lookup_hash;
11244 GType ret;
11245
11246 if (interface_name == NULL)
11247 return LOGIND_TYPE_OBJECT_PROXY;
11248 if (g_once_init_enter (&once_init_value))
11249 {
11250 lookup_hash = g_hash_table_new (g_str_hash, g_str_equal);
11251 g_hash_table_insert (lookup_hash, (gpointer) "org.freedesktop.login1.Manager", GSIZE_TO_POINTER (LOGIND_TYPE_LOGIN1_MANAGER_PROXY));
11252 g_once_init_leave (&once_init_value, 1);
11253 }
11254 ret = (GType) GPOINTER_TO_SIZE (g_hash_table_lookup (lookup_hash, interface_name));
11255 if (ret == (GType) 0)
11256 ret = G_TYPE_DBUS_PROXY;
11257 return ret;
11258}
11259
11260/**
11261 * logind_object_manager_client_new:
11262 * @connection: A #GDBusConnection.
11263 * @flags: Flags from the #GDBusObjectManagerClientFlags enumeration.
11264 * @name: (allow-none): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection.
11265 * @object_path: An object path.
11266 * @cancellable: (allow-none): A #GCancellable or %NULL.
11267 * @callback: A #GAsyncReadyCallback to call when the request is satisfied.
11268 * @user_data: User data to pass to @callback.
11269 *
11270 * Asynchronously creates #GDBusObjectManagerClient using logind_object_manager_client_get_proxy_type() as the #GDBusProxyTypeFunc. See g_dbus_object_manager_client_new() for more details.
11271 *
11272 * 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.
11273 * You can then call logind_object_manager_client_new_finish() to get the result of the operation.
11274 *
11275 * See logind_object_manager_client_new_sync() for the synchronous, blocking version of this constructor.
11276 */
11277void
11278logind_object_manager_client_new (
11279 GDBusConnection *connection,
11280 GDBusObjectManagerClientFlags flags,
11281 const gchar *name,
11282 const gchar *object_path,
11283 GCancellable *cancellable,
11284 GAsyncReadyCallback callback,
11285 gpointer user_data)
11286{
11287 g_async_initable_new_async (LOGIND_TYPE_OBJECT_MANAGER_CLIENT, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "flags", flags, "name", name, "connection", connection, "object-path", object_path, "get-proxy-type-func", logind_object_manager_client_get_proxy_type, NULL);
11288}
11289
11290/**
11291 * logind_object_manager_client_new_finish:
11292 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to logind_object_manager_client_new().
11293 * @error: Return location for error or %NULL
11294 *
11295 * Finishes an operation started with logind_object_manager_client_new().
11296 *
11297 * Returns: (transfer full) (type logindObjectManagerClient): The constructed object manager client or %NULL if @error is set.
11298 */
11299GDBusObjectManager *
11300logind_object_manager_client_new_finish (
11301 GAsyncResult *res,
11302 GError **error)
11303{
11304 GObject *ret;
11305 GObject *source_object;
11306 source_object = g_async_result_get_source_object (res);
11307 ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error);
11308 g_object_unref (source_object);
11309 if (ret != NULL)
11310 return G_DBUS_OBJECT_MANAGER (ret);
11311 else
11312 return NULL;
11313}
11314
11315/**
11316 * logind_object_manager_client_new_sync:
11317 * @connection: A #GDBusConnection.
11318 * @flags: Flags from the #GDBusObjectManagerClientFlags enumeration.
11319 * @name: (allow-none): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection.
11320 * @object_path: An object path.
11321 * @cancellable: (allow-none): A #GCancellable or %NULL.
11322 * @error: Return location for error or %NULL
11323 *
11324 * Synchronously creates #GDBusObjectManagerClient using logind_object_manager_client_get_proxy_type() as the #GDBusProxyTypeFunc. See g_dbus_object_manager_client_new_sync() for more details.
11325 *
11326 * The calling thread is blocked until a reply is received.
11327 *
11328 * See logind_object_manager_client_new() for the asynchronous version of this constructor.
11329 *
11330 * Returns: (transfer full) (type logindObjectManagerClient): The constructed object manager client or %NULL if @error is set.
11331 */
11332GDBusObjectManager *
11333logind_object_manager_client_new_sync (
11334 GDBusConnection *connection,
11335 GDBusObjectManagerClientFlags flags,
11336 const gchar *name,
11337 const gchar *object_path,
11338 GCancellable *cancellable,
11339 GError **error)
11340{
11341 GInitable *ret;
11342 ret = g_initable_new (LOGIND_TYPE_OBJECT_MANAGER_CLIENT, cancellable, error, "flags", flags, "name", name, "connection", connection, "object-path", object_path, "get-proxy-type-func", logind_object_manager_client_get_proxy_type, NULL);
11343 if (ret != NULL)
11344 return G_DBUS_OBJECT_MANAGER (ret);
11345 else
11346 return NULL;
11347}
11348
11349
11350/**
11351 * logind_object_manager_client_new_for_bus:
11352 * @bus_type: A #GBusType.
11353 * @flags: Flags from the #GDBusObjectManagerClientFlags enumeration.
11354 * @name: A bus name (well-known or unique).
11355 * @object_path: An object path.
11356 * @cancellable: (allow-none): A #GCancellable or %NULL.
11357 * @callback: A #GAsyncReadyCallback to call when the request is satisfied.
11358 * @user_data: User data to pass to @callback.
11359 *
11360 * Like logind_object_manager_client_new() but takes a #GBusType instead of a #GDBusConnection.
11361 *
11362 * 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.
11363 * You can then call logind_object_manager_client_new_for_bus_finish() to get the result of the operation.
11364 *
11365 * See logind_object_manager_client_new_for_bus_sync() for the synchronous, blocking version of this constructor.
11366 */
11367void
11368logind_object_manager_client_new_for_bus (
11369 GBusType bus_type,
11370 GDBusObjectManagerClientFlags flags,
11371 const gchar *name,
11372 const gchar *object_path,
11373 GCancellable *cancellable,
11374 GAsyncReadyCallback callback,
11375 gpointer user_data)
11376{
11377 g_async_initable_new_async (LOGIND_TYPE_OBJECT_MANAGER_CLIENT, G_PRIORITY_DEFAULT, cancellable, callback, user_data, "flags", flags, "name", name, "bus-type", bus_type, "object-path", object_path, "get-proxy-type-func", logind_object_manager_client_get_proxy_type, NULL);
11378}
11379
11380/**
11381 * logind_object_manager_client_new_for_bus_finish:
11382 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to logind_object_manager_client_new_for_bus().
11383 * @error: Return location for error or %NULL
11384 *
11385 * Finishes an operation started with logind_object_manager_client_new_for_bus().
11386 *
11387 * Returns: (transfer full) (type logindObjectManagerClient): The constructed object manager client or %NULL if @error is set.
11388 */
11389GDBusObjectManager *
11390logind_object_manager_client_new_for_bus_finish (
11391 GAsyncResult *res,
11392 GError **error)
11393{
11394 GObject *ret;
11395 GObject *source_object;
11396 source_object = g_async_result_get_source_object (res);
11397 ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error);
11398 g_object_unref (source_object);
11399 if (ret != NULL)
11400 return G_DBUS_OBJECT_MANAGER (ret);
11401 else
11402 return NULL;
11403}
11404
11405/**
11406 * logind_object_manager_client_new_for_bus_sync:
11407 * @bus_type: A #GBusType.
11408 * @flags: Flags from the #GDBusObjectManagerClientFlags enumeration.
11409 * @name: A bus name (well-known or unique).
11410 * @object_path: An object path.
11411 * @cancellable: (allow-none): A #GCancellable or %NULL.
11412 * @error: Return location for error or %NULL
11413 *
11414 * Like logind_object_manager_client_new_sync() but takes a #GBusType instead of a #GDBusConnection.
11415 *
11416 * The calling thread is blocked until a reply is received.
11417 *
11418 * See logind_object_manager_client_new_for_bus() for the asynchronous version of this constructor.
11419 *
11420 * Returns: (transfer full) (type logindObjectManagerClient): The constructed object manager client or %NULL if @error is set.
11421 */
11422GDBusObjectManager *
11423logind_object_manager_client_new_for_bus_sync (
11424 GBusType bus_type,
11425 GDBusObjectManagerClientFlags flags,
11426 const gchar *name,
11427 const gchar *object_path,
11428 GCancellable *cancellable,
11429 GError **error)
11430{
11431 GInitable *ret;
11432 ret = g_initable_new (LOGIND_TYPE_OBJECT_MANAGER_CLIENT, cancellable, error, "flags", flags, "name", name, "bus-type", bus_type, "object-path", object_path, "get-proxy-type-func", logind_object_manager_client_get_proxy_type, NULL);
11433 if (ret != NULL)
11434 return G_DBUS_OBJECT_MANAGER (ret);
11435 else
11436 return NULL;
11437}
11438
11439