86cb7727 |
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 | |
ae3d717a |
11 | #include "logind-gen.h" |
86cb7727 |
12 | |
13 | #include <string.h> |
14 | #ifdef G_OS_UNIX |
15 | # include <gio/gunixfdlist.h> |
16 | #endif |
17 | |
18 | typedef struct |
19 | { |
20 | GDBusArgInfo parent_struct; |
21 | gboolean use_gvariant; |
22 | } _ExtendedGDBusArgInfo; |
23 | |
24 | typedef struct |
25 | { |
26 | GDBusMethodInfo parent_struct; |
27 | const gchar *signal_name; |
28 | gboolean pass_fdlist; |
29 | } _ExtendedGDBusMethodInfo; |
30 | |
31 | typedef struct |
32 | { |
33 | GDBusSignalInfo parent_struct; |
34 | const gchar *signal_name; |
35 | } _ExtendedGDBusSignalInfo; |
36 | |
37 | typedef struct |
38 | { |
39 | GDBusPropertyInfo parent_struct; |
40 | const gchar *hyphen_name; |
41 | gboolean use_gvariant; |
42 | } _ExtendedGDBusPropertyInfo; |
43 | |
44 | typedef struct |
45 | { |
46 | GDBusInterfaceInfo parent_struct; |
47 | const gchar *hyphen_name; |
48 | } _ExtendedGDBusInterfaceInfo; |
49 | |
50 | typedef struct |
51 | { |
52 | const _ExtendedGDBusPropertyInfo *info; |
53 | guint prop_id; |
54 | GValue orig_value; /* the value before the change */ |
55 | } ChangedProperty; |
56 | |
57 | static void |
58 | _changed_property_free (ChangedProperty *data) |
59 | { |
60 | g_value_unset (&data->orig_value); |
61 | g_free (data); |
62 | } |
63 | |
64 | static 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; |
82 | out: |
83 | return ret; |
84 | } |
85 | |
86 | static 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); |
98 | out: |
99 | return ret; |
100 | } |
101 | |
102 | G_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 | /** |
ae3d717a |
157 | * SECTION:logindLogin1Manager |
158 | * @title: logindLogin1Manager |
86cb7727 |
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 | |
ae3d717a |
166 | static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_get_session_IN_ARG_unnamed_arg0 = |
86cb7727 |
167 | { |
168 | { |
169 | -1, |
170 | (gchar *) "unnamed_arg0", |
171 | (gchar *) "s", |
172 | NULL |
173 | }, |
174 | FALSE |
175 | }; |
176 | |
ae3d717a |
177 | static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_get_session_IN_ARG_pointers[] = |
86cb7727 |
178 | { |
ae3d717a |
179 | &_logind_login1_manager_method_info_get_session_IN_ARG_unnamed_arg0, |
86cb7727 |
180 | NULL |
181 | }; |
182 | |
ae3d717a |
183 | static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_get_session_OUT_ARG_unnamed_arg1 = |
86cb7727 |
184 | { |
185 | { |
186 | -1, |
187 | (gchar *) "unnamed_arg1", |
188 | (gchar *) "o", |
189 | NULL |
190 | }, |
191 | FALSE |
192 | }; |
193 | |
ae3d717a |
194 | static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_get_session_OUT_ARG_pointers[] = |
86cb7727 |
195 | { |
ae3d717a |
196 | &_logind_login1_manager_method_info_get_session_OUT_ARG_unnamed_arg1, |
86cb7727 |
197 | NULL |
198 | }; |
199 | |
ae3d717a |
200 | static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_get_session = |
86cb7727 |
201 | { |
202 | { |
203 | -1, |
204 | (gchar *) "GetSession", |
ae3d717a |
205 | (GDBusArgInfo **) &_logind_login1_manager_method_info_get_session_IN_ARG_pointers, |
206 | (GDBusArgInfo **) &_logind_login1_manager_method_info_get_session_OUT_ARG_pointers, |
86cb7727 |
207 | NULL |
208 | }, |
209 | "handle-get-session", |
210 | FALSE |
211 | }; |
212 | |
ae3d717a |
213 | static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_get_session_by_pid_IN_ARG_unnamed_arg0 = |
86cb7727 |
214 | { |
215 | { |
216 | -1, |
217 | (gchar *) "unnamed_arg0", |
218 | (gchar *) "u", |
219 | NULL |
220 | }, |
221 | FALSE |
222 | }; |
223 | |
ae3d717a |
224 | static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_get_session_by_pid_IN_ARG_pointers[] = |
86cb7727 |
225 | { |
ae3d717a |
226 | &_logind_login1_manager_method_info_get_session_by_pid_IN_ARG_unnamed_arg0, |
86cb7727 |
227 | NULL |
228 | }; |
229 | |
ae3d717a |
230 | static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_get_session_by_pid_OUT_ARG_unnamed_arg1 = |
86cb7727 |
231 | { |
232 | { |
233 | -1, |
234 | (gchar *) "unnamed_arg1", |
235 | (gchar *) "o", |
236 | NULL |
237 | }, |
238 | FALSE |
239 | }; |
240 | |
ae3d717a |
241 | static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_get_session_by_pid_OUT_ARG_pointers[] = |
86cb7727 |
242 | { |
ae3d717a |
243 | &_logind_login1_manager_method_info_get_session_by_pid_OUT_ARG_unnamed_arg1, |
86cb7727 |
244 | NULL |
245 | }; |
246 | |
ae3d717a |
247 | static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_get_session_by_pid = |
86cb7727 |
248 | { |
249 | { |
250 | -1, |
251 | (gchar *) "GetSessionByPID", |
ae3d717a |
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, |
86cb7727 |
254 | NULL |
255 | }, |
256 | "handle-get-session-by-pid", |
257 | FALSE |
258 | }; |
259 | |
ae3d717a |
260 | static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_get_user_IN_ARG_unnamed_arg0 = |
86cb7727 |
261 | { |
262 | { |
263 | -1, |
264 | (gchar *) "unnamed_arg0", |
265 | (gchar *) "u", |
266 | NULL |
267 | }, |
268 | FALSE |
269 | }; |
270 | |
ae3d717a |
271 | static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_get_user_IN_ARG_pointers[] = |
86cb7727 |
272 | { |
ae3d717a |
273 | &_logind_login1_manager_method_info_get_user_IN_ARG_unnamed_arg0, |
86cb7727 |
274 | NULL |
275 | }; |
276 | |
ae3d717a |
277 | static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_get_user_OUT_ARG_unnamed_arg1 = |
86cb7727 |
278 | { |
279 | { |
280 | -1, |
281 | (gchar *) "unnamed_arg1", |
282 | (gchar *) "o", |
283 | NULL |
284 | }, |
285 | FALSE |
286 | }; |
287 | |
ae3d717a |
288 | static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_get_user_OUT_ARG_pointers[] = |
86cb7727 |
289 | { |
ae3d717a |
290 | &_logind_login1_manager_method_info_get_user_OUT_ARG_unnamed_arg1, |
86cb7727 |
291 | NULL |
292 | }; |
293 | |
ae3d717a |
294 | static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_get_user = |
86cb7727 |
295 | { |
296 | { |
297 | -1, |
298 | (gchar *) "GetUser", |
ae3d717a |
299 | (GDBusArgInfo **) &_logind_login1_manager_method_info_get_user_IN_ARG_pointers, |
300 | (GDBusArgInfo **) &_logind_login1_manager_method_info_get_user_OUT_ARG_pointers, |
86cb7727 |
301 | NULL |
302 | }, |
303 | "handle-get-user", |
304 | FALSE |
305 | }; |
306 | |
ae3d717a |
307 | static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_get_user_by_pid_IN_ARG_unnamed_arg0 = |
86cb7727 |
308 | { |
309 | { |
310 | -1, |
311 | (gchar *) "unnamed_arg0", |
312 | (gchar *) "u", |
313 | NULL |
314 | }, |
315 | FALSE |
316 | }; |
317 | |
ae3d717a |
318 | static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_get_user_by_pid_IN_ARG_pointers[] = |
86cb7727 |
319 | { |
ae3d717a |
320 | &_logind_login1_manager_method_info_get_user_by_pid_IN_ARG_unnamed_arg0, |
86cb7727 |
321 | NULL |
322 | }; |
323 | |
ae3d717a |
324 | static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_get_user_by_pid_OUT_ARG_unnamed_arg1 = |
86cb7727 |
325 | { |
326 | { |
327 | -1, |
328 | (gchar *) "unnamed_arg1", |
329 | (gchar *) "o", |
330 | NULL |
331 | }, |
332 | FALSE |
333 | }; |
334 | |
ae3d717a |
335 | static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_get_user_by_pid_OUT_ARG_pointers[] = |
86cb7727 |
336 | { |
ae3d717a |
337 | &_logind_login1_manager_method_info_get_user_by_pid_OUT_ARG_unnamed_arg1, |
86cb7727 |
338 | NULL |
339 | }; |
340 | |
ae3d717a |
341 | static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_get_user_by_pid = |
86cb7727 |
342 | { |
343 | { |
344 | -1, |
345 | (gchar *) "GetUserByPID", |
ae3d717a |
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, |
86cb7727 |
348 | NULL |
349 | }, |
350 | "handle-get-user-by-pid", |
351 | FALSE |
352 | }; |
353 | |
ae3d717a |
354 | static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_get_seat_IN_ARG_unnamed_arg0 = |
86cb7727 |
355 | { |
356 | { |
357 | -1, |
358 | (gchar *) "unnamed_arg0", |
359 | (gchar *) "s", |
360 | NULL |
361 | }, |
362 | FALSE |
363 | }; |
364 | |
ae3d717a |
365 | static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_get_seat_IN_ARG_pointers[] = |
86cb7727 |
366 | { |
ae3d717a |
367 | &_logind_login1_manager_method_info_get_seat_IN_ARG_unnamed_arg0, |
86cb7727 |
368 | NULL |
369 | }; |
370 | |
ae3d717a |
371 | static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_get_seat_OUT_ARG_unnamed_arg1 = |
86cb7727 |
372 | { |
373 | { |
374 | -1, |
375 | (gchar *) "unnamed_arg1", |
376 | (gchar *) "o", |
377 | NULL |
378 | }, |
379 | FALSE |
380 | }; |
381 | |
ae3d717a |
382 | static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_get_seat_OUT_ARG_pointers[] = |
86cb7727 |
383 | { |
ae3d717a |
384 | &_logind_login1_manager_method_info_get_seat_OUT_ARG_unnamed_arg1, |
86cb7727 |
385 | NULL |
386 | }; |
387 | |
ae3d717a |
388 | static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_get_seat = |
86cb7727 |
389 | { |
390 | { |
391 | -1, |
392 | (gchar *) "GetSeat", |
ae3d717a |
393 | (GDBusArgInfo **) &_logind_login1_manager_method_info_get_seat_IN_ARG_pointers, |
394 | (GDBusArgInfo **) &_logind_login1_manager_method_info_get_seat_OUT_ARG_pointers, |
86cb7727 |
395 | NULL |
396 | }, |
397 | "handle-get-seat", |
398 | FALSE |
399 | }; |
400 | |
ae3d717a |
401 | static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_list_sessions_OUT_ARG_unnamed_arg0 = |
86cb7727 |
402 | { |
403 | { |
404 | -1, |
405 | (gchar *) "unnamed_arg0", |
406 | (gchar *) "a(susso)", |
407 | NULL |
408 | }, |
409 | FALSE |
410 | }; |
411 | |
ae3d717a |
412 | static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_list_sessions_OUT_ARG_pointers[] = |
86cb7727 |
413 | { |
ae3d717a |
414 | &_logind_login1_manager_method_info_list_sessions_OUT_ARG_unnamed_arg0, |
86cb7727 |
415 | NULL |
416 | }; |
417 | |
ae3d717a |
418 | static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_list_sessions = |
86cb7727 |
419 | { |
420 | { |
421 | -1, |
422 | (gchar *) "ListSessions", |
423 | NULL, |
ae3d717a |
424 | (GDBusArgInfo **) &_logind_login1_manager_method_info_list_sessions_OUT_ARG_pointers, |
86cb7727 |
425 | NULL |
426 | }, |
427 | "handle-list-sessions", |
428 | FALSE |
429 | }; |
430 | |
ae3d717a |
431 | static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_list_users_OUT_ARG_unnamed_arg0 = |
86cb7727 |
432 | { |
433 | { |
434 | -1, |
435 | (gchar *) "unnamed_arg0", |
436 | (gchar *) "a(uso)", |
437 | NULL |
438 | }, |
439 | FALSE |
440 | }; |
441 | |
ae3d717a |
442 | static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_list_users_OUT_ARG_pointers[] = |
86cb7727 |
443 | { |
ae3d717a |
444 | &_logind_login1_manager_method_info_list_users_OUT_ARG_unnamed_arg0, |
86cb7727 |
445 | NULL |
446 | }; |
447 | |
ae3d717a |
448 | static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_list_users = |
86cb7727 |
449 | { |
450 | { |
451 | -1, |
452 | (gchar *) "ListUsers", |
453 | NULL, |
ae3d717a |
454 | (GDBusArgInfo **) &_logind_login1_manager_method_info_list_users_OUT_ARG_pointers, |
86cb7727 |
455 | NULL |
456 | }, |
457 | "handle-list-users", |
458 | FALSE |
459 | }; |
460 | |
ae3d717a |
461 | static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_list_seats_OUT_ARG_unnamed_arg0 = |
86cb7727 |
462 | { |
463 | { |
464 | -1, |
465 | (gchar *) "unnamed_arg0", |
466 | (gchar *) "a(so)", |
467 | NULL |
468 | }, |
469 | FALSE |
470 | }; |
471 | |
ae3d717a |
472 | static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_list_seats_OUT_ARG_pointers[] = |
86cb7727 |
473 | { |
ae3d717a |
474 | &_logind_login1_manager_method_info_list_seats_OUT_ARG_unnamed_arg0, |
86cb7727 |
475 | NULL |
476 | }; |
477 | |
ae3d717a |
478 | static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_list_seats = |
86cb7727 |
479 | { |
480 | { |
481 | -1, |
482 | (gchar *) "ListSeats", |
483 | NULL, |
ae3d717a |
484 | (GDBusArgInfo **) &_logind_login1_manager_method_info_list_seats_OUT_ARG_pointers, |
86cb7727 |
485 | NULL |
486 | }, |
487 | "handle-list-seats", |
488 | FALSE |
489 | }; |
490 | |
ae3d717a |
491 | static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_list_inhibitors_OUT_ARG_unnamed_arg0 = |
86cb7727 |
492 | { |
493 | { |
494 | -1, |
495 | (gchar *) "unnamed_arg0", |
496 | (gchar *) "a(ssssuu)", |
497 | NULL |
498 | }, |
499 | FALSE |
500 | }; |
501 | |
ae3d717a |
502 | static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_list_inhibitors_OUT_ARG_pointers[] = |
86cb7727 |
503 | { |
ae3d717a |
504 | &_logind_login1_manager_method_info_list_inhibitors_OUT_ARG_unnamed_arg0, |
86cb7727 |
505 | NULL |
506 | }; |
507 | |
ae3d717a |
508 | static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_list_inhibitors = |
86cb7727 |
509 | { |
510 | { |
511 | -1, |
512 | (gchar *) "ListInhibitors", |
513 | NULL, |
ae3d717a |
514 | (GDBusArgInfo **) &_logind_login1_manager_method_info_list_inhibitors_OUT_ARG_pointers, |
86cb7727 |
515 | NULL |
516 | }, |
517 | "handle-list-inhibitors", |
518 | FALSE |
519 | }; |
520 | |
ae3d717a |
521 | static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_create_session_IN_ARG_unnamed_arg0 = |
86cb7727 |
522 | { |
523 | { |
524 | -1, |
525 | (gchar *) "unnamed_arg0", |
526 | (gchar *) "u", |
527 | NULL |
528 | }, |
529 | FALSE |
530 | }; |
531 | |
ae3d717a |
532 | static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_create_session_IN_ARG_unnamed_arg1 = |
86cb7727 |
533 | { |
534 | { |
535 | -1, |
536 | (gchar *) "unnamed_arg1", |
537 | (gchar *) "u", |
538 | NULL |
539 | }, |
540 | FALSE |
541 | }; |
542 | |
ae3d717a |
543 | static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_create_session_IN_ARG_unnamed_arg2 = |
86cb7727 |
544 | { |
545 | { |
546 | -1, |
547 | (gchar *) "unnamed_arg2", |
548 | (gchar *) "s", |
549 | NULL |
550 | }, |
551 | FALSE |
552 | }; |
553 | |
ae3d717a |
554 | static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_create_session_IN_ARG_unnamed_arg3 = |
86cb7727 |
555 | { |
556 | { |
557 | -1, |
558 | (gchar *) "unnamed_arg3", |
559 | (gchar *) "s", |
560 | NULL |
561 | }, |
562 | FALSE |
563 | }; |
564 | |
ae3d717a |
565 | static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_create_session_IN_ARG_unnamed_arg4 = |
86cb7727 |
566 | { |
567 | { |
568 | -1, |
569 | (gchar *) "unnamed_arg4", |
570 | (gchar *) "s", |
571 | NULL |
572 | }, |
573 | FALSE |
574 | }; |
575 | |
ae3d717a |
576 | static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_create_session_IN_ARG_unnamed_arg5 = |
86cb7727 |
577 | { |
578 | { |
579 | -1, |
580 | (gchar *) "unnamed_arg5", |
581 | (gchar *) "s", |
582 | NULL |
583 | }, |
584 | FALSE |
585 | }; |
586 | |
ae3d717a |
587 | static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_create_session_IN_ARG_unnamed_arg6 = |
86cb7727 |
588 | { |
589 | { |
590 | -1, |
591 | (gchar *) "unnamed_arg6", |
592 | (gchar *) "s", |
593 | NULL |
594 | }, |
595 | FALSE |
596 | }; |
597 | |
ae3d717a |
598 | static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_create_session_IN_ARG_unnamed_arg7 = |
86cb7727 |
599 | { |
600 | { |
601 | -1, |
602 | (gchar *) "unnamed_arg7", |
603 | (gchar *) "u", |
604 | NULL |
605 | }, |
606 | FALSE |
607 | }; |
608 | |
ae3d717a |
609 | static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_create_session_IN_ARG_unnamed_arg8 = |
86cb7727 |
610 | { |
611 | { |
612 | -1, |
613 | (gchar *) "unnamed_arg8", |
614 | (gchar *) "s", |
615 | NULL |
616 | }, |
617 | FALSE |
618 | }; |
619 | |
ae3d717a |
620 | static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_create_session_IN_ARG_unnamed_arg9 = |
86cb7727 |
621 | { |
622 | { |
623 | -1, |
624 | (gchar *) "unnamed_arg9", |
625 | (gchar *) "s", |
626 | NULL |
627 | }, |
628 | FALSE |
629 | }; |
630 | |
ae3d717a |
631 | static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_create_session_IN_ARG_unnamed_arg10 = |
86cb7727 |
632 | { |
633 | { |
634 | -1, |
635 | (gchar *) "unnamed_arg10", |
636 | (gchar *) "b", |
637 | NULL |
638 | }, |
639 | FALSE |
640 | }; |
641 | |
ae3d717a |
642 | static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_create_session_IN_ARG_unnamed_arg11 = |
86cb7727 |
643 | { |
644 | { |
645 | -1, |
646 | (gchar *) "unnamed_arg11", |
647 | (gchar *) "s", |
648 | NULL |
649 | }, |
650 | FALSE |
651 | }; |
652 | |
ae3d717a |
653 | static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_create_session_IN_ARG_unnamed_arg12 = |
86cb7727 |
654 | { |
655 | { |
656 | -1, |
657 | (gchar *) "unnamed_arg12", |
658 | (gchar *) "s", |
659 | NULL |
660 | }, |
661 | FALSE |
662 | }; |
663 | |
ae3d717a |
664 | static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_create_session_IN_ARG_unnamed_arg13 = |
86cb7727 |
665 | { |
666 | { |
667 | -1, |
668 | (gchar *) "unnamed_arg13", |
669 | (gchar *) "a(sv)", |
670 | NULL |
671 | }, |
672 | FALSE |
673 | }; |
674 | |
ae3d717a |
675 | static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_create_session_IN_ARG_pointers[] = |
86cb7727 |
676 | { |
ae3d717a |
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, |
86cb7727 |
691 | NULL |
692 | }; |
693 | |
ae3d717a |
694 | static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_create_session_OUT_ARG_unnamed_arg14 = |
86cb7727 |
695 | { |
696 | { |
697 | -1, |
698 | (gchar *) "unnamed_arg14", |
699 | (gchar *) "s", |
700 | NULL |
701 | }, |
702 | FALSE |
703 | }; |
704 | |
ae3d717a |
705 | static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_create_session_OUT_ARG_unnamed_arg15 = |
86cb7727 |
706 | { |
707 | { |
708 | -1, |
709 | (gchar *) "unnamed_arg15", |
710 | (gchar *) "o", |
711 | NULL |
712 | }, |
713 | FALSE |
714 | }; |
715 | |
ae3d717a |
716 | static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_create_session_OUT_ARG_unnamed_arg16 = |
86cb7727 |
717 | { |
718 | { |
719 | -1, |
720 | (gchar *) "unnamed_arg16", |
721 | (gchar *) "s", |
722 | NULL |
723 | }, |
724 | FALSE |
725 | }; |
726 | |
ae3d717a |
727 | static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_create_session_OUT_ARG_unnamed_arg17 = |
86cb7727 |
728 | { |
729 | { |
730 | -1, |
731 | (gchar *) "unnamed_arg17", |
732 | (gchar *) "h", |
733 | NULL |
734 | }, |
735 | FALSE |
736 | }; |
737 | |
ae3d717a |
738 | static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_create_session_OUT_ARG_unnamed_arg18 = |
86cb7727 |
739 | { |
740 | { |
741 | -1, |
742 | (gchar *) "unnamed_arg18", |
743 | (gchar *) "u", |
744 | NULL |
745 | }, |
746 | FALSE |
747 | }; |
748 | |
ae3d717a |
749 | static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_create_session_OUT_ARG_unnamed_arg19 = |
86cb7727 |
750 | { |
751 | { |
752 | -1, |
753 | (gchar *) "unnamed_arg19", |
754 | (gchar *) "s", |
755 | NULL |
756 | }, |
757 | FALSE |
758 | }; |
759 | |
ae3d717a |
760 | static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_create_session_OUT_ARG_unnamed_arg20 = |
86cb7727 |
761 | { |
762 | { |
763 | -1, |
764 | (gchar *) "unnamed_arg20", |
765 | (gchar *) "u", |
766 | NULL |
767 | }, |
768 | FALSE |
769 | }; |
770 | |
ae3d717a |
771 | static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_create_session_OUT_ARG_unnamed_arg21 = |
86cb7727 |
772 | { |
773 | { |
774 | -1, |
775 | (gchar *) "unnamed_arg21", |
776 | (gchar *) "b", |
777 | NULL |
778 | }, |
779 | FALSE |
780 | }; |
781 | |
ae3d717a |
782 | static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_create_session_OUT_ARG_pointers[] = |
86cb7727 |
783 | { |
ae3d717a |
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, |
86cb7727 |
792 | NULL |
793 | }; |
794 | |
ae3d717a |
795 | static const GDBusAnnotationInfo _logind_login1_manager_method_create_session_annotation_info_0 = |
86cb7727 |
796 | { |
797 | -1, |
798 | (gchar *) "org.freedesktop.systemd1.Privileged", |
799 | (gchar *) "true", |
800 | NULL |
801 | }; |
802 | |
ae3d717a |
803 | static const GDBusAnnotationInfo * const _logind_login1_manager_method_create_session_annotation_info_pointers[] = |
86cb7727 |
804 | { |
ae3d717a |
805 | &_logind_login1_manager_method_create_session_annotation_info_0, |
86cb7727 |
806 | NULL |
807 | }; |
808 | |
ae3d717a |
809 | static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_create_session = |
86cb7727 |
810 | { |
811 | { |
812 | -1, |
813 | (gchar *) "CreateSession", |
ae3d717a |
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 |
86cb7727 |
817 | }, |
818 | "handle-create-session", |
819 | FALSE |
820 | }; |
821 | |
ae3d717a |
822 | static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_release_session_IN_ARG_unnamed_arg0 = |
86cb7727 |
823 | { |
824 | { |
825 | -1, |
826 | (gchar *) "unnamed_arg0", |
827 | (gchar *) "s", |
828 | NULL |
829 | }, |
830 | FALSE |
831 | }; |
832 | |
ae3d717a |
833 | static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_release_session_IN_ARG_pointers[] = |
86cb7727 |
834 | { |
ae3d717a |
835 | &_logind_login1_manager_method_info_release_session_IN_ARG_unnamed_arg0, |
86cb7727 |
836 | NULL |
837 | }; |
838 | |
ae3d717a |
839 | static const GDBusAnnotationInfo _logind_login1_manager_method_release_session_annotation_info_0 = |
86cb7727 |
840 | { |
841 | -1, |
842 | (gchar *) "org.freedesktop.systemd1.Privileged", |
843 | (gchar *) "true", |
844 | NULL |
845 | }; |
846 | |
ae3d717a |
847 | static const GDBusAnnotationInfo * const _logind_login1_manager_method_release_session_annotation_info_pointers[] = |
86cb7727 |
848 | { |
ae3d717a |
849 | &_logind_login1_manager_method_release_session_annotation_info_0, |
86cb7727 |
850 | NULL |
851 | }; |
852 | |
ae3d717a |
853 | static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_release_session = |
86cb7727 |
854 | { |
855 | { |
856 | -1, |
857 | (gchar *) "ReleaseSession", |
ae3d717a |
858 | (GDBusArgInfo **) &_logind_login1_manager_method_info_release_session_IN_ARG_pointers, |
86cb7727 |
859 | NULL, |
ae3d717a |
860 | (GDBusAnnotationInfo **) &_logind_login1_manager_method_release_session_annotation_info_pointers |
86cb7727 |
861 | }, |
862 | "handle-release-session", |
863 | FALSE |
864 | }; |
865 | |
ae3d717a |
866 | static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_activate_session_IN_ARG_unnamed_arg0 = |
86cb7727 |
867 | { |
868 | { |
869 | -1, |
870 | (gchar *) "unnamed_arg0", |
871 | (gchar *) "s", |
872 | NULL |
873 | }, |
874 | FALSE |
875 | }; |
876 | |
ae3d717a |
877 | static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_activate_session_IN_ARG_pointers[] = |
86cb7727 |
878 | { |
ae3d717a |
879 | &_logind_login1_manager_method_info_activate_session_IN_ARG_unnamed_arg0, |
86cb7727 |
880 | NULL |
881 | }; |
882 | |
ae3d717a |
883 | static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_activate_session = |
86cb7727 |
884 | { |
885 | { |
886 | -1, |
887 | (gchar *) "ActivateSession", |
ae3d717a |
888 | (GDBusArgInfo **) &_logind_login1_manager_method_info_activate_session_IN_ARG_pointers, |
86cb7727 |
889 | NULL, |
890 | NULL |
891 | }, |
892 | "handle-activate-session", |
893 | FALSE |
894 | }; |
895 | |
ae3d717a |
896 | static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_activate_session_on_seat_IN_ARG_unnamed_arg0 = |
86cb7727 |
897 | { |
898 | { |
899 | -1, |
900 | (gchar *) "unnamed_arg0", |
901 | (gchar *) "s", |
902 | NULL |
903 | }, |
904 | FALSE |
905 | }; |
906 | |
ae3d717a |
907 | static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_activate_session_on_seat_IN_ARG_unnamed_arg1 = |
86cb7727 |
908 | { |
909 | { |
910 | -1, |
911 | (gchar *) "unnamed_arg1", |
912 | (gchar *) "s", |
913 | NULL |
914 | }, |
915 | FALSE |
916 | }; |
917 | |
ae3d717a |
918 | static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_activate_session_on_seat_IN_ARG_pointers[] = |
86cb7727 |
919 | { |
ae3d717a |
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, |
86cb7727 |
922 | NULL |
923 | }; |
924 | |
ae3d717a |
925 | static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_activate_session_on_seat = |
86cb7727 |
926 | { |
927 | { |
928 | -1, |
929 | (gchar *) "ActivateSessionOnSeat", |
ae3d717a |
930 | (GDBusArgInfo **) &_logind_login1_manager_method_info_activate_session_on_seat_IN_ARG_pointers, |
86cb7727 |
931 | NULL, |
932 | NULL |
933 | }, |
934 | "handle-activate-session-on-seat", |
935 | FALSE |
936 | }; |
937 | |
ae3d717a |
938 | static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_lock_session_IN_ARG_unnamed_arg0 = |
86cb7727 |
939 | { |
940 | { |
941 | -1, |
942 | (gchar *) "unnamed_arg0", |
943 | (gchar *) "s", |
944 | NULL |
945 | }, |
946 | FALSE |
947 | }; |
948 | |
ae3d717a |
949 | static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_lock_session_IN_ARG_pointers[] = |
86cb7727 |
950 | { |
ae3d717a |
951 | &_logind_login1_manager_method_info_lock_session_IN_ARG_unnamed_arg0, |
86cb7727 |
952 | NULL |
953 | }; |
954 | |
ae3d717a |
955 | static const GDBusAnnotationInfo _logind_login1_manager_method_lock_session_annotation_info_0 = |
86cb7727 |
956 | { |
957 | -1, |
958 | (gchar *) "org.freedesktop.systemd1.Privileged", |
959 | (gchar *) "true", |
960 | NULL |
961 | }; |
962 | |
ae3d717a |
963 | static const GDBusAnnotationInfo * const _logind_login1_manager_method_lock_session_annotation_info_pointers[] = |
86cb7727 |
964 | { |
ae3d717a |
965 | &_logind_login1_manager_method_lock_session_annotation_info_0, |
86cb7727 |
966 | NULL |
967 | }; |
968 | |
ae3d717a |
969 | static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_lock_session = |
86cb7727 |
970 | { |
971 | { |
972 | -1, |
973 | (gchar *) "LockSession", |
ae3d717a |
974 | (GDBusArgInfo **) &_logind_login1_manager_method_info_lock_session_IN_ARG_pointers, |
86cb7727 |
975 | NULL, |
ae3d717a |
976 | (GDBusAnnotationInfo **) &_logind_login1_manager_method_lock_session_annotation_info_pointers |
86cb7727 |
977 | }, |
978 | "handle-lock-session", |
979 | FALSE |
980 | }; |
981 | |
ae3d717a |
982 | static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_unlock_session_IN_ARG_unnamed_arg0 = |
86cb7727 |
983 | { |
984 | { |
985 | -1, |
986 | (gchar *) "unnamed_arg0", |
987 | (gchar *) "s", |
988 | NULL |
989 | }, |
990 | FALSE |
991 | }; |
992 | |
ae3d717a |
993 | static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_unlock_session_IN_ARG_pointers[] = |
86cb7727 |
994 | { |
ae3d717a |
995 | &_logind_login1_manager_method_info_unlock_session_IN_ARG_unnamed_arg0, |
86cb7727 |
996 | NULL |
997 | }; |
998 | |
ae3d717a |
999 | static const GDBusAnnotationInfo _logind_login1_manager_method_unlock_session_annotation_info_0 = |
86cb7727 |
1000 | { |
1001 | -1, |
1002 | (gchar *) "org.freedesktop.systemd1.Privileged", |
1003 | (gchar *) "true", |
1004 | NULL |
1005 | }; |
1006 | |
ae3d717a |
1007 | static const GDBusAnnotationInfo * const _logind_login1_manager_method_unlock_session_annotation_info_pointers[] = |
86cb7727 |
1008 | { |
ae3d717a |
1009 | &_logind_login1_manager_method_unlock_session_annotation_info_0, |
86cb7727 |
1010 | NULL |
1011 | }; |
1012 | |
ae3d717a |
1013 | static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_unlock_session = |
86cb7727 |
1014 | { |
1015 | { |
1016 | -1, |
1017 | (gchar *) "UnlockSession", |
ae3d717a |
1018 | (GDBusArgInfo **) &_logind_login1_manager_method_info_unlock_session_IN_ARG_pointers, |
86cb7727 |
1019 | NULL, |
ae3d717a |
1020 | (GDBusAnnotationInfo **) &_logind_login1_manager_method_unlock_session_annotation_info_pointers |
86cb7727 |
1021 | }, |
1022 | "handle-unlock-session", |
1023 | FALSE |
1024 | }; |
1025 | |
ae3d717a |
1026 | static const GDBusAnnotationInfo _logind_login1_manager_method_lock_sessions_annotation_info_0 = |
86cb7727 |
1027 | { |
1028 | -1, |
1029 | (gchar *) "org.freedesktop.systemd1.Privileged", |
1030 | (gchar *) "true", |
1031 | NULL |
1032 | }; |
1033 | |
ae3d717a |
1034 | static const GDBusAnnotationInfo * const _logind_login1_manager_method_lock_sessions_annotation_info_pointers[] = |
86cb7727 |
1035 | { |
ae3d717a |
1036 | &_logind_login1_manager_method_lock_sessions_annotation_info_0, |
86cb7727 |
1037 | NULL |
1038 | }; |
1039 | |
ae3d717a |
1040 | static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_lock_sessions = |
86cb7727 |
1041 | { |
1042 | { |
1043 | -1, |
1044 | (gchar *) "LockSessions", |
1045 | NULL, |
1046 | NULL, |
ae3d717a |
1047 | (GDBusAnnotationInfo **) &_logind_login1_manager_method_lock_sessions_annotation_info_pointers |
86cb7727 |
1048 | }, |
1049 | "handle-lock-sessions", |
1050 | FALSE |
1051 | }; |
1052 | |
ae3d717a |
1053 | static const GDBusAnnotationInfo _logind_login1_manager_method_unlock_sessions_annotation_info_0 = |
86cb7727 |
1054 | { |
1055 | -1, |
1056 | (gchar *) "org.freedesktop.systemd1.Privileged", |
1057 | (gchar *) "true", |
1058 | NULL |
1059 | }; |
1060 | |
ae3d717a |
1061 | static const GDBusAnnotationInfo * const _logind_login1_manager_method_unlock_sessions_annotation_info_pointers[] = |
86cb7727 |
1062 | { |
ae3d717a |
1063 | &_logind_login1_manager_method_unlock_sessions_annotation_info_0, |
86cb7727 |
1064 | NULL |
1065 | }; |
1066 | |
ae3d717a |
1067 | static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_unlock_sessions = |
86cb7727 |
1068 | { |
1069 | { |
1070 | -1, |
1071 | (gchar *) "UnlockSessions", |
1072 | NULL, |
1073 | NULL, |
ae3d717a |
1074 | (GDBusAnnotationInfo **) &_logind_login1_manager_method_unlock_sessions_annotation_info_pointers |
86cb7727 |
1075 | }, |
1076 | "handle-unlock-sessions", |
1077 | FALSE |
1078 | }; |
1079 | |
ae3d717a |
1080 | static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_kill_session_IN_ARG_unnamed_arg0 = |
86cb7727 |
1081 | { |
1082 | { |
1083 | -1, |
1084 | (gchar *) "unnamed_arg0", |
1085 | (gchar *) "s", |
1086 | NULL |
1087 | }, |
1088 | FALSE |
1089 | }; |
1090 | |
ae3d717a |
1091 | static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_kill_session_IN_ARG_unnamed_arg1 = |
86cb7727 |
1092 | { |
1093 | { |
1094 | -1, |
1095 | (gchar *) "unnamed_arg1", |
1096 | (gchar *) "s", |
1097 | NULL |
1098 | }, |
1099 | FALSE |
1100 | }; |
1101 | |
ae3d717a |
1102 | static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_kill_session_IN_ARG_unnamed_arg2 = |
86cb7727 |
1103 | { |
1104 | { |
1105 | -1, |
1106 | (gchar *) "unnamed_arg2", |
1107 | (gchar *) "i", |
1108 | NULL |
1109 | }, |
1110 | FALSE |
1111 | }; |
1112 | |
ae3d717a |
1113 | static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_kill_session_IN_ARG_pointers[] = |
86cb7727 |
1114 | { |
ae3d717a |
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, |
86cb7727 |
1118 | NULL |
1119 | }; |
1120 | |
ae3d717a |
1121 | static const GDBusAnnotationInfo _logind_login1_manager_method_kill_session_annotation_info_0 = |
86cb7727 |
1122 | { |
1123 | -1, |
1124 | (gchar *) "org.freedesktop.systemd1.Privileged", |
1125 | (gchar *) "true", |
1126 | NULL |
1127 | }; |
1128 | |
ae3d717a |
1129 | static const GDBusAnnotationInfo * const _logind_login1_manager_method_kill_session_annotation_info_pointers[] = |
86cb7727 |
1130 | { |
ae3d717a |
1131 | &_logind_login1_manager_method_kill_session_annotation_info_0, |
86cb7727 |
1132 | NULL |
1133 | }; |
1134 | |
ae3d717a |
1135 | static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_kill_session = |
86cb7727 |
1136 | { |
1137 | { |
1138 | -1, |
1139 | (gchar *) "KillSession", |
ae3d717a |
1140 | (GDBusArgInfo **) &_logind_login1_manager_method_info_kill_session_IN_ARG_pointers, |
86cb7727 |
1141 | NULL, |
ae3d717a |
1142 | (GDBusAnnotationInfo **) &_logind_login1_manager_method_kill_session_annotation_info_pointers |
86cb7727 |
1143 | }, |
1144 | "handle-kill-session", |
1145 | FALSE |
1146 | }; |
1147 | |
ae3d717a |
1148 | static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_kill_user_IN_ARG_unnamed_arg0 = |
86cb7727 |
1149 | { |
1150 | { |
1151 | -1, |
1152 | (gchar *) "unnamed_arg0", |
1153 | (gchar *) "u", |
1154 | NULL |
1155 | }, |
1156 | FALSE |
1157 | }; |
1158 | |
ae3d717a |
1159 | static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_kill_user_IN_ARG_unnamed_arg1 = |
86cb7727 |
1160 | { |
1161 | { |
1162 | -1, |
1163 | (gchar *) "unnamed_arg1", |
1164 | (gchar *) "i", |
1165 | NULL |
1166 | }, |
1167 | FALSE |
1168 | }; |
1169 | |
ae3d717a |
1170 | static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_kill_user_IN_ARG_pointers[] = |
86cb7727 |
1171 | { |
ae3d717a |
1172 | &_logind_login1_manager_method_info_kill_user_IN_ARG_unnamed_arg0, |
1173 | &_logind_login1_manager_method_info_kill_user_IN_ARG_unnamed_arg1, |
86cb7727 |
1174 | NULL |
1175 | }; |
1176 | |
ae3d717a |
1177 | static const GDBusAnnotationInfo _logind_login1_manager_method_kill_user_annotation_info_0 = |
86cb7727 |
1178 | { |
1179 | -1, |
1180 | (gchar *) "org.freedesktop.systemd1.Privileged", |
1181 | (gchar *) "true", |
1182 | NULL |
1183 | }; |
1184 | |
ae3d717a |
1185 | static const GDBusAnnotationInfo * const _logind_login1_manager_method_kill_user_annotation_info_pointers[] = |
86cb7727 |
1186 | { |
ae3d717a |
1187 | &_logind_login1_manager_method_kill_user_annotation_info_0, |
86cb7727 |
1188 | NULL |
1189 | }; |
1190 | |
ae3d717a |
1191 | static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_kill_user = |
86cb7727 |
1192 | { |
1193 | { |
1194 | -1, |
1195 | (gchar *) "KillUser", |
ae3d717a |
1196 | (GDBusArgInfo **) &_logind_login1_manager_method_info_kill_user_IN_ARG_pointers, |
86cb7727 |
1197 | NULL, |
ae3d717a |
1198 | (GDBusAnnotationInfo **) &_logind_login1_manager_method_kill_user_annotation_info_pointers |
86cb7727 |
1199 | }, |
1200 | "handle-kill-user", |
1201 | FALSE |
1202 | }; |
1203 | |
ae3d717a |
1204 | static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_terminate_session_IN_ARG_unnamed_arg0 = |
86cb7727 |
1205 | { |
1206 | { |
1207 | -1, |
1208 | (gchar *) "unnamed_arg0", |
1209 | (gchar *) "s", |
1210 | NULL |
1211 | }, |
1212 | FALSE |
1213 | }; |
1214 | |
ae3d717a |
1215 | static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_terminate_session_IN_ARG_pointers[] = |
86cb7727 |
1216 | { |
ae3d717a |
1217 | &_logind_login1_manager_method_info_terminate_session_IN_ARG_unnamed_arg0, |
86cb7727 |
1218 | NULL |
1219 | }; |
1220 | |
ae3d717a |
1221 | static const GDBusAnnotationInfo _logind_login1_manager_method_terminate_session_annotation_info_0 = |
86cb7727 |
1222 | { |
1223 | -1, |
1224 | (gchar *) "org.freedesktop.systemd1.Privileged", |
1225 | (gchar *) "true", |
1226 | NULL |
1227 | }; |
1228 | |
ae3d717a |
1229 | static const GDBusAnnotationInfo * const _logind_login1_manager_method_terminate_session_annotation_info_pointers[] = |
86cb7727 |
1230 | { |
ae3d717a |
1231 | &_logind_login1_manager_method_terminate_session_annotation_info_0, |
86cb7727 |
1232 | NULL |
1233 | }; |
1234 | |
ae3d717a |
1235 | static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_terminate_session = |
86cb7727 |
1236 | { |
1237 | { |
1238 | -1, |
1239 | (gchar *) "TerminateSession", |
ae3d717a |
1240 | (GDBusArgInfo **) &_logind_login1_manager_method_info_terminate_session_IN_ARG_pointers, |
86cb7727 |
1241 | NULL, |
ae3d717a |
1242 | (GDBusAnnotationInfo **) &_logind_login1_manager_method_terminate_session_annotation_info_pointers |
86cb7727 |
1243 | }, |
1244 | "handle-terminate-session", |
1245 | FALSE |
1246 | }; |
1247 | |
ae3d717a |
1248 | static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_terminate_user_IN_ARG_unnamed_arg0 = |
86cb7727 |
1249 | { |
1250 | { |
1251 | -1, |
1252 | (gchar *) "unnamed_arg0", |
1253 | (gchar *) "u", |
1254 | NULL |
1255 | }, |
1256 | FALSE |
1257 | }; |
1258 | |
ae3d717a |
1259 | static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_terminate_user_IN_ARG_pointers[] = |
86cb7727 |
1260 | { |
ae3d717a |
1261 | &_logind_login1_manager_method_info_terminate_user_IN_ARG_unnamed_arg0, |
86cb7727 |
1262 | NULL |
1263 | }; |
1264 | |
ae3d717a |
1265 | static const GDBusAnnotationInfo _logind_login1_manager_method_terminate_user_annotation_info_0 = |
86cb7727 |
1266 | { |
1267 | -1, |
1268 | (gchar *) "org.freedesktop.systemd1.Privileged", |
1269 | (gchar *) "true", |
1270 | NULL |
1271 | }; |
1272 | |
ae3d717a |
1273 | static const GDBusAnnotationInfo * const _logind_login1_manager_method_terminate_user_annotation_info_pointers[] = |
86cb7727 |
1274 | { |
ae3d717a |
1275 | &_logind_login1_manager_method_terminate_user_annotation_info_0, |
86cb7727 |
1276 | NULL |
1277 | }; |
1278 | |
ae3d717a |
1279 | static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_terminate_user = |
86cb7727 |
1280 | { |
1281 | { |
1282 | -1, |
1283 | (gchar *) "TerminateUser", |
ae3d717a |
1284 | (GDBusArgInfo **) &_logind_login1_manager_method_info_terminate_user_IN_ARG_pointers, |
86cb7727 |
1285 | NULL, |
ae3d717a |
1286 | (GDBusAnnotationInfo **) &_logind_login1_manager_method_terminate_user_annotation_info_pointers |
86cb7727 |
1287 | }, |
1288 | "handle-terminate-user", |
1289 | FALSE |
1290 | }; |
1291 | |
ae3d717a |
1292 | static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_terminate_seat_IN_ARG_unnamed_arg0 = |
86cb7727 |
1293 | { |
1294 | { |
1295 | -1, |
1296 | (gchar *) "unnamed_arg0", |
1297 | (gchar *) "s", |
1298 | NULL |
1299 | }, |
1300 | FALSE |
1301 | }; |
1302 | |
ae3d717a |
1303 | static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_terminate_seat_IN_ARG_pointers[] = |
86cb7727 |
1304 | { |
ae3d717a |
1305 | &_logind_login1_manager_method_info_terminate_seat_IN_ARG_unnamed_arg0, |
86cb7727 |
1306 | NULL |
1307 | }; |
1308 | |
ae3d717a |
1309 | static const GDBusAnnotationInfo _logind_login1_manager_method_terminate_seat_annotation_info_0 = |
86cb7727 |
1310 | { |
1311 | -1, |
1312 | (gchar *) "org.freedesktop.systemd1.Privileged", |
1313 | (gchar *) "true", |
1314 | NULL |
1315 | }; |
1316 | |
ae3d717a |
1317 | static const GDBusAnnotationInfo * const _logind_login1_manager_method_terminate_seat_annotation_info_pointers[] = |
86cb7727 |
1318 | { |
ae3d717a |
1319 | &_logind_login1_manager_method_terminate_seat_annotation_info_0, |
86cb7727 |
1320 | NULL |
1321 | }; |
1322 | |
ae3d717a |
1323 | static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_terminate_seat = |
86cb7727 |
1324 | { |
1325 | { |
1326 | -1, |
1327 | (gchar *) "TerminateSeat", |
ae3d717a |
1328 | (GDBusArgInfo **) &_logind_login1_manager_method_info_terminate_seat_IN_ARG_pointers, |
86cb7727 |
1329 | NULL, |
ae3d717a |
1330 | (GDBusAnnotationInfo **) &_logind_login1_manager_method_terminate_seat_annotation_info_pointers |
86cb7727 |
1331 | }, |
1332 | "handle-terminate-seat", |
1333 | FALSE |
1334 | }; |
1335 | |
ae3d717a |
1336 | static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_set_user_linger_IN_ARG_unnamed_arg0 = |
86cb7727 |
1337 | { |
1338 | { |
1339 | -1, |
1340 | (gchar *) "unnamed_arg0", |
1341 | (gchar *) "u", |
1342 | NULL |
1343 | }, |
1344 | FALSE |
1345 | }; |
1346 | |
ae3d717a |
1347 | static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_set_user_linger_IN_ARG_unnamed_arg1 = |
86cb7727 |
1348 | { |
1349 | { |
1350 | -1, |
1351 | (gchar *) "unnamed_arg1", |
1352 | (gchar *) "b", |
1353 | NULL |
1354 | }, |
1355 | FALSE |
1356 | }; |
1357 | |
ae3d717a |
1358 | static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_set_user_linger_IN_ARG_unnamed_arg2 = |
86cb7727 |
1359 | { |
1360 | { |
1361 | -1, |
1362 | (gchar *) "unnamed_arg2", |
1363 | (gchar *) "b", |
1364 | NULL |
1365 | }, |
1366 | FALSE |
1367 | }; |
1368 | |
ae3d717a |
1369 | static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_set_user_linger_IN_ARG_pointers[] = |
86cb7727 |
1370 | { |
ae3d717a |
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, |
86cb7727 |
1374 | NULL |
1375 | }; |
1376 | |
ae3d717a |
1377 | static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_set_user_linger = |
86cb7727 |
1378 | { |
1379 | { |
1380 | -1, |
1381 | (gchar *) "SetUserLinger", |
ae3d717a |
1382 | (GDBusArgInfo **) &_logind_login1_manager_method_info_set_user_linger_IN_ARG_pointers, |
86cb7727 |
1383 | NULL, |
1384 | NULL |
1385 | }, |
1386 | "handle-set-user-linger", |
1387 | FALSE |
1388 | }; |
1389 | |
ae3d717a |
1390 | static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_attach_device_IN_ARG_unnamed_arg0 = |
86cb7727 |
1391 | { |
1392 | { |
1393 | -1, |
1394 | (gchar *) "unnamed_arg0", |
1395 | (gchar *) "s", |
1396 | NULL |
1397 | }, |
1398 | FALSE |
1399 | }; |
1400 | |
ae3d717a |
1401 | static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_attach_device_IN_ARG_unnamed_arg1 = |
86cb7727 |
1402 | { |
1403 | { |
1404 | -1, |
1405 | (gchar *) "unnamed_arg1", |
1406 | (gchar *) "s", |
1407 | NULL |
1408 | }, |
1409 | FALSE |
1410 | }; |
1411 | |
ae3d717a |
1412 | static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_attach_device_IN_ARG_unnamed_arg2 = |
86cb7727 |
1413 | { |
1414 | { |
1415 | -1, |
1416 | (gchar *) "unnamed_arg2", |
1417 | (gchar *) "b", |
1418 | NULL |
1419 | }, |
1420 | FALSE |
1421 | }; |
1422 | |
ae3d717a |
1423 | static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_attach_device_IN_ARG_pointers[] = |
86cb7727 |
1424 | { |
ae3d717a |
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, |
86cb7727 |
1428 | NULL |
1429 | }; |
1430 | |
ae3d717a |
1431 | static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_attach_device = |
86cb7727 |
1432 | { |
1433 | { |
1434 | -1, |
1435 | (gchar *) "AttachDevice", |
ae3d717a |
1436 | (GDBusArgInfo **) &_logind_login1_manager_method_info_attach_device_IN_ARG_pointers, |
86cb7727 |
1437 | NULL, |
1438 | NULL |
1439 | }, |
1440 | "handle-attach-device", |
1441 | FALSE |
1442 | }; |
1443 | |
ae3d717a |
1444 | static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_flush_devices_IN_ARG_unnamed_arg0 = |
86cb7727 |
1445 | { |
1446 | { |
1447 | -1, |
1448 | (gchar *) "unnamed_arg0", |
1449 | (gchar *) "b", |
1450 | NULL |
1451 | }, |
1452 | FALSE |
1453 | }; |
1454 | |
ae3d717a |
1455 | static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_flush_devices_IN_ARG_pointers[] = |
86cb7727 |
1456 | { |
ae3d717a |
1457 | &_logind_login1_manager_method_info_flush_devices_IN_ARG_unnamed_arg0, |
86cb7727 |
1458 | NULL |
1459 | }; |
1460 | |
ae3d717a |
1461 | static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_flush_devices = |
86cb7727 |
1462 | { |
1463 | { |
1464 | -1, |
1465 | (gchar *) "FlushDevices", |
ae3d717a |
1466 | (GDBusArgInfo **) &_logind_login1_manager_method_info_flush_devices_IN_ARG_pointers, |
86cb7727 |
1467 | NULL, |
1468 | NULL |
1469 | }, |
1470 | "handle-flush-devices", |
1471 | FALSE |
1472 | }; |
1473 | |
ae3d717a |
1474 | static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_power_off_IN_ARG_unnamed_arg0 = |
86cb7727 |
1475 | { |
1476 | { |
1477 | -1, |
1478 | (gchar *) "unnamed_arg0", |
1479 | (gchar *) "b", |
1480 | NULL |
1481 | }, |
1482 | FALSE |
1483 | }; |
1484 | |
ae3d717a |
1485 | static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_power_off_IN_ARG_pointers[] = |
86cb7727 |
1486 | { |
ae3d717a |
1487 | &_logind_login1_manager_method_info_power_off_IN_ARG_unnamed_arg0, |
86cb7727 |
1488 | NULL |
1489 | }; |
1490 | |
ae3d717a |
1491 | static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_power_off = |
86cb7727 |
1492 | { |
1493 | { |
1494 | -1, |
1495 | (gchar *) "PowerOff", |
ae3d717a |
1496 | (GDBusArgInfo **) &_logind_login1_manager_method_info_power_off_IN_ARG_pointers, |
86cb7727 |
1497 | NULL, |
1498 | NULL |
1499 | }, |
1500 | "handle-power-off", |
1501 | FALSE |
1502 | }; |
1503 | |
ae3d717a |
1504 | static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_reboot_IN_ARG_unnamed_arg0 = |
86cb7727 |
1505 | { |
1506 | { |
1507 | -1, |
1508 | (gchar *) "unnamed_arg0", |
1509 | (gchar *) "b", |
1510 | NULL |
1511 | }, |
1512 | FALSE |
1513 | }; |
1514 | |
ae3d717a |
1515 | static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_reboot_IN_ARG_pointers[] = |
86cb7727 |
1516 | { |
ae3d717a |
1517 | &_logind_login1_manager_method_info_reboot_IN_ARG_unnamed_arg0, |
86cb7727 |
1518 | NULL |
1519 | }; |
1520 | |
ae3d717a |
1521 | static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_reboot = |
86cb7727 |
1522 | { |
1523 | { |
1524 | -1, |
1525 | (gchar *) "Reboot", |
ae3d717a |
1526 | (GDBusArgInfo **) &_logind_login1_manager_method_info_reboot_IN_ARG_pointers, |
86cb7727 |
1527 | NULL, |
1528 | NULL |
1529 | }, |
1530 | "handle-reboot", |
1531 | FALSE |
1532 | }; |
1533 | |
ae3d717a |
1534 | static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_suspend_IN_ARG_unnamed_arg0 = |
86cb7727 |
1535 | { |
1536 | { |
1537 | -1, |
1538 | (gchar *) "unnamed_arg0", |
1539 | (gchar *) "b", |
1540 | NULL |
1541 | }, |
1542 | FALSE |
1543 | }; |
1544 | |
ae3d717a |
1545 | static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_suspend_IN_ARG_pointers[] = |
86cb7727 |
1546 | { |
ae3d717a |
1547 | &_logind_login1_manager_method_info_suspend_IN_ARG_unnamed_arg0, |
86cb7727 |
1548 | NULL |
1549 | }; |
1550 | |
ae3d717a |
1551 | static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_suspend = |
86cb7727 |
1552 | { |
1553 | { |
1554 | -1, |
1555 | (gchar *) "Suspend", |
ae3d717a |
1556 | (GDBusArgInfo **) &_logind_login1_manager_method_info_suspend_IN_ARG_pointers, |
86cb7727 |
1557 | NULL, |
1558 | NULL |
1559 | }, |
1560 | "handle-suspend", |
1561 | FALSE |
1562 | }; |
1563 | |
ae3d717a |
1564 | static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_hibernate_IN_ARG_unnamed_arg0 = |
86cb7727 |
1565 | { |
1566 | { |
1567 | -1, |
1568 | (gchar *) "unnamed_arg0", |
1569 | (gchar *) "b", |
1570 | NULL |
1571 | }, |
1572 | FALSE |
1573 | }; |
1574 | |
ae3d717a |
1575 | static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_hibernate_IN_ARG_pointers[] = |
86cb7727 |
1576 | { |
ae3d717a |
1577 | &_logind_login1_manager_method_info_hibernate_IN_ARG_unnamed_arg0, |
86cb7727 |
1578 | NULL |
1579 | }; |
1580 | |
ae3d717a |
1581 | static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_hibernate = |
86cb7727 |
1582 | { |
1583 | { |
1584 | -1, |
1585 | (gchar *) "Hibernate", |
ae3d717a |
1586 | (GDBusArgInfo **) &_logind_login1_manager_method_info_hibernate_IN_ARG_pointers, |
86cb7727 |
1587 | NULL, |
1588 | NULL |
1589 | }, |
1590 | "handle-hibernate", |
1591 | FALSE |
1592 | }; |
1593 | |
ae3d717a |
1594 | static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_hybrid_sleep_IN_ARG_unnamed_arg0 = |
86cb7727 |
1595 | { |
1596 | { |
1597 | -1, |
1598 | (gchar *) "unnamed_arg0", |
1599 | (gchar *) "b", |
1600 | NULL |
1601 | }, |
1602 | FALSE |
1603 | }; |
1604 | |
ae3d717a |
1605 | static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_hybrid_sleep_IN_ARG_pointers[] = |
86cb7727 |
1606 | { |
ae3d717a |
1607 | &_logind_login1_manager_method_info_hybrid_sleep_IN_ARG_unnamed_arg0, |
86cb7727 |
1608 | NULL |
1609 | }; |
1610 | |
ae3d717a |
1611 | static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_hybrid_sleep = |
86cb7727 |
1612 | { |
1613 | { |
1614 | -1, |
1615 | (gchar *) "HybridSleep", |
ae3d717a |
1616 | (GDBusArgInfo **) &_logind_login1_manager_method_info_hybrid_sleep_IN_ARG_pointers, |
86cb7727 |
1617 | NULL, |
1618 | NULL |
1619 | }, |
1620 | "handle-hybrid-sleep", |
1621 | FALSE |
1622 | }; |
1623 | |
ae3d717a |
1624 | static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_can_power_off_OUT_ARG_unnamed_arg0 = |
86cb7727 |
1625 | { |
1626 | { |
1627 | -1, |
1628 | (gchar *) "unnamed_arg0", |
1629 | (gchar *) "s", |
1630 | NULL |
1631 | }, |
1632 | FALSE |
1633 | }; |
1634 | |
ae3d717a |
1635 | static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_can_power_off_OUT_ARG_pointers[] = |
86cb7727 |
1636 | { |
ae3d717a |
1637 | &_logind_login1_manager_method_info_can_power_off_OUT_ARG_unnamed_arg0, |
86cb7727 |
1638 | NULL |
1639 | }; |
1640 | |
ae3d717a |
1641 | static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_can_power_off = |
86cb7727 |
1642 | { |
1643 | { |
1644 | -1, |
1645 | (gchar *) "CanPowerOff", |
1646 | NULL, |
ae3d717a |
1647 | (GDBusArgInfo **) &_logind_login1_manager_method_info_can_power_off_OUT_ARG_pointers, |
86cb7727 |
1648 | NULL |
1649 | }, |
1650 | "handle-can-power-off", |
1651 | FALSE |
1652 | }; |
1653 | |
ae3d717a |
1654 | static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_can_reboot_OUT_ARG_unnamed_arg0 = |
86cb7727 |
1655 | { |
1656 | { |
1657 | -1, |
1658 | (gchar *) "unnamed_arg0", |
1659 | (gchar *) "s", |
1660 | NULL |
1661 | }, |
1662 | FALSE |
1663 | }; |
1664 | |
ae3d717a |
1665 | static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_can_reboot_OUT_ARG_pointers[] = |
86cb7727 |
1666 | { |
ae3d717a |
1667 | &_logind_login1_manager_method_info_can_reboot_OUT_ARG_unnamed_arg0, |
86cb7727 |
1668 | NULL |
1669 | }; |
1670 | |
ae3d717a |
1671 | static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_can_reboot = |
86cb7727 |
1672 | { |
1673 | { |
1674 | -1, |
1675 | (gchar *) "CanReboot", |
1676 | NULL, |
ae3d717a |
1677 | (GDBusArgInfo **) &_logind_login1_manager_method_info_can_reboot_OUT_ARG_pointers, |
86cb7727 |
1678 | NULL |
1679 | }, |
1680 | "handle-can-reboot", |
1681 | FALSE |
1682 | }; |
1683 | |
ae3d717a |
1684 | static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_can_suspend_OUT_ARG_unnamed_arg0 = |
86cb7727 |
1685 | { |
1686 | { |
1687 | -1, |
1688 | (gchar *) "unnamed_arg0", |
1689 | (gchar *) "s", |
1690 | NULL |
1691 | }, |
1692 | FALSE |
1693 | }; |
1694 | |
ae3d717a |
1695 | static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_can_suspend_OUT_ARG_pointers[] = |
86cb7727 |
1696 | { |
ae3d717a |
1697 | &_logind_login1_manager_method_info_can_suspend_OUT_ARG_unnamed_arg0, |
86cb7727 |
1698 | NULL |
1699 | }; |
1700 | |
ae3d717a |
1701 | static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_can_suspend = |
86cb7727 |
1702 | { |
1703 | { |
1704 | -1, |
1705 | (gchar *) "CanSuspend", |
1706 | NULL, |
ae3d717a |
1707 | (GDBusArgInfo **) &_logind_login1_manager_method_info_can_suspend_OUT_ARG_pointers, |
86cb7727 |
1708 | NULL |
1709 | }, |
1710 | "handle-can-suspend", |
1711 | FALSE |
1712 | }; |
1713 | |
ae3d717a |
1714 | static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_can_hibernate_OUT_ARG_unnamed_arg0 = |
86cb7727 |
1715 | { |
1716 | { |
1717 | -1, |
1718 | (gchar *) "unnamed_arg0", |
1719 | (gchar *) "s", |
1720 | NULL |
1721 | }, |
1722 | FALSE |
1723 | }; |
1724 | |
ae3d717a |
1725 | static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_can_hibernate_OUT_ARG_pointers[] = |
86cb7727 |
1726 | { |
ae3d717a |
1727 | &_logind_login1_manager_method_info_can_hibernate_OUT_ARG_unnamed_arg0, |
86cb7727 |
1728 | NULL |
1729 | }; |
1730 | |
ae3d717a |
1731 | static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_can_hibernate = |
86cb7727 |
1732 | { |
1733 | { |
1734 | -1, |
1735 | (gchar *) "CanHibernate", |
1736 | NULL, |
ae3d717a |
1737 | (GDBusArgInfo **) &_logind_login1_manager_method_info_can_hibernate_OUT_ARG_pointers, |
86cb7727 |
1738 | NULL |
1739 | }, |
1740 | "handle-can-hibernate", |
1741 | FALSE |
1742 | }; |
1743 | |
ae3d717a |
1744 | static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_can_hybrid_sleep_OUT_ARG_unnamed_arg0 = |
86cb7727 |
1745 | { |
1746 | { |
1747 | -1, |
1748 | (gchar *) "unnamed_arg0", |
1749 | (gchar *) "s", |
1750 | NULL |
1751 | }, |
1752 | FALSE |
1753 | }; |
1754 | |
ae3d717a |
1755 | static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_can_hybrid_sleep_OUT_ARG_pointers[] = |
86cb7727 |
1756 | { |
ae3d717a |
1757 | &_logind_login1_manager_method_info_can_hybrid_sleep_OUT_ARG_unnamed_arg0, |
86cb7727 |
1758 | NULL |
1759 | }; |
1760 | |
ae3d717a |
1761 | static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_can_hybrid_sleep = |
86cb7727 |
1762 | { |
1763 | { |
1764 | -1, |
1765 | (gchar *) "CanHybridSleep", |
1766 | NULL, |
ae3d717a |
1767 | (GDBusArgInfo **) &_logind_login1_manager_method_info_can_hybrid_sleep_OUT_ARG_pointers, |
86cb7727 |
1768 | NULL |
1769 | }, |
1770 | "handle-can-hybrid-sleep", |
1771 | FALSE |
1772 | }; |
1773 | |
ae3d717a |
1774 | static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_inhibit_IN_ARG_unnamed_arg0 = |
86cb7727 |
1775 | { |
1776 | { |
1777 | -1, |
1778 | (gchar *) "unnamed_arg0", |
1779 | (gchar *) "s", |
1780 | NULL |
1781 | }, |
1782 | FALSE |
1783 | }; |
1784 | |
ae3d717a |
1785 | static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_inhibit_IN_ARG_unnamed_arg1 = |
86cb7727 |
1786 | { |
1787 | { |
1788 | -1, |
1789 | (gchar *) "unnamed_arg1", |
1790 | (gchar *) "s", |
1791 | NULL |
1792 | }, |
1793 | FALSE |
1794 | }; |
1795 | |
ae3d717a |
1796 | static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_inhibit_IN_ARG_unnamed_arg2 = |
86cb7727 |
1797 | { |
1798 | { |
1799 | -1, |
1800 | (gchar *) "unnamed_arg2", |
1801 | (gchar *) "s", |
1802 | NULL |
1803 | }, |
1804 | FALSE |
1805 | }; |
1806 | |
ae3d717a |
1807 | static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_inhibit_IN_ARG_unnamed_arg3 = |
86cb7727 |
1808 | { |
1809 | { |
1810 | -1, |
1811 | (gchar *) "unnamed_arg3", |
1812 | (gchar *) "s", |
1813 | NULL |
1814 | }, |
1815 | FALSE |
1816 | }; |
1817 | |
ae3d717a |
1818 | static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_inhibit_IN_ARG_pointers[] = |
86cb7727 |
1819 | { |
ae3d717a |
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, |
86cb7727 |
1824 | NULL |
1825 | }; |
1826 | |
ae3d717a |
1827 | static const _ExtendedGDBusArgInfo _logind_login1_manager_method_info_inhibit_OUT_ARG_unnamed_arg4 = |
86cb7727 |
1828 | { |
1829 | { |
1830 | -1, |
1831 | (gchar *) "unnamed_arg4", |
1832 | (gchar *) "h", |
1833 | NULL |
1834 | }, |
1835 | FALSE |
1836 | }; |
1837 | |
ae3d717a |
1838 | static const _ExtendedGDBusArgInfo * const _logind_login1_manager_method_info_inhibit_OUT_ARG_pointers[] = |
86cb7727 |
1839 | { |
ae3d717a |
1840 | &_logind_login1_manager_method_info_inhibit_OUT_ARG_unnamed_arg4, |
86cb7727 |
1841 | NULL |
1842 | }; |
1843 | |
ae3d717a |
1844 | static const _ExtendedGDBusMethodInfo _logind_login1_manager_method_info_inhibit = |
86cb7727 |
1845 | { |
1846 | { |
1847 | -1, |
1848 | (gchar *) "Inhibit", |
ae3d717a |
1849 | (GDBusArgInfo **) &_logind_login1_manager_method_info_inhibit_IN_ARG_pointers, |
1850 | (GDBusArgInfo **) &_logind_login1_manager_method_info_inhibit_OUT_ARG_pointers, |
86cb7727 |
1851 | NULL |
1852 | }, |
1853 | "handle-inhibit", |
1854 | FALSE |
1855 | }; |
1856 | |
ae3d717a |
1857 | static 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, |
86cb7727 |
1895 | NULL |
1896 | }; |
1897 | |
ae3d717a |
1898 | static const _ExtendedGDBusArgInfo _logind_login1_manager_signal_info_session_new_ARG_unnamed_arg0 = |
86cb7727 |
1899 | { |
1900 | { |
1901 | -1, |
1902 | (gchar *) "unnamed_arg0", |
1903 | (gchar *) "s", |
1904 | NULL |
1905 | }, |
1906 | FALSE |
1907 | }; |
1908 | |
ae3d717a |
1909 | static const _ExtendedGDBusArgInfo _logind_login1_manager_signal_info_session_new_ARG_unnamed_arg1 = |
86cb7727 |
1910 | { |
1911 | { |
1912 | -1, |
1913 | (gchar *) "unnamed_arg1", |
1914 | (gchar *) "o", |
1915 | NULL |
1916 | }, |
1917 | FALSE |
1918 | }; |
1919 | |
ae3d717a |
1920 | static const _ExtendedGDBusArgInfo * const _logind_login1_manager_signal_info_session_new_ARG_pointers[] = |
86cb7727 |
1921 | { |
ae3d717a |
1922 | &_logind_login1_manager_signal_info_session_new_ARG_unnamed_arg0, |
1923 | &_logind_login1_manager_signal_info_session_new_ARG_unnamed_arg1, |
86cb7727 |
1924 | NULL |
1925 | }; |
1926 | |
ae3d717a |
1927 | static const _ExtendedGDBusSignalInfo _logind_login1_manager_signal_info_session_new = |
86cb7727 |
1928 | { |
1929 | { |
1930 | -1, |
1931 | (gchar *) "SessionNew", |
ae3d717a |
1932 | (GDBusArgInfo **) &_logind_login1_manager_signal_info_session_new_ARG_pointers, |
86cb7727 |
1933 | NULL |
1934 | }, |
1935 | "session-new" |
1936 | }; |
1937 | |
ae3d717a |
1938 | static const _ExtendedGDBusArgInfo _logind_login1_manager_signal_info_session_removed_ARG_unnamed_arg0 = |
86cb7727 |
1939 | { |
1940 | { |
1941 | -1, |
1942 | (gchar *) "unnamed_arg0", |
1943 | (gchar *) "s", |
1944 | NULL |
1945 | }, |
1946 | FALSE |
1947 | }; |
1948 | |
ae3d717a |
1949 | static const _ExtendedGDBusArgInfo _logind_login1_manager_signal_info_session_removed_ARG_unnamed_arg1 = |
86cb7727 |
1950 | { |
1951 | { |
1952 | -1, |
1953 | (gchar *) "unnamed_arg1", |
1954 | (gchar *) "o", |
1955 | NULL |
1956 | }, |
1957 | FALSE |
1958 | }; |
1959 | |
ae3d717a |
1960 | static const _ExtendedGDBusArgInfo * const _logind_login1_manager_signal_info_session_removed_ARG_pointers[] = |
86cb7727 |
1961 | { |
ae3d717a |
1962 | &_logind_login1_manager_signal_info_session_removed_ARG_unnamed_arg0, |
1963 | &_logind_login1_manager_signal_info_session_removed_ARG_unnamed_arg1, |
86cb7727 |
1964 | NULL |
1965 | }; |
1966 | |
ae3d717a |
1967 | static const _ExtendedGDBusSignalInfo _logind_login1_manager_signal_info_session_removed = |
86cb7727 |
1968 | { |
1969 | { |
1970 | -1, |
1971 | (gchar *) "SessionRemoved", |
ae3d717a |
1972 | (GDBusArgInfo **) &_logind_login1_manager_signal_info_session_removed_ARG_pointers, |
86cb7727 |
1973 | NULL |
1974 | }, |
1975 | "session-removed" |
1976 | }; |
1977 | |
ae3d717a |
1978 | static const _ExtendedGDBusArgInfo _logind_login1_manager_signal_info_user_new_ARG_unnamed_arg0 = |
86cb7727 |
1979 | { |
1980 | { |
1981 | -1, |
1982 | (gchar *) "unnamed_arg0", |
1983 | (gchar *) "u", |
1984 | NULL |
1985 | }, |
1986 | FALSE |
1987 | }; |
1988 | |
ae3d717a |
1989 | static const _ExtendedGDBusArgInfo _logind_login1_manager_signal_info_user_new_ARG_unnamed_arg1 = |
86cb7727 |
1990 | { |
1991 | { |
1992 | -1, |
1993 | (gchar *) "unnamed_arg1", |
1994 | (gchar *) "o", |
1995 | NULL |
1996 | }, |
1997 | FALSE |
1998 | }; |
1999 | |
ae3d717a |
2000 | static const _ExtendedGDBusArgInfo * const _logind_login1_manager_signal_info_user_new_ARG_pointers[] = |
86cb7727 |
2001 | { |
ae3d717a |
2002 | &_logind_login1_manager_signal_info_user_new_ARG_unnamed_arg0, |
2003 | &_logind_login1_manager_signal_info_user_new_ARG_unnamed_arg1, |
86cb7727 |
2004 | NULL |
2005 | }; |
2006 | |
ae3d717a |
2007 | static const _ExtendedGDBusSignalInfo _logind_login1_manager_signal_info_user_new = |
86cb7727 |
2008 | { |
2009 | { |
2010 | -1, |
2011 | (gchar *) "UserNew", |
ae3d717a |
2012 | (GDBusArgInfo **) &_logind_login1_manager_signal_info_user_new_ARG_pointers, |
86cb7727 |
2013 | NULL |
2014 | }, |
2015 | "user-new" |
2016 | }; |
2017 | |
ae3d717a |
2018 | static const _ExtendedGDBusArgInfo _logind_login1_manager_signal_info_user_removed_ARG_unnamed_arg0 = |
86cb7727 |
2019 | { |
2020 | { |
2021 | -1, |
2022 | (gchar *) "unnamed_arg0", |
2023 | (gchar *) "u", |
2024 | NULL |
2025 | }, |
2026 | FALSE |
2027 | }; |
2028 | |
ae3d717a |
2029 | static const _ExtendedGDBusArgInfo _logind_login1_manager_signal_info_user_removed_ARG_unnamed_arg1 = |
86cb7727 |
2030 | { |
2031 | { |
2032 | -1, |
2033 | (gchar *) "unnamed_arg1", |
2034 | (gchar *) "o", |
2035 | NULL |
2036 | }, |
2037 | FALSE |
2038 | }; |
2039 | |
ae3d717a |
2040 | static const _ExtendedGDBusArgInfo * const _logind_login1_manager_signal_info_user_removed_ARG_pointers[] = |
86cb7727 |
2041 | { |
ae3d717a |
2042 | &_logind_login1_manager_signal_info_user_removed_ARG_unnamed_arg0, |
2043 | &_logind_login1_manager_signal_info_user_removed_ARG_unnamed_arg1, |
86cb7727 |
2044 | NULL |
2045 | }; |
2046 | |
ae3d717a |
2047 | static const _ExtendedGDBusSignalInfo _logind_login1_manager_signal_info_user_removed = |
86cb7727 |
2048 | { |
2049 | { |
2050 | -1, |
2051 | (gchar *) "UserRemoved", |
ae3d717a |
2052 | (GDBusArgInfo **) &_logind_login1_manager_signal_info_user_removed_ARG_pointers, |
86cb7727 |
2053 | NULL |
2054 | }, |
2055 | "user-removed" |
2056 | }; |
2057 | |
ae3d717a |
2058 | static const _ExtendedGDBusArgInfo _logind_login1_manager_signal_info_seat_new_ARG_unnamed_arg0 = |
86cb7727 |
2059 | { |
2060 | { |
2061 | -1, |
2062 | (gchar *) "unnamed_arg0", |
2063 | (gchar *) "s", |
2064 | NULL |
2065 | }, |
2066 | FALSE |
2067 | }; |
2068 | |
ae3d717a |
2069 | static const _ExtendedGDBusArgInfo _logind_login1_manager_signal_info_seat_new_ARG_unnamed_arg1 = |
86cb7727 |
2070 | { |
2071 | { |
2072 | -1, |
2073 | (gchar *) "unnamed_arg1", |
2074 | (gchar *) "o", |
2075 | NULL |
2076 | }, |
2077 | FALSE |
2078 | }; |
2079 | |
ae3d717a |
2080 | static const _ExtendedGDBusArgInfo * const _logind_login1_manager_signal_info_seat_new_ARG_pointers[] = |
86cb7727 |
2081 | { |
ae3d717a |
2082 | &_logind_login1_manager_signal_info_seat_new_ARG_unnamed_arg0, |
2083 | &_logind_login1_manager_signal_info_seat_new_ARG_unnamed_arg1, |
86cb7727 |
2084 | NULL |
2085 | }; |
2086 | |
ae3d717a |
2087 | static const _ExtendedGDBusSignalInfo _logind_login1_manager_signal_info_seat_new = |
86cb7727 |
2088 | { |
2089 | { |
2090 | -1, |
2091 | (gchar *) "SeatNew", |
ae3d717a |
2092 | (GDBusArgInfo **) &_logind_login1_manager_signal_info_seat_new_ARG_pointers, |
86cb7727 |
2093 | NULL |
2094 | }, |
2095 | "seat-new" |
2096 | }; |
2097 | |
ae3d717a |
2098 | static const _ExtendedGDBusArgInfo _logind_login1_manager_signal_info_seat_removed_ARG_unnamed_arg0 = |
86cb7727 |
2099 | { |
2100 | { |
2101 | -1, |
2102 | (gchar *) "unnamed_arg0", |
2103 | (gchar *) "s", |
2104 | NULL |
2105 | }, |
2106 | FALSE |
2107 | }; |
2108 | |
ae3d717a |
2109 | static const _ExtendedGDBusArgInfo _logind_login1_manager_signal_info_seat_removed_ARG_unnamed_arg1 = |
86cb7727 |
2110 | { |
2111 | { |
2112 | -1, |
2113 | (gchar *) "unnamed_arg1", |
2114 | (gchar *) "o", |
2115 | NULL |
2116 | }, |
2117 | FALSE |
2118 | }; |
2119 | |
ae3d717a |
2120 | static const _ExtendedGDBusArgInfo * const _logind_login1_manager_signal_info_seat_removed_ARG_pointers[] = |
86cb7727 |
2121 | { |
ae3d717a |
2122 | &_logind_login1_manager_signal_info_seat_removed_ARG_unnamed_arg0, |
2123 | &_logind_login1_manager_signal_info_seat_removed_ARG_unnamed_arg1, |
86cb7727 |
2124 | NULL |
2125 | }; |
2126 | |
ae3d717a |
2127 | static const _ExtendedGDBusSignalInfo _logind_login1_manager_signal_info_seat_removed = |
86cb7727 |
2128 | { |
2129 | { |
2130 | -1, |
2131 | (gchar *) "SeatRemoved", |
ae3d717a |
2132 | (GDBusArgInfo **) &_logind_login1_manager_signal_info_seat_removed_ARG_pointers, |
86cb7727 |
2133 | NULL |
2134 | }, |
2135 | "seat-removed" |
2136 | }; |
2137 | |
ae3d717a |
2138 | static const _ExtendedGDBusArgInfo _logind_login1_manager_signal_info_prepare_for_shutdown_ARG_unnamed_arg0 = |
86cb7727 |
2139 | { |
2140 | { |
2141 | -1, |
2142 | (gchar *) "unnamed_arg0", |
2143 | (gchar *) "b", |
2144 | NULL |
2145 | }, |
2146 | FALSE |
2147 | }; |
2148 | |
ae3d717a |
2149 | static const _ExtendedGDBusArgInfo * const _logind_login1_manager_signal_info_prepare_for_shutdown_ARG_pointers[] = |
86cb7727 |
2150 | { |
ae3d717a |
2151 | &_logind_login1_manager_signal_info_prepare_for_shutdown_ARG_unnamed_arg0, |
86cb7727 |
2152 | NULL |
2153 | }; |
2154 | |
ae3d717a |
2155 | static const _ExtendedGDBusSignalInfo _logind_login1_manager_signal_info_prepare_for_shutdown = |
86cb7727 |
2156 | { |
2157 | { |
2158 | -1, |
2159 | (gchar *) "PrepareForShutdown", |
ae3d717a |
2160 | (GDBusArgInfo **) &_logind_login1_manager_signal_info_prepare_for_shutdown_ARG_pointers, |
86cb7727 |
2161 | NULL |
2162 | }, |
2163 | "prepare-for-shutdown" |
2164 | }; |
2165 | |
ae3d717a |
2166 | static const _ExtendedGDBusArgInfo _logind_login1_manager_signal_info_prepare_for_sleep_ARG_unnamed_arg0 = |
86cb7727 |
2167 | { |
2168 | { |
2169 | -1, |
2170 | (gchar *) "unnamed_arg0", |
2171 | (gchar *) "b", |
2172 | NULL |
2173 | }, |
2174 | FALSE |
2175 | }; |
2176 | |
ae3d717a |
2177 | static const _ExtendedGDBusArgInfo * const _logind_login1_manager_signal_info_prepare_for_sleep_ARG_pointers[] = |
86cb7727 |
2178 | { |
ae3d717a |
2179 | &_logind_login1_manager_signal_info_prepare_for_sleep_ARG_unnamed_arg0, |
86cb7727 |
2180 | NULL |
2181 | }; |
2182 | |
ae3d717a |
2183 | static const _ExtendedGDBusSignalInfo _logind_login1_manager_signal_info_prepare_for_sleep = |
86cb7727 |
2184 | { |
2185 | { |
2186 | -1, |
2187 | (gchar *) "PrepareForSleep", |
ae3d717a |
2188 | (GDBusArgInfo **) &_logind_login1_manager_signal_info_prepare_for_sleep_ARG_pointers, |
86cb7727 |
2189 | NULL |
2190 | }, |
2191 | "prepare-for-sleep" |
2192 | }; |
2193 | |
ae3d717a |
2194 | static const _ExtendedGDBusSignalInfo * const _logind_login1_manager_signal_info_pointers[] = |
86cb7727 |
2195 | { |
ae3d717a |
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, |
86cb7727 |
2204 | NULL |
2205 | }; |
2206 | |
ae3d717a |
2207 | static const GDBusAnnotationInfo _logind_login1_manager_property_nauto_vts_annotation_info_0 = |
86cb7727 |
2208 | { |
2209 | -1, |
2210 | (gchar *) "org.freedesktop.DBus.Property.EmitsChangedSignal", |
2211 | (gchar *) "const", |
2212 | NULL |
2213 | }; |
2214 | |
ae3d717a |
2215 | static const GDBusAnnotationInfo * const _logind_login1_manager_property_nauto_vts_annotation_info_pointers[] = |
86cb7727 |
2216 | { |
ae3d717a |
2217 | &_logind_login1_manager_property_nauto_vts_annotation_info_0, |
86cb7727 |
2218 | NULL |
2219 | }; |
2220 | |
ae3d717a |
2221 | static const _ExtendedGDBusPropertyInfo _logind_login1_manager_property_info_nauto_vts = |
86cb7727 |
2222 | { |
2223 | { |
2224 | -1, |
2225 | (gchar *) "NAutoVTs", |
2226 | (gchar *) "u", |
2227 | G_DBUS_PROPERTY_INFO_FLAGS_READABLE, |
ae3d717a |
2228 | (GDBusAnnotationInfo **) &_logind_login1_manager_property_nauto_vts_annotation_info_pointers |
86cb7727 |
2229 | }, |
2230 | "nauto-vts", |
2231 | FALSE |
2232 | }; |
2233 | |
ae3d717a |
2234 | static const GDBusAnnotationInfo _logind_login1_manager_property_kill_only_users_annotation_info_0 = |
86cb7727 |
2235 | { |
2236 | -1, |
2237 | (gchar *) "org.freedesktop.DBus.Property.EmitsChangedSignal", |
2238 | (gchar *) "const", |
2239 | NULL |
2240 | }; |
2241 | |
ae3d717a |
2242 | static const GDBusAnnotationInfo * const _logind_login1_manager_property_kill_only_users_annotation_info_pointers[] = |
86cb7727 |
2243 | { |
ae3d717a |
2244 | &_logind_login1_manager_property_kill_only_users_annotation_info_0, |
86cb7727 |
2245 | NULL |
2246 | }; |
2247 | |
ae3d717a |
2248 | static const _ExtendedGDBusPropertyInfo _logind_login1_manager_property_info_kill_only_users = |
86cb7727 |
2249 | { |
2250 | { |
2251 | -1, |
2252 | (gchar *) "KillOnlyUsers", |
2253 | (gchar *) "as", |
2254 | G_DBUS_PROPERTY_INFO_FLAGS_READABLE, |
ae3d717a |
2255 | (GDBusAnnotationInfo **) &_logind_login1_manager_property_kill_only_users_annotation_info_pointers |
86cb7727 |
2256 | }, |
2257 | "kill-only-users", |
2258 | FALSE |
2259 | }; |
2260 | |
ae3d717a |
2261 | static const GDBusAnnotationInfo _logind_login1_manager_property_kill_exclude_users_annotation_info_0 = |
86cb7727 |
2262 | { |
2263 | -1, |
2264 | (gchar *) "org.freedesktop.DBus.Property.EmitsChangedSignal", |
2265 | (gchar *) "const", |
2266 | NULL |
2267 | }; |
2268 | |
ae3d717a |
2269 | static const GDBusAnnotationInfo * const _logind_login1_manager_property_kill_exclude_users_annotation_info_pointers[] = |
86cb7727 |
2270 | { |
ae3d717a |
2271 | &_logind_login1_manager_property_kill_exclude_users_annotation_info_0, |
86cb7727 |
2272 | NULL |
2273 | }; |
2274 | |
ae3d717a |
2275 | static const _ExtendedGDBusPropertyInfo _logind_login1_manager_property_info_kill_exclude_users = |
86cb7727 |
2276 | { |
2277 | { |
2278 | -1, |
2279 | (gchar *) "KillExcludeUsers", |
2280 | (gchar *) "as", |
2281 | G_DBUS_PROPERTY_INFO_FLAGS_READABLE, |
ae3d717a |
2282 | (GDBusAnnotationInfo **) &_logind_login1_manager_property_kill_exclude_users_annotation_info_pointers |
86cb7727 |
2283 | }, |
2284 | "kill-exclude-users", |
2285 | FALSE |
2286 | }; |
2287 | |
ae3d717a |
2288 | static const GDBusAnnotationInfo _logind_login1_manager_property_kill_user_processes_annotation_info_0 = |
86cb7727 |
2289 | { |
2290 | -1, |
2291 | (gchar *) "org.freedesktop.DBus.Property.EmitsChangedSignal", |
2292 | (gchar *) "const", |
2293 | NULL |
2294 | }; |
2295 | |
ae3d717a |
2296 | static const GDBusAnnotationInfo * const _logind_login1_manager_property_kill_user_processes_annotation_info_pointers[] = |
86cb7727 |
2297 | { |
ae3d717a |
2298 | &_logind_login1_manager_property_kill_user_processes_annotation_info_0, |
86cb7727 |
2299 | NULL |
2300 | }; |
2301 | |
ae3d717a |
2302 | static const _ExtendedGDBusPropertyInfo _logind_login1_manager_property_info_kill_user_processes = |
86cb7727 |
2303 | { |
2304 | { |
2305 | -1, |
2306 | (gchar *) "KillUserProcesses", |
2307 | (gchar *) "b", |
2308 | G_DBUS_PROPERTY_INFO_FLAGS_READABLE, |
ae3d717a |
2309 | (GDBusAnnotationInfo **) &_logind_login1_manager_property_kill_user_processes_annotation_info_pointers |
86cb7727 |
2310 | }, |
2311 | "kill-user-processes", |
2312 | FALSE |
2313 | }; |
2314 | |
ae3d717a |
2315 | static const _ExtendedGDBusPropertyInfo _logind_login1_manager_property_info_idle_hint = |
86cb7727 |
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 | |
ae3d717a |
2328 | static const _ExtendedGDBusPropertyInfo _logind_login1_manager_property_info_idle_since_hint = |
86cb7727 |
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 | |
ae3d717a |
2341 | static const _ExtendedGDBusPropertyInfo _logind_login1_manager_property_info_idle_since_hint_monotonic = |
86cb7727 |
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 | |
ae3d717a |
2354 | static const _ExtendedGDBusPropertyInfo _logind_login1_manager_property_info_block_inhibited = |
86cb7727 |
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 | |
ae3d717a |
2367 | static const _ExtendedGDBusPropertyInfo _logind_login1_manager_property_info_delay_inhibited = |
86cb7727 |
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 | |
ae3d717a |
2380 | static const GDBusAnnotationInfo _logind_login1_manager_property_inhibit_delay_max_usec_annotation_info_0 = |
86cb7727 |
2381 | { |
2382 | -1, |
2383 | (gchar *) "org.freedesktop.DBus.Property.EmitsChangedSignal", |
2384 | (gchar *) "const", |
2385 | NULL |
2386 | }; |
2387 | |
ae3d717a |
2388 | static const GDBusAnnotationInfo * const _logind_login1_manager_property_inhibit_delay_max_usec_annotation_info_pointers[] = |
86cb7727 |
2389 | { |
ae3d717a |
2390 | &_logind_login1_manager_property_inhibit_delay_max_usec_annotation_info_0, |
86cb7727 |
2391 | NULL |
2392 | }; |
2393 | |
ae3d717a |
2394 | static const _ExtendedGDBusPropertyInfo _logind_login1_manager_property_info_inhibit_delay_max_usec = |
86cb7727 |
2395 | { |
2396 | { |
2397 | -1, |
2398 | (gchar *) "InhibitDelayMaxUSec", |
2399 | (gchar *) "t", |
2400 | G_DBUS_PROPERTY_INFO_FLAGS_READABLE, |
ae3d717a |
2401 | (GDBusAnnotationInfo **) &_logind_login1_manager_property_inhibit_delay_max_usec_annotation_info_pointers |
86cb7727 |
2402 | }, |
2403 | "inhibit-delay-max-usec", |
2404 | FALSE |
2405 | }; |
2406 | |
ae3d717a |
2407 | static const GDBusAnnotationInfo _logind_login1_manager_property_handle_power_key_annotation_info_0 = |
86cb7727 |
2408 | { |
2409 | -1, |
2410 | (gchar *) "org.freedesktop.DBus.Property.EmitsChangedSignal", |
2411 | (gchar *) "const", |
2412 | NULL |
2413 | }; |
2414 | |
ae3d717a |
2415 | static const GDBusAnnotationInfo * const _logind_login1_manager_property_handle_power_key_annotation_info_pointers[] = |
86cb7727 |
2416 | { |
ae3d717a |
2417 | &_logind_login1_manager_property_handle_power_key_annotation_info_0, |
86cb7727 |
2418 | NULL |
2419 | }; |
2420 | |
ae3d717a |
2421 | static const _ExtendedGDBusPropertyInfo _logind_login1_manager_property_info_handle_power_key = |
86cb7727 |
2422 | { |
2423 | { |
2424 | -1, |
2425 | (gchar *) "HandlePowerKey", |
2426 | (gchar *) "s", |
2427 | G_DBUS_PROPERTY_INFO_FLAGS_READABLE, |
ae3d717a |
2428 | (GDBusAnnotationInfo **) &_logind_login1_manager_property_handle_power_key_annotation_info_pointers |
86cb7727 |
2429 | }, |
2430 | "handle-power-key", |
2431 | FALSE |
2432 | }; |
2433 | |
ae3d717a |
2434 | static const GDBusAnnotationInfo _logind_login1_manager_property_handle_suspend_key_annotation_info_0 = |
86cb7727 |
2435 | { |
2436 | -1, |
2437 | (gchar *) "org.freedesktop.DBus.Property.EmitsChangedSignal", |
2438 | (gchar *) "const", |
2439 | NULL |
2440 | }; |
2441 | |
ae3d717a |
2442 | static const GDBusAnnotationInfo * const _logind_login1_manager_property_handle_suspend_key_annotation_info_pointers[] = |
86cb7727 |
2443 | { |
ae3d717a |
2444 | &_logind_login1_manager_property_handle_suspend_key_annotation_info_0, |
86cb7727 |
2445 | NULL |
2446 | }; |
2447 | |
ae3d717a |
2448 | static const _ExtendedGDBusPropertyInfo _logind_login1_manager_property_info_handle_suspend_key = |
86cb7727 |
2449 | { |
2450 | { |
2451 | -1, |
2452 | (gchar *) "HandleSuspendKey", |
2453 | (gchar *) "s", |
2454 | G_DBUS_PROPERTY_INFO_FLAGS_READABLE, |
ae3d717a |
2455 | (GDBusAnnotationInfo **) &_logind_login1_manager_property_handle_suspend_key_annotation_info_pointers |
86cb7727 |
2456 | }, |
2457 | "handle-suspend-key", |
2458 | FALSE |
2459 | }; |
2460 | |
ae3d717a |
2461 | static const GDBusAnnotationInfo _logind_login1_manager_property_handle_hibernate_key_annotation_info_0 = |
86cb7727 |
2462 | { |
2463 | -1, |
2464 | (gchar *) "org.freedesktop.DBus.Property.EmitsChangedSignal", |
2465 | (gchar *) "const", |
2466 | NULL |
2467 | }; |
2468 | |
ae3d717a |
2469 | static const GDBusAnnotationInfo * const _logind_login1_manager_property_handle_hibernate_key_annotation_info_pointers[] = |
86cb7727 |
2470 | { |
ae3d717a |
2471 | &_logind_login1_manager_property_handle_hibernate_key_annotation_info_0, |
86cb7727 |
2472 | NULL |
2473 | }; |
2474 | |
ae3d717a |
2475 | static const _ExtendedGDBusPropertyInfo _logind_login1_manager_property_info_handle_hibernate_key = |
86cb7727 |
2476 | { |
2477 | { |
2478 | -1, |
2479 | (gchar *) "HandleHibernateKey", |
2480 | (gchar *) "s", |
2481 | G_DBUS_PROPERTY_INFO_FLAGS_READABLE, |
ae3d717a |
2482 | (GDBusAnnotationInfo **) &_logind_login1_manager_property_handle_hibernate_key_annotation_info_pointers |
86cb7727 |
2483 | }, |
2484 | "handle-hibernate-key", |
2485 | FALSE |
2486 | }; |
2487 | |
ae3d717a |
2488 | static const GDBusAnnotationInfo _logind_login1_manager_property_handle_lid_switch_annotation_info_0 = |
86cb7727 |
2489 | { |
2490 | -1, |
2491 | (gchar *) "org.freedesktop.DBus.Property.EmitsChangedSignal", |
2492 | (gchar *) "const", |
2493 | NULL |
2494 | }; |
2495 | |
ae3d717a |
2496 | static const GDBusAnnotationInfo * const _logind_login1_manager_property_handle_lid_switch_annotation_info_pointers[] = |
86cb7727 |
2497 | { |
ae3d717a |
2498 | &_logind_login1_manager_property_handle_lid_switch_annotation_info_0, |
86cb7727 |
2499 | NULL |
2500 | }; |
2501 | |
ae3d717a |
2502 | static const _ExtendedGDBusPropertyInfo _logind_login1_manager_property_info_handle_lid_switch = |
86cb7727 |
2503 | { |
2504 | { |
2505 | -1, |
2506 | (gchar *) "HandleLidSwitch", |
2507 | (gchar *) "s", |
2508 | G_DBUS_PROPERTY_INFO_FLAGS_READABLE, |
ae3d717a |
2509 | (GDBusAnnotationInfo **) &_logind_login1_manager_property_handle_lid_switch_annotation_info_pointers |
86cb7727 |
2510 | }, |
2511 | "handle-lid-switch", |
2512 | FALSE |
2513 | }; |
2514 | |
ae3d717a |
2515 | static const GDBusAnnotationInfo _logind_login1_manager_property_idle_action_annotation_info_0 = |
86cb7727 |
2516 | { |
2517 | -1, |
2518 | (gchar *) "org.freedesktop.DBus.Property.EmitsChangedSignal", |
2519 | (gchar *) "const", |
2520 | NULL |
2521 | }; |
2522 | |
ae3d717a |
2523 | static const GDBusAnnotationInfo * const _logind_login1_manager_property_idle_action_annotation_info_pointers[] = |
86cb7727 |
2524 | { |
ae3d717a |
2525 | &_logind_login1_manager_property_idle_action_annotation_info_0, |
86cb7727 |
2526 | NULL |
2527 | }; |
2528 | |
ae3d717a |
2529 | static const _ExtendedGDBusPropertyInfo _logind_login1_manager_property_info_idle_action = |
86cb7727 |
2530 | { |
2531 | { |
2532 | -1, |
2533 | (gchar *) "IdleAction", |
2534 | (gchar *) "s", |
2535 | G_DBUS_PROPERTY_INFO_FLAGS_READABLE, |
ae3d717a |
2536 | (GDBusAnnotationInfo **) &_logind_login1_manager_property_idle_action_annotation_info_pointers |
86cb7727 |
2537 | }, |
2538 | "idle-action", |
2539 | FALSE |
2540 | }; |
2541 | |
ae3d717a |
2542 | static const GDBusAnnotationInfo _logind_login1_manager_property_idle_action_usec_annotation_info_0 = |
86cb7727 |
2543 | { |
2544 | -1, |
2545 | (gchar *) "org.freedesktop.DBus.Property.EmitsChangedSignal", |
2546 | (gchar *) "const", |
2547 | NULL |
2548 | }; |
2549 | |
ae3d717a |
2550 | static const GDBusAnnotationInfo * const _logind_login1_manager_property_idle_action_usec_annotation_info_pointers[] = |
86cb7727 |
2551 | { |
ae3d717a |
2552 | &_logind_login1_manager_property_idle_action_usec_annotation_info_0, |
86cb7727 |
2553 | NULL |
2554 | }; |
2555 | |
ae3d717a |
2556 | static const _ExtendedGDBusPropertyInfo _logind_login1_manager_property_info_idle_action_usec = |
86cb7727 |
2557 | { |
2558 | { |
2559 | -1, |
2560 | (gchar *) "IdleActionUSec", |
2561 | (gchar *) "t", |
2562 | G_DBUS_PROPERTY_INFO_FLAGS_READABLE, |
ae3d717a |
2563 | (GDBusAnnotationInfo **) &_logind_login1_manager_property_idle_action_usec_annotation_info_pointers |
86cb7727 |
2564 | }, |
2565 | "idle-action-usec", |
2566 | FALSE |
2567 | }; |
2568 | |
ae3d717a |
2569 | static const GDBusAnnotationInfo _logind_login1_manager_property_preparing_for_shutdown_annotation_info_0 = |
86cb7727 |
2570 | { |
2571 | -1, |
2572 | (gchar *) "org.freedesktop.DBus.Property.EmitsChangedSignal", |
2573 | (gchar *) "false", |
2574 | NULL |
2575 | }; |
2576 | |
ae3d717a |
2577 | static const GDBusAnnotationInfo * const _logind_login1_manager_property_preparing_for_shutdown_annotation_info_pointers[] = |
86cb7727 |
2578 | { |
ae3d717a |
2579 | &_logind_login1_manager_property_preparing_for_shutdown_annotation_info_0, |
86cb7727 |
2580 | NULL |
2581 | }; |
2582 | |
ae3d717a |
2583 | static const _ExtendedGDBusPropertyInfo _logind_login1_manager_property_info_preparing_for_shutdown = |
86cb7727 |
2584 | { |
2585 | { |
2586 | -1, |
2587 | (gchar *) "PreparingForShutdown", |
2588 | (gchar *) "b", |
2589 | G_DBUS_PROPERTY_INFO_FLAGS_READABLE, |
ae3d717a |
2590 | (GDBusAnnotationInfo **) &_logind_login1_manager_property_preparing_for_shutdown_annotation_info_pointers |
86cb7727 |
2591 | }, |
2592 | "preparing-for-shutdown", |
2593 | FALSE |
2594 | }; |
2595 | |
ae3d717a |
2596 | static const GDBusAnnotationInfo _logind_login1_manager_property_preparing_for_sleep_annotation_info_0 = |
86cb7727 |
2597 | { |
2598 | -1, |
2599 | (gchar *) "org.freedesktop.DBus.Property.EmitsChangedSignal", |
2600 | (gchar *) "false", |
2601 | NULL |
2602 | }; |
2603 | |
ae3d717a |
2604 | static const GDBusAnnotationInfo * const _logind_login1_manager_property_preparing_for_sleep_annotation_info_pointers[] = |
86cb7727 |
2605 | { |
ae3d717a |
2606 | &_logind_login1_manager_property_preparing_for_sleep_annotation_info_0, |
86cb7727 |
2607 | NULL |
2608 | }; |
2609 | |
ae3d717a |
2610 | static const _ExtendedGDBusPropertyInfo _logind_login1_manager_property_info_preparing_for_sleep = |
86cb7727 |
2611 | { |
2612 | { |
2613 | -1, |
2614 | (gchar *) "PreparingForSleep", |
2615 | (gchar *) "b", |
2616 | G_DBUS_PROPERTY_INFO_FLAGS_READABLE, |
ae3d717a |
2617 | (GDBusAnnotationInfo **) &_logind_login1_manager_property_preparing_for_sleep_annotation_info_pointers |
86cb7727 |
2618 | }, |
2619 | "preparing-for-sleep", |
2620 | FALSE |
2621 | }; |
2622 | |
ae3d717a |
2623 | static 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, |
86cb7727 |
2643 | NULL |
2644 | }; |
2645 | |
ae3d717a |
2646 | static const _ExtendedGDBusInterfaceInfo _logind_login1_manager_interface_info = |
86cb7727 |
2647 | { |
2648 | { |
2649 | -1, |
2650 | (gchar *) "org.freedesktop.login1.Manager", |
ae3d717a |
2651 | (GDBusMethodInfo **) &_logind_login1_manager_method_info_pointers, |
2652 | (GDBusSignalInfo **) &_logind_login1_manager_signal_info_pointers, |
2653 | (GDBusPropertyInfo **) &_logind_login1_manager_property_info_pointers, |
86cb7727 |
2654 | NULL |
2655 | }, |
2656 | "login1-manager", |
2657 | }; |
2658 | |
2659 | |
2660 | /** |
ae3d717a |
2661 | * logind_login1_manager_interface_info: |
86cb7727 |
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 | */ |
2667 | GDBusInterfaceInfo * |
ae3d717a |
2668 | logind_login1_manager_interface_info (void) |
86cb7727 |
2669 | { |
ae3d717a |
2670 | return (GDBusInterfaceInfo *) &_logind_login1_manager_interface_info.parent_struct; |
86cb7727 |
2671 | } |
2672 | |
2673 | /** |
ae3d717a |
2674 | * logind_login1_manager_override_properties: |
86cb7727 |
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 | * |
ae3d717a |
2678 | * Overrides all #GObject properties in the #logindLogin1Manager interface for a concrete class. |
86cb7727 |
2679 | * The properties are overridden in the order they are defined. |
2680 | * |
2681 | * Returns: The last property id. |
2682 | */ |
2683 | guint |
ae3d717a |
2684 | logind_login1_manager_override_properties (GObjectClass *klass, guint property_id_begin) |
86cb7727 |
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 | /** |
ae3d717a |
2710 | * logindLogin1Manager: |
86cb7727 |
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 | /** |
ae3d717a |
2716 | * logindLogin1ManagerIface: |
86cb7727 |
2717 | * @parent_iface: The parent interface. |
ae3d717a |
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. |
86cb7727 |
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 | |
ae3d717a |
2784 | typedef logindLogin1ManagerIface logindLogin1ManagerInterface; |
2785 | G_DEFINE_INTERFACE (logindLogin1Manager, logind_login1_manager, G_TYPE_OBJECT); |
86cb7727 |
2786 | |
2787 | static void |
ae3d717a |
2788 | logind_login1_manager_default_init (logindLogin1ManagerIface *iface) |
86cb7727 |
2789 | { |
2790 | /* GObject signals for incoming D-Bus method calls: */ |
2791 | /** |
ae3d717a |
2792 | * logindLogin1Manager::handle-get-session: |
2793 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | * |
ae3d717a |
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. |
86cb7727 |
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, |
ae3d717a |
2806 | G_STRUCT_OFFSET (logindLogin1ManagerIface, handle_get_session), |
86cb7727 |
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 | /** |
ae3d717a |
2815 | * logindLogin1Manager::handle-get-session-by-pid: |
2816 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | * |
ae3d717a |
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. |
86cb7727 |
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, |
ae3d717a |
2829 | G_STRUCT_OFFSET (logindLogin1ManagerIface, handle_get_session_by_pid), |
86cb7727 |
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 | /** |
ae3d717a |
2838 | * logindLogin1Manager::handle-get-user: |
2839 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | * |
ae3d717a |
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. |
86cb7727 |
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, |
ae3d717a |
2852 | G_STRUCT_OFFSET (logindLogin1ManagerIface, handle_get_user), |
86cb7727 |
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 | /** |
ae3d717a |
2861 | * logindLogin1Manager::handle-get-user-by-pid: |
2862 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | * |
ae3d717a |
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. |
86cb7727 |
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, |
ae3d717a |
2875 | G_STRUCT_OFFSET (logindLogin1ManagerIface, handle_get_user_by_pid), |
86cb7727 |
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 | /** |
ae3d717a |
2884 | * logindLogin1Manager::handle-get-seat: |
2885 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | * |
ae3d717a |
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. |
86cb7727 |
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, |
ae3d717a |
2898 | G_STRUCT_OFFSET (logindLogin1ManagerIface, handle_get_seat), |
86cb7727 |
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 | /** |
ae3d717a |
2907 | * logindLogin1Manager::handle-list-sessions: |
2908 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | * |
ae3d717a |
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. |
86cb7727 |
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, |
ae3d717a |
2920 | G_STRUCT_OFFSET (logindLogin1ManagerIface, handle_list_sessions), |
86cb7727 |
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 | /** |
ae3d717a |
2929 | * logindLogin1Manager::handle-list-users: |
2930 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | * |
ae3d717a |
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. |
86cb7727 |
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, |
ae3d717a |
2942 | G_STRUCT_OFFSET (logindLogin1ManagerIface, handle_list_users), |
86cb7727 |
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 | /** |
ae3d717a |
2951 | * logindLogin1Manager::handle-list-seats: |
2952 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | * |
ae3d717a |
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. |
86cb7727 |
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, |
ae3d717a |
2964 | G_STRUCT_OFFSET (logindLogin1ManagerIface, handle_list_seats), |
86cb7727 |
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 | /** |
ae3d717a |
2973 | * logindLogin1Manager::handle-list-inhibitors: |
2974 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | * |
ae3d717a |
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. |
86cb7727 |
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, |
ae3d717a |
2986 | G_STRUCT_OFFSET (logindLogin1ManagerIface, handle_list_inhibitors), |
86cb7727 |
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 | /** |
ae3d717a |
2995 | * logindLogin1Manager::handle-create-session: |
2996 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | * |
ae3d717a |
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. |
86cb7727 |
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, |
ae3d717a |
3022 | G_STRUCT_OFFSET (logindLogin1ManagerIface, handle_create_session), |
86cb7727 |
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 | /** |
ae3d717a |
3031 | * logindLogin1Manager::handle-release-session: |
3032 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | * |
ae3d717a |
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. |
86cb7727 |
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, |
ae3d717a |
3045 | G_STRUCT_OFFSET (logindLogin1ManagerIface, handle_release_session), |
86cb7727 |
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 | /** |
ae3d717a |
3054 | * logindLogin1Manager::handle-activate-session: |
3055 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | * |
ae3d717a |
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. |
86cb7727 |
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, |
ae3d717a |
3068 | G_STRUCT_OFFSET (logindLogin1ManagerIface, handle_activate_session), |
86cb7727 |
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 | /** |
ae3d717a |
3077 | * logindLogin1Manager::handle-activate-session-on-seat: |
3078 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | * |
ae3d717a |
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. |
86cb7727 |
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, |
ae3d717a |
3092 | G_STRUCT_OFFSET (logindLogin1ManagerIface, handle_activate_session_on_seat), |
86cb7727 |
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 | /** |
ae3d717a |
3101 | * logindLogin1Manager::handle-lock-session: |
3102 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | * |
ae3d717a |
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. |
86cb7727 |
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, |
ae3d717a |
3115 | G_STRUCT_OFFSET (logindLogin1ManagerIface, handle_lock_session), |
86cb7727 |
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 | /** |
ae3d717a |
3124 | * logindLogin1Manager::handle-unlock-session: |
3125 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | * |
ae3d717a |
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. |
86cb7727 |
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, |
ae3d717a |
3138 | G_STRUCT_OFFSET (logindLogin1ManagerIface, handle_unlock_session), |
86cb7727 |
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 | /** |
ae3d717a |
3147 | * logindLogin1Manager::handle-lock-sessions: |
3148 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | * |
ae3d717a |
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. |
86cb7727 |
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, |
ae3d717a |
3160 | G_STRUCT_OFFSET (logindLogin1ManagerIface, handle_lock_sessions), |
86cb7727 |
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 | /** |
ae3d717a |
3169 | * logindLogin1Manager::handle-unlock-sessions: |
3170 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | * |
ae3d717a |
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. |
86cb7727 |
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, |
ae3d717a |
3182 | G_STRUCT_OFFSET (logindLogin1ManagerIface, handle_unlock_sessions), |
86cb7727 |
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 | /** |
ae3d717a |
3191 | * logindLogin1Manager::handle-kill-session: |
3192 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | * |
ae3d717a |
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. |
86cb7727 |
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, |
ae3d717a |
3207 | G_STRUCT_OFFSET (logindLogin1ManagerIface, handle_kill_session), |
86cb7727 |
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 | /** |
ae3d717a |
3216 | * logindLogin1Manager::handle-kill-user: |
3217 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | * |
ae3d717a |
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. |
86cb7727 |
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, |
ae3d717a |
3231 | G_STRUCT_OFFSET (logindLogin1ManagerIface, handle_kill_user), |
86cb7727 |
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 | /** |
ae3d717a |
3240 | * logindLogin1Manager::handle-terminate-session: |
3241 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | * |
ae3d717a |
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. |
86cb7727 |
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, |
ae3d717a |
3254 | G_STRUCT_OFFSET (logindLogin1ManagerIface, handle_terminate_session), |
86cb7727 |
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 | /** |
ae3d717a |
3263 | * logindLogin1Manager::handle-terminate-user: |
3264 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | * |
ae3d717a |
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. |
86cb7727 |
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, |
ae3d717a |
3277 | G_STRUCT_OFFSET (logindLogin1ManagerIface, handle_terminate_user), |
86cb7727 |
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 | /** |
ae3d717a |
3286 | * logindLogin1Manager::handle-terminate-seat: |
3287 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | * |
ae3d717a |
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. |
86cb7727 |
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, |
ae3d717a |
3300 | G_STRUCT_OFFSET (logindLogin1ManagerIface, handle_terminate_seat), |
86cb7727 |
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 | /** |
ae3d717a |
3309 | * logindLogin1Manager::handle-set-user-linger: |
3310 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | * |
ae3d717a |
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. |
86cb7727 |
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, |
ae3d717a |
3325 | G_STRUCT_OFFSET (logindLogin1ManagerIface, handle_set_user_linger), |
86cb7727 |
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 | /** |
ae3d717a |
3334 | * logindLogin1Manager::handle-attach-device: |
3335 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | * |
ae3d717a |
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. |
86cb7727 |
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, |
ae3d717a |
3350 | G_STRUCT_OFFSET (logindLogin1ManagerIface, handle_attach_device), |
86cb7727 |
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 | /** |
ae3d717a |
3359 | * logindLogin1Manager::handle-flush-devices: |
3360 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | * |
ae3d717a |
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. |
86cb7727 |
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, |
ae3d717a |
3373 | G_STRUCT_OFFSET (logindLogin1ManagerIface, handle_flush_devices), |
86cb7727 |
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 | /** |
ae3d717a |
3382 | * logindLogin1Manager::handle-power-off: |
3383 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | * |
ae3d717a |
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. |
86cb7727 |
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, |
ae3d717a |
3396 | G_STRUCT_OFFSET (logindLogin1ManagerIface, handle_power_off), |
86cb7727 |
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 | /** |
ae3d717a |
3405 | * logindLogin1Manager::handle-reboot: |
3406 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | * |
ae3d717a |
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. |
86cb7727 |
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, |
ae3d717a |
3419 | G_STRUCT_OFFSET (logindLogin1ManagerIface, handle_reboot), |
86cb7727 |
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 | /** |
ae3d717a |
3428 | * logindLogin1Manager::handle-suspend: |
3429 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | * |
ae3d717a |
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. |
86cb7727 |
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, |
ae3d717a |
3442 | G_STRUCT_OFFSET (logindLogin1ManagerIface, handle_suspend), |
86cb7727 |
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 | /** |
ae3d717a |
3451 | * logindLogin1Manager::handle-hibernate: |
3452 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | * |
ae3d717a |
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. |
86cb7727 |
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, |
ae3d717a |
3465 | G_STRUCT_OFFSET (logindLogin1ManagerIface, handle_hibernate), |
86cb7727 |
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 | /** |
ae3d717a |
3474 | * logindLogin1Manager::handle-hybrid-sleep: |
3475 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | * |
ae3d717a |
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. |
86cb7727 |
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, |
ae3d717a |
3488 | G_STRUCT_OFFSET (logindLogin1ManagerIface, handle_hybrid_sleep), |
86cb7727 |
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 | /** |
ae3d717a |
3497 | * logindLogin1Manager::handle-can-power-off: |
3498 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | * |
ae3d717a |
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. |
86cb7727 |
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, |
ae3d717a |
3510 | G_STRUCT_OFFSET (logindLogin1ManagerIface, handle_can_power_off), |
86cb7727 |
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 | /** |
ae3d717a |
3519 | * logindLogin1Manager::handle-can-reboot: |
3520 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | * |
ae3d717a |
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. |
86cb7727 |
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, |
ae3d717a |
3532 | G_STRUCT_OFFSET (logindLogin1ManagerIface, handle_can_reboot), |
86cb7727 |
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 | /** |
ae3d717a |
3541 | * logindLogin1Manager::handle-can-suspend: |
3542 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | * |
ae3d717a |
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. |
86cb7727 |
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, |
ae3d717a |
3554 | G_STRUCT_OFFSET (logindLogin1ManagerIface, handle_can_suspend), |
86cb7727 |
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 | /** |
ae3d717a |
3563 | * logindLogin1Manager::handle-can-hibernate: |
3564 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | * |
ae3d717a |
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. |
86cb7727 |
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, |
ae3d717a |
3576 | G_STRUCT_OFFSET (logindLogin1ManagerIface, handle_can_hibernate), |
86cb7727 |
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 | /** |
ae3d717a |
3585 | * logindLogin1Manager::handle-can-hybrid-sleep: |
3586 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | * |
ae3d717a |
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. |
86cb7727 |
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, |
ae3d717a |
3598 | G_STRUCT_OFFSET (logindLogin1ManagerIface, handle_can_hybrid_sleep), |
86cb7727 |
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 | /** |
ae3d717a |
3607 | * logindLogin1Manager::handle-inhibit: |
3608 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | * |
ae3d717a |
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. |
86cb7727 |
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, |
ae3d717a |
3624 | G_STRUCT_OFFSET (logindLogin1ManagerIface, handle_inhibit), |
86cb7727 |
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 | /** |
ae3d717a |
3634 | * logindLogin1Manager::session-new: |
3635 | * @object: A #logindLogin1Manager. |
86cb7727 |
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, |
ae3d717a |
3646 | G_STRUCT_OFFSET (logindLogin1ManagerIface, session_new), |
86cb7727 |
3647 | NULL, |
3648 | NULL, |
3649 | g_cclosure_marshal_generic, |
3650 | G_TYPE_NONE, |
3651 | 2, G_TYPE_STRING, G_TYPE_STRING); |
3652 | |
3653 | /** |
ae3d717a |
3654 | * logindLogin1Manager::session-removed: |
3655 | * @object: A #logindLogin1Manager. |
86cb7727 |
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, |
ae3d717a |
3666 | G_STRUCT_OFFSET (logindLogin1ManagerIface, session_removed), |
86cb7727 |
3667 | NULL, |
3668 | NULL, |
3669 | g_cclosure_marshal_generic, |
3670 | G_TYPE_NONE, |
3671 | 2, G_TYPE_STRING, G_TYPE_STRING); |
3672 | |
3673 | /** |
ae3d717a |
3674 | * logindLogin1Manager::user-new: |
3675 | * @object: A #logindLogin1Manager. |
86cb7727 |
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, |
ae3d717a |
3686 | G_STRUCT_OFFSET (logindLogin1ManagerIface, user_new), |
86cb7727 |
3687 | NULL, |
3688 | NULL, |
3689 | g_cclosure_marshal_generic, |
3690 | G_TYPE_NONE, |
3691 | 2, G_TYPE_UINT, G_TYPE_STRING); |
3692 | |
3693 | /** |
ae3d717a |
3694 | * logindLogin1Manager::user-removed: |
3695 | * @object: A #logindLogin1Manager. |
86cb7727 |
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, |
ae3d717a |
3706 | G_STRUCT_OFFSET (logindLogin1ManagerIface, user_removed), |
86cb7727 |
3707 | NULL, |
3708 | NULL, |
3709 | g_cclosure_marshal_generic, |
3710 | G_TYPE_NONE, |
3711 | 2, G_TYPE_UINT, G_TYPE_STRING); |
3712 | |
3713 | /** |
ae3d717a |
3714 | * logindLogin1Manager::seat-new: |
3715 | * @object: A #logindLogin1Manager. |
86cb7727 |
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, |
ae3d717a |
3726 | G_STRUCT_OFFSET (logindLogin1ManagerIface, seat_new), |
86cb7727 |
3727 | NULL, |
3728 | NULL, |
3729 | g_cclosure_marshal_generic, |
3730 | G_TYPE_NONE, |
3731 | 2, G_TYPE_STRING, G_TYPE_STRING); |
3732 | |
3733 | /** |
ae3d717a |
3734 | * logindLogin1Manager::seat-removed: |
3735 | * @object: A #logindLogin1Manager. |
86cb7727 |
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, |
ae3d717a |
3746 | G_STRUCT_OFFSET (logindLogin1ManagerIface, seat_removed), |
86cb7727 |
3747 | NULL, |
3748 | NULL, |
3749 | g_cclosure_marshal_generic, |
3750 | G_TYPE_NONE, |
3751 | 2, G_TYPE_STRING, G_TYPE_STRING); |
3752 | |
3753 | /** |
ae3d717a |
3754 | * logindLogin1Manager::prepare-for-shutdown: |
3755 | * @object: A #logindLogin1Manager. |
86cb7727 |
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, |
ae3d717a |
3765 | G_STRUCT_OFFSET (logindLogin1ManagerIface, prepare_for_shutdown), |
86cb7727 |
3766 | NULL, |
3767 | NULL, |
3768 | g_cclosure_marshal_generic, |
3769 | G_TYPE_NONE, |
3770 | 1, G_TYPE_BOOLEAN); |
3771 | |
3772 | /** |
ae3d717a |
3773 | * logindLogin1Manager::prepare-for-sleep: |
3774 | * @object: A #logindLogin1Manager. |
86cb7727 |
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, |
ae3d717a |
3784 | G_STRUCT_OFFSET (logindLogin1ManagerIface, prepare_for_sleep), |
86cb7727 |
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 | /** |
ae3d717a |
3793 | * logindLogin1Manager:nauto-vts: |
86cb7727 |
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 | /** |
ae3d717a |
3802 | * logindLogin1Manager:kill-only-users: |
86cb7727 |
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 | /** |
ae3d717a |
3811 | * logindLogin1Manager:kill-exclude-users: |
86cb7727 |
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 | /** |
ae3d717a |
3820 | * logindLogin1Manager:kill-user-processes: |
86cb7727 |
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 | /** |
ae3d717a |
3829 | * logindLogin1Manager:idle-hint: |
86cb7727 |
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 | /** |
ae3d717a |
3838 | * logindLogin1Manager:idle-since-hint: |
86cb7727 |
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 | /** |
ae3d717a |
3847 | * logindLogin1Manager:idle-since-hint-monotonic: |
86cb7727 |
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 | /** |
ae3d717a |
3856 | * logindLogin1Manager:block-inhibited: |
86cb7727 |
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 | /** |
ae3d717a |
3865 | * logindLogin1Manager:delay-inhibited: |
86cb7727 |
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 | /** |
ae3d717a |
3874 | * logindLogin1Manager:inhibit-delay-max-usec: |
86cb7727 |
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 | /** |
ae3d717a |
3883 | * logindLogin1Manager:handle-power-key: |
86cb7727 |
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 | /** |
ae3d717a |
3892 | * logindLogin1Manager:handle-suspend-key: |
86cb7727 |
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 | /** |
ae3d717a |
3901 | * logindLogin1Manager:handle-hibernate-key: |
86cb7727 |
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 | /** |
ae3d717a |
3910 | * logindLogin1Manager:handle-lid-switch: |
86cb7727 |
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 | /** |
ae3d717a |
3919 | * logindLogin1Manager:idle-action: |
86cb7727 |
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 | /** |
ae3d717a |
3928 | * logindLogin1Manager:idle-action-usec: |
86cb7727 |
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 | /** |
ae3d717a |
3937 | * logindLogin1Manager:preparing-for-shutdown: |
86cb7727 |
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 | /** |
ae3d717a |
3946 | * logindLogin1Manager:preparing-for-sleep: |
86cb7727 |
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 | /** |
ae3d717a |
3957 | * logind_login1_manager_get_nauto_vts: (skip) |
3958 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
3966 | guint |
ae3d717a |
3967 | logind_login1_manager_get_nauto_vts (logindLogin1Manager *object) |
86cb7727 |
3968 | { |
ae3d717a |
3969 | return LOGIND_LOGIN1_MANAGER_GET_IFACE (object)->get_nauto_vts (object); |
86cb7727 |
3970 | } |
3971 | |
3972 | /** |
ae3d717a |
3973 | * logind_login1_manager_set_nauto_vts: (skip) |
3974 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
3981 | void |
ae3d717a |
3982 | logind_login1_manager_set_nauto_vts (logindLogin1Manager *object, guint value) |
86cb7727 |
3983 | { |
3984 | g_object_set (G_OBJECT (object), "nauto-vts", value, NULL); |
3985 | } |
3986 | |
3987 | /** |
ae3d717a |
3988 | * logind_login1_manager_get_kill_only_users: (skip) |
3989 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | * |
ae3d717a |
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> |
86cb7727 |
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 | */ |
3999 | const gchar *const * |
ae3d717a |
4000 | logind_login1_manager_get_kill_only_users (logindLogin1Manager *object) |
86cb7727 |
4001 | { |
ae3d717a |
4002 | return LOGIND_LOGIN1_MANAGER_GET_IFACE (object)->get_kill_only_users (object); |
86cb7727 |
4003 | } |
4004 | |
4005 | /** |
ae3d717a |
4006 | * logind_login1_manager_dup_kill_only_users: (skip) |
4007 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
4015 | gchar ** |
ae3d717a |
4016 | logind_login1_manager_dup_kill_only_users (logindLogin1Manager *object) |
86cb7727 |
4017 | { |
4018 | gchar **value; |
4019 | g_object_get (G_OBJECT (object), "kill-only-users", &value, NULL); |
4020 | return value; |
4021 | } |
4022 | |
4023 | /** |
ae3d717a |
4024 | * logind_login1_manager_set_kill_only_users: (skip) |
4025 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
4032 | void |
ae3d717a |
4033 | logind_login1_manager_set_kill_only_users (logindLogin1Manager *object, const gchar *const *value) |
86cb7727 |
4034 | { |
4035 | g_object_set (G_OBJECT (object), "kill-only-users", value, NULL); |
4036 | } |
4037 | |
4038 | /** |
ae3d717a |
4039 | * logind_login1_manager_get_kill_exclude_users: (skip) |
4040 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | * |
ae3d717a |
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> |
86cb7727 |
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 | */ |
4050 | const gchar *const * |
ae3d717a |
4051 | logind_login1_manager_get_kill_exclude_users (logindLogin1Manager *object) |
86cb7727 |
4052 | { |
ae3d717a |
4053 | return LOGIND_LOGIN1_MANAGER_GET_IFACE (object)->get_kill_exclude_users (object); |
86cb7727 |
4054 | } |
4055 | |
4056 | /** |
ae3d717a |
4057 | * logind_login1_manager_dup_kill_exclude_users: (skip) |
4058 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
4066 | gchar ** |
ae3d717a |
4067 | logind_login1_manager_dup_kill_exclude_users (logindLogin1Manager *object) |
86cb7727 |
4068 | { |
4069 | gchar **value; |
4070 | g_object_get (G_OBJECT (object), "kill-exclude-users", &value, NULL); |
4071 | return value; |
4072 | } |
4073 | |
4074 | /** |
ae3d717a |
4075 | * logind_login1_manager_set_kill_exclude_users: (skip) |
4076 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
4083 | void |
ae3d717a |
4084 | logind_login1_manager_set_kill_exclude_users (logindLogin1Manager *object, const gchar *const *value) |
86cb7727 |
4085 | { |
4086 | g_object_set (G_OBJECT (object), "kill-exclude-users", value, NULL); |
4087 | } |
4088 | |
4089 | /** |
ae3d717a |
4090 | * logind_login1_manager_get_kill_user_processes: (skip) |
4091 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
4099 | gboolean |
ae3d717a |
4100 | logind_login1_manager_get_kill_user_processes (logindLogin1Manager *object) |
86cb7727 |
4101 | { |
ae3d717a |
4102 | return LOGIND_LOGIN1_MANAGER_GET_IFACE (object)->get_kill_user_processes (object); |
86cb7727 |
4103 | } |
4104 | |
4105 | /** |
ae3d717a |
4106 | * logind_login1_manager_set_kill_user_processes: (skip) |
4107 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
4114 | void |
ae3d717a |
4115 | logind_login1_manager_set_kill_user_processes (logindLogin1Manager *object, gboolean value) |
86cb7727 |
4116 | { |
4117 | g_object_set (G_OBJECT (object), "kill-user-processes", value, NULL); |
4118 | } |
4119 | |
4120 | /** |
ae3d717a |
4121 | * logind_login1_manager_get_idle_hint: (skip) |
4122 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
4130 | gboolean |
ae3d717a |
4131 | logind_login1_manager_get_idle_hint (logindLogin1Manager *object) |
86cb7727 |
4132 | { |
ae3d717a |
4133 | return LOGIND_LOGIN1_MANAGER_GET_IFACE (object)->get_idle_hint (object); |
86cb7727 |
4134 | } |
4135 | |
4136 | /** |
ae3d717a |
4137 | * logind_login1_manager_set_idle_hint: (skip) |
4138 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
4145 | void |
ae3d717a |
4146 | logind_login1_manager_set_idle_hint (logindLogin1Manager *object, gboolean value) |
86cb7727 |
4147 | { |
4148 | g_object_set (G_OBJECT (object), "idle-hint", value, NULL); |
4149 | } |
4150 | |
4151 | /** |
ae3d717a |
4152 | * logind_login1_manager_get_idle_since_hint: (skip) |
4153 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
4161 | guint64 |
ae3d717a |
4162 | logind_login1_manager_get_idle_since_hint (logindLogin1Manager *object) |
86cb7727 |
4163 | { |
ae3d717a |
4164 | return LOGIND_LOGIN1_MANAGER_GET_IFACE (object)->get_idle_since_hint (object); |
86cb7727 |
4165 | } |
4166 | |
4167 | /** |
ae3d717a |
4168 | * logind_login1_manager_set_idle_since_hint: (skip) |
4169 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
4176 | void |
ae3d717a |
4177 | logind_login1_manager_set_idle_since_hint (logindLogin1Manager *object, guint64 value) |
86cb7727 |
4178 | { |
4179 | g_object_set (G_OBJECT (object), "idle-since-hint", value, NULL); |
4180 | } |
4181 | |
4182 | /** |
ae3d717a |
4183 | * logind_login1_manager_get_idle_since_hint_monotonic: (skip) |
4184 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
4192 | guint64 |
ae3d717a |
4193 | logind_login1_manager_get_idle_since_hint_monotonic (logindLogin1Manager *object) |
86cb7727 |
4194 | { |
ae3d717a |
4195 | return LOGIND_LOGIN1_MANAGER_GET_IFACE (object)->get_idle_since_hint_monotonic (object); |
86cb7727 |
4196 | } |
4197 | |
4198 | /** |
ae3d717a |
4199 | * logind_login1_manager_set_idle_since_hint_monotonic: (skip) |
4200 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
4207 | void |
ae3d717a |
4208 | logind_login1_manager_set_idle_since_hint_monotonic (logindLogin1Manager *object, guint64 value) |
86cb7727 |
4209 | { |
4210 | g_object_set (G_OBJECT (object), "idle-since-hint-monotonic", value, NULL); |
4211 | } |
4212 | |
4213 | /** |
ae3d717a |
4214 | * logind_login1_manager_get_block_inhibited: (skip) |
4215 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | * |
ae3d717a |
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> |
86cb7727 |
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 | */ |
4225 | const gchar * |
ae3d717a |
4226 | logind_login1_manager_get_block_inhibited (logindLogin1Manager *object) |
86cb7727 |
4227 | { |
ae3d717a |
4228 | return LOGIND_LOGIN1_MANAGER_GET_IFACE (object)->get_block_inhibited (object); |
86cb7727 |
4229 | } |
4230 | |
4231 | /** |
ae3d717a |
4232 | * logind_login1_manager_dup_block_inhibited: (skip) |
4233 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
4241 | gchar * |
ae3d717a |
4242 | logind_login1_manager_dup_block_inhibited (logindLogin1Manager *object) |
86cb7727 |
4243 | { |
4244 | gchar *value; |
4245 | g_object_get (G_OBJECT (object), "block-inhibited", &value, NULL); |
4246 | return value; |
4247 | } |
4248 | |
4249 | /** |
ae3d717a |
4250 | * logind_login1_manager_set_block_inhibited: (skip) |
4251 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
4258 | void |
ae3d717a |
4259 | logind_login1_manager_set_block_inhibited (logindLogin1Manager *object, const gchar *value) |
86cb7727 |
4260 | { |
4261 | g_object_set (G_OBJECT (object), "block-inhibited", value, NULL); |
4262 | } |
4263 | |
4264 | /** |
ae3d717a |
4265 | * logind_login1_manager_get_delay_inhibited: (skip) |
4266 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | * |
ae3d717a |
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> |
86cb7727 |
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 | */ |
4276 | const gchar * |
ae3d717a |
4277 | logind_login1_manager_get_delay_inhibited (logindLogin1Manager *object) |
86cb7727 |
4278 | { |
ae3d717a |
4279 | return LOGIND_LOGIN1_MANAGER_GET_IFACE (object)->get_delay_inhibited (object); |
86cb7727 |
4280 | } |
4281 | |
4282 | /** |
ae3d717a |
4283 | * logind_login1_manager_dup_delay_inhibited: (skip) |
4284 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
4292 | gchar * |
ae3d717a |
4293 | logind_login1_manager_dup_delay_inhibited (logindLogin1Manager *object) |
86cb7727 |
4294 | { |
4295 | gchar *value; |
4296 | g_object_get (G_OBJECT (object), "delay-inhibited", &value, NULL); |
4297 | return value; |
4298 | } |
4299 | |
4300 | /** |
ae3d717a |
4301 | * logind_login1_manager_set_delay_inhibited: (skip) |
4302 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
4309 | void |
ae3d717a |
4310 | logind_login1_manager_set_delay_inhibited (logindLogin1Manager *object, const gchar *value) |
86cb7727 |
4311 | { |
4312 | g_object_set (G_OBJECT (object), "delay-inhibited", value, NULL); |
4313 | } |
4314 | |
4315 | /** |
ae3d717a |
4316 | * logind_login1_manager_get_inhibit_delay_max_usec: (skip) |
4317 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
4325 | guint64 |
ae3d717a |
4326 | logind_login1_manager_get_inhibit_delay_max_usec (logindLogin1Manager *object) |
86cb7727 |
4327 | { |
ae3d717a |
4328 | return LOGIND_LOGIN1_MANAGER_GET_IFACE (object)->get_inhibit_delay_max_usec (object); |
86cb7727 |
4329 | } |
4330 | |
4331 | /** |
ae3d717a |
4332 | * logind_login1_manager_set_inhibit_delay_max_usec: (skip) |
4333 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
4340 | void |
ae3d717a |
4341 | logind_login1_manager_set_inhibit_delay_max_usec (logindLogin1Manager *object, guint64 value) |
86cb7727 |
4342 | { |
4343 | g_object_set (G_OBJECT (object), "inhibit-delay-max-usec", value, NULL); |
4344 | } |
4345 | |
4346 | /** |
ae3d717a |
4347 | * logind_login1_manager_get_handle_power_key: (skip) |
4348 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | * |
ae3d717a |
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> |
86cb7727 |
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 | */ |
4358 | const gchar * |
ae3d717a |
4359 | logind_login1_manager_get_handle_power_key (logindLogin1Manager *object) |
86cb7727 |
4360 | { |
ae3d717a |
4361 | return LOGIND_LOGIN1_MANAGER_GET_IFACE (object)->get_handle_power_key (object); |
86cb7727 |
4362 | } |
4363 | |
4364 | /** |
ae3d717a |
4365 | * logind_login1_manager_dup_handle_power_key: (skip) |
4366 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
4374 | gchar * |
ae3d717a |
4375 | logind_login1_manager_dup_handle_power_key (logindLogin1Manager *object) |
86cb7727 |
4376 | { |
4377 | gchar *value; |
4378 | g_object_get (G_OBJECT (object), "handle-power-key", &value, NULL); |
4379 | return value; |
4380 | } |
4381 | |
4382 | /** |
ae3d717a |
4383 | * logind_login1_manager_set_handle_power_key: (skip) |
4384 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
4391 | void |
ae3d717a |
4392 | logind_login1_manager_set_handle_power_key (logindLogin1Manager *object, const gchar *value) |
86cb7727 |
4393 | { |
4394 | g_object_set (G_OBJECT (object), "handle-power-key", value, NULL); |
4395 | } |
4396 | |
4397 | /** |
ae3d717a |
4398 | * logind_login1_manager_get_handle_suspend_key: (skip) |
4399 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | * |
ae3d717a |
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> |
86cb7727 |
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 | */ |
4409 | const gchar * |
ae3d717a |
4410 | logind_login1_manager_get_handle_suspend_key (logindLogin1Manager *object) |
86cb7727 |
4411 | { |
ae3d717a |
4412 | return LOGIND_LOGIN1_MANAGER_GET_IFACE (object)->get_handle_suspend_key (object); |
86cb7727 |
4413 | } |
4414 | |
4415 | /** |
ae3d717a |
4416 | * logind_login1_manager_dup_handle_suspend_key: (skip) |
4417 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
4425 | gchar * |
ae3d717a |
4426 | logind_login1_manager_dup_handle_suspend_key (logindLogin1Manager *object) |
86cb7727 |
4427 | { |
4428 | gchar *value; |
4429 | g_object_get (G_OBJECT (object), "handle-suspend-key", &value, NULL); |
4430 | return value; |
4431 | } |
4432 | |
4433 | /** |
ae3d717a |
4434 | * logind_login1_manager_set_handle_suspend_key: (skip) |
4435 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
4442 | void |
ae3d717a |
4443 | logind_login1_manager_set_handle_suspend_key (logindLogin1Manager *object, const gchar *value) |
86cb7727 |
4444 | { |
4445 | g_object_set (G_OBJECT (object), "handle-suspend-key", value, NULL); |
4446 | } |
4447 | |
4448 | /** |
ae3d717a |
4449 | * logind_login1_manager_get_handle_hibernate_key: (skip) |
4450 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | * |
ae3d717a |
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> |
86cb7727 |
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 | */ |
4460 | const gchar * |
ae3d717a |
4461 | logind_login1_manager_get_handle_hibernate_key (logindLogin1Manager *object) |
86cb7727 |
4462 | { |
ae3d717a |
4463 | return LOGIND_LOGIN1_MANAGER_GET_IFACE (object)->get_handle_hibernate_key (object); |
86cb7727 |
4464 | } |
4465 | |
4466 | /** |
ae3d717a |
4467 | * logind_login1_manager_dup_handle_hibernate_key: (skip) |
4468 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
4476 | gchar * |
ae3d717a |
4477 | logind_login1_manager_dup_handle_hibernate_key (logindLogin1Manager *object) |
86cb7727 |
4478 | { |
4479 | gchar *value; |
4480 | g_object_get (G_OBJECT (object), "handle-hibernate-key", &value, NULL); |
4481 | return value; |
4482 | } |
4483 | |
4484 | /** |
ae3d717a |
4485 | * logind_login1_manager_set_handle_hibernate_key: (skip) |
4486 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
4493 | void |
ae3d717a |
4494 | logind_login1_manager_set_handle_hibernate_key (logindLogin1Manager *object, const gchar *value) |
86cb7727 |
4495 | { |
4496 | g_object_set (G_OBJECT (object), "handle-hibernate-key", value, NULL); |
4497 | } |
4498 | |
4499 | /** |
ae3d717a |
4500 | * logind_login1_manager_get_handle_lid_switch: (skip) |
4501 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | * |
ae3d717a |
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> |
86cb7727 |
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 | */ |
4511 | const gchar * |
ae3d717a |
4512 | logind_login1_manager_get_handle_lid_switch (logindLogin1Manager *object) |
86cb7727 |
4513 | { |
ae3d717a |
4514 | return LOGIND_LOGIN1_MANAGER_GET_IFACE (object)->get_handle_lid_switch (object); |
86cb7727 |
4515 | } |
4516 | |
4517 | /** |
ae3d717a |
4518 | * logind_login1_manager_dup_handle_lid_switch: (skip) |
4519 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
4527 | gchar * |
ae3d717a |
4528 | logind_login1_manager_dup_handle_lid_switch (logindLogin1Manager *object) |
86cb7727 |
4529 | { |
4530 | gchar *value; |
4531 | g_object_get (G_OBJECT (object), "handle-lid-switch", &value, NULL); |
4532 | return value; |
4533 | } |
4534 | |
4535 | /** |
ae3d717a |
4536 | * logind_login1_manager_set_handle_lid_switch: (skip) |
4537 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
4544 | void |
ae3d717a |
4545 | logind_login1_manager_set_handle_lid_switch (logindLogin1Manager *object, const gchar *value) |
86cb7727 |
4546 | { |
4547 | g_object_set (G_OBJECT (object), "handle-lid-switch", value, NULL); |
4548 | } |
4549 | |
4550 | /** |
ae3d717a |
4551 | * logind_login1_manager_get_idle_action: (skip) |
4552 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | * |
ae3d717a |
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> |
86cb7727 |
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 | */ |
4562 | const gchar * |
ae3d717a |
4563 | logind_login1_manager_get_idle_action (logindLogin1Manager *object) |
86cb7727 |
4564 | { |
ae3d717a |
4565 | return LOGIND_LOGIN1_MANAGER_GET_IFACE (object)->get_idle_action (object); |
86cb7727 |
4566 | } |
4567 | |
4568 | /** |
ae3d717a |
4569 | * logind_login1_manager_dup_idle_action: (skip) |
4570 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
4578 | gchar * |
ae3d717a |
4579 | logind_login1_manager_dup_idle_action (logindLogin1Manager *object) |
86cb7727 |
4580 | { |
4581 | gchar *value; |
4582 | g_object_get (G_OBJECT (object), "idle-action", &value, NULL); |
4583 | return value; |
4584 | } |
4585 | |
4586 | /** |
ae3d717a |
4587 | * logind_login1_manager_set_idle_action: (skip) |
4588 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
4595 | void |
ae3d717a |
4596 | logind_login1_manager_set_idle_action (logindLogin1Manager *object, const gchar *value) |
86cb7727 |
4597 | { |
4598 | g_object_set (G_OBJECT (object), "idle-action", value, NULL); |
4599 | } |
4600 | |
4601 | /** |
ae3d717a |
4602 | * logind_login1_manager_get_idle_action_usec: (skip) |
4603 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
4611 | guint64 |
ae3d717a |
4612 | logind_login1_manager_get_idle_action_usec (logindLogin1Manager *object) |
86cb7727 |
4613 | { |
ae3d717a |
4614 | return LOGIND_LOGIN1_MANAGER_GET_IFACE (object)->get_idle_action_usec (object); |
86cb7727 |
4615 | } |
4616 | |
4617 | /** |
ae3d717a |
4618 | * logind_login1_manager_set_idle_action_usec: (skip) |
4619 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
4626 | void |
ae3d717a |
4627 | logind_login1_manager_set_idle_action_usec (logindLogin1Manager *object, guint64 value) |
86cb7727 |
4628 | { |
4629 | g_object_set (G_OBJECT (object), "idle-action-usec", value, NULL); |
4630 | } |
4631 | |
4632 | /** |
ae3d717a |
4633 | * logind_login1_manager_get_preparing_for_shutdown: (skip) |
4634 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
4642 | gboolean |
ae3d717a |
4643 | logind_login1_manager_get_preparing_for_shutdown (logindLogin1Manager *object) |
86cb7727 |
4644 | { |
ae3d717a |
4645 | return LOGIND_LOGIN1_MANAGER_GET_IFACE (object)->get_preparing_for_shutdown (object); |
86cb7727 |
4646 | } |
4647 | |
4648 | /** |
ae3d717a |
4649 | * logind_login1_manager_set_preparing_for_shutdown: (skip) |
4650 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
4657 | void |
ae3d717a |
4658 | logind_login1_manager_set_preparing_for_shutdown (logindLogin1Manager *object, gboolean value) |
86cb7727 |
4659 | { |
4660 | g_object_set (G_OBJECT (object), "preparing-for-shutdown", value, NULL); |
4661 | } |
4662 | |
4663 | /** |
ae3d717a |
4664 | * logind_login1_manager_get_preparing_for_sleep: (skip) |
4665 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
4673 | gboolean |
ae3d717a |
4674 | logind_login1_manager_get_preparing_for_sleep (logindLogin1Manager *object) |
86cb7727 |
4675 | { |
ae3d717a |
4676 | return LOGIND_LOGIN1_MANAGER_GET_IFACE (object)->get_preparing_for_sleep (object); |
86cb7727 |
4677 | } |
4678 | |
4679 | /** |
ae3d717a |
4680 | * logind_login1_manager_set_preparing_for_sleep: (skip) |
4681 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
4688 | void |
ae3d717a |
4689 | logind_login1_manager_set_preparing_for_sleep (logindLogin1Manager *object, gboolean value) |
86cb7727 |
4690 | { |
4691 | g_object_set (G_OBJECT (object), "preparing-for-sleep", value, NULL); |
4692 | } |
4693 | |
4694 | /** |
ae3d717a |
4695 | * logind_login1_manager_emit_session_new: |
4696 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
4702 | void |
ae3d717a |
4703 | logind_login1_manager_emit_session_new ( |
4704 | logindLogin1Manager *object, |
86cb7727 |
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 | /** |
ae3d717a |
4712 | * logind_login1_manager_emit_session_removed: |
4713 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
4719 | void |
ae3d717a |
4720 | logind_login1_manager_emit_session_removed ( |
4721 | logindLogin1Manager *object, |
86cb7727 |
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 | /** |
ae3d717a |
4729 | * logind_login1_manager_emit_user_new: |
4730 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
4736 | void |
ae3d717a |
4737 | logind_login1_manager_emit_user_new ( |
4738 | logindLogin1Manager *object, |
86cb7727 |
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 | /** |
ae3d717a |
4746 | * logind_login1_manager_emit_user_removed: |
4747 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
4753 | void |
ae3d717a |
4754 | logind_login1_manager_emit_user_removed ( |
4755 | logindLogin1Manager *object, |
86cb7727 |
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 | /** |
ae3d717a |
4763 | * logind_login1_manager_emit_seat_new: |
4764 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
4770 | void |
ae3d717a |
4771 | logind_login1_manager_emit_seat_new ( |
4772 | logindLogin1Manager *object, |
86cb7727 |
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 | /** |
ae3d717a |
4780 | * logind_login1_manager_emit_seat_removed: |
4781 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
4787 | void |
ae3d717a |
4788 | logind_login1_manager_emit_seat_removed ( |
4789 | logindLogin1Manager *object, |
86cb7727 |
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 | /** |
ae3d717a |
4797 | * logind_login1_manager_emit_prepare_for_shutdown: |
4798 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
4803 | void |
ae3d717a |
4804 | logind_login1_manager_emit_prepare_for_shutdown ( |
4805 | logindLogin1Manager *object, |
86cb7727 |
4806 | gboolean arg_unnamed_arg0) |
4807 | { |
4808 | g_signal_emit_by_name (object, "prepare-for-shutdown", arg_unnamed_arg0); |
4809 | } |
4810 | |
4811 | /** |
ae3d717a |
4812 | * logind_login1_manager_emit_prepare_for_sleep: |
4813 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
4818 | void |
ae3d717a |
4819 | logind_login1_manager_emit_prepare_for_sleep ( |
4820 | logindLogin1Manager *object, |
86cb7727 |
4821 | gboolean arg_unnamed_arg0) |
4822 | { |
4823 | g_signal_emit_by_name (object, "prepare-for-sleep", arg_unnamed_arg0); |
4824 | } |
4825 | |
4826 | /** |
ae3d717a |
4827 | * logind_login1_manager_call_get_session: |
4828 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
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. |
ae3d717a |
4836 | * You can then call logind_login1_manager_call_get_session_finish() to get the result of the operation. |
86cb7727 |
4837 | * |
ae3d717a |
4838 | * See logind_login1_manager_call_get_session_sync() for the synchronous, blocking version of this method. |
86cb7727 |
4839 | */ |
4840 | void |
ae3d717a |
4841 | logind_login1_manager_call_get_session ( |
4842 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
4860 | * logind_login1_manager_call_get_session_finish: |
4861 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
4862 | * @out_unnamed_arg1: (out): Return location for return parameter or %NULL to ignore. |
ae3d717a |
4863 | * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to logind_login1_manager_call_get_session(). |
86cb7727 |
4864 | * @error: Return location for error or %NULL. |
4865 | * |
ae3d717a |
4866 | * Finishes an operation started with logind_login1_manager_call_get_session(). |
86cb7727 |
4867 | * |
4868 | * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. |
4869 | */ |
4870 | gboolean |
ae3d717a |
4871 | logind_login1_manager_call_get_session_finish ( |
4872 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
4890 | * logind_login1_manager_call_get_session_sync: |
4891 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
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 | * |
ae3d717a |
4899 | * See logind_login1_manager_call_get_session() for the asynchronous version of this method. |
86cb7727 |
4900 | * |
4901 | * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. |
4902 | */ |
4903 | gboolean |
ae3d717a |
4904 | logind_login1_manager_call_get_session_sync ( |
4905 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
4931 | * logind_login1_manager_call_get_session_by_pid: |
4932 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
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. |
ae3d717a |
4940 | * You can then call logind_login1_manager_call_get_session_by_pid_finish() to get the result of the operation. |
86cb7727 |
4941 | * |
ae3d717a |
4942 | * See logind_login1_manager_call_get_session_by_pid_sync() for the synchronous, blocking version of this method. |
86cb7727 |
4943 | */ |
4944 | void |
ae3d717a |
4945 | logind_login1_manager_call_get_session_by_pid ( |
4946 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
4964 | * logind_login1_manager_call_get_session_by_pid_finish: |
4965 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
4966 | * @out_unnamed_arg1: (out): Return location for return parameter or %NULL to ignore. |
ae3d717a |
4967 | * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to logind_login1_manager_call_get_session_by_pid(). |
86cb7727 |
4968 | * @error: Return location for error or %NULL. |
4969 | * |
ae3d717a |
4970 | * Finishes an operation started with logind_login1_manager_call_get_session_by_pid(). |
86cb7727 |
4971 | * |
4972 | * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. |
4973 | */ |
4974 | gboolean |
ae3d717a |
4975 | logind_login1_manager_call_get_session_by_pid_finish ( |
4976 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
4994 | * logind_login1_manager_call_get_session_by_pid_sync: |
4995 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
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 | * |
ae3d717a |
5003 | * See logind_login1_manager_call_get_session_by_pid() for the asynchronous version of this method. |
86cb7727 |
5004 | * |
5005 | * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. |
5006 | */ |
5007 | gboolean |
ae3d717a |
5008 | logind_login1_manager_call_get_session_by_pid_sync ( |
5009 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
5035 | * logind_login1_manager_call_get_user: |
5036 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
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. |
ae3d717a |
5044 | * You can then call logind_login1_manager_call_get_user_finish() to get the result of the operation. |
86cb7727 |
5045 | * |
ae3d717a |
5046 | * See logind_login1_manager_call_get_user_sync() for the synchronous, blocking version of this method. |
86cb7727 |
5047 | */ |
5048 | void |
ae3d717a |
5049 | logind_login1_manager_call_get_user ( |
5050 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
5068 | * logind_login1_manager_call_get_user_finish: |
5069 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
5070 | * @out_unnamed_arg1: (out): Return location for return parameter or %NULL to ignore. |
ae3d717a |
5071 | * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to logind_login1_manager_call_get_user(). |
86cb7727 |
5072 | * @error: Return location for error or %NULL. |
5073 | * |
ae3d717a |
5074 | * Finishes an operation started with logind_login1_manager_call_get_user(). |
86cb7727 |
5075 | * |
5076 | * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. |
5077 | */ |
5078 | gboolean |
ae3d717a |
5079 | logind_login1_manager_call_get_user_finish ( |
5080 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
5098 | * logind_login1_manager_call_get_user_sync: |
5099 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
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 | * |
ae3d717a |
5107 | * See logind_login1_manager_call_get_user() for the asynchronous version of this method. |
86cb7727 |
5108 | * |
5109 | * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. |
5110 | */ |
5111 | gboolean |
ae3d717a |
5112 | logind_login1_manager_call_get_user_sync ( |
5113 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
5139 | * logind_login1_manager_call_get_user_by_pid: |
5140 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
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. |
ae3d717a |
5148 | * You can then call logind_login1_manager_call_get_user_by_pid_finish() to get the result of the operation. |
86cb7727 |
5149 | * |
ae3d717a |
5150 | * See logind_login1_manager_call_get_user_by_pid_sync() for the synchronous, blocking version of this method. |
86cb7727 |
5151 | */ |
5152 | void |
ae3d717a |
5153 | logind_login1_manager_call_get_user_by_pid ( |
5154 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
5172 | * logind_login1_manager_call_get_user_by_pid_finish: |
5173 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
5174 | * @out_unnamed_arg1: (out): Return location for return parameter or %NULL to ignore. |
ae3d717a |
5175 | * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to logind_login1_manager_call_get_user_by_pid(). |
86cb7727 |
5176 | * @error: Return location for error or %NULL. |
5177 | * |
ae3d717a |
5178 | * Finishes an operation started with logind_login1_manager_call_get_user_by_pid(). |
86cb7727 |
5179 | * |
5180 | * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. |
5181 | */ |
5182 | gboolean |
ae3d717a |
5183 | logind_login1_manager_call_get_user_by_pid_finish ( |
5184 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
5202 | * logind_login1_manager_call_get_user_by_pid_sync: |
5203 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
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 | * |
ae3d717a |
5211 | * See logind_login1_manager_call_get_user_by_pid() for the asynchronous version of this method. |
86cb7727 |
5212 | * |
5213 | * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. |
5214 | */ |
5215 | gboolean |
ae3d717a |
5216 | logind_login1_manager_call_get_user_by_pid_sync ( |
5217 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
5243 | * logind_login1_manager_call_get_seat: |
5244 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
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. |
ae3d717a |
5252 | * You can then call logind_login1_manager_call_get_seat_finish() to get the result of the operation. |
86cb7727 |
5253 | * |
ae3d717a |
5254 | * See logind_login1_manager_call_get_seat_sync() for the synchronous, blocking version of this method. |
86cb7727 |
5255 | */ |
5256 | void |
ae3d717a |
5257 | logind_login1_manager_call_get_seat ( |
5258 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
5276 | * logind_login1_manager_call_get_seat_finish: |
5277 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
5278 | * @out_unnamed_arg1: (out): Return location for return parameter or %NULL to ignore. |
ae3d717a |
5279 | * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to logind_login1_manager_call_get_seat(). |
86cb7727 |
5280 | * @error: Return location for error or %NULL. |
5281 | * |
ae3d717a |
5282 | * Finishes an operation started with logind_login1_manager_call_get_seat(). |
86cb7727 |
5283 | * |
5284 | * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. |
5285 | */ |
5286 | gboolean |
ae3d717a |
5287 | logind_login1_manager_call_get_seat_finish ( |
5288 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
5306 | * logind_login1_manager_call_get_seat_sync: |
5307 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
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 | * |
ae3d717a |
5315 | * See logind_login1_manager_call_get_seat() for the asynchronous version of this method. |
86cb7727 |
5316 | * |
5317 | * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. |
5318 | */ |
5319 | gboolean |
ae3d717a |
5320 | logind_login1_manager_call_get_seat_sync ( |
5321 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
5347 | * logind_login1_manager_call_list_sessions: |
5348 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
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. |
ae3d717a |
5355 | * You can then call logind_login1_manager_call_list_sessions_finish() to get the result of the operation. |
86cb7727 |
5356 | * |
ae3d717a |
5357 | * See logind_login1_manager_call_list_sessions_sync() for the synchronous, blocking version of this method. |
86cb7727 |
5358 | */ |
5359 | void |
ae3d717a |
5360 | logind_login1_manager_call_list_sessions ( |
5361 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
5377 | * logind_login1_manager_call_list_sessions_finish: |
5378 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
5379 | * @out_unnamed_arg0: (out): Return location for return parameter or %NULL to ignore. |
ae3d717a |
5380 | * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to logind_login1_manager_call_list_sessions(). |
86cb7727 |
5381 | * @error: Return location for error or %NULL. |
5382 | * |
ae3d717a |
5383 | * Finishes an operation started with logind_login1_manager_call_list_sessions(). |
86cb7727 |
5384 | * |
5385 | * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. |
5386 | */ |
5387 | gboolean |
ae3d717a |
5388 | logind_login1_manager_call_list_sessions_finish ( |
5389 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
5407 | * logind_login1_manager_call_list_sessions_sync: |
5408 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
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 | * |
ae3d717a |
5415 | * See logind_login1_manager_call_list_sessions() for the asynchronous version of this method. |
86cb7727 |
5416 | * |
5417 | * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. |
5418 | */ |
5419 | gboolean |
ae3d717a |
5420 | logind_login1_manager_call_list_sessions_sync ( |
5421 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
5445 | * logind_login1_manager_call_list_users: |
5446 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
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. |
ae3d717a |
5453 | * You can then call logind_login1_manager_call_list_users_finish() to get the result of the operation. |
86cb7727 |
5454 | * |
ae3d717a |
5455 | * See logind_login1_manager_call_list_users_sync() for the synchronous, blocking version of this method. |
86cb7727 |
5456 | */ |
5457 | void |
ae3d717a |
5458 | logind_login1_manager_call_list_users ( |
5459 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
5475 | * logind_login1_manager_call_list_users_finish: |
5476 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
5477 | * @out_unnamed_arg0: (out): Return location for return parameter or %NULL to ignore. |
ae3d717a |
5478 | * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to logind_login1_manager_call_list_users(). |
86cb7727 |
5479 | * @error: Return location for error or %NULL. |
5480 | * |
ae3d717a |
5481 | * Finishes an operation started with logind_login1_manager_call_list_users(). |
86cb7727 |
5482 | * |
5483 | * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. |
5484 | */ |
5485 | gboolean |
ae3d717a |
5486 | logind_login1_manager_call_list_users_finish ( |
5487 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
5505 | * logind_login1_manager_call_list_users_sync: |
5506 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
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 | * |
ae3d717a |
5513 | * See logind_login1_manager_call_list_users() for the asynchronous version of this method. |
86cb7727 |
5514 | * |
5515 | * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. |
5516 | */ |
5517 | gboolean |
ae3d717a |
5518 | logind_login1_manager_call_list_users_sync ( |
5519 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
5543 | * logind_login1_manager_call_list_seats: |
5544 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
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. |
ae3d717a |
5551 | * You can then call logind_login1_manager_call_list_seats_finish() to get the result of the operation. |
86cb7727 |
5552 | * |
ae3d717a |
5553 | * See logind_login1_manager_call_list_seats_sync() for the synchronous, blocking version of this method. |
86cb7727 |
5554 | */ |
5555 | void |
ae3d717a |
5556 | logind_login1_manager_call_list_seats ( |
5557 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
5573 | * logind_login1_manager_call_list_seats_finish: |
5574 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
5575 | * @out_unnamed_arg0: (out): Return location for return parameter or %NULL to ignore. |
ae3d717a |
5576 | * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to logind_login1_manager_call_list_seats(). |
86cb7727 |
5577 | * @error: Return location for error or %NULL. |
5578 | * |
ae3d717a |
5579 | * Finishes an operation started with logind_login1_manager_call_list_seats(). |
86cb7727 |
5580 | * |
5581 | * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. |
5582 | */ |
5583 | gboolean |
ae3d717a |
5584 | logind_login1_manager_call_list_seats_finish ( |
5585 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
5603 | * logind_login1_manager_call_list_seats_sync: |
5604 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
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 | * |
ae3d717a |
5611 | * See logind_login1_manager_call_list_seats() for the asynchronous version of this method. |
86cb7727 |
5612 | * |
5613 | * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. |
5614 | */ |
5615 | gboolean |
ae3d717a |
5616 | logind_login1_manager_call_list_seats_sync ( |
5617 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
5641 | * logind_login1_manager_call_list_inhibitors: |
5642 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
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. |
ae3d717a |
5649 | * You can then call logind_login1_manager_call_list_inhibitors_finish() to get the result of the operation. |
86cb7727 |
5650 | * |
ae3d717a |
5651 | * See logind_login1_manager_call_list_inhibitors_sync() for the synchronous, blocking version of this method. |
86cb7727 |
5652 | */ |
5653 | void |
ae3d717a |
5654 | logind_login1_manager_call_list_inhibitors ( |
5655 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
5671 | * logind_login1_manager_call_list_inhibitors_finish: |
5672 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
5673 | * @out_unnamed_arg0: (out): Return location for return parameter or %NULL to ignore. |
ae3d717a |
5674 | * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to logind_login1_manager_call_list_inhibitors(). |
86cb7727 |
5675 | * @error: Return location for error or %NULL. |
5676 | * |
ae3d717a |
5677 | * Finishes an operation started with logind_login1_manager_call_list_inhibitors(). |
86cb7727 |
5678 | * |
5679 | * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. |
5680 | */ |
5681 | gboolean |
ae3d717a |
5682 | logind_login1_manager_call_list_inhibitors_finish ( |
5683 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
5701 | * logind_login1_manager_call_list_inhibitors_sync: |
5702 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
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 | * |
ae3d717a |
5709 | * See logind_login1_manager_call_list_inhibitors() for the asynchronous version of this method. |
86cb7727 |
5710 | * |
5711 | * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. |
5712 | */ |
5713 | gboolean |
ae3d717a |
5714 | logind_login1_manager_call_list_inhibitors_sync ( |
5715 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
5739 | * logind_login1_manager_call_create_session: |
5740 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
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. |
ae3d717a |
5761 | * You can then call logind_login1_manager_call_create_session_finish() to get the result of the operation. |
86cb7727 |
5762 | * |
ae3d717a |
5763 | * See logind_login1_manager_call_create_session_sync() for the synchronous, blocking version of this method. |
86cb7727 |
5764 | */ |
5765 | void |
ae3d717a |
5766 | logind_login1_manager_call_create_session ( |
5767 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
5811 | * logind_login1_manager_call_create_session_finish: |
5812 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
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. |
ae3d717a |
5821 | * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to logind_login1_manager_call_create_session(). |
86cb7727 |
5822 | * @error: Return location for error or %NULL. |
5823 | * |
ae3d717a |
5824 | * Finishes an operation started with logind_login1_manager_call_create_session(). |
86cb7727 |
5825 | * |
5826 | * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. |
5827 | */ |
5828 | gboolean |
ae3d717a |
5829 | logind_login1_manager_call_create_session_finish ( |
5830 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
5862 | * logind_login1_manager_call_create_session_sync: |
5863 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
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 | * |
ae3d717a |
5891 | * See logind_login1_manager_call_create_session() for the asynchronous version of this method. |
86cb7727 |
5892 | * |
5893 | * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. |
5894 | */ |
5895 | gboolean |
ae3d717a |
5896 | logind_login1_manager_call_create_session_sync ( |
5897 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
5963 | * logind_login1_manager_call_release_session: |
5964 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
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. |
ae3d717a |
5972 | * You can then call logind_login1_manager_call_release_session_finish() to get the result of the operation. |
86cb7727 |
5973 | * |
ae3d717a |
5974 | * See logind_login1_manager_call_release_session_sync() for the synchronous, blocking version of this method. |
86cb7727 |
5975 | */ |
5976 | void |
ae3d717a |
5977 | logind_login1_manager_call_release_session ( |
5978 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
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(). |
86cb7727 |
5999 | * @error: Return location for error or %NULL. |
6000 | * |
ae3d717a |
6001 | * Finishes an operation started with logind_login1_manager_call_release_session(). |
86cb7727 |
6002 | * |
6003 | * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. |
6004 | */ |
6005 | gboolean |
ae3d717a |
6006 | logind_login1_manager_call_release_session_finish ( |
6007 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
6023 | * logind_login1_manager_call_release_session_sync: |
6024 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
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 | * |
ae3d717a |
6031 | * See logind_login1_manager_call_release_session() for the asynchronous version of this method. |
86cb7727 |
6032 | * |
6033 | * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. |
6034 | */ |
6035 | gboolean |
ae3d717a |
6036 | logind_login1_manager_call_release_session_sync ( |
6037 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
6061 | * logind_login1_manager_call_activate_session: |
6062 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
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. |
ae3d717a |
6070 | * You can then call logind_login1_manager_call_activate_session_finish() to get the result of the operation. |
86cb7727 |
6071 | * |
ae3d717a |
6072 | * See logind_login1_manager_call_activate_session_sync() for the synchronous, blocking version of this method. |
86cb7727 |
6073 | */ |
6074 | void |
ae3d717a |
6075 | logind_login1_manager_call_activate_session ( |
6076 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
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(). |
86cb7727 |
6097 | * @error: Return location for error or %NULL. |
6098 | * |
ae3d717a |
6099 | * Finishes an operation started with logind_login1_manager_call_activate_session(). |
86cb7727 |
6100 | * |
6101 | * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. |
6102 | */ |
6103 | gboolean |
ae3d717a |
6104 | logind_login1_manager_call_activate_session_finish ( |
6105 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
6121 | * logind_login1_manager_call_activate_session_sync: |
6122 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
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 | * |
ae3d717a |
6129 | * See logind_login1_manager_call_activate_session() for the asynchronous version of this method. |
86cb7727 |
6130 | * |
6131 | * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. |
6132 | */ |
6133 | gboolean |
ae3d717a |
6134 | logind_login1_manager_call_activate_session_sync ( |
6135 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
6159 | * logind_login1_manager_call_activate_session_on_seat: |
6160 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
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. |
ae3d717a |
6169 | * You can then call logind_login1_manager_call_activate_session_on_seat_finish() to get the result of the operation. |
86cb7727 |
6170 | * |
ae3d717a |
6171 | * See logind_login1_manager_call_activate_session_on_seat_sync() for the synchronous, blocking version of this method. |
86cb7727 |
6172 | */ |
6173 | void |
ae3d717a |
6174 | logind_login1_manager_call_activate_session_on_seat ( |
6175 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
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(). |
86cb7727 |
6198 | * @error: Return location for error or %NULL. |
6199 | * |
ae3d717a |
6200 | * Finishes an operation started with logind_login1_manager_call_activate_session_on_seat(). |
86cb7727 |
6201 | * |
6202 | * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. |
6203 | */ |
6204 | gboolean |
ae3d717a |
6205 | logind_login1_manager_call_activate_session_on_seat_finish ( |
6206 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
6222 | * logind_login1_manager_call_activate_session_on_seat_sync: |
6223 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
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 | * |
ae3d717a |
6231 | * See logind_login1_manager_call_activate_session_on_seat() for the asynchronous version of this method. |
86cb7727 |
6232 | * |
6233 | * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. |
6234 | */ |
6235 | gboolean |
ae3d717a |
6236 | logind_login1_manager_call_activate_session_on_seat_sync ( |
6237 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
6263 | * logind_login1_manager_call_lock_session: |
6264 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
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. |
ae3d717a |
6272 | * You can then call logind_login1_manager_call_lock_session_finish() to get the result of the operation. |
86cb7727 |
6273 | * |
ae3d717a |
6274 | * See logind_login1_manager_call_lock_session_sync() for the synchronous, blocking version of this method. |
86cb7727 |
6275 | */ |
6276 | void |
ae3d717a |
6277 | logind_login1_manager_call_lock_session ( |
6278 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
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(). |
86cb7727 |
6299 | * @error: Return location for error or %NULL. |
6300 | * |
ae3d717a |
6301 | * Finishes an operation started with logind_login1_manager_call_lock_session(). |
86cb7727 |
6302 | * |
6303 | * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. |
6304 | */ |
6305 | gboolean |
ae3d717a |
6306 | logind_login1_manager_call_lock_session_finish ( |
6307 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
6323 | * logind_login1_manager_call_lock_session_sync: |
6324 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
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 | * |
ae3d717a |
6331 | * See logind_login1_manager_call_lock_session() for the asynchronous version of this method. |
86cb7727 |
6332 | * |
6333 | * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. |
6334 | */ |
6335 | gboolean |
ae3d717a |
6336 | logind_login1_manager_call_lock_session_sync ( |
6337 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
6361 | * logind_login1_manager_call_unlock_session: |
6362 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
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. |
ae3d717a |
6370 | * You can then call logind_login1_manager_call_unlock_session_finish() to get the result of the operation. |
86cb7727 |
6371 | * |
ae3d717a |
6372 | * See logind_login1_manager_call_unlock_session_sync() for the synchronous, blocking version of this method. |
86cb7727 |
6373 | */ |
6374 | void |
ae3d717a |
6375 | logind_login1_manager_call_unlock_session ( |
6376 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
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(). |
86cb7727 |
6397 | * @error: Return location for error or %NULL. |
6398 | * |
ae3d717a |
6399 | * Finishes an operation started with logind_login1_manager_call_unlock_session(). |
86cb7727 |
6400 | * |
6401 | * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. |
6402 | */ |
6403 | gboolean |
ae3d717a |
6404 | logind_login1_manager_call_unlock_session_finish ( |
6405 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
6421 | * logind_login1_manager_call_unlock_session_sync: |
6422 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
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 | * |
ae3d717a |
6429 | * See logind_login1_manager_call_unlock_session() for the asynchronous version of this method. |
86cb7727 |
6430 | * |
6431 | * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. |
6432 | */ |
6433 | gboolean |
ae3d717a |
6434 | logind_login1_manager_call_unlock_session_sync ( |
6435 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
6459 | * logind_login1_manager_call_lock_sessions: |
6460 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
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. |
ae3d717a |
6467 | * You can then call logind_login1_manager_call_lock_sessions_finish() to get the result of the operation. |
86cb7727 |
6468 | * |
ae3d717a |
6469 | * See logind_login1_manager_call_lock_sessions_sync() for the synchronous, blocking version of this method. |
86cb7727 |
6470 | */ |
6471 | void |
ae3d717a |
6472 | logind_login1_manager_call_lock_sessions ( |
6473 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
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(). |
86cb7727 |
6492 | * @error: Return location for error or %NULL. |
6493 | * |
ae3d717a |
6494 | * Finishes an operation started with logind_login1_manager_call_lock_sessions(). |
86cb7727 |
6495 | * |
6496 | * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. |
6497 | */ |
6498 | gboolean |
ae3d717a |
6499 | logind_login1_manager_call_lock_sessions_finish ( |
6500 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
6516 | * logind_login1_manager_call_lock_sessions_sync: |
6517 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
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 | * |
ae3d717a |
6523 | * See logind_login1_manager_call_lock_sessions() for the asynchronous version of this method. |
86cb7727 |
6524 | * |
6525 | * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. |
6526 | */ |
6527 | gboolean |
ae3d717a |
6528 | logind_login1_manager_call_lock_sessions_sync ( |
6529 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
6551 | * logind_login1_manager_call_unlock_sessions: |
6552 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
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. |
ae3d717a |
6559 | * You can then call logind_login1_manager_call_unlock_sessions_finish() to get the result of the operation. |
86cb7727 |
6560 | * |
ae3d717a |
6561 | * See logind_login1_manager_call_unlock_sessions_sync() for the synchronous, blocking version of this method. |
86cb7727 |
6562 | */ |
6563 | void |
ae3d717a |
6564 | logind_login1_manager_call_unlock_sessions ( |
6565 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
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(). |
86cb7727 |
6584 | * @error: Return location for error or %NULL. |
6585 | * |
ae3d717a |
6586 | * Finishes an operation started with logind_login1_manager_call_unlock_sessions(). |
86cb7727 |
6587 | * |
6588 | * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. |
6589 | */ |
6590 | gboolean |
ae3d717a |
6591 | logind_login1_manager_call_unlock_sessions_finish ( |
6592 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
6608 | * logind_login1_manager_call_unlock_sessions_sync: |
6609 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
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 | * |
ae3d717a |
6615 | * See logind_login1_manager_call_unlock_sessions() for the asynchronous version of this method. |
86cb7727 |
6616 | * |
6617 | * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. |
6618 | */ |
6619 | gboolean |
ae3d717a |
6620 | logind_login1_manager_call_unlock_sessions_sync ( |
6621 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
6643 | * logind_login1_manager_call_kill_session: |
6644 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
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. |
ae3d717a |
6654 | * You can then call logind_login1_manager_call_kill_session_finish() to get the result of the operation. |
86cb7727 |
6655 | * |
ae3d717a |
6656 | * See logind_login1_manager_call_kill_session_sync() for the synchronous, blocking version of this method. |
86cb7727 |
6657 | */ |
6658 | void |
ae3d717a |
6659 | logind_login1_manager_call_kill_session ( |
6660 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
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(). |
86cb7727 |
6685 | * @error: Return location for error or %NULL. |
6686 | * |
ae3d717a |
6687 | * Finishes an operation started with logind_login1_manager_call_kill_session(). |
86cb7727 |
6688 | * |
6689 | * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. |
6690 | */ |
6691 | gboolean |
ae3d717a |
6692 | logind_login1_manager_call_kill_session_finish ( |
6693 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
6709 | * logind_login1_manager_call_kill_session_sync: |
6710 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
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 | * |
ae3d717a |
6719 | * See logind_login1_manager_call_kill_session() for the asynchronous version of this method. |
86cb7727 |
6720 | * |
6721 | * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. |
6722 | */ |
6723 | gboolean |
ae3d717a |
6724 | logind_login1_manager_call_kill_session_sync ( |
6725 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
6753 | * logind_login1_manager_call_kill_user: |
6754 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
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. |
ae3d717a |
6763 | * You can then call logind_login1_manager_call_kill_user_finish() to get the result of the operation. |
86cb7727 |
6764 | * |
ae3d717a |
6765 | * See logind_login1_manager_call_kill_user_sync() for the synchronous, blocking version of this method. |
86cb7727 |
6766 | */ |
6767 | void |
ae3d717a |
6768 | logind_login1_manager_call_kill_user ( |
6769 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
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(). |
86cb7727 |
6792 | * @error: Return location for error or %NULL. |
6793 | * |
ae3d717a |
6794 | * Finishes an operation started with logind_login1_manager_call_kill_user(). |
86cb7727 |
6795 | * |
6796 | * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. |
6797 | */ |
6798 | gboolean |
ae3d717a |
6799 | logind_login1_manager_call_kill_user_finish ( |
6800 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
6816 | * logind_login1_manager_call_kill_user_sync: |
6817 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
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 | * |
ae3d717a |
6825 | * See logind_login1_manager_call_kill_user() for the asynchronous version of this method. |
86cb7727 |
6826 | * |
6827 | * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. |
6828 | */ |
6829 | gboolean |
ae3d717a |
6830 | logind_login1_manager_call_kill_user_sync ( |
6831 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
6857 | * logind_login1_manager_call_terminate_session: |
6858 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
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. |
ae3d717a |
6866 | * You can then call logind_login1_manager_call_terminate_session_finish() to get the result of the operation. |
86cb7727 |
6867 | * |
ae3d717a |
6868 | * See logind_login1_manager_call_terminate_session_sync() for the synchronous, blocking version of this method. |
86cb7727 |
6869 | */ |
6870 | void |
ae3d717a |
6871 | logind_login1_manager_call_terminate_session ( |
6872 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
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(). |
86cb7727 |
6893 | * @error: Return location for error or %NULL. |
6894 | * |
ae3d717a |
6895 | * Finishes an operation started with logind_login1_manager_call_terminate_session(). |
86cb7727 |
6896 | * |
6897 | * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. |
6898 | */ |
6899 | gboolean |
ae3d717a |
6900 | logind_login1_manager_call_terminate_session_finish ( |
6901 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
6917 | * logind_login1_manager_call_terminate_session_sync: |
6918 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
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 | * |
ae3d717a |
6925 | * See logind_login1_manager_call_terminate_session() for the asynchronous version of this method. |
86cb7727 |
6926 | * |
6927 | * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. |
6928 | */ |
6929 | gboolean |
ae3d717a |
6930 | logind_login1_manager_call_terminate_session_sync ( |
6931 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
6955 | * logind_login1_manager_call_terminate_user: |
6956 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
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. |
ae3d717a |
6964 | * You can then call logind_login1_manager_call_terminate_user_finish() to get the result of the operation. |
86cb7727 |
6965 | * |
ae3d717a |
6966 | * See logind_login1_manager_call_terminate_user_sync() for the synchronous, blocking version of this method. |
86cb7727 |
6967 | */ |
6968 | void |
ae3d717a |
6969 | logind_login1_manager_call_terminate_user ( |
6970 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
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(). |
86cb7727 |
6991 | * @error: Return location for error or %NULL. |
6992 | * |
ae3d717a |
6993 | * Finishes an operation started with logind_login1_manager_call_terminate_user(). |
86cb7727 |
6994 | * |
6995 | * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. |
6996 | */ |
6997 | gboolean |
ae3d717a |
6998 | logind_login1_manager_call_terminate_user_finish ( |
6999 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
7015 | * logind_login1_manager_call_terminate_user_sync: |
7016 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
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 | * |
ae3d717a |
7023 | * See logind_login1_manager_call_terminate_user() for the asynchronous version of this method. |
86cb7727 |
7024 | * |
7025 | * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. |
7026 | */ |
7027 | gboolean |
ae3d717a |
7028 | logind_login1_manager_call_terminate_user_sync ( |
7029 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
7053 | * logind_login1_manager_call_terminate_seat: |
7054 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
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. |
ae3d717a |
7062 | * You can then call logind_login1_manager_call_terminate_seat_finish() to get the result of the operation. |
86cb7727 |
7063 | * |
ae3d717a |
7064 | * See logind_login1_manager_call_terminate_seat_sync() for the synchronous, blocking version of this method. |
86cb7727 |
7065 | */ |
7066 | void |
ae3d717a |
7067 | logind_login1_manager_call_terminate_seat ( |
7068 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
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(). |
86cb7727 |
7089 | * @error: Return location for error or %NULL. |
7090 | * |
ae3d717a |
7091 | * Finishes an operation started with logind_login1_manager_call_terminate_seat(). |
86cb7727 |
7092 | * |
7093 | * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. |
7094 | */ |
7095 | gboolean |
ae3d717a |
7096 | logind_login1_manager_call_terminate_seat_finish ( |
7097 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
7113 | * logind_login1_manager_call_terminate_seat_sync: |
7114 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
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 | * |
ae3d717a |
7121 | * See logind_login1_manager_call_terminate_seat() for the asynchronous version of this method. |
86cb7727 |
7122 | * |
7123 | * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. |
7124 | */ |
7125 | gboolean |
ae3d717a |
7126 | logind_login1_manager_call_terminate_seat_sync ( |
7127 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
7151 | * logind_login1_manager_call_set_user_linger: |
7152 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
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. |
ae3d717a |
7162 | * You can then call logind_login1_manager_call_set_user_linger_finish() to get the result of the operation. |
86cb7727 |
7163 | * |
ae3d717a |
7164 | * See logind_login1_manager_call_set_user_linger_sync() for the synchronous, blocking version of this method. |
86cb7727 |
7165 | */ |
7166 | void |
ae3d717a |
7167 | logind_login1_manager_call_set_user_linger ( |
7168 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
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(). |
86cb7727 |
7193 | * @error: Return location for error or %NULL. |
7194 | * |
ae3d717a |
7195 | * Finishes an operation started with logind_login1_manager_call_set_user_linger(). |
86cb7727 |
7196 | * |
7197 | * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. |
7198 | */ |
7199 | gboolean |
ae3d717a |
7200 | logind_login1_manager_call_set_user_linger_finish ( |
7201 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
7217 | * logind_login1_manager_call_set_user_linger_sync: |
7218 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
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 | * |
ae3d717a |
7227 | * See logind_login1_manager_call_set_user_linger() for the asynchronous version of this method. |
86cb7727 |
7228 | * |
7229 | * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. |
7230 | */ |
7231 | gboolean |
ae3d717a |
7232 | logind_login1_manager_call_set_user_linger_sync ( |
7233 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
7261 | * logind_login1_manager_call_attach_device: |
7262 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
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. |
ae3d717a |
7272 | * You can then call logind_login1_manager_call_attach_device_finish() to get the result of the operation. |
86cb7727 |
7273 | * |
ae3d717a |
7274 | * See logind_login1_manager_call_attach_device_sync() for the synchronous, blocking version of this method. |
86cb7727 |
7275 | */ |
7276 | void |
ae3d717a |
7277 | logind_login1_manager_call_attach_device ( |
7278 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
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(). |
86cb7727 |
7303 | * @error: Return location for error or %NULL. |
7304 | * |
ae3d717a |
7305 | * Finishes an operation started with logind_login1_manager_call_attach_device(). |
86cb7727 |
7306 | * |
7307 | * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. |
7308 | */ |
7309 | gboolean |
ae3d717a |
7310 | logind_login1_manager_call_attach_device_finish ( |
7311 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
7327 | * logind_login1_manager_call_attach_device_sync: |
7328 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
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 | * |
ae3d717a |
7337 | * See logind_login1_manager_call_attach_device() for the asynchronous version of this method. |
86cb7727 |
7338 | * |
7339 | * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. |
7340 | */ |
7341 | gboolean |
ae3d717a |
7342 | logind_login1_manager_call_attach_device_sync ( |
7343 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
7371 | * logind_login1_manager_call_flush_devices: |
7372 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
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. |
ae3d717a |
7380 | * You can then call logind_login1_manager_call_flush_devices_finish() to get the result of the operation. |
86cb7727 |
7381 | * |
ae3d717a |
7382 | * See logind_login1_manager_call_flush_devices_sync() for the synchronous, blocking version of this method. |
86cb7727 |
7383 | */ |
7384 | void |
ae3d717a |
7385 | logind_login1_manager_call_flush_devices ( |
7386 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
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(). |
86cb7727 |
7407 | * @error: Return location for error or %NULL. |
7408 | * |
ae3d717a |
7409 | * Finishes an operation started with logind_login1_manager_call_flush_devices(). |
86cb7727 |
7410 | * |
7411 | * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. |
7412 | */ |
7413 | gboolean |
ae3d717a |
7414 | logind_login1_manager_call_flush_devices_finish ( |
7415 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
7431 | * logind_login1_manager_call_flush_devices_sync: |
7432 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
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 | * |
ae3d717a |
7439 | * See logind_login1_manager_call_flush_devices() for the asynchronous version of this method. |
86cb7727 |
7440 | * |
7441 | * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. |
7442 | */ |
7443 | gboolean |
ae3d717a |
7444 | logind_login1_manager_call_flush_devices_sync ( |
7445 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
7469 | * logind_login1_manager_call_power_off: |
7470 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
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. |
ae3d717a |
7478 | * You can then call logind_login1_manager_call_power_off_finish() to get the result of the operation. |
86cb7727 |
7479 | * |
ae3d717a |
7480 | * See logind_login1_manager_call_power_off_sync() for the synchronous, blocking version of this method. |
86cb7727 |
7481 | */ |
7482 | void |
ae3d717a |
7483 | logind_login1_manager_call_power_off ( |
7484 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
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(). |
86cb7727 |
7505 | * @error: Return location for error or %NULL. |
7506 | * |
ae3d717a |
7507 | * Finishes an operation started with logind_login1_manager_call_power_off(). |
86cb7727 |
7508 | * |
7509 | * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. |
7510 | */ |
7511 | gboolean |
ae3d717a |
7512 | logind_login1_manager_call_power_off_finish ( |
7513 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
7529 | * logind_login1_manager_call_power_off_sync: |
7530 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
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 | * |
ae3d717a |
7537 | * See logind_login1_manager_call_power_off() for the asynchronous version of this method. |
86cb7727 |
7538 | * |
7539 | * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. |
7540 | */ |
7541 | gboolean |
ae3d717a |
7542 | logind_login1_manager_call_power_off_sync ( |
7543 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
7567 | * logind_login1_manager_call_reboot: |
7568 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
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. |
ae3d717a |
7576 | * You can then call logind_login1_manager_call_reboot_finish() to get the result of the operation. |
86cb7727 |
7577 | * |
ae3d717a |
7578 | * See logind_login1_manager_call_reboot_sync() for the synchronous, blocking version of this method. |
86cb7727 |
7579 | */ |
7580 | void |
ae3d717a |
7581 | logind_login1_manager_call_reboot ( |
7582 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
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(). |
86cb7727 |
7603 | * @error: Return location for error or %NULL. |
7604 | * |
ae3d717a |
7605 | * Finishes an operation started with logind_login1_manager_call_reboot(). |
86cb7727 |
7606 | * |
7607 | * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. |
7608 | */ |
7609 | gboolean |
ae3d717a |
7610 | logind_login1_manager_call_reboot_finish ( |
7611 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
7627 | * logind_login1_manager_call_reboot_sync: |
7628 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
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 | * |
ae3d717a |
7635 | * See logind_login1_manager_call_reboot() for the asynchronous version of this method. |
86cb7727 |
7636 | * |
7637 | * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. |
7638 | */ |
7639 | gboolean |
ae3d717a |
7640 | logind_login1_manager_call_reboot_sync ( |
7641 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
7665 | * logind_login1_manager_call_suspend: |
7666 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
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. |
ae3d717a |
7674 | * You can then call logind_login1_manager_call_suspend_finish() to get the result of the operation. |
86cb7727 |
7675 | * |
ae3d717a |
7676 | * See logind_login1_manager_call_suspend_sync() for the synchronous, blocking version of this method. |
86cb7727 |
7677 | */ |
7678 | void |
ae3d717a |
7679 | logind_login1_manager_call_suspend ( |
7680 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
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(). |
86cb7727 |
7701 | * @error: Return location for error or %NULL. |
7702 | * |
ae3d717a |
7703 | * Finishes an operation started with logind_login1_manager_call_suspend(). |
86cb7727 |
7704 | * |
7705 | * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. |
7706 | */ |
7707 | gboolean |
ae3d717a |
7708 | logind_login1_manager_call_suspend_finish ( |
7709 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
7725 | * logind_login1_manager_call_suspend_sync: |
7726 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
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 | * |
ae3d717a |
7733 | * See logind_login1_manager_call_suspend() for the asynchronous version of this method. |
86cb7727 |
7734 | * |
7735 | * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. |
7736 | */ |
7737 | gboolean |
ae3d717a |
7738 | logind_login1_manager_call_suspend_sync ( |
7739 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
7763 | * logind_login1_manager_call_hibernate: |
7764 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
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. |
ae3d717a |
7772 | * You can then call logind_login1_manager_call_hibernate_finish() to get the result of the operation. |
86cb7727 |
7773 | * |
ae3d717a |
7774 | * See logind_login1_manager_call_hibernate_sync() for the synchronous, blocking version of this method. |
86cb7727 |
7775 | */ |
7776 | void |
ae3d717a |
7777 | logind_login1_manager_call_hibernate ( |
7778 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
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(). |
86cb7727 |
7799 | * @error: Return location for error or %NULL. |
7800 | * |
ae3d717a |
7801 | * Finishes an operation started with logind_login1_manager_call_hibernate(). |
86cb7727 |
7802 | * |
7803 | * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. |
7804 | */ |
7805 | gboolean |
ae3d717a |
7806 | logind_login1_manager_call_hibernate_finish ( |
7807 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
7823 | * logind_login1_manager_call_hibernate_sync: |
7824 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
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 | * |
ae3d717a |
7831 | * See logind_login1_manager_call_hibernate() for the asynchronous version of this method. |
86cb7727 |
7832 | * |
7833 | * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. |
7834 | */ |
7835 | gboolean |
ae3d717a |
7836 | logind_login1_manager_call_hibernate_sync ( |
7837 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
7861 | * logind_login1_manager_call_hybrid_sleep: |
7862 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
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. |
ae3d717a |
7870 | * You can then call logind_login1_manager_call_hybrid_sleep_finish() to get the result of the operation. |
86cb7727 |
7871 | * |
ae3d717a |
7872 | * See logind_login1_manager_call_hybrid_sleep_sync() for the synchronous, blocking version of this method. |
86cb7727 |
7873 | */ |
7874 | void |
ae3d717a |
7875 | logind_login1_manager_call_hybrid_sleep ( |
7876 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
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(). |
86cb7727 |
7897 | * @error: Return location for error or %NULL. |
7898 | * |
ae3d717a |
7899 | * Finishes an operation started with logind_login1_manager_call_hybrid_sleep(). |
86cb7727 |
7900 | * |
7901 | * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. |
7902 | */ |
7903 | gboolean |
ae3d717a |
7904 | logind_login1_manager_call_hybrid_sleep_finish ( |
7905 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
7921 | * logind_login1_manager_call_hybrid_sleep_sync: |
7922 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
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 | * |
ae3d717a |
7929 | * See logind_login1_manager_call_hybrid_sleep() for the asynchronous version of this method. |
86cb7727 |
7930 | * |
7931 | * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. |
7932 | */ |
7933 | gboolean |
ae3d717a |
7934 | logind_login1_manager_call_hybrid_sleep_sync ( |
7935 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
7959 | * logind_login1_manager_call_can_power_off: |
7960 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
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. |
ae3d717a |
7967 | * You can then call logind_login1_manager_call_can_power_off_finish() to get the result of the operation. |
86cb7727 |
7968 | * |
ae3d717a |
7969 | * See logind_login1_manager_call_can_power_off_sync() for the synchronous, blocking version of this method. |
86cb7727 |
7970 | */ |
7971 | void |
ae3d717a |
7972 | logind_login1_manager_call_can_power_off ( |
7973 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
7989 | * logind_login1_manager_call_can_power_off_finish: |
7990 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
7991 | * @out_unnamed_arg0: (out): Return location for return parameter or %NULL to ignore. |
ae3d717a |
7992 | * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to logind_login1_manager_call_can_power_off(). |
86cb7727 |
7993 | * @error: Return location for error or %NULL. |
7994 | * |
ae3d717a |
7995 | * Finishes an operation started with logind_login1_manager_call_can_power_off(). |
86cb7727 |
7996 | * |
7997 | * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. |
7998 | */ |
7999 | gboolean |
ae3d717a |
8000 | logind_login1_manager_call_can_power_off_finish ( |
8001 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
8019 | * logind_login1_manager_call_can_power_off_sync: |
8020 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
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 | * |
ae3d717a |
8027 | * See logind_login1_manager_call_can_power_off() for the asynchronous version of this method. |
86cb7727 |
8028 | * |
8029 | * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. |
8030 | */ |
8031 | gboolean |
ae3d717a |
8032 | logind_login1_manager_call_can_power_off_sync ( |
8033 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
8057 | * logind_login1_manager_call_can_reboot: |
8058 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
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. |
ae3d717a |
8065 | * You can then call logind_login1_manager_call_can_reboot_finish() to get the result of the operation. |
86cb7727 |
8066 | * |
ae3d717a |
8067 | * See logind_login1_manager_call_can_reboot_sync() for the synchronous, blocking version of this method. |
86cb7727 |
8068 | */ |
8069 | void |
ae3d717a |
8070 | logind_login1_manager_call_can_reboot ( |
8071 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
8087 | * logind_login1_manager_call_can_reboot_finish: |
8088 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
8089 | * @out_unnamed_arg0: (out): Return location for return parameter or %NULL to ignore. |
ae3d717a |
8090 | * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to logind_login1_manager_call_can_reboot(). |
86cb7727 |
8091 | * @error: Return location for error or %NULL. |
8092 | * |
ae3d717a |
8093 | * Finishes an operation started with logind_login1_manager_call_can_reboot(). |
86cb7727 |
8094 | * |
8095 | * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. |
8096 | */ |
8097 | gboolean |
ae3d717a |
8098 | logind_login1_manager_call_can_reboot_finish ( |
8099 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
8117 | * logind_login1_manager_call_can_reboot_sync: |
8118 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
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 | * |
ae3d717a |
8125 | * See logind_login1_manager_call_can_reboot() for the asynchronous version of this method. |
86cb7727 |
8126 | * |
8127 | * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. |
8128 | */ |
8129 | gboolean |
ae3d717a |
8130 | logind_login1_manager_call_can_reboot_sync ( |
8131 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
8155 | * logind_login1_manager_call_can_suspend: |
8156 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
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. |
ae3d717a |
8163 | * You can then call logind_login1_manager_call_can_suspend_finish() to get the result of the operation. |
86cb7727 |
8164 | * |
ae3d717a |
8165 | * See logind_login1_manager_call_can_suspend_sync() for the synchronous, blocking version of this method. |
86cb7727 |
8166 | */ |
8167 | void |
ae3d717a |
8168 | logind_login1_manager_call_can_suspend ( |
8169 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
8185 | * logind_login1_manager_call_can_suspend_finish: |
8186 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
8187 | * @out_unnamed_arg0: (out): Return location for return parameter or %NULL to ignore. |
ae3d717a |
8188 | * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to logind_login1_manager_call_can_suspend(). |
86cb7727 |
8189 | * @error: Return location for error or %NULL. |
8190 | * |
ae3d717a |
8191 | * Finishes an operation started with logind_login1_manager_call_can_suspend(). |
86cb7727 |
8192 | * |
8193 | * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. |
8194 | */ |
8195 | gboolean |
ae3d717a |
8196 | logind_login1_manager_call_can_suspend_finish ( |
8197 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
8215 | * logind_login1_manager_call_can_suspend_sync: |
8216 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
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 | * |
ae3d717a |
8223 | * See logind_login1_manager_call_can_suspend() for the asynchronous version of this method. |
86cb7727 |
8224 | * |
8225 | * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. |
8226 | */ |
8227 | gboolean |
ae3d717a |
8228 | logind_login1_manager_call_can_suspend_sync ( |
8229 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
8253 | * logind_login1_manager_call_can_hibernate: |
8254 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
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. |
ae3d717a |
8261 | * You can then call logind_login1_manager_call_can_hibernate_finish() to get the result of the operation. |
86cb7727 |
8262 | * |
ae3d717a |
8263 | * See logind_login1_manager_call_can_hibernate_sync() for the synchronous, blocking version of this method. |
86cb7727 |
8264 | */ |
8265 | void |
ae3d717a |
8266 | logind_login1_manager_call_can_hibernate ( |
8267 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
8283 | * logind_login1_manager_call_can_hibernate_finish: |
8284 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
8285 | * @out_unnamed_arg0: (out): Return location for return parameter or %NULL to ignore. |
ae3d717a |
8286 | * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to logind_login1_manager_call_can_hibernate(). |
86cb7727 |
8287 | * @error: Return location for error or %NULL. |
8288 | * |
ae3d717a |
8289 | * Finishes an operation started with logind_login1_manager_call_can_hibernate(). |
86cb7727 |
8290 | * |
8291 | * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. |
8292 | */ |
8293 | gboolean |
ae3d717a |
8294 | logind_login1_manager_call_can_hibernate_finish ( |
8295 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
8313 | * logind_login1_manager_call_can_hibernate_sync: |
8314 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
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 | * |
ae3d717a |
8321 | * See logind_login1_manager_call_can_hibernate() for the asynchronous version of this method. |
86cb7727 |
8322 | * |
8323 | * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. |
8324 | */ |
8325 | gboolean |
ae3d717a |
8326 | logind_login1_manager_call_can_hibernate_sync ( |
8327 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
8351 | * logind_login1_manager_call_can_hybrid_sleep: |
8352 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
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. |
ae3d717a |
8359 | * You can then call logind_login1_manager_call_can_hybrid_sleep_finish() to get the result of the operation. |
86cb7727 |
8360 | * |
ae3d717a |
8361 | * See logind_login1_manager_call_can_hybrid_sleep_sync() for the synchronous, blocking version of this method. |
86cb7727 |
8362 | */ |
8363 | void |
ae3d717a |
8364 | logind_login1_manager_call_can_hybrid_sleep ( |
8365 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
8381 | * logind_login1_manager_call_can_hybrid_sleep_finish: |
8382 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
8383 | * @out_unnamed_arg0: (out): Return location for return parameter or %NULL to ignore. |
ae3d717a |
8384 | * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to logind_login1_manager_call_can_hybrid_sleep(). |
86cb7727 |
8385 | * @error: Return location for error or %NULL. |
8386 | * |
ae3d717a |
8387 | * Finishes an operation started with logind_login1_manager_call_can_hybrid_sleep(). |
86cb7727 |
8388 | * |
8389 | * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. |
8390 | */ |
8391 | gboolean |
ae3d717a |
8392 | logind_login1_manager_call_can_hybrid_sleep_finish ( |
8393 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
8411 | * logind_login1_manager_call_can_hybrid_sleep_sync: |
8412 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
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 | * |
ae3d717a |
8419 | * See logind_login1_manager_call_can_hybrid_sleep() for the asynchronous version of this method. |
86cb7727 |
8420 | * |
8421 | * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. |
8422 | */ |
8423 | gboolean |
ae3d717a |
8424 | logind_login1_manager_call_can_hybrid_sleep_sync ( |
8425 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
8449 | * logind_login1_manager_call_inhibit: |
8450 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
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. |
ae3d717a |
8461 | * You can then call logind_login1_manager_call_inhibit_finish() to get the result of the operation. |
86cb7727 |
8462 | * |
ae3d717a |
8463 | * See logind_login1_manager_call_inhibit_sync() for the synchronous, blocking version of this method. |
86cb7727 |
8464 | */ |
8465 | void |
ae3d717a |
8466 | logind_login1_manager_call_inhibit ( |
8467 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
8491 | * logind_login1_manager_call_inhibit_finish: |
8492 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
8493 | * @out_unnamed_arg4: (out): Return location for return parameter or %NULL to ignore. |
ae3d717a |
8494 | * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to logind_login1_manager_call_inhibit(). |
86cb7727 |
8495 | * @error: Return location for error or %NULL. |
8496 | * |
ae3d717a |
8497 | * Finishes an operation started with logind_login1_manager_call_inhibit(). |
86cb7727 |
8498 | * |
8499 | * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. |
8500 | */ |
8501 | gboolean |
ae3d717a |
8502 | logind_login1_manager_call_inhibit_finish ( |
8503 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
8521 | * logind_login1_manager_call_inhibit_sync: |
8522 | * @proxy: A #logindLogin1ManagerProxy. |
86cb7727 |
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 | * |
ae3d717a |
8533 | * See logind_login1_manager_call_inhibit() for the asynchronous version of this method. |
86cb7727 |
8534 | * |
8535 | * Returns: (skip): %TRUE if the call succeded, %FALSE if @error is set. |
8536 | */ |
8537 | gboolean |
ae3d717a |
8538 | logind_login1_manager_call_inhibit_sync ( |
8539 | logindLogin1Manager *proxy, |
86cb7727 |
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 | /** |
ae3d717a |
8571 | * logind_login1_manager_complete_get_session: |
8572 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
8580 | void |
ae3d717a |
8581 | logind_login1_manager_complete_get_session ( |
8582 | logindLogin1Manager *object, |
86cb7727 |
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 | /** |
ae3d717a |
8592 | * logind_login1_manager_complete_get_session_by_pid: |
8593 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
8601 | void |
ae3d717a |
8602 | logind_login1_manager_complete_get_session_by_pid ( |
8603 | logindLogin1Manager *object, |
86cb7727 |
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 | /** |
ae3d717a |
8613 | * logind_login1_manager_complete_get_user: |
8614 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
8622 | void |
ae3d717a |
8623 | logind_login1_manager_complete_get_user ( |
8624 | logindLogin1Manager *object, |
86cb7727 |
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 | /** |
ae3d717a |
8634 | * logind_login1_manager_complete_get_user_by_pid: |
8635 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
8643 | void |
ae3d717a |
8644 | logind_login1_manager_complete_get_user_by_pid ( |
8645 | logindLogin1Manager *object, |
86cb7727 |
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 | /** |
ae3d717a |
8655 | * logind_login1_manager_complete_get_seat: |
8656 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
8664 | void |
ae3d717a |
8665 | logind_login1_manager_complete_get_seat ( |
8666 | logindLogin1Manager *object, |
86cb7727 |
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 | /** |
ae3d717a |
8676 | * logind_login1_manager_complete_list_sessions: |
8677 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
8685 | void |
ae3d717a |
8686 | logind_login1_manager_complete_list_sessions ( |
8687 | logindLogin1Manager *object, |
86cb7727 |
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 | /** |
ae3d717a |
8697 | * logind_login1_manager_complete_list_users: |
8698 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
8706 | void |
ae3d717a |
8707 | logind_login1_manager_complete_list_users ( |
8708 | logindLogin1Manager *object, |
86cb7727 |
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 | /** |
ae3d717a |
8718 | * logind_login1_manager_complete_list_seats: |
8719 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
8727 | void |
ae3d717a |
8728 | logind_login1_manager_complete_list_seats ( |
8729 | logindLogin1Manager *object, |
86cb7727 |
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 | /** |
ae3d717a |
8739 | * logind_login1_manager_complete_list_inhibitors: |
8740 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
8748 | void |
ae3d717a |
8749 | logind_login1_manager_complete_list_inhibitors ( |
8750 | logindLogin1Manager *object, |
86cb7727 |
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 | /** |
ae3d717a |
8760 | * logind_login1_manager_complete_create_session: |
8761 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
8776 | void |
ae3d717a |
8777 | logind_login1_manager_complete_create_session ( |
8778 | logindLogin1Manager *object, |
86cb7727 |
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 | /** |
ae3d717a |
8802 | * logind_login1_manager_complete_release_session: |
8803 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
8810 | void |
ae3d717a |
8811 | logind_login1_manager_complete_release_session ( |
8812 | logindLogin1Manager *object, |
86cb7727 |
8813 | GDBusMethodInvocation *invocation) |
8814 | { |
8815 | g_dbus_method_invocation_return_value (invocation, |
8816 | g_variant_new ("()")); |
8817 | } |
8818 | |
8819 | /** |
ae3d717a |
8820 | * logind_login1_manager_complete_activate_session: |
8821 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
8828 | void |
ae3d717a |
8829 | logind_login1_manager_complete_activate_session ( |
8830 | logindLogin1Manager *object, |
86cb7727 |
8831 | GDBusMethodInvocation *invocation) |
8832 | { |
8833 | g_dbus_method_invocation_return_value (invocation, |
8834 | g_variant_new ("()")); |
8835 | } |
8836 | |
8837 | /** |
ae3d717a |
8838 | * logind_login1_manager_complete_activate_session_on_seat: |
8839 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
8846 | void |
ae3d717a |
8847 | logind_login1_manager_complete_activate_session_on_seat ( |
8848 | logindLogin1Manager *object, |
86cb7727 |
8849 | GDBusMethodInvocation *invocation) |
8850 | { |
8851 | g_dbus_method_invocation_return_value (invocation, |
8852 | g_variant_new ("()")); |
8853 | } |
8854 | |
8855 | /** |
ae3d717a |
8856 | * logind_login1_manager_complete_lock_session: |
8857 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
8864 | void |
ae3d717a |
8865 | logind_login1_manager_complete_lock_session ( |
8866 | logindLogin1Manager *object, |
86cb7727 |
8867 | GDBusMethodInvocation *invocation) |
8868 | { |
8869 | g_dbus_method_invocation_return_value (invocation, |
8870 | g_variant_new ("()")); |
8871 | } |
8872 | |
8873 | /** |
ae3d717a |
8874 | * logind_login1_manager_complete_unlock_session: |
8875 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
8882 | void |
ae3d717a |
8883 | logind_login1_manager_complete_unlock_session ( |
8884 | logindLogin1Manager *object, |
86cb7727 |
8885 | GDBusMethodInvocation *invocation) |
8886 | { |
8887 | g_dbus_method_invocation_return_value (invocation, |
8888 | g_variant_new ("()")); |
8889 | } |
8890 | |
8891 | /** |
ae3d717a |
8892 | * logind_login1_manager_complete_lock_sessions: |
8893 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
8900 | void |
ae3d717a |
8901 | logind_login1_manager_complete_lock_sessions ( |
8902 | logindLogin1Manager *object, |
86cb7727 |
8903 | GDBusMethodInvocation *invocation) |
8904 | { |
8905 | g_dbus_method_invocation_return_value (invocation, |
8906 | g_variant_new ("()")); |
8907 | } |
8908 | |
8909 | /** |
ae3d717a |
8910 | * logind_login1_manager_complete_unlock_sessions: |
8911 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
8918 | void |
ae3d717a |
8919 | logind_login1_manager_complete_unlock_sessions ( |
8920 | logindLogin1Manager *object, |
86cb7727 |
8921 | GDBusMethodInvocation *invocation) |
8922 | { |
8923 | g_dbus_method_invocation_return_value (invocation, |
8924 | g_variant_new ("()")); |
8925 | } |
8926 | |
8927 | /** |
ae3d717a |
8928 | * logind_login1_manager_complete_kill_session: |
8929 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
8936 | void |
ae3d717a |
8937 | logind_login1_manager_complete_kill_session ( |
8938 | logindLogin1Manager *object, |
86cb7727 |
8939 | GDBusMethodInvocation *invocation) |
8940 | { |
8941 | g_dbus_method_invocation_return_value (invocation, |
8942 | g_variant_new ("()")); |
8943 | } |
8944 | |
8945 | /** |
ae3d717a |
8946 | * logind_login1_manager_complete_kill_user: |
8947 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
8954 | void |
ae3d717a |
8955 | logind_login1_manager_complete_kill_user ( |
8956 | logindLogin1Manager *object, |
86cb7727 |
8957 | GDBusMethodInvocation *invocation) |
8958 | { |
8959 | g_dbus_method_invocation_return_value (invocation, |
8960 | g_variant_new ("()")); |
8961 | } |
8962 | |
8963 | /** |
ae3d717a |
8964 | * logind_login1_manager_complete_terminate_session: |
8965 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
8972 | void |
ae3d717a |
8973 | logind_login1_manager_complete_terminate_session ( |
8974 | logindLogin1Manager *object, |
86cb7727 |
8975 | GDBusMethodInvocation *invocation) |
8976 | { |
8977 | g_dbus_method_invocation_return_value (invocation, |
8978 | g_variant_new ("()")); |
8979 | } |
8980 | |
8981 | /** |
ae3d717a |
8982 | * logind_login1_manager_complete_terminate_user: |
8983 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
8990 | void |
ae3d717a |
8991 | logind_login1_manager_complete_terminate_user ( |
8992 | logindLogin1Manager *object, |
86cb7727 |
8993 | GDBusMethodInvocation *invocation) |
8994 | { |
8995 | g_dbus_method_invocation_return_value (invocation, |
8996 | g_variant_new ("()")); |
8997 | } |
8998 | |
8999 | /** |
ae3d717a |
9000 | * logind_login1_manager_complete_terminate_seat: |
9001 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
9008 | void |
ae3d717a |
9009 | logind_login1_manager_complete_terminate_seat ( |
9010 | logindLogin1Manager *object, |
86cb7727 |
9011 | GDBusMethodInvocation *invocation) |
9012 | { |
9013 | g_dbus_method_invocation_return_value (invocation, |
9014 | g_variant_new ("()")); |
9015 | } |
9016 | |
9017 | /** |
ae3d717a |
9018 | * logind_login1_manager_complete_set_user_linger: |
9019 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
9026 | void |
ae3d717a |
9027 | logind_login1_manager_complete_set_user_linger ( |
9028 | logindLogin1Manager *object, |
86cb7727 |
9029 | GDBusMethodInvocation *invocation) |
9030 | { |
9031 | g_dbus_method_invocation_return_value (invocation, |
9032 | g_variant_new ("()")); |
9033 | } |
9034 | |
9035 | /** |
ae3d717a |
9036 | * logind_login1_manager_complete_attach_device: |
9037 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
9044 | void |
ae3d717a |
9045 | logind_login1_manager_complete_attach_device ( |
9046 | logindLogin1Manager *object, |
86cb7727 |
9047 | GDBusMethodInvocation *invocation) |
9048 | { |
9049 | g_dbus_method_invocation_return_value (invocation, |
9050 | g_variant_new ("()")); |
9051 | } |
9052 | |
9053 | /** |
ae3d717a |
9054 | * logind_login1_manager_complete_flush_devices: |
9055 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
9062 | void |
ae3d717a |
9063 | logind_login1_manager_complete_flush_devices ( |
9064 | logindLogin1Manager *object, |
86cb7727 |
9065 | GDBusMethodInvocation *invocation) |
9066 | { |
9067 | g_dbus_method_invocation_return_value (invocation, |
9068 | g_variant_new ("()")); |
9069 | } |
9070 | |
9071 | /** |
ae3d717a |
9072 | * logind_login1_manager_complete_power_off: |
9073 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
9080 | void |
ae3d717a |
9081 | logind_login1_manager_complete_power_off ( |
9082 | logindLogin1Manager *object, |
86cb7727 |
9083 | GDBusMethodInvocation *invocation) |
9084 | { |
9085 | g_dbus_method_invocation_return_value (invocation, |
9086 | g_variant_new ("()")); |
9087 | } |
9088 | |
9089 | /** |
ae3d717a |
9090 | * logind_login1_manager_complete_reboot: |
9091 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
9098 | void |
ae3d717a |
9099 | logind_login1_manager_complete_reboot ( |
9100 | logindLogin1Manager *object, |
86cb7727 |
9101 | GDBusMethodInvocation *invocation) |
9102 | { |
9103 | g_dbus_method_invocation_return_value (invocation, |
9104 | g_variant_new ("()")); |
9105 | } |
9106 | |
9107 | /** |
ae3d717a |
9108 | * logind_login1_manager_complete_suspend: |
9109 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
9116 | void |
ae3d717a |
9117 | logind_login1_manager_complete_suspend ( |
9118 | logindLogin1Manager *object, |
86cb7727 |
9119 | GDBusMethodInvocation *invocation) |
9120 | { |
9121 | g_dbus_method_invocation_return_value (invocation, |
9122 | g_variant_new ("()")); |
9123 | } |
9124 | |
9125 | /** |
ae3d717a |
9126 | * logind_login1_manager_complete_hibernate: |
9127 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
9134 | void |
ae3d717a |
9135 | logind_login1_manager_complete_hibernate ( |
9136 | logindLogin1Manager *object, |
86cb7727 |
9137 | GDBusMethodInvocation *invocation) |
9138 | { |
9139 | g_dbus_method_invocation_return_value (invocation, |
9140 | g_variant_new ("()")); |
9141 | } |
9142 | |
9143 | /** |
ae3d717a |
9144 | * logind_login1_manager_complete_hybrid_sleep: |
9145 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
9152 | void |
ae3d717a |
9153 | logind_login1_manager_complete_hybrid_sleep ( |
9154 | logindLogin1Manager *object, |
86cb7727 |
9155 | GDBusMethodInvocation *invocation) |
9156 | { |
9157 | g_dbus_method_invocation_return_value (invocation, |
9158 | g_variant_new ("()")); |
9159 | } |
9160 | |
9161 | /** |
ae3d717a |
9162 | * logind_login1_manager_complete_can_power_off: |
9163 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
9171 | void |
ae3d717a |
9172 | logind_login1_manager_complete_can_power_off ( |
9173 | logindLogin1Manager *object, |
86cb7727 |
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 | /** |
ae3d717a |
9183 | * logind_login1_manager_complete_can_reboot: |
9184 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
9192 | void |
ae3d717a |
9193 | logind_login1_manager_complete_can_reboot ( |
9194 | logindLogin1Manager *object, |
86cb7727 |
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 | /** |
ae3d717a |
9204 | * logind_login1_manager_complete_can_suspend: |
9205 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
9213 | void |
ae3d717a |
9214 | logind_login1_manager_complete_can_suspend ( |
9215 | logindLogin1Manager *object, |
86cb7727 |
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 | /** |
ae3d717a |
9225 | * logind_login1_manager_complete_can_hibernate: |
9226 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
9234 | void |
ae3d717a |
9235 | logind_login1_manager_complete_can_hibernate ( |
9236 | logindLogin1Manager *object, |
86cb7727 |
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 | /** |
ae3d717a |
9246 | * logind_login1_manager_complete_can_hybrid_sleep: |
9247 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
9255 | void |
ae3d717a |
9256 | logind_login1_manager_complete_can_hybrid_sleep ( |
9257 | logindLogin1Manager *object, |
86cb7727 |
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 | /** |
ae3d717a |
9267 | * logind_login1_manager_complete_inhibit: |
9268 | * @object: A #logindLogin1Manager. |
86cb7727 |
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 | */ |
9276 | void |
ae3d717a |
9277 | logind_login1_manager_complete_inhibit ( |
9278 | logindLogin1Manager *object, |
86cb7727 |
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 | /** |
ae3d717a |
9290 | * logindLogin1ManagerProxy: |
86cb7727 |
9291 | * |
ae3d717a |
9292 | * The #logindLogin1ManagerProxy structure contains only private data and should only be accessed using the provided API. |
86cb7727 |
9293 | */ |
9294 | |
9295 | /** |
ae3d717a |
9296 | * logindLogin1ManagerProxyClass: |
86cb7727 |
9297 | * @parent_class: The parent class. |
9298 | * |
ae3d717a |
9299 | * Class structure for #logindLogin1ManagerProxy. |
86cb7727 |
9300 | */ |
9301 | |
ae3d717a |
9302 | struct _logindLogin1ManagerProxyPrivate |
86cb7727 |
9303 | { |
9304 | GData *qdata; |
9305 | }; |
9306 | |
ae3d717a |
9307 | static void logind_login1_manager_proxy_iface_init (logindLogin1ManagerIface *iface); |
86cb7727 |
9308 | |
9309 | #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 |
ae3d717a |
9310 | G_DEFINE_TYPE_WITH_CODE (logindLogin1ManagerProxy, logind_login1_manager_proxy, G_TYPE_DBUS_PROXY, |
9311 | G_ADD_PRIVATE (logindLogin1ManagerProxy) |
9312 | G_IMPLEMENT_INTERFACE (LOGIND_TYPE_LOGIN1_MANAGER, logind_login1_manager_proxy_iface_init)); |
86cb7727 |
9313 | |
9314 | #else |
ae3d717a |
9315 | G_DEFINE_TYPE_WITH_CODE (logindLogin1ManagerProxy, logind_login1_manager_proxy, G_TYPE_DBUS_PROXY, |
9316 | G_IMPLEMENT_INTERFACE (LOGIND_TYPE_LOGIN1_MANAGER, logind_login1_manager_proxy_iface_init)); |
86cb7727 |
9317 | |
9318 | #endif |
9319 | static void |
ae3d717a |
9320 | logind_login1_manager_proxy_finalize (GObject *object) |
86cb7727 |
9321 | { |
ae3d717a |
9322 | logindLogin1ManagerProxy *proxy = LOGIND_LOGIN1_MANAGER_PROXY (object); |
86cb7727 |
9323 | g_datalist_clear (&proxy->priv->qdata); |
ae3d717a |
9324 | G_OBJECT_CLASS (logind_login1_manager_proxy_parent_class)->finalize (object); |
86cb7727 |
9325 | } |
9326 | |
9327 | static void |
ae3d717a |
9328 | logind_login1_manager_proxy_get_property (GObject *object, |
86cb7727 |
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); |
ae3d717a |
9336 | info = _logind_login1_manager_property_info_pointers[prop_id - 1]; |
86cb7727 |
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 | |
9351 | static void |
ae3d717a |
9352 | logind_login1_manager_proxy_set_property_cb (GDBusProxy *proxy, |
86cb7727 |
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 | |
9374 | static void |
ae3d717a |
9375 | logind_login1_manager_proxy_set_property (GObject *object, |
86cb7727 |
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); |
ae3d717a |
9383 | info = _logind_login1_manager_property_info_pointers[prop_id - 1]; |
86cb7727 |
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, |
ae3d717a |
9390 | NULL, (GAsyncReadyCallback) logind_login1_manager_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); |
86cb7727 |
9391 | g_variant_unref (variant); |
9392 | } |
9393 | |
9394 | static void |
ae3d717a |
9395 | logind_login1_manager_proxy_g_signal (GDBusProxy *proxy, |
86cb7727 |
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; |
ae3d717a |
9407 | info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_logind_login1_manager_interface_info.parent_struct, signal_name); |
86cb7727 |
9408 | if (info == NULL) |
9409 | return; |
9410 | num_params = g_variant_n_children (parameters); |
9411 | paramv = g_new0 (GValue, num_params + 1); |
ae3d717a |
9412 | g_value_init (¶mv[0], LOGIND_TYPE_LOGIN1_MANAGER); |
86cb7727 |
9413 | g_value_set_object (¶mv[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 (¶mv[n], G_TYPE_VARIANT); |
9422 | g_value_set_variant (¶mv[n], child); |
9423 | n++; |
9424 | } |
9425 | else |
9426 | g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); |
9427 | g_variant_unref (child); |
9428 | } |
ae3d717a |
9429 | signal_id = g_signal_lookup (info->signal_name, LOGIND_TYPE_LOGIN1_MANAGER); |
86cb7727 |
9430 | g_signal_emitv (paramv, signal_id, 0, NULL); |
9431 | for (n = 0; n < num_params + 1; n++) |
9432 | g_value_unset (¶mv[n]); |
9433 | g_free (paramv); |
9434 | } |
9435 | |
9436 | static void |
ae3d717a |
9437 | logind_login1_manager_proxy_g_properties_changed (GDBusProxy *_proxy, |
86cb7727 |
9438 | GVariant *changed_properties, |
9439 | const gchar *const *invalidated_properties) |
9440 | { |
ae3d717a |
9441 | logindLogin1ManagerProxy *proxy = LOGIND_LOGIN1_MANAGER_PROXY (_proxy); |
86cb7727 |
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 | { |
ae3d717a |
9449 | info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_logind_login1_manager_interface_info.parent_struct, key); |
86cb7727 |
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 | { |
ae3d717a |
9457 | info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_logind_login1_manager_interface_info.parent_struct, invalidated_properties[n]); |
86cb7727 |
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 | |
9464 | static guint |
ae3d717a |
9465 | logind_login1_manager_proxy_get_nauto_vts (logindLogin1Manager *object) |
86cb7727 |
9466 | { |
ae3d717a |
9467 | logindLogin1ManagerProxy *proxy = LOGIND_LOGIN1_MANAGER_PROXY (object); |
86cb7727 |
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 | |
9479 | static const gchar *const * |
ae3d717a |
9480 | logind_login1_manager_proxy_get_kill_only_users (logindLogin1Manager *object) |
86cb7727 |
9481 | { |
ae3d717a |
9482 | logindLogin1ManagerProxy *proxy = LOGIND_LOGIN1_MANAGER_PROXY (object); |
86cb7727 |
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 | |
9498 | static const gchar *const * |
ae3d717a |
9499 | logind_login1_manager_proxy_get_kill_exclude_users (logindLogin1Manager *object) |
86cb7727 |
9500 | { |
ae3d717a |
9501 | logindLogin1ManagerProxy *proxy = LOGIND_LOGIN1_MANAGER_PROXY (object); |
86cb7727 |
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 | |
9517 | static gboolean |
ae3d717a |
9518 | logind_login1_manager_proxy_get_kill_user_processes (logindLogin1Manager *object) |
86cb7727 |
9519 | { |
ae3d717a |
9520 | logindLogin1ManagerProxy *proxy = LOGIND_LOGIN1_MANAGER_PROXY (object); |
86cb7727 |
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 | |
9532 | static gboolean |
ae3d717a |
9533 | logind_login1_manager_proxy_get_idle_hint (logindLogin1Manager *object) |
86cb7727 |
9534 | { |
ae3d717a |
9535 | logindLogin1ManagerProxy *proxy = LOGIND_LOGIN1_MANAGER_PROXY (object); |
86cb7727 |
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 | |
9547 | static guint64 |
ae3d717a |
9548 | logind_login1_manager_proxy_get_idle_since_hint (logindLogin1Manager *object) |
86cb7727 |
9549 | { |
ae3d717a |
9550 | logindLogin1ManagerProxy *proxy = LOGIND_LOGIN1_MANAGER_PROXY (object); |
86cb7727 |
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 | |
9562 | static guint64 |
ae3d717a |
9563 | logind_login1_manager_proxy_get_idle_since_hint_monotonic (logindLogin1Manager *object) |
86cb7727 |
9564 | { |
ae3d717a |
9565 | logindLogin1ManagerProxy *proxy = LOGIND_LOGIN1_MANAGER_PROXY (object); |
86cb7727 |
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 | |
9577 | static const gchar * |
ae3d717a |
9578 | logind_login1_manager_proxy_get_block_inhibited (logindLogin1Manager *object) |
86cb7727 |
9579 | { |
ae3d717a |
9580 | logindLogin1ManagerProxy *proxy = LOGIND_LOGIN1_MANAGER_PROXY (object); |
86cb7727 |
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 | |
9592 | static const gchar * |
ae3d717a |
9593 | logind_login1_manager_proxy_get_delay_inhibited (logindLogin1Manager *object) |
86cb7727 |
9594 | { |
ae3d717a |
9595 | logindLogin1ManagerProxy *proxy = LOGIND_LOGIN1_MANAGER_PROXY (object); |
86cb7727 |
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 | |
9607 | static guint64 |
ae3d717a |
9608 | logind_login1_manager_proxy_get_inhibit_delay_max_usec (logindLogin1Manager *object) |
86cb7727 |
9609 | { |
ae3d717a |
9610 | logindLogin1ManagerProxy *proxy = LOGIND_LOGIN1_MANAGER_PROXY (object); |
86cb7727 |
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 | |
9622 | static const gchar * |
ae3d717a |
9623 | logind_login1_manager_proxy_get_handle_power_key (logindLogin1Manager *object) |
86cb7727 |
9624 | { |
ae3d717a |
9625 | logindLogin1ManagerProxy *proxy = LOGIND_LOGIN1_MANAGER_PROXY (object); |
86cb7727 |
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 | |
9637 | static const gchar * |
ae3d717a |
9638 | logind_login1_manager_proxy_get_handle_suspend_key (logindLogin1Manager *object) |
86cb7727 |
9639 | { |
ae3d717a |
9640 | logindLogin1ManagerProxy *proxy = LOGIND_LOGIN1_MANAGER_PROXY (object); |
86cb7727 |
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 | |
9652 | static const gchar * |
ae3d717a |
9653 | logind_login1_manager_proxy_get_handle_hibernate_key (logindLogin1Manager *object) |
86cb7727 |
9654 | { |
ae3d717a |
9655 | logindLogin1ManagerProxy *proxy = LOGIND_LOGIN1_MANAGER_PROXY (object); |
86cb7727 |
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 | |
9667 | static const gchar * |
ae3d717a |
9668 | logind_login1_manager_proxy_get_handle_lid_switch (logindLogin1Manager *object) |
86cb7727 |
9669 | { |
ae3d717a |
9670 | logindLogin1ManagerProxy *proxy = LOGIND_LOGIN1_MANAGER_PROXY (object); |
86cb7727 |
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 | |
9682 | static const gchar * |
ae3d717a |
9683 | logind_login1_manager_proxy_get_idle_action (logindLogin1Manager *object) |
86cb7727 |
9684 | { |
ae3d717a |
9685 | logindLogin1ManagerProxy *proxy = LOGIND_LOGIN1_MANAGER_PROXY (object); |
86cb7727 |
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 | |
9697 | static guint64 |
ae3d717a |
9698 | logind_login1_manager_proxy_get_idle_action_usec (logindLogin1Manager *object) |
86cb7727 |
9699 | { |
ae3d717a |
9700 | logindLogin1ManagerProxy *proxy = LOGIND_LOGIN1_MANAGER_PROXY (object); |
86cb7727 |
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 | |
9712 | static gboolean |
ae3d717a |
9713 | logind_login1_manager_proxy_get_preparing_for_shutdown (logindLogin1Manager *object) |
86cb7727 |
9714 | { |
ae3d717a |
9715 | logindLogin1ManagerProxy *proxy = LOGIND_LOGIN1_MANAGER_PROXY (object); |
86cb7727 |
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 | |
9727 | static gboolean |
ae3d717a |
9728 | logind_login1_manager_proxy_get_preparing_for_sleep (logindLogin1Manager *object) |
86cb7727 |
9729 | { |
ae3d717a |
9730 | logindLogin1ManagerProxy *proxy = LOGIND_LOGIN1_MANAGER_PROXY (object); |
86cb7727 |
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 | |
9742 | static void |
ae3d717a |
9743 | logind_login1_manager_proxy_init (logindLogin1ManagerProxy *proxy) |
86cb7727 |
9744 | { |
9745 | #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 |
ae3d717a |
9746 | proxy->priv = logind_login1_manager_proxy_get_instance_private (proxy); |
86cb7727 |
9747 | #else |
ae3d717a |
9748 | proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, LOGIND_TYPE_LOGIN1_MANAGER_PROXY, logindLogin1ManagerProxyPrivate); |
86cb7727 |
9749 | #endif |
9750 | |
ae3d717a |
9751 | g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), logind_login1_manager_interface_info ()); |
86cb7727 |
9752 | } |
9753 | |
9754 | static void |
ae3d717a |
9755 | logind_login1_manager_proxy_class_init (logindLogin1ManagerProxyClass *klass) |
86cb7727 |
9756 | { |
9757 | GObjectClass *gobject_class; |
9758 | GDBusProxyClass *proxy_class; |
9759 | |
9760 | gobject_class = G_OBJECT_CLASS (klass); |
ae3d717a |
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; |
86cb7727 |
9764 | |
9765 | proxy_class = G_DBUS_PROXY_CLASS (klass); |
ae3d717a |
9766 | proxy_class->g_signal = logind_login1_manager_proxy_g_signal; |
9767 | proxy_class->g_properties_changed = logind_login1_manager_proxy_g_properties_changed; |
86cb7727 |
9768 | |
ae3d717a |
9769 | logind_login1_manager_override_properties (gobject_class, 1); |
86cb7727 |
9770 | |
9771 | #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 |
ae3d717a |
9772 | g_type_class_add_private (klass, sizeof (logindLogin1ManagerProxyPrivate)); |
86cb7727 |
9773 | #endif |
9774 | } |
9775 | |
9776 | static void |
ae3d717a |
9777 | logind_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: |
86cb7727 |
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. |
ae3d717a |
9812 | * You can then call logind_login1_manager_proxy_new_finish() to get the result of the operation. |
86cb7727 |
9813 | * |
ae3d717a |
9814 | * See logind_login1_manager_proxy_new_sync() for the synchronous, blocking version of this constructor. |
86cb7727 |
9815 | */ |
9816 | void |
ae3d717a |
9817 | logind_login1_manager_proxy_new ( |
86cb7727 |
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 | { |
ae3d717a |
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); |
86cb7727 |
9827 | } |
9828 | |
9829 | /** |
ae3d717a |
9830 | * logind_login1_manager_proxy_new_finish: |
9831 | * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to logind_login1_manager_proxy_new(). |
86cb7727 |
9832 | * @error: Return location for error or %NULL |
9833 | * |
ae3d717a |
9834 | * Finishes an operation started with logind_login1_manager_proxy_new(). |
86cb7727 |
9835 | * |
ae3d717a |
9836 | * Returns: (transfer full) (type logindLogin1ManagerProxy): The constructed proxy object or %NULL if @error is set. |
86cb7727 |
9837 | */ |
ae3d717a |
9838 | logindLogin1Manager * |
9839 | logind_login1_manager_proxy_new_finish ( |
86cb7727 |
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) |
ae3d717a |
9849 | return LOGIND_LOGIN1_MANAGER (ret); |
86cb7727 |
9850 | else |
9851 | return NULL; |
9852 | } |
9853 | |
9854 | /** |
ae3d717a |
9855 | * logind_login1_manager_proxy_new_sync: |
86cb7727 |
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 | * |
ae3d717a |
9867 | * See logind_login1_manager_proxy_new() for the asynchronous version of this constructor. |
86cb7727 |
9868 | * |
ae3d717a |
9869 | * Returns: (transfer full) (type logindLogin1ManagerProxy): The constructed proxy object or %NULL if @error is set. |
86cb7727 |
9870 | */ |
ae3d717a |
9871 | logindLogin1Manager * |
9872 | logind_login1_manager_proxy_new_sync ( |
86cb7727 |
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; |
ae3d717a |
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); |
86cb7727 |
9882 | if (ret != NULL) |
ae3d717a |
9883 | return LOGIND_LOGIN1_MANAGER (ret); |
86cb7727 |
9884 | else |
9885 | return NULL; |
9886 | } |
9887 | |
9888 | |
9889 | /** |
ae3d717a |
9890 | * logind_login1_manager_proxy_new_for_bus: |
86cb7727 |
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 | * |
ae3d717a |
9899 | * Like logind_login1_manager_proxy_new() but takes a #GBusType instead of a #GDBusConnection. |
86cb7727 |
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. |
ae3d717a |
9902 | * You can then call logind_login1_manager_proxy_new_for_bus_finish() to get the result of the operation. |
86cb7727 |
9903 | * |
ae3d717a |
9904 | * See logind_login1_manager_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. |
86cb7727 |
9905 | */ |
9906 | void |
ae3d717a |
9907 | logind_login1_manager_proxy_new_for_bus ( |
86cb7727 |
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 | { |
ae3d717a |
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); |
86cb7727 |
9917 | } |
9918 | |
9919 | /** |
ae3d717a |
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(). |
86cb7727 |
9922 | * @error: Return location for error or %NULL |
9923 | * |
ae3d717a |
9924 | * Finishes an operation started with logind_login1_manager_proxy_new_for_bus(). |
86cb7727 |
9925 | * |
ae3d717a |
9926 | * Returns: (transfer full) (type logindLogin1ManagerProxy): The constructed proxy object or %NULL if @error is set. |
86cb7727 |
9927 | */ |
ae3d717a |
9928 | logindLogin1Manager * |
9929 | logind_login1_manager_proxy_new_for_bus_finish ( |
86cb7727 |
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) |
ae3d717a |
9939 | return LOGIND_LOGIN1_MANAGER (ret); |
86cb7727 |
9940 | else |
9941 | return NULL; |
9942 | } |
9943 | |
9944 | /** |
ae3d717a |
9945 | * logind_login1_manager_proxy_new_for_bus_sync: |
86cb7727 |
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 | * |
ae3d717a |
9953 | * Like logind_login1_manager_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. |
86cb7727 |
9954 | * |
9955 | * The calling thread is blocked until a reply is received. |
9956 | * |
ae3d717a |
9957 | * See logind_login1_manager_proxy_new_for_bus() for the asynchronous version of this constructor. |
86cb7727 |
9958 | * |
ae3d717a |
9959 | * Returns: (transfer full) (type logindLogin1ManagerProxy): The constructed proxy object or %NULL if @error is set. |
86cb7727 |
9960 | */ |
ae3d717a |
9961 | logindLogin1Manager * |
9962 | logind_login1_manager_proxy_new_for_bus_sync ( |
86cb7727 |
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; |
ae3d717a |
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); |
86cb7727 |
9972 | if (ret != NULL) |
ae3d717a |
9973 | return LOGIND_LOGIN1_MANAGER (ret); |
86cb7727 |
9974 | else |
9975 | return NULL; |
9976 | } |
9977 | |
9978 | |
9979 | /* ------------------------------------------------------------------------ */ |
9980 | |
9981 | /** |
ae3d717a |
9982 | * logindLogin1ManagerSkeleton: |
86cb7727 |
9983 | * |
ae3d717a |
9984 | * The #logindLogin1ManagerSkeleton structure contains only private data and should only be accessed using the provided API. |
86cb7727 |
9985 | */ |
9986 | |
9987 | /** |
ae3d717a |
9988 | * logindLogin1ManagerSkeletonClass: |
86cb7727 |
9989 | * @parent_class: The parent class. |
9990 | * |
ae3d717a |
9991 | * Class structure for #logindLogin1ManagerSkeleton. |
86cb7727 |
9992 | */ |
9993 | |
ae3d717a |
9994 | struct _logindLogin1ManagerSkeletonPrivate |
86cb7727 |
9995 | { |
9996 | GValue *properties; |
9997 | GList *changed_properties; |
9998 | GSource *changed_properties_idle_source; |
9999 | GMainContext *context; |
10000 | GMutex lock; |
10001 | }; |
10002 | |
10003 | static void |
ae3d717a |
10004 | _logind_login1_manager_skeleton_handle_method_call ( |
86cb7727 |
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 | { |
ae3d717a |
10014 | logindLogin1ManagerSkeleton *skeleton = LOGIND_LOGIN1_MANAGER_SKELETON (user_data); |
86cb7727 |
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; |
ae3d717a |
10029 | g_value_init (¶mv[n], LOGIND_TYPE_LOGIN1_MANAGER); |
86cb7727 |
10030 | g_value_set_object (¶mv[n++], skeleton); |
10031 | g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); |
10032 | g_value_set_object (¶mv[n++], invocation); |
10033 | if (info->pass_fdlist) |
10034 | { |
10035 | #ifdef G_OS_UNIX |
10036 | g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); |
10037 | g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); |
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 (¶mv[n], G_TYPE_VARIANT); |
10049 | g_value_set_variant (¶mv[n], child); |
10050 | n++; |
10051 | } |
10052 | else |
10053 | g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); |
10054 | g_variant_unref (child); |
10055 | } |
ae3d717a |
10056 | signal_id = g_signal_lookup (info->signal_name, LOGIND_TYPE_LOGIN1_MANAGER); |
86cb7727 |
10057 | g_value_init (&return_value, G_TYPE_BOOLEAN); |
10058 | g_signal_emitv (paramv, signal_id, 0, &return_value); |
10059 | if (!g_value_get_boolean (&return_value)) |
10060 | g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); |
10061 | g_value_unset (&return_value); |
10062 | for (n = 0; n < num_params + num_extra; n++) |
10063 | g_value_unset (¶mv[n]); |
10064 | g_free (paramv); |
10065 | } |
10066 | |
10067 | static GVariant * |
ae3d717a |
10068 | _logind_login1_manager_skeleton_handle_get_property ( |
86cb7727 |
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 | { |
ae3d717a |
10077 | logindLogin1ManagerSkeleton *skeleton = LOGIND_LOGIN1_MANAGER_SKELETON (user_data); |
86cb7727 |
10078 | GValue value = G_VALUE_INIT; |
10079 | GParamSpec *pspec; |
10080 | _ExtendedGDBusPropertyInfo *info; |
10081 | GVariant *ret; |
10082 | ret = NULL; |
ae3d717a |
10083 | info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_logind_login1_manager_interface_info.parent_struct, property_name); |
86cb7727 |
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 | |
10100 | static gboolean |
ae3d717a |
10101 | _logind_login1_manager_skeleton_handle_set_property ( |
86cb7727 |
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 | { |
ae3d717a |
10111 | logindLogin1ManagerSkeleton *skeleton = LOGIND_LOGIN1_MANAGER_SKELETON (user_data); |
86cb7727 |
10112 | GValue value = G_VALUE_INIT; |
10113 | GParamSpec *pspec; |
10114 | _ExtendedGDBusPropertyInfo *info; |
10115 | gboolean ret; |
10116 | ret = FALSE; |
ae3d717a |
10117 | info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_logind_login1_manager_interface_info.parent_struct, property_name); |
86cb7727 |
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 | |
ae3d717a |
10137 | static const GDBusInterfaceVTable _logind_login1_manager_skeleton_vtable = |
86cb7727 |
10138 | { |
ae3d717a |
10139 | _logind_login1_manager_skeleton_handle_method_call, |
10140 | _logind_login1_manager_skeleton_handle_get_property, |
10141 | _logind_login1_manager_skeleton_handle_set_property, |
86cb7727 |
10142 | {NULL} |
10143 | }; |
10144 | |
10145 | static GDBusInterfaceInfo * |
ae3d717a |
10146 | logind_login1_manager_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) |
86cb7727 |
10147 | { |
ae3d717a |
10148 | return logind_login1_manager_interface_info (); |
86cb7727 |
10149 | } |
10150 | |
10151 | static GDBusInterfaceVTable * |
ae3d717a |
10152 | logind_login1_manager_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) |
86cb7727 |
10153 | { |
ae3d717a |
10154 | return (GDBusInterfaceVTable *) &_logind_login1_manager_skeleton_vtable; |
86cb7727 |
10155 | } |
10156 | |
10157 | static GVariant * |
ae3d717a |
10158 | logind_login1_manager_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) |
86cb7727 |
10159 | { |
ae3d717a |
10160 | logindLogin1ManagerSkeleton *skeleton = LOGIND_LOGIN1_MANAGER_SKELETON (_skeleton); |
86cb7727 |
10161 | |
10162 | GVariantBuilder builder; |
10163 | guint n; |
10164 | g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); |
ae3d717a |
10165 | if (_logind_login1_manager_interface_info.parent_struct.properties == NULL) |
86cb7727 |
10166 | goto out; |
ae3d717a |
10167 | for (n = 0; _logind_login1_manager_interface_info.parent_struct.properties[n] != NULL; n++) |
86cb7727 |
10168 | { |
ae3d717a |
10169 | GDBusPropertyInfo *info = _logind_login1_manager_interface_info.parent_struct.properties[n]; |
86cb7727 |
10170 | if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) |
10171 | { |
10172 | GVariant *value; |
ae3d717a |
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); |
86cb7727 |
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 | } |
10182 | out: |
10183 | return g_variant_builder_end (&builder); |
10184 | } |
10185 | |
ae3d717a |
10186 | static gboolean _logind_login1_manager_emit_changed (gpointer user_data); |
86cb7727 |
10187 | |
10188 | static void |
ae3d717a |
10189 | logind_login1_manager_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton) |
86cb7727 |
10190 | { |
ae3d717a |
10191 | logindLogin1ManagerSkeleton *skeleton = LOGIND_LOGIN1_MANAGER_SKELETON (_skeleton); |
86cb7727 |
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) |
ae3d717a |
10204 | _logind_login1_manager_emit_changed (skeleton); |
86cb7727 |
10205 | } |
10206 | |
10207 | static void |
ae3d717a |
10208 | _logind_login1_manager_on_signal_session_new ( |
10209 | logindLogin1Manager *object, |
86cb7727 |
10210 | const gchar *arg_unnamed_arg0, |
10211 | const gchar *arg_unnamed_arg1) |
10212 | { |
ae3d717a |
10213 | logindLogin1ManagerSkeleton *skeleton = LOGIND_LOGIN1_MANAGER_SKELETON (object); |
86cb7727 |
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 | |
10233 | static void |
ae3d717a |
10234 | _logind_login1_manager_on_signal_session_removed ( |
10235 | logindLogin1Manager *object, |
86cb7727 |
10236 | const gchar *arg_unnamed_arg0, |
10237 | const gchar *arg_unnamed_arg1) |
10238 | { |
ae3d717a |
10239 | logindLogin1ManagerSkeleton *skeleton = LOGIND_LOGIN1_MANAGER_SKELETON (object); |
86cb7727 |
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 | |
10259 | static void |
ae3d717a |
10260 | _logind_login1_manager_on_signal_user_new ( |
10261 | logindLogin1Manager *object, |
86cb7727 |
10262 | guint arg_unnamed_arg0, |
10263 | const gchar *arg_unnamed_arg1) |
10264 | { |
ae3d717a |
10265 | logindLogin1ManagerSkeleton *skeleton = LOGIND_LOGIN1_MANAGER_SKELETON (object); |
86cb7727 |
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 | |
10285 | static void |
ae3d717a |
10286 | _logind_login1_manager_on_signal_user_removed ( |
10287 | logindLogin1Manager *object, |
86cb7727 |
10288 | guint arg_unnamed_arg0, |
10289 | const gchar *arg_unnamed_arg1) |
10290 | { |
ae3d717a |
10291 | logindLogin1ManagerSkeleton *skeleton = LOGIND_LOGIN1_MANAGER_SKELETON (object); |
86cb7727 |
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 | |
10311 | static void |
ae3d717a |
10312 | _logind_login1_manager_on_signal_seat_new ( |
10313 | logindLogin1Manager *object, |
86cb7727 |
10314 | const gchar *arg_unnamed_arg0, |
10315 | const gchar *arg_unnamed_arg1) |
10316 | { |
ae3d717a |
10317 | logindLogin1ManagerSkeleton *skeleton = LOGIND_LOGIN1_MANAGER_SKELETON (object); |
86cb7727 |
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 | |
10337 | static void |
ae3d717a |
10338 | _logind_login1_manager_on_signal_seat_removed ( |
10339 | logindLogin1Manager *object, |
86cb7727 |
10340 | const gchar *arg_unnamed_arg0, |
10341 | const gchar *arg_unnamed_arg1) |
10342 | { |
ae3d717a |
10343 | logindLogin1ManagerSkeleton *skeleton = LOGIND_LOGIN1_MANAGER_SKELETON (object); |
86cb7727 |
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 | |
10363 | static void |
ae3d717a |
10364 | _logind_login1_manager_on_signal_prepare_for_shutdown ( |
10365 | logindLogin1Manager *object, |
86cb7727 |
10366 | gboolean arg_unnamed_arg0) |
10367 | { |
ae3d717a |
10368 | logindLogin1ManagerSkeleton *skeleton = LOGIND_LOGIN1_MANAGER_SKELETON (object); |
86cb7727 |
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 | |
10387 | static void |
ae3d717a |
10388 | _logind_login1_manager_on_signal_prepare_for_sleep ( |
10389 | logindLogin1Manager *object, |
86cb7727 |
10390 | gboolean arg_unnamed_arg0) |
10391 | { |
ae3d717a |
10392 | logindLogin1ManagerSkeleton *skeleton = LOGIND_LOGIN1_MANAGER_SKELETON (object); |
86cb7727 |
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 | |
ae3d717a |
10411 | static void logind_login1_manager_skeleton_iface_init (logindLogin1ManagerIface *iface); |
86cb7727 |
10412 | #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 |
ae3d717a |
10413 | G_DEFINE_TYPE_WITH_CODE (logindLogin1ManagerSkeleton, logind_login1_manager_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, |
10414 | G_ADD_PRIVATE (logindLogin1ManagerSkeleton) |
10415 | G_IMPLEMENT_INTERFACE (LOGIND_TYPE_LOGIN1_MANAGER, logind_login1_manager_skeleton_iface_init)); |
86cb7727 |
10416 | |
10417 | #else |
ae3d717a |
10418 | G_DEFINE_TYPE_WITH_CODE (logindLogin1ManagerSkeleton, logind_login1_manager_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, |
10419 | G_IMPLEMENT_INTERFACE (LOGIND_TYPE_LOGIN1_MANAGER, logind_login1_manager_skeleton_iface_init)); |
86cb7727 |
10420 | |
10421 | #endif |
10422 | static void |
ae3d717a |
10423 | logind_login1_manager_skeleton_finalize (GObject *object) |
86cb7727 |
10424 | { |
ae3d717a |
10425 | logindLogin1ManagerSkeleton *skeleton = LOGIND_LOGIN1_MANAGER_SKELETON (object); |
86cb7727 |
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); |
ae3d717a |
10435 | G_OBJECT_CLASS (logind_login1_manager_skeleton_parent_class)->finalize (object); |
86cb7727 |
10436 | } |
10437 | |
10438 | static void |
ae3d717a |
10439 | logind_login1_manager_skeleton_get_property (GObject *object, |
86cb7727 |
10440 | guint prop_id, |
10441 | GValue *value, |
10442 | GParamSpec *pspec G_GNUC_UNUSED) |
10443 | { |
ae3d717a |
10444 | logindLogin1ManagerSkeleton *skeleton = LOGIND_LOGIN1_MANAGER_SKELETON (object); |
86cb7727 |
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 | |
10451 | static gboolean |
ae3d717a |
10452 | _logind_login1_manager_emit_changed (gpointer user_data) |
86cb7727 |
10453 | { |
ae3d717a |
10454 | logindLogin1ManagerSkeleton *skeleton = LOGIND_LOGIN1_MANAGER_SKELETON (user_data); |
86cb7727 |
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 | |
10511 | static void |
ae3d717a |
10512 | _logind_login1_manager_schedule_emit_changed (logindLogin1ManagerSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value) |
86cb7727 |
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 | |
10537 | static void |
ae3d717a |
10538 | logind_login1_manager_skeleton_notify (GObject *object, |
86cb7727 |
10539 | GParamSpec *pspec G_GNUC_UNUSED) |
10540 | { |
ae3d717a |
10541 | logindLogin1ManagerSkeleton *skeleton = LOGIND_LOGIN1_MANAGER_SKELETON (object); |
86cb7727 |
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); |
ae3d717a |
10548 | g_source_set_callback (skeleton->priv->changed_properties_idle_source, _logind_login1_manager_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref); |
86cb7727 |
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 | |
10555 | static void |
ae3d717a |
10556 | logind_login1_manager_skeleton_set_property (GObject *object, |
86cb7727 |
10557 | guint prop_id, |
10558 | const GValue *value, |
10559 | GParamSpec *pspec) |
10560 | { |
ae3d717a |
10561 | logindLogin1ManagerSkeleton *skeleton = LOGIND_LOGIN1_MANAGER_SKELETON (object); |
86cb7727 |
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) |
ae3d717a |
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]); |
86cb7727 |
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 | |
10576 | static void |
ae3d717a |
10577 | logind_login1_manager_skeleton_init (logindLogin1ManagerSkeleton *skeleton) |
86cb7727 |
10578 | { |
10579 | #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 |
ae3d717a |
10580 | skeleton->priv = logind_login1_manager_skeleton_get_instance_private (skeleton); |
86cb7727 |
10581 | #else |
ae3d717a |
10582 | skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, LOGIND_TYPE_LOGIN1_MANAGER_SKELETON, logindLogin1ManagerSkeletonPrivate); |
86cb7727 |
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 | |
10608 | static guint |
ae3d717a |
10609 | logind_login1_manager_skeleton_get_nauto_vts (logindLogin1Manager *object) |
86cb7727 |
10610 | { |
ae3d717a |
10611 | logindLogin1ManagerSkeleton *skeleton = LOGIND_LOGIN1_MANAGER_SKELETON (object); |
86cb7727 |
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 | |
10619 | static const gchar *const * |
ae3d717a |
10620 | logind_login1_manager_skeleton_get_kill_only_users (logindLogin1Manager *object) |
86cb7727 |
10621 | { |
ae3d717a |
10622 | logindLogin1ManagerSkeleton *skeleton = LOGIND_LOGIN1_MANAGER_SKELETON (object); |
86cb7727 |
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 | |
10630 | static const gchar *const * |
ae3d717a |
10631 | logind_login1_manager_skeleton_get_kill_exclude_users (logindLogin1Manager *object) |
86cb7727 |
10632 | { |
ae3d717a |
10633 | logindLogin1ManagerSkeleton *skeleton = LOGIND_LOGIN1_MANAGER_SKELETON (object); |
86cb7727 |
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 | |
10641 | static gboolean |
ae3d717a |
10642 | logind_login1_manager_skeleton_get_kill_user_processes (logindLogin1Manager *object) |
86cb7727 |
10643 | { |
ae3d717a |
10644 | logindLogin1ManagerSkeleton *skeleton = LOGIND_LOGIN1_MANAGER_SKELETON (object); |
86cb7727 |
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 | |
10652 | static gboolean |
ae3d717a |
10653 | logind_login1_manager_skeleton_get_idle_hint (logindLogin1Manager *object) |
86cb7727 |
10654 | { |
ae3d717a |
10655 | logindLogin1ManagerSkeleton *skeleton = LOGIND_LOGIN1_MANAGER_SKELETON (object); |
86cb7727 |
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 | |
10663 | static guint64 |
ae3d717a |
10664 | logind_login1_manager_skeleton_get_idle_since_hint (logindLogin1Manager *object) |
86cb7727 |
10665 | { |
ae3d717a |
10666 | logindLogin1ManagerSkeleton *skeleton = LOGIND_LOGIN1_MANAGER_SKELETON (object); |
86cb7727 |
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 | |
10674 | static guint64 |
ae3d717a |
10675 | logind_login1_manager_skeleton_get_idle_since_hint_monotonic (logindLogin1Manager *object) |
86cb7727 |
10676 | { |
ae3d717a |
10677 | logindLogin1ManagerSkeleton *skeleton = LOGIND_LOGIN1_MANAGER_SKELETON (object); |
86cb7727 |
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 | |
10685 | static const gchar * |
ae3d717a |
10686 | logind_login1_manager_skeleton_get_block_inhibited (logindLogin1Manager *object) |
86cb7727 |
10687 | { |
ae3d717a |
10688 | logindLogin1ManagerSkeleton *skeleton = LOGIND_LOGIN1_MANAGER_SKELETON (object); |
86cb7727 |
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 | |
10696 | static const gchar * |
ae3d717a |
10697 | logind_login1_manager_skeleton_get_delay_inhibited (logindLogin1Manager *object) |
86cb7727 |
10698 | { |
ae3d717a |
10699 | logindLogin1ManagerSkeleton *skeleton = LOGIND_LOGIN1_MANAGER_SKELETON (object); |
86cb7727 |
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 | |
10707 | static guint64 |
ae3d717a |
10708 | logind_login1_manager_skeleton_get_inhibit_delay_max_usec (logindLogin1Manager *object) |
86cb7727 |
10709 | { |
ae3d717a |
10710 | logindLogin1ManagerSkeleton *skeleton = LOGIND_LOGIN1_MANAGER_SKELETON (object); |
86cb7727 |
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 | |
10718 | static const gchar * |
ae3d717a |
10719 | logind_login1_manager_skeleton_get_handle_power_key (logindLogin1Manager *object) |
86cb7727 |
10720 | { |
ae3d717a |
10721 | logindLogin1ManagerSkeleton *skeleton = LOGIND_LOGIN1_MANAGER_SKELETON (object); |
86cb7727 |
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 | |
10729 | static const gchar * |
ae3d717a |
10730 | logind_login1_manager_skeleton_get_handle_suspend_key (logindLogin1Manager *object) |
86cb7727 |
10731 | { |
ae3d717a |
10732 | logindLogin1ManagerSkeleton *skeleton = LOGIND_LOGIN1_MANAGER_SKELETON (object); |
86cb7727 |
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 | |
10740 | static const gchar * |
ae3d717a |
10741 | logind_login1_manager_skeleton_get_handle_hibernate_key (logindLogin1Manager *object) |
86cb7727 |
10742 | { |
ae3d717a |
10743 | logindLogin1ManagerSkeleton *skeleton = LOGIND_LOGIN1_MANAGER_SKELETON (object); |
86cb7727 |
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 | |
10751 | static const gchar * |
ae3d717a |
10752 | logind_login1_manager_skeleton_get_handle_lid_switch (logindLogin1Manager *object) |
86cb7727 |
10753 | { |
ae3d717a |
10754 | logindLogin1ManagerSkeleton *skeleton = LOGIND_LOGIN1_MANAGER_SKELETON (object); |
86cb7727 |
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 | |
10762 | static const gchar * |
ae3d717a |
10763 | logind_login1_manager_skeleton_get_idle_action (logindLogin1Manager *object) |
86cb7727 |
10764 | { |
ae3d717a |
10765 | logindLogin1ManagerSkeleton *skeleton = LOGIND_LOGIN1_MANAGER_SKELETON (object); |
86cb7727 |
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 | |
10773 | static guint64 |
ae3d717a |
10774 | logind_login1_manager_skeleton_get_idle_action_usec (logindLogin1Manager *object) |
86cb7727 |
10775 | { |
ae3d717a |
10776 | logindLogin1ManagerSkeleton *skeleton = LOGIND_LOGIN1_MANAGER_SKELETON (object); |
86cb7727 |
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 | |
10784 | static gboolean |
ae3d717a |
10785 | logind_login1_manager_skeleton_get_preparing_for_shutdown (logindLogin1Manager *object) |
86cb7727 |
10786 | { |
ae3d717a |
10787 | logindLogin1ManagerSkeleton *skeleton = LOGIND_LOGIN1_MANAGER_SKELETON (object); |
86cb7727 |
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 | |
10795 | static gboolean |
ae3d717a |
10796 | logind_login1_manager_skeleton_get_preparing_for_sleep (logindLogin1Manager *object) |
86cb7727 |
10797 | { |
ae3d717a |
10798 | logindLogin1ManagerSkeleton *skeleton = LOGIND_LOGIN1_MANAGER_SKELETON (object); |
86cb7727 |
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 | |
10806 | static void |
ae3d717a |
10807 | logind_login1_manager_skeleton_class_init (logindLogin1ManagerSkeletonClass *klass) |
86cb7727 |
10808 | { |
10809 | GObjectClass *gobject_class; |
10810 | GDBusInterfaceSkeletonClass *skeleton_class; |
10811 | |
10812 | gobject_class = G_OBJECT_CLASS (klass); |
ae3d717a |
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; |
86cb7727 |
10817 | |
10818 | |
ae3d717a |
10819 | logind_login1_manager_override_properties (gobject_class, 1); |
86cb7727 |
10820 | |
10821 | skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); |
ae3d717a |
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; |
86cb7727 |
10826 | |
10827 | #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 |
ae3d717a |
10828 | g_type_class_add_private (klass, sizeof (logindLogin1ManagerSkeletonPrivate)); |
86cb7727 |
10829 | #endif |
10830 | } |
10831 | |
10832 | static void |
ae3d717a |
10833 | logind_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: |
86cb7727 |
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 | * |
ae3d717a |
10868 | * Returns: (transfer full) (type logindLogin1ManagerSkeleton): The skeleton object. |
86cb7727 |
10869 | */ |
ae3d717a |
10870 | logindLogin1Manager * |
10871 | logind_login1_manager_skeleton_new (void) |
86cb7727 |
10872 | { |
ae3d717a |
10873 | return LOGIND_LOGIN1_MANAGER (g_object_new (LOGIND_TYPE_LOGIN1_MANAGER_SKELETON, NULL)); |
86cb7727 |
10874 | } |
10875 | |