GCC Code Coverage Report


Directory: ./
File: _build/search-provider/cc-shell-search-provider-generated.c
Date: 2024-05-04 07:58:27
Exec Total Coverage
Lines: 0 475 0.0%
Functions: 0 71 0.0%
Branches: 0 166 0.0%

Line Branch Exec Source
1 /*
2 * This file is generated by gdbus-codegen, do not modify it.
3 *
4 * The license of this code is the same as for the D-Bus interface description
5 * it was derived from. Note that it links to GLib, so must comply with the
6 * LGPL linking clauses.
7 */
8
9 #ifdef HAVE_CONFIG_H
10 # include "config.h"
11 #endif
12
13 #include "cc-shell-search-provider-generated.h"
14
15 #include <string.h>
16 #ifdef G_OS_UNIX
17 # include <gio/gunixfdlist.h>
18 #endif
19
20 #ifdef G_ENABLE_DEBUG
21 #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v)
22 #define g_marshal_value_peek_char(v) g_value_get_schar (v)
23 #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v)
24 #define g_marshal_value_peek_int(v) g_value_get_int (v)
25 #define g_marshal_value_peek_uint(v) g_value_get_uint (v)
26 #define g_marshal_value_peek_long(v) g_value_get_long (v)
27 #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v)
28 #define g_marshal_value_peek_int64(v) g_value_get_int64 (v)
29 #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v)
30 #define g_marshal_value_peek_enum(v) g_value_get_enum (v)
31 #define g_marshal_value_peek_flags(v) g_value_get_flags (v)
32 #define g_marshal_value_peek_float(v) g_value_get_float (v)
33 #define g_marshal_value_peek_double(v) g_value_get_double (v)
34 #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v)
35 #define g_marshal_value_peek_param(v) g_value_get_param (v)
36 #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v)
37 #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v)
38 #define g_marshal_value_peek_object(v) g_value_get_object (v)
39 #define g_marshal_value_peek_variant(v) g_value_get_variant (v)
40 #else /* !G_ENABLE_DEBUG */
41 /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API.
42 * Do not access GValues directly in your code. Instead, use the
43 * g_value_get_*() functions
44 */
45 #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int
46 #define g_marshal_value_peek_char(v) (v)->data[0].v_int
47 #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint
48 #define g_marshal_value_peek_int(v) (v)->data[0].v_int
49 #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint
50 #define g_marshal_value_peek_long(v) (v)->data[0].v_long
51 #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong
52 #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64
53 #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64
54 #define g_marshal_value_peek_enum(v) (v)->data[0].v_long
55 #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong
56 #define g_marshal_value_peek_float(v) (v)->data[0].v_float
57 #define g_marshal_value_peek_double(v) (v)->data[0].v_double
58 #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer
59 #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer
60 #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer
61 #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer
62 #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer
63 #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer
64 #endif /* !G_ENABLE_DEBUG */
65
66 typedef struct
67 {
68 GDBusArgInfo parent_struct;
69 gboolean use_gvariant;
70 } _ExtendedGDBusArgInfo;
71
72 typedef struct
73 {
74 GDBusMethodInfo parent_struct;
75 const gchar *signal_name;
76 gboolean pass_fdlist;
77 } _ExtendedGDBusMethodInfo;
78
79 typedef struct
80 {
81 GDBusSignalInfo parent_struct;
82 const gchar *signal_name;
83 } _ExtendedGDBusSignalInfo;
84
85 typedef struct
86 {
87 GDBusPropertyInfo parent_struct;
88 const gchar *hyphen_name;
89 guint use_gvariant : 1;
90 guint emits_changed_signal : 1;
91 } _ExtendedGDBusPropertyInfo;
92
93 typedef struct
94 {
95 GDBusInterfaceInfo parent_struct;
96 const gchar *hyphen_name;
97 } _ExtendedGDBusInterfaceInfo;
98
99 typedef struct
100 {
101 const _ExtendedGDBusPropertyInfo *info;
102 guint prop_id;
103 GValue orig_value; /* the value before the change */
104 } ChangedProperty;
105
106 static void
107 _changed_property_free (ChangedProperty *data)
108 {
109 g_value_unset (&data->orig_value);
110 g_free (data);
111 }
112
113 static gboolean
114 _g_strv_equal0 (gchar **a, gchar **b)
115 {
116 gboolean ret = FALSE;
117 guint n;
118 if (a == NULL && b == NULL)
119 {
120 ret = TRUE;
121 goto out;
122 }
123 if (a == NULL || b == NULL)
124 goto out;
125 if (g_strv_length (a) != g_strv_length (b))
126 goto out;
127 for (n = 0; a[n] != NULL; n++)
128 if (g_strcmp0 (a[n], b[n]) != 0)
129 goto out;
130 ret = TRUE;
131 out:
132 return ret;
133 }
134
135 static gboolean
136 _g_variant_equal0 (GVariant *a, GVariant *b)
137 {
138 gboolean ret = FALSE;
139 if (a == NULL && b == NULL)
140 {
141 ret = TRUE;
142 goto out;
143 }
144 if (a == NULL || b == NULL)
145 goto out;
146 ret = g_variant_equal (a, b);
147 out:
148 return ret;
149 }
150
151 G_GNUC_UNUSED static gboolean
152 _g_value_equal (const GValue *a, const GValue *b)
153 {
154 gboolean ret = FALSE;
155 g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b));
156 switch (G_VALUE_TYPE (a))
157 {
158 case G_TYPE_BOOLEAN:
159 ret = (g_value_get_boolean (a) == g_value_get_boolean (b));
160 break;
161 case G_TYPE_UCHAR:
162 ret = (g_value_get_uchar (a) == g_value_get_uchar (b));
163 break;
164 case G_TYPE_INT:
165 ret = (g_value_get_int (a) == g_value_get_int (b));
166 break;
167 case G_TYPE_UINT:
168 ret = (g_value_get_uint (a) == g_value_get_uint (b));
169 break;
170 case G_TYPE_INT64:
171 ret = (g_value_get_int64 (a) == g_value_get_int64 (b));
172 break;
173 case G_TYPE_UINT64:
174 ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b));
175 break;
176 case G_TYPE_DOUBLE:
177 {
178 /* Avoid -Wfloat-equal warnings by doing a direct bit compare */
179 gdouble da = g_value_get_double (a);
180 gdouble db = g_value_get_double (b);
181 ret = memcmp (&da, &db, sizeof (gdouble)) == 0;
182 }
183 break;
184 case G_TYPE_STRING:
185 ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0);
186 break;
187 case G_TYPE_VARIANT:
188 ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b));
189 break;
190 default:
191 if (G_VALUE_TYPE (a) == G_TYPE_STRV)
192 ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b));
193 else
194 g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a)));
195 break;
196 }
197 return ret;
198 }
199
200 static void
201 _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED (
202 GClosure *closure,
203 GValue *return_value,
204 unsigned int n_param_values,
205 const GValue *param_values,
206 void *invocation_hint G_GNUC_UNUSED,
207 void *marshal_data)
208 {
209 typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectBoxedFunc)
210 (void *data1,
211 GDBusMethodInvocation *arg_method_invocation,
212 const gchar *const *arg_terms,
213 void *data2);
214 _GDbusCodegenMarshalBoolean_ObjectBoxedFunc callback;
215 GCClosure *cc = (GCClosure*) closure;
216 void *data1, *data2;
217 gboolean v_return;
218
219 g_return_if_fail (return_value != NULL);
220 g_return_if_fail (n_param_values == 3);
221
222 if (G_CCLOSURE_SWAP_DATA (closure))
223 {
224 data1 = closure->data;
225 data2 = g_value_peek_pointer (param_values + 0);
226 }
227 else
228 {
229 data1 = g_value_peek_pointer (param_values + 0);
230 data2 = closure->data;
231 }
232
233 callback = (_GDbusCodegenMarshalBoolean_ObjectBoxedFunc)
234 (marshal_data ? marshal_data : cc->callback);
235
236 v_return =
237 callback (data1,
238 g_marshal_value_peek_object (param_values + 1),
239 g_marshal_value_peek_boxed (param_values + 2),
240 data2);
241
242 g_value_set_boolean (return_value, v_return);
243 }
244
245 static void
246 _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED_BOXED (
247 GClosure *closure,
248 GValue *return_value,
249 unsigned int n_param_values,
250 const GValue *param_values,
251 void *invocation_hint G_GNUC_UNUSED,
252 void *marshal_data)
253 {
254 typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectBoxedBoxedFunc)
255 (void *data1,
256 GDBusMethodInvocation *arg_method_invocation,
257 const gchar *const *arg_previous_results,
258 const gchar *const *arg_terms,
259 void *data2);
260 _GDbusCodegenMarshalBoolean_ObjectBoxedBoxedFunc callback;
261 GCClosure *cc = (GCClosure*) closure;
262 void *data1, *data2;
263 gboolean v_return;
264
265 g_return_if_fail (return_value != NULL);
266 g_return_if_fail (n_param_values == 4);
267
268 if (G_CCLOSURE_SWAP_DATA (closure))
269 {
270 data1 = closure->data;
271 data2 = g_value_peek_pointer (param_values + 0);
272 }
273 else
274 {
275 data1 = g_value_peek_pointer (param_values + 0);
276 data2 = closure->data;
277 }
278
279 callback = (_GDbusCodegenMarshalBoolean_ObjectBoxedBoxedFunc)
280 (marshal_data ? marshal_data : cc->callback);
281
282 v_return =
283 callback (data1,
284 g_marshal_value_peek_object (param_values + 1),
285 g_marshal_value_peek_boxed (param_values + 2),
286 g_marshal_value_peek_boxed (param_values + 3),
287 data2);
288
289 g_value_set_boolean (return_value, v_return);
290 }
291
292 static void
293 _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING_BOXED_UINT (
294 GClosure *closure,
295 GValue *return_value,
296 unsigned int n_param_values,
297 const GValue *param_values,
298 void *invocation_hint G_GNUC_UNUSED,
299 void *marshal_data)
300 {
301 typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectStringBoxedUintFunc)
302 (void *data1,
303 GDBusMethodInvocation *arg_method_invocation,
304 const gchar *arg_identifier,
305 const gchar *const *arg_terms,
306 guint arg_timestamp,
307 void *data2);
308 _GDbusCodegenMarshalBoolean_ObjectStringBoxedUintFunc callback;
309 GCClosure *cc = (GCClosure*) closure;
310 void *data1, *data2;
311 gboolean v_return;
312
313 g_return_if_fail (return_value != NULL);
314 g_return_if_fail (n_param_values == 5);
315
316 if (G_CCLOSURE_SWAP_DATA (closure))
317 {
318 data1 = closure->data;
319 data2 = g_value_peek_pointer (param_values + 0);
320 }
321 else
322 {
323 data1 = g_value_peek_pointer (param_values + 0);
324 data2 = closure->data;
325 }
326
327 callback = (_GDbusCodegenMarshalBoolean_ObjectStringBoxedUintFunc)
328 (marshal_data ? marshal_data : cc->callback);
329
330 v_return =
331 callback (data1,
332 g_marshal_value_peek_object (param_values + 1),
333 g_marshal_value_peek_string (param_values + 2),
334 g_marshal_value_peek_boxed (param_values + 3),
335 g_marshal_value_peek_uint (param_values + 4),
336 data2);
337
338 g_value_set_boolean (return_value, v_return);
339 }
340
341 static void
342 _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED_UINT (
343 GClosure *closure,
344 GValue *return_value,
345 unsigned int n_param_values,
346 const GValue *param_values,
347 void *invocation_hint G_GNUC_UNUSED,
348 void *marshal_data)
349 {
350 typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectBoxedUintFunc)
351 (void *data1,
352 GDBusMethodInvocation *arg_method_invocation,
353 const gchar *const *arg_terms,
354 guint arg_timestamp,
355 void *data2);
356 _GDbusCodegenMarshalBoolean_ObjectBoxedUintFunc callback;
357 GCClosure *cc = (GCClosure*) closure;
358 void *data1, *data2;
359 gboolean v_return;
360
361 g_return_if_fail (return_value != NULL);
362 g_return_if_fail (n_param_values == 4);
363
364 if (G_CCLOSURE_SWAP_DATA (closure))
365 {
366 data1 = closure->data;
367 data2 = g_value_peek_pointer (param_values + 0);
368 }
369 else
370 {
371 data1 = g_value_peek_pointer (param_values + 0);
372 data2 = closure->data;
373 }
374
375 callback = (_GDbusCodegenMarshalBoolean_ObjectBoxedUintFunc)
376 (marshal_data ? marshal_data : cc->callback);
377
378 v_return =
379 callback (data1,
380 g_marshal_value_peek_object (param_values + 1),
381 g_marshal_value_peek_boxed (param_values + 2),
382 g_marshal_value_peek_uint (param_values + 3),
383 data2);
384
385 g_value_set_boolean (return_value, v_return);
386 }
387
388 /* ------------------------------------------------------------------------
389 * Code for interface org.gnome.Shell.SearchProvider2
390 * ------------------------------------------------------------------------
391 */
392
393 /**
394 * SECTION:CcShellSearchProvider2
395 * @title: CcShellSearchProvider2
396 * @short_description: Generated C code for the org.gnome.Shell.SearchProvider2 D-Bus interface
397 *
398 * This section contains code for working with the <link linkend="gdbus-interface-org-gnome-Shell-SearchProvider2.top_of_page">org.gnome.Shell.SearchProvider2</link> D-Bus interface in C.
399 */
400
401 /* ---- Introspection data for org.gnome.Shell.SearchProvider2 ---- */
402
403 static const _ExtendedGDBusArgInfo _cc_shell_search_provider2_method_info_get_initial_result_set_IN_ARG_terms =
404 {
405 {
406 -1,
407 (gchar *) "terms",
408 (gchar *) "as",
409 NULL
410 },
411 FALSE
412 };
413
414 static const GDBusArgInfo * const _cc_shell_search_provider2_method_info_get_initial_result_set_IN_ARG_pointers[] =
415 {
416 &_cc_shell_search_provider2_method_info_get_initial_result_set_IN_ARG_terms.parent_struct,
417 NULL
418 };
419
420 static const _ExtendedGDBusArgInfo _cc_shell_search_provider2_method_info_get_initial_result_set_OUT_ARG_results =
421 {
422 {
423 -1,
424 (gchar *) "results",
425 (gchar *) "as",
426 NULL
427 },
428 FALSE
429 };
430
431 static const GDBusArgInfo * const _cc_shell_search_provider2_method_info_get_initial_result_set_OUT_ARG_pointers[] =
432 {
433 &_cc_shell_search_provider2_method_info_get_initial_result_set_OUT_ARG_results.parent_struct,
434 NULL
435 };
436
437 static const _ExtendedGDBusMethodInfo _cc_shell_search_provider2_method_info_get_initial_result_set =
438 {
439 {
440 -1,
441 (gchar *) "GetInitialResultSet",
442 (GDBusArgInfo **) &_cc_shell_search_provider2_method_info_get_initial_result_set_IN_ARG_pointers,
443 (GDBusArgInfo **) &_cc_shell_search_provider2_method_info_get_initial_result_set_OUT_ARG_pointers,
444 NULL
445 },
446 "handle-get-initial-result-set",
447 FALSE
448 };
449
450 static const _ExtendedGDBusArgInfo _cc_shell_search_provider2_method_info_get_subsearch_result_set_IN_ARG_previous_results =
451 {
452 {
453 -1,
454 (gchar *) "previous_results",
455 (gchar *) "as",
456 NULL
457 },
458 FALSE
459 };
460
461 static const _ExtendedGDBusArgInfo _cc_shell_search_provider2_method_info_get_subsearch_result_set_IN_ARG_terms =
462 {
463 {
464 -1,
465 (gchar *) "terms",
466 (gchar *) "as",
467 NULL
468 },
469 FALSE
470 };
471
472 static const GDBusArgInfo * const _cc_shell_search_provider2_method_info_get_subsearch_result_set_IN_ARG_pointers[] =
473 {
474 &_cc_shell_search_provider2_method_info_get_subsearch_result_set_IN_ARG_previous_results.parent_struct,
475 &_cc_shell_search_provider2_method_info_get_subsearch_result_set_IN_ARG_terms.parent_struct,
476 NULL
477 };
478
479 static const _ExtendedGDBusArgInfo _cc_shell_search_provider2_method_info_get_subsearch_result_set_OUT_ARG_results =
480 {
481 {
482 -1,
483 (gchar *) "results",
484 (gchar *) "as",
485 NULL
486 },
487 FALSE
488 };
489
490 static const GDBusArgInfo * const _cc_shell_search_provider2_method_info_get_subsearch_result_set_OUT_ARG_pointers[] =
491 {
492 &_cc_shell_search_provider2_method_info_get_subsearch_result_set_OUT_ARG_results.parent_struct,
493 NULL
494 };
495
496 static const _ExtendedGDBusMethodInfo _cc_shell_search_provider2_method_info_get_subsearch_result_set =
497 {
498 {
499 -1,
500 (gchar *) "GetSubsearchResultSet",
501 (GDBusArgInfo **) &_cc_shell_search_provider2_method_info_get_subsearch_result_set_IN_ARG_pointers,
502 (GDBusArgInfo **) &_cc_shell_search_provider2_method_info_get_subsearch_result_set_OUT_ARG_pointers,
503 NULL
504 },
505 "handle-get-subsearch-result-set",
506 FALSE
507 };
508
509 static const _ExtendedGDBusArgInfo _cc_shell_search_provider2_method_info_get_result_metas_IN_ARG_identifiers =
510 {
511 {
512 -1,
513 (gchar *) "identifiers",
514 (gchar *) "as",
515 NULL
516 },
517 FALSE
518 };
519
520 static const GDBusArgInfo * const _cc_shell_search_provider2_method_info_get_result_metas_IN_ARG_pointers[] =
521 {
522 &_cc_shell_search_provider2_method_info_get_result_metas_IN_ARG_identifiers.parent_struct,
523 NULL
524 };
525
526 static const _ExtendedGDBusArgInfo _cc_shell_search_provider2_method_info_get_result_metas_OUT_ARG_metas =
527 {
528 {
529 -1,
530 (gchar *) "metas",
531 (gchar *) "aa{sv}",
532 NULL
533 },
534 FALSE
535 };
536
537 static const GDBusArgInfo * const _cc_shell_search_provider2_method_info_get_result_metas_OUT_ARG_pointers[] =
538 {
539 &_cc_shell_search_provider2_method_info_get_result_metas_OUT_ARG_metas.parent_struct,
540 NULL
541 };
542
543 static const _ExtendedGDBusMethodInfo _cc_shell_search_provider2_method_info_get_result_metas =
544 {
545 {
546 -1,
547 (gchar *) "GetResultMetas",
548 (GDBusArgInfo **) &_cc_shell_search_provider2_method_info_get_result_metas_IN_ARG_pointers,
549 (GDBusArgInfo **) &_cc_shell_search_provider2_method_info_get_result_metas_OUT_ARG_pointers,
550 NULL
551 },
552 "handle-get-result-metas",
553 FALSE
554 };
555
556 static const _ExtendedGDBusArgInfo _cc_shell_search_provider2_method_info_activate_result_IN_ARG_identifier =
557 {
558 {
559 -1,
560 (gchar *) "identifier",
561 (gchar *) "s",
562 NULL
563 },
564 FALSE
565 };
566
567 static const _ExtendedGDBusArgInfo _cc_shell_search_provider2_method_info_activate_result_IN_ARG_terms =
568 {
569 {
570 -1,
571 (gchar *) "terms",
572 (gchar *) "as",
573 NULL
574 },
575 FALSE
576 };
577
578 static const _ExtendedGDBusArgInfo _cc_shell_search_provider2_method_info_activate_result_IN_ARG_timestamp =
579 {
580 {
581 -1,
582 (gchar *) "timestamp",
583 (gchar *) "u",
584 NULL
585 },
586 FALSE
587 };
588
589 static const GDBusArgInfo * const _cc_shell_search_provider2_method_info_activate_result_IN_ARG_pointers[] =
590 {
591 &_cc_shell_search_provider2_method_info_activate_result_IN_ARG_identifier.parent_struct,
592 &_cc_shell_search_provider2_method_info_activate_result_IN_ARG_terms.parent_struct,
593 &_cc_shell_search_provider2_method_info_activate_result_IN_ARG_timestamp.parent_struct,
594 NULL
595 };
596
597 static const _ExtendedGDBusMethodInfo _cc_shell_search_provider2_method_info_activate_result =
598 {
599 {
600 -1,
601 (gchar *) "ActivateResult",
602 (GDBusArgInfo **) &_cc_shell_search_provider2_method_info_activate_result_IN_ARG_pointers,
603 NULL,
604 NULL
605 },
606 "handle-activate-result",
607 FALSE
608 };
609
610 static const _ExtendedGDBusArgInfo _cc_shell_search_provider2_method_info_launch_search_IN_ARG_terms =
611 {
612 {
613 -1,
614 (gchar *) "terms",
615 (gchar *) "as",
616 NULL
617 },
618 FALSE
619 };
620
621 static const _ExtendedGDBusArgInfo _cc_shell_search_provider2_method_info_launch_search_IN_ARG_timestamp =
622 {
623 {
624 -1,
625 (gchar *) "timestamp",
626 (gchar *) "u",
627 NULL
628 },
629 FALSE
630 };
631
632 static const GDBusArgInfo * const _cc_shell_search_provider2_method_info_launch_search_IN_ARG_pointers[] =
633 {
634 &_cc_shell_search_provider2_method_info_launch_search_IN_ARG_terms.parent_struct,
635 &_cc_shell_search_provider2_method_info_launch_search_IN_ARG_timestamp.parent_struct,
636 NULL
637 };
638
639 static const _ExtendedGDBusMethodInfo _cc_shell_search_provider2_method_info_launch_search =
640 {
641 {
642 -1,
643 (gchar *) "LaunchSearch",
644 (GDBusArgInfo **) &_cc_shell_search_provider2_method_info_launch_search_IN_ARG_pointers,
645 NULL,
646 NULL
647 },
648 "handle-launch-search",
649 FALSE
650 };
651
652 static const GDBusMethodInfo * const _cc_shell_search_provider2_method_info_pointers[] =
653 {
654 &_cc_shell_search_provider2_method_info_get_initial_result_set.parent_struct,
655 &_cc_shell_search_provider2_method_info_get_subsearch_result_set.parent_struct,
656 &_cc_shell_search_provider2_method_info_get_result_metas.parent_struct,
657 &_cc_shell_search_provider2_method_info_activate_result.parent_struct,
658 &_cc_shell_search_provider2_method_info_launch_search.parent_struct,
659 NULL
660 };
661
662 static const _ExtendedGDBusInterfaceInfo _cc_shell_search_provider2_interface_info =
663 {
664 {
665 -1,
666 (gchar *) "org.gnome.Shell.SearchProvider2",
667 (GDBusMethodInfo **) &_cc_shell_search_provider2_method_info_pointers,
668 NULL,
669 NULL,
670 NULL
671 },
672 "shell-search-provider2",
673 };
674
675
676 /**
677 * cc_shell_search_provider2_interface_info:
678 *
679 * Gets a machine-readable description of the <link linkend="gdbus-interface-org-gnome-Shell-SearchProvider2.top_of_page">org.gnome.Shell.SearchProvider2</link> D-Bus interface.
680 *
681 * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free.
682 */
683 GDBusInterfaceInfo *
684 cc_shell_search_provider2_interface_info (void)
685 {
686 return (GDBusInterfaceInfo *) &_cc_shell_search_provider2_interface_info.parent_struct;
687 }
688
689 /**
690 * cc_shell_search_provider2_override_properties:
691 * @klass: The class structure for a #GObject derived class.
692 * @property_id_begin: The property id to assign to the first overridden property.
693 *
694 * Overrides all #GObject properties in the #CcShellSearchProvider2 interface for a concrete class.
695 * The properties are overridden in the order they are defined.
696 *
697 * Returns: The last property id.
698 */
699 guint
700 cc_shell_search_provider2_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin)
701 {
702 return property_id_begin - 1;
703 }
704
705
706 inline static void
707 cc_shell_search_provider2_method_marshal_get_initial_result_set (
708 GClosure *closure,
709 GValue *return_value,
710 unsigned int n_param_values,
711 const GValue *param_values,
712 void *invocation_hint,
713 void *marshal_data)
714 {
715 _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED (closure,
716 return_value, n_param_values, param_values, invocation_hint, marshal_data);
717 }
718
719 inline static void
720 cc_shell_search_provider2_method_marshal_get_subsearch_result_set (
721 GClosure *closure,
722 GValue *return_value,
723 unsigned int n_param_values,
724 const GValue *param_values,
725 void *invocation_hint,
726 void *marshal_data)
727 {
728 _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED_BOXED (closure,
729 return_value, n_param_values, param_values, invocation_hint, marshal_data);
730 }
731
732 inline static void
733 cc_shell_search_provider2_method_marshal_get_result_metas (
734 GClosure *closure,
735 GValue *return_value,
736 unsigned int n_param_values,
737 const GValue *param_values,
738 void *invocation_hint,
739 void *marshal_data)
740 {
741 _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED (closure,
742 return_value, n_param_values, param_values, invocation_hint, marshal_data);
743 }
744
745 inline static void
746 cc_shell_search_provider2_method_marshal_activate_result (
747 GClosure *closure,
748 GValue *return_value,
749 unsigned int n_param_values,
750 const GValue *param_values,
751 void *invocation_hint,
752 void *marshal_data)
753 {
754 _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING_BOXED_UINT (closure,
755 return_value, n_param_values, param_values, invocation_hint, marshal_data);
756 }
757
758 inline static void
759 cc_shell_search_provider2_method_marshal_launch_search (
760 GClosure *closure,
761 GValue *return_value,
762 unsigned int n_param_values,
763 const GValue *param_values,
764 void *invocation_hint,
765 void *marshal_data)
766 {
767 _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED_UINT (closure,
768 return_value, n_param_values, param_values, invocation_hint, marshal_data);
769 }
770
771
772 /**
773 * CcShellSearchProvider2:
774 *
775 * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-gnome-Shell-SearchProvider2.top_of_page">org.gnome.Shell.SearchProvider2</link>.
776 */
777
778 /**
779 * CcShellSearchProvider2Iface:
780 * @parent_iface: The parent interface.
781 * @handle_activate_result: Handler for the #CcShellSearchProvider2::handle-activate-result signal.
782 * @handle_get_initial_result_set: Handler for the #CcShellSearchProvider2::handle-get-initial-result-set signal.
783 * @handle_get_result_metas: Handler for the #CcShellSearchProvider2::handle-get-result-metas signal.
784 * @handle_get_subsearch_result_set: Handler for the #CcShellSearchProvider2::handle-get-subsearch-result-set signal.
785 * @handle_launch_search: Handler for the #CcShellSearchProvider2::handle-launch-search signal.
786 *
787 * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-gnome-Shell-SearchProvider2.top_of_page">org.gnome.Shell.SearchProvider2</link>.
788 */
789
790 typedef CcShellSearchProvider2Iface CcShellSearchProvider2Interface;
791 G_DEFINE_INTERFACE (CcShellSearchProvider2, cc_shell_search_provider2, G_TYPE_OBJECT)
792
793 static void
794 cc_shell_search_provider2_default_init (CcShellSearchProvider2Iface *iface)
795 {
796 /* GObject signals for incoming D-Bus method calls: */
797 /**
798 * CcShellSearchProvider2::handle-get-initial-result-set:
799 * @object: A #CcShellSearchProvider2.
800 * @invocation: A #GDBusMethodInvocation.
801 * @arg_terms: Argument passed by remote caller.
802 *
803 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-gnome-Shell-SearchProvider2.GetInitialResultSet">GetInitialResultSet()</link> D-Bus method.
804 *
805 * 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 cc_shell_search_provider2_complete_get_initial_result_set() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
806 *
807 * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run.
808 */
809 g_signal_new ("handle-get-initial-result-set",
810 G_TYPE_FROM_INTERFACE (iface),
811 G_SIGNAL_RUN_LAST,
812 G_STRUCT_OFFSET (CcShellSearchProvider2Iface, handle_get_initial_result_set),
813 g_signal_accumulator_true_handled,
814 NULL,
815 cc_shell_search_provider2_method_marshal_get_initial_result_set,
816 G_TYPE_BOOLEAN,
817 2,
818 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRV);
819
820 /**
821 * CcShellSearchProvider2::handle-get-subsearch-result-set:
822 * @object: A #CcShellSearchProvider2.
823 * @invocation: A #GDBusMethodInvocation.
824 * @arg_previous_results: Argument passed by remote caller.
825 * @arg_terms: Argument passed by remote caller.
826 *
827 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-gnome-Shell-SearchProvider2.GetSubsearchResultSet">GetSubsearchResultSet()</link> D-Bus method.
828 *
829 * 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 cc_shell_search_provider2_complete_get_subsearch_result_set() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
830 *
831 * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run.
832 */
833 g_signal_new ("handle-get-subsearch-result-set",
834 G_TYPE_FROM_INTERFACE (iface),
835 G_SIGNAL_RUN_LAST,
836 G_STRUCT_OFFSET (CcShellSearchProvider2Iface, handle_get_subsearch_result_set),
837 g_signal_accumulator_true_handled,
838 NULL,
839 cc_shell_search_provider2_method_marshal_get_subsearch_result_set,
840 G_TYPE_BOOLEAN,
841 3,
842 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRV, G_TYPE_STRV);
843
844 /**
845 * CcShellSearchProvider2::handle-get-result-metas:
846 * @object: A #CcShellSearchProvider2.
847 * @invocation: A #GDBusMethodInvocation.
848 * @arg_identifiers: Argument passed by remote caller.
849 *
850 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-gnome-Shell-SearchProvider2.GetResultMetas">GetResultMetas()</link> D-Bus method.
851 *
852 * 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 cc_shell_search_provider2_complete_get_result_metas() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
853 *
854 * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run.
855 */
856 g_signal_new ("handle-get-result-metas",
857 G_TYPE_FROM_INTERFACE (iface),
858 G_SIGNAL_RUN_LAST,
859 G_STRUCT_OFFSET (CcShellSearchProvider2Iface, handle_get_result_metas),
860 g_signal_accumulator_true_handled,
861 NULL,
862 cc_shell_search_provider2_method_marshal_get_result_metas,
863 G_TYPE_BOOLEAN,
864 2,
865 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRV);
866
867 /**
868 * CcShellSearchProvider2::handle-activate-result:
869 * @object: A #CcShellSearchProvider2.
870 * @invocation: A #GDBusMethodInvocation.
871 * @arg_identifier: Argument passed by remote caller.
872 * @arg_terms: Argument passed by remote caller.
873 * @arg_timestamp: Argument passed by remote caller.
874 *
875 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-gnome-Shell-SearchProvider2.ActivateResult">ActivateResult()</link> D-Bus method.
876 *
877 * 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 cc_shell_search_provider2_complete_activate_result() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
878 *
879 * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run.
880 */
881 g_signal_new ("handle-activate-result",
882 G_TYPE_FROM_INTERFACE (iface),
883 G_SIGNAL_RUN_LAST,
884 G_STRUCT_OFFSET (CcShellSearchProvider2Iface, handle_activate_result),
885 g_signal_accumulator_true_handled,
886 NULL,
887 cc_shell_search_provider2_method_marshal_activate_result,
888 G_TYPE_BOOLEAN,
889 4,
890 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING, G_TYPE_STRV, G_TYPE_UINT);
891
892 /**
893 * CcShellSearchProvider2::handle-launch-search:
894 * @object: A #CcShellSearchProvider2.
895 * @invocation: A #GDBusMethodInvocation.
896 * @arg_terms: Argument passed by remote caller.
897 * @arg_timestamp: Argument passed by remote caller.
898 *
899 * Signal emitted when a remote caller is invoking the <link linkend="gdbus-method-org-gnome-Shell-SearchProvider2.LaunchSearch">LaunchSearch()</link> D-Bus method.
900 *
901 * 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 cc_shell_search_provider2_complete_launch_search() or e.g. g_dbus_method_invocation_return_error() on it) and no other signal handlers will run. If no signal handler handles the invocation, the %G_DBUS_ERROR_UNKNOWN_METHOD error is returned.
902 *
903 * Returns: %G_DBUS_METHOD_INVOCATION_HANDLED or %TRUE if the invocation was handled, %G_DBUS_METHOD_INVOCATION_UNHANDLED or %FALSE to let other signal handlers run.
904 */
905 g_signal_new ("handle-launch-search",
906 G_TYPE_FROM_INTERFACE (iface),
907 G_SIGNAL_RUN_LAST,
908 G_STRUCT_OFFSET (CcShellSearchProvider2Iface, handle_launch_search),
909 g_signal_accumulator_true_handled,
910 NULL,
911 cc_shell_search_provider2_method_marshal_launch_search,
912 G_TYPE_BOOLEAN,
913 3,
914 G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRV, G_TYPE_UINT);
915
916 }
917
918 /**
919 * cc_shell_search_provider2_call_get_initial_result_set:
920 * @proxy: A #CcShellSearchProvider2Proxy.
921 * @arg_terms: Argument to pass with the method invocation.
922 * @cancellable: (nullable): A #GCancellable or %NULL.
923 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
924 * @user_data: User data to pass to @callback.
925 *
926 * Asynchronously invokes the <link linkend="gdbus-method-org-gnome-Shell-SearchProvider2.GetInitialResultSet">GetInitialResultSet()</link> D-Bus method on @proxy.
927 * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
928 * You can then call cc_shell_search_provider2_call_get_initial_result_set_finish() to get the result of the operation.
929 *
930 * See cc_shell_search_provider2_call_get_initial_result_set_sync() for the synchronous, blocking version of this method.
931 */
932 void
933 cc_shell_search_provider2_call_get_initial_result_set (
934 CcShellSearchProvider2 *proxy,
935 const gchar *const *arg_terms,
936 GCancellable *cancellable,
937 GAsyncReadyCallback callback,
938 gpointer user_data)
939 {
940 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
941 "GetInitialResultSet",
942 g_variant_new ("(^as)",
943 arg_terms),
944 G_DBUS_CALL_FLAGS_NONE,
945 -1,
946 cancellable,
947 callback,
948 user_data);
949 }
950
951 /**
952 * cc_shell_search_provider2_call_get_initial_result_set_finish:
953 * @proxy: A #CcShellSearchProvider2Proxy.
954 * @out_results: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore.
955 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to cc_shell_search_provider2_call_get_initial_result_set().
956 * @error: Return location for error or %NULL.
957 *
958 * Finishes an operation started with cc_shell_search_provider2_call_get_initial_result_set().
959 *
960 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
961 */
962 gboolean
963 cc_shell_search_provider2_call_get_initial_result_set_finish (
964 CcShellSearchProvider2 *proxy,
965 gchar ***out_results,
966 GAsyncResult *res,
967 GError **error)
968 {
969 GVariant *_ret;
970 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
971 if (_ret == NULL)
972 goto _out;
973 g_variant_get (_ret,
974 "(^as)",
975 out_results);
976 g_variant_unref (_ret);
977 _out:
978 return _ret != NULL;
979 }
980
981 /**
982 * cc_shell_search_provider2_call_get_initial_result_set_sync:
983 * @proxy: A #CcShellSearchProvider2Proxy.
984 * @arg_terms: Argument to pass with the method invocation.
985 * @out_results: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore.
986 * @cancellable: (nullable): A #GCancellable or %NULL.
987 * @error: Return location for error or %NULL.
988 *
989 * Synchronously invokes the <link linkend="gdbus-method-org-gnome-Shell-SearchProvider2.GetInitialResultSet">GetInitialResultSet()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
990 *
991 * See cc_shell_search_provider2_call_get_initial_result_set() for the asynchronous version of this method.
992 *
993 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
994 */
995 gboolean
996 cc_shell_search_provider2_call_get_initial_result_set_sync (
997 CcShellSearchProvider2 *proxy,
998 const gchar *const *arg_terms,
999 gchar ***out_results,
1000 GCancellable *cancellable,
1001 GError **error)
1002 {
1003 GVariant *_ret;
1004 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
1005 "GetInitialResultSet",
1006 g_variant_new ("(^as)",
1007 arg_terms),
1008 G_DBUS_CALL_FLAGS_NONE,
1009 -1,
1010 cancellable,
1011 error);
1012 if (_ret == NULL)
1013 goto _out;
1014 g_variant_get (_ret,
1015 "(^as)",
1016 out_results);
1017 g_variant_unref (_ret);
1018 _out:
1019 return _ret != NULL;
1020 }
1021
1022 /**
1023 * cc_shell_search_provider2_call_get_subsearch_result_set:
1024 * @proxy: A #CcShellSearchProvider2Proxy.
1025 * @arg_previous_results: Argument to pass with the method invocation.
1026 * @arg_terms: Argument to pass with the method invocation.
1027 * @cancellable: (nullable): A #GCancellable or %NULL.
1028 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
1029 * @user_data: User data to pass to @callback.
1030 *
1031 * Asynchronously invokes the <link linkend="gdbus-method-org-gnome-Shell-SearchProvider2.GetSubsearchResultSet">GetSubsearchResultSet()</link> D-Bus method on @proxy.
1032 * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
1033 * You can then call cc_shell_search_provider2_call_get_subsearch_result_set_finish() to get the result of the operation.
1034 *
1035 * See cc_shell_search_provider2_call_get_subsearch_result_set_sync() for the synchronous, blocking version of this method.
1036 */
1037 void
1038 cc_shell_search_provider2_call_get_subsearch_result_set (
1039 CcShellSearchProvider2 *proxy,
1040 const gchar *const *arg_previous_results,
1041 const gchar *const *arg_terms,
1042 GCancellable *cancellable,
1043 GAsyncReadyCallback callback,
1044 gpointer user_data)
1045 {
1046 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
1047 "GetSubsearchResultSet",
1048 g_variant_new ("(^as^as)",
1049 arg_previous_results,
1050 arg_terms),
1051 G_DBUS_CALL_FLAGS_NONE,
1052 -1,
1053 cancellable,
1054 callback,
1055 user_data);
1056 }
1057
1058 /**
1059 * cc_shell_search_provider2_call_get_subsearch_result_set_finish:
1060 * @proxy: A #CcShellSearchProvider2Proxy.
1061 * @out_results: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore.
1062 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to cc_shell_search_provider2_call_get_subsearch_result_set().
1063 * @error: Return location for error or %NULL.
1064 *
1065 * Finishes an operation started with cc_shell_search_provider2_call_get_subsearch_result_set().
1066 *
1067 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
1068 */
1069 gboolean
1070 cc_shell_search_provider2_call_get_subsearch_result_set_finish (
1071 CcShellSearchProvider2 *proxy,
1072 gchar ***out_results,
1073 GAsyncResult *res,
1074 GError **error)
1075 {
1076 GVariant *_ret;
1077 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
1078 if (_ret == NULL)
1079 goto _out;
1080 g_variant_get (_ret,
1081 "(^as)",
1082 out_results);
1083 g_variant_unref (_ret);
1084 _out:
1085 return _ret != NULL;
1086 }
1087
1088 /**
1089 * cc_shell_search_provider2_call_get_subsearch_result_set_sync:
1090 * @proxy: A #CcShellSearchProvider2Proxy.
1091 * @arg_previous_results: Argument to pass with the method invocation.
1092 * @arg_terms: Argument to pass with the method invocation.
1093 * @out_results: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore.
1094 * @cancellable: (nullable): A #GCancellable or %NULL.
1095 * @error: Return location for error or %NULL.
1096 *
1097 * Synchronously invokes the <link linkend="gdbus-method-org-gnome-Shell-SearchProvider2.GetSubsearchResultSet">GetSubsearchResultSet()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
1098 *
1099 * See cc_shell_search_provider2_call_get_subsearch_result_set() for the asynchronous version of this method.
1100 *
1101 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
1102 */
1103 gboolean
1104 cc_shell_search_provider2_call_get_subsearch_result_set_sync (
1105 CcShellSearchProvider2 *proxy,
1106 const gchar *const *arg_previous_results,
1107 const gchar *const *arg_terms,
1108 gchar ***out_results,
1109 GCancellable *cancellable,
1110 GError **error)
1111 {
1112 GVariant *_ret;
1113 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
1114 "GetSubsearchResultSet",
1115 g_variant_new ("(^as^as)",
1116 arg_previous_results,
1117 arg_terms),
1118 G_DBUS_CALL_FLAGS_NONE,
1119 -1,
1120 cancellable,
1121 error);
1122 if (_ret == NULL)
1123 goto _out;
1124 g_variant_get (_ret,
1125 "(^as)",
1126 out_results);
1127 g_variant_unref (_ret);
1128 _out:
1129 return _ret != NULL;
1130 }
1131
1132 /**
1133 * cc_shell_search_provider2_call_get_result_metas:
1134 * @proxy: A #CcShellSearchProvider2Proxy.
1135 * @arg_identifiers: Argument to pass with the method invocation.
1136 * @cancellable: (nullable): A #GCancellable or %NULL.
1137 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
1138 * @user_data: User data to pass to @callback.
1139 *
1140 * Asynchronously invokes the <link linkend="gdbus-method-org-gnome-Shell-SearchProvider2.GetResultMetas">GetResultMetas()</link> D-Bus method on @proxy.
1141 * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
1142 * You can then call cc_shell_search_provider2_call_get_result_metas_finish() to get the result of the operation.
1143 *
1144 * See cc_shell_search_provider2_call_get_result_metas_sync() for the synchronous, blocking version of this method.
1145 */
1146 void
1147 cc_shell_search_provider2_call_get_result_metas (
1148 CcShellSearchProvider2 *proxy,
1149 const gchar *const *arg_identifiers,
1150 GCancellable *cancellable,
1151 GAsyncReadyCallback callback,
1152 gpointer user_data)
1153 {
1154 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
1155 "GetResultMetas",
1156 g_variant_new ("(^as)",
1157 arg_identifiers),
1158 G_DBUS_CALL_FLAGS_NONE,
1159 -1,
1160 cancellable,
1161 callback,
1162 user_data);
1163 }
1164
1165 /**
1166 * cc_shell_search_provider2_call_get_result_metas_finish:
1167 * @proxy: A #CcShellSearchProvider2Proxy.
1168 * @out_metas: (out) (optional): Return location for return parameter or %NULL to ignore.
1169 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to cc_shell_search_provider2_call_get_result_metas().
1170 * @error: Return location for error or %NULL.
1171 *
1172 * Finishes an operation started with cc_shell_search_provider2_call_get_result_metas().
1173 *
1174 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
1175 */
1176 gboolean
1177 cc_shell_search_provider2_call_get_result_metas_finish (
1178 CcShellSearchProvider2 *proxy,
1179 GVariant **out_metas,
1180 GAsyncResult *res,
1181 GError **error)
1182 {
1183 GVariant *_ret;
1184 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
1185 if (_ret == NULL)
1186 goto _out;
1187 g_variant_get (_ret,
1188 "(@aa{sv})",
1189 out_metas);
1190 g_variant_unref (_ret);
1191 _out:
1192 return _ret != NULL;
1193 }
1194
1195 /**
1196 * cc_shell_search_provider2_call_get_result_metas_sync:
1197 * @proxy: A #CcShellSearchProvider2Proxy.
1198 * @arg_identifiers: Argument to pass with the method invocation.
1199 * @out_metas: (out) (optional): Return location for return parameter or %NULL to ignore.
1200 * @cancellable: (nullable): A #GCancellable or %NULL.
1201 * @error: Return location for error or %NULL.
1202 *
1203 * Synchronously invokes the <link linkend="gdbus-method-org-gnome-Shell-SearchProvider2.GetResultMetas">GetResultMetas()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
1204 *
1205 * See cc_shell_search_provider2_call_get_result_metas() for the asynchronous version of this method.
1206 *
1207 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
1208 */
1209 gboolean
1210 cc_shell_search_provider2_call_get_result_metas_sync (
1211 CcShellSearchProvider2 *proxy,
1212 const gchar *const *arg_identifiers,
1213 GVariant **out_metas,
1214 GCancellable *cancellable,
1215 GError **error)
1216 {
1217 GVariant *_ret;
1218 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
1219 "GetResultMetas",
1220 g_variant_new ("(^as)",
1221 arg_identifiers),
1222 G_DBUS_CALL_FLAGS_NONE,
1223 -1,
1224 cancellable,
1225 error);
1226 if (_ret == NULL)
1227 goto _out;
1228 g_variant_get (_ret,
1229 "(@aa{sv})",
1230 out_metas);
1231 g_variant_unref (_ret);
1232 _out:
1233 return _ret != NULL;
1234 }
1235
1236 /**
1237 * cc_shell_search_provider2_call_activate_result:
1238 * @proxy: A #CcShellSearchProvider2Proxy.
1239 * @arg_identifier: Argument to pass with the method invocation.
1240 * @arg_terms: Argument to pass with the method invocation.
1241 * @arg_timestamp: Argument to pass with the method invocation.
1242 * @cancellable: (nullable): A #GCancellable or %NULL.
1243 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
1244 * @user_data: User data to pass to @callback.
1245 *
1246 * Asynchronously invokes the <link linkend="gdbus-method-org-gnome-Shell-SearchProvider2.ActivateResult">ActivateResult()</link> D-Bus method on @proxy.
1247 * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
1248 * You can then call cc_shell_search_provider2_call_activate_result_finish() to get the result of the operation.
1249 *
1250 * See cc_shell_search_provider2_call_activate_result_sync() for the synchronous, blocking version of this method.
1251 */
1252 void
1253 cc_shell_search_provider2_call_activate_result (
1254 CcShellSearchProvider2 *proxy,
1255 const gchar *arg_identifier,
1256 const gchar *const *arg_terms,
1257 guint arg_timestamp,
1258 GCancellable *cancellable,
1259 GAsyncReadyCallback callback,
1260 gpointer user_data)
1261 {
1262 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
1263 "ActivateResult",
1264 g_variant_new ("(s^asu)",
1265 arg_identifier,
1266 arg_terms,
1267 arg_timestamp),
1268 G_DBUS_CALL_FLAGS_NONE,
1269 -1,
1270 cancellable,
1271 callback,
1272 user_data);
1273 }
1274
1275 /**
1276 * cc_shell_search_provider2_call_activate_result_finish:
1277 * @proxy: A #CcShellSearchProvider2Proxy.
1278 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to cc_shell_search_provider2_call_activate_result().
1279 * @error: Return location for error or %NULL.
1280 *
1281 * Finishes an operation started with cc_shell_search_provider2_call_activate_result().
1282 *
1283 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
1284 */
1285 gboolean
1286 cc_shell_search_provider2_call_activate_result_finish (
1287 CcShellSearchProvider2 *proxy,
1288 GAsyncResult *res,
1289 GError **error)
1290 {
1291 GVariant *_ret;
1292 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
1293 if (_ret == NULL)
1294 goto _out;
1295 g_variant_get (_ret,
1296 "()");
1297 g_variant_unref (_ret);
1298 _out:
1299 return _ret != NULL;
1300 }
1301
1302 /**
1303 * cc_shell_search_provider2_call_activate_result_sync:
1304 * @proxy: A #CcShellSearchProvider2Proxy.
1305 * @arg_identifier: Argument to pass with the method invocation.
1306 * @arg_terms: Argument to pass with the method invocation.
1307 * @arg_timestamp: Argument to pass with the method invocation.
1308 * @cancellable: (nullable): A #GCancellable or %NULL.
1309 * @error: Return location for error or %NULL.
1310 *
1311 * Synchronously invokes the <link linkend="gdbus-method-org-gnome-Shell-SearchProvider2.ActivateResult">ActivateResult()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
1312 *
1313 * See cc_shell_search_provider2_call_activate_result() for the asynchronous version of this method.
1314 *
1315 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
1316 */
1317 gboolean
1318 cc_shell_search_provider2_call_activate_result_sync (
1319 CcShellSearchProvider2 *proxy,
1320 const gchar *arg_identifier,
1321 const gchar *const *arg_terms,
1322 guint arg_timestamp,
1323 GCancellable *cancellable,
1324 GError **error)
1325 {
1326 GVariant *_ret;
1327 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
1328 "ActivateResult",
1329 g_variant_new ("(s^asu)",
1330 arg_identifier,
1331 arg_terms,
1332 arg_timestamp),
1333 G_DBUS_CALL_FLAGS_NONE,
1334 -1,
1335 cancellable,
1336 error);
1337 if (_ret == NULL)
1338 goto _out;
1339 g_variant_get (_ret,
1340 "()");
1341 g_variant_unref (_ret);
1342 _out:
1343 return _ret != NULL;
1344 }
1345
1346 /**
1347 * cc_shell_search_provider2_call_launch_search:
1348 * @proxy: A #CcShellSearchProvider2Proxy.
1349 * @arg_terms: Argument to pass with the method invocation.
1350 * @arg_timestamp: Argument to pass with the method invocation.
1351 * @cancellable: (nullable): A #GCancellable or %NULL.
1352 * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
1353 * @user_data: User data to pass to @callback.
1354 *
1355 * Asynchronously invokes the <link linkend="gdbus-method-org-gnome-Shell-SearchProvider2.LaunchSearch">LaunchSearch()</link> D-Bus method on @proxy.
1356 * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
1357 * You can then call cc_shell_search_provider2_call_launch_search_finish() to get the result of the operation.
1358 *
1359 * See cc_shell_search_provider2_call_launch_search_sync() for the synchronous, blocking version of this method.
1360 */
1361 void
1362 cc_shell_search_provider2_call_launch_search (
1363 CcShellSearchProvider2 *proxy,
1364 const gchar *const *arg_terms,
1365 guint arg_timestamp,
1366 GCancellable *cancellable,
1367 GAsyncReadyCallback callback,
1368 gpointer user_data)
1369 {
1370 g_dbus_proxy_call (G_DBUS_PROXY (proxy),
1371 "LaunchSearch",
1372 g_variant_new ("(^asu)",
1373 arg_terms,
1374 arg_timestamp),
1375 G_DBUS_CALL_FLAGS_NONE,
1376 -1,
1377 cancellable,
1378 callback,
1379 user_data);
1380 }
1381
1382 /**
1383 * cc_shell_search_provider2_call_launch_search_finish:
1384 * @proxy: A #CcShellSearchProvider2Proxy.
1385 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to cc_shell_search_provider2_call_launch_search().
1386 * @error: Return location for error or %NULL.
1387 *
1388 * Finishes an operation started with cc_shell_search_provider2_call_launch_search().
1389 *
1390 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
1391 */
1392 gboolean
1393 cc_shell_search_provider2_call_launch_search_finish (
1394 CcShellSearchProvider2 *proxy,
1395 GAsyncResult *res,
1396 GError **error)
1397 {
1398 GVariant *_ret;
1399 _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error);
1400 if (_ret == NULL)
1401 goto _out;
1402 g_variant_get (_ret,
1403 "()");
1404 g_variant_unref (_ret);
1405 _out:
1406 return _ret != NULL;
1407 }
1408
1409 /**
1410 * cc_shell_search_provider2_call_launch_search_sync:
1411 * @proxy: A #CcShellSearchProvider2Proxy.
1412 * @arg_terms: Argument to pass with the method invocation.
1413 * @arg_timestamp: Argument to pass with the method invocation.
1414 * @cancellable: (nullable): A #GCancellable or %NULL.
1415 * @error: Return location for error or %NULL.
1416 *
1417 * Synchronously invokes the <link linkend="gdbus-method-org-gnome-Shell-SearchProvider2.LaunchSearch">LaunchSearch()</link> D-Bus method on @proxy. The calling thread is blocked until a reply is received.
1418 *
1419 * See cc_shell_search_provider2_call_launch_search() for the asynchronous version of this method.
1420 *
1421 * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set.
1422 */
1423 gboolean
1424 cc_shell_search_provider2_call_launch_search_sync (
1425 CcShellSearchProvider2 *proxy,
1426 const gchar *const *arg_terms,
1427 guint arg_timestamp,
1428 GCancellable *cancellable,
1429 GError **error)
1430 {
1431 GVariant *_ret;
1432 _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy),
1433 "LaunchSearch",
1434 g_variant_new ("(^asu)",
1435 arg_terms,
1436 arg_timestamp),
1437 G_DBUS_CALL_FLAGS_NONE,
1438 -1,
1439 cancellable,
1440 error);
1441 if (_ret == NULL)
1442 goto _out;
1443 g_variant_get (_ret,
1444 "()");
1445 g_variant_unref (_ret);
1446 _out:
1447 return _ret != NULL;
1448 }
1449
1450 /**
1451 * cc_shell_search_provider2_complete_get_initial_result_set:
1452 * @object: A #CcShellSearchProvider2.
1453 * @invocation: (transfer full): A #GDBusMethodInvocation.
1454 * @results: Parameter to return.
1455 *
1456 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-gnome-Shell-SearchProvider2.GetInitialResultSet">GetInitialResultSet()</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.
1457 *
1458 * This method will free @invocation, you cannot use it afterwards.
1459 */
1460 void
1461 cc_shell_search_provider2_complete_get_initial_result_set (
1462 CcShellSearchProvider2 *object G_GNUC_UNUSED,
1463 GDBusMethodInvocation *invocation,
1464 const gchar *const *results)
1465 {
1466 g_dbus_method_invocation_return_value (invocation,
1467 g_variant_new ("(^as)",
1468 results));
1469 }
1470
1471 /**
1472 * cc_shell_search_provider2_complete_get_subsearch_result_set:
1473 * @object: A #CcShellSearchProvider2.
1474 * @invocation: (transfer full): A #GDBusMethodInvocation.
1475 * @results: Parameter to return.
1476 *
1477 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-gnome-Shell-SearchProvider2.GetSubsearchResultSet">GetSubsearchResultSet()</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.
1478 *
1479 * This method will free @invocation, you cannot use it afterwards.
1480 */
1481 void
1482 cc_shell_search_provider2_complete_get_subsearch_result_set (
1483 CcShellSearchProvider2 *object G_GNUC_UNUSED,
1484 GDBusMethodInvocation *invocation,
1485 const gchar *const *results)
1486 {
1487 g_dbus_method_invocation_return_value (invocation,
1488 g_variant_new ("(^as)",
1489 results));
1490 }
1491
1492 /**
1493 * cc_shell_search_provider2_complete_get_result_metas:
1494 * @object: A #CcShellSearchProvider2.
1495 * @invocation: (transfer full): A #GDBusMethodInvocation.
1496 * @metas: Parameter to return.
1497 *
1498 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-gnome-Shell-SearchProvider2.GetResultMetas">GetResultMetas()</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.
1499 *
1500 * This method will free @invocation, you cannot use it afterwards.
1501 */
1502 void
1503 cc_shell_search_provider2_complete_get_result_metas (
1504 CcShellSearchProvider2 *object G_GNUC_UNUSED,
1505 GDBusMethodInvocation *invocation,
1506 GVariant *metas)
1507 {
1508 g_dbus_method_invocation_return_value (invocation,
1509 g_variant_new ("(@aa{sv})",
1510 metas));
1511 }
1512
1513 /**
1514 * cc_shell_search_provider2_complete_activate_result:
1515 * @object: A #CcShellSearchProvider2.
1516 * @invocation: (transfer full): A #GDBusMethodInvocation.
1517 *
1518 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-gnome-Shell-SearchProvider2.ActivateResult">ActivateResult()</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.
1519 *
1520 * This method will free @invocation, you cannot use it afterwards.
1521 */
1522 void
1523 cc_shell_search_provider2_complete_activate_result (
1524 CcShellSearchProvider2 *object G_GNUC_UNUSED,
1525 GDBusMethodInvocation *invocation)
1526 {
1527 g_dbus_method_invocation_return_value (invocation,
1528 g_variant_new ("()"));
1529 }
1530
1531 /**
1532 * cc_shell_search_provider2_complete_launch_search:
1533 * @object: A #CcShellSearchProvider2.
1534 * @invocation: (transfer full): A #GDBusMethodInvocation.
1535 *
1536 * Helper function used in service implementations to finish handling invocations of the <link linkend="gdbus-method-org-gnome-Shell-SearchProvider2.LaunchSearch">LaunchSearch()</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.
1537 *
1538 * This method will free @invocation, you cannot use it afterwards.
1539 */
1540 void
1541 cc_shell_search_provider2_complete_launch_search (
1542 CcShellSearchProvider2 *object G_GNUC_UNUSED,
1543 GDBusMethodInvocation *invocation)
1544 {
1545 g_dbus_method_invocation_return_value (invocation,
1546 g_variant_new ("()"));
1547 }
1548
1549 /* ------------------------------------------------------------------------ */
1550
1551 /**
1552 * CcShellSearchProvider2Proxy:
1553 *
1554 * The #CcShellSearchProvider2Proxy structure contains only private data and should only be accessed using the provided API.
1555 */
1556
1557 /**
1558 * CcShellSearchProvider2ProxyClass:
1559 * @parent_class: The parent class.
1560 *
1561 * Class structure for #CcShellSearchProvider2Proxy.
1562 */
1563
1564 struct _CcShellSearchProvider2ProxyPrivate
1565 {
1566 GData *qdata;
1567 };
1568
1569 static void cc_shell_search_provider2_proxy_iface_init (CcShellSearchProvider2Iface *iface);
1570
1571 #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
1572 G_DEFINE_TYPE_WITH_CODE (CcShellSearchProvider2Proxy, cc_shell_search_provider2_proxy, G_TYPE_DBUS_PROXY,
1573 G_ADD_PRIVATE (CcShellSearchProvider2Proxy)
1574 G_IMPLEMENT_INTERFACE (CC_TYPE_SHELL_SEARCH_PROVIDER2, cc_shell_search_provider2_proxy_iface_init))
1575
1576 #else
1577 G_DEFINE_TYPE_WITH_CODE (CcShellSearchProvider2Proxy, cc_shell_search_provider2_proxy, G_TYPE_DBUS_PROXY,
1578 G_IMPLEMENT_INTERFACE (CC_TYPE_SHELL_SEARCH_PROVIDER2, cc_shell_search_provider2_proxy_iface_init))
1579
1580 #endif
1581 static void
1582 cc_shell_search_provider2_proxy_finalize (GObject *object)
1583 {
1584 CcShellSearchProvider2Proxy *proxy = CC_SHELL_SEARCH_PROVIDER2_PROXY (object);
1585 g_datalist_clear (&proxy->priv->qdata);
1586 G_OBJECT_CLASS (cc_shell_search_provider2_proxy_parent_class)->finalize (object);
1587 }
1588
1589 static void
1590 cc_shell_search_provider2_proxy_get_property (GObject *object G_GNUC_UNUSED,
1591 guint prop_id G_GNUC_UNUSED,
1592 GValue *value G_GNUC_UNUSED,
1593 GParamSpec *pspec G_GNUC_UNUSED)
1594 {
1595 }
1596
1597 static void
1598 cc_shell_search_provider2_proxy_set_property (GObject *object G_GNUC_UNUSED,
1599 guint prop_id G_GNUC_UNUSED,
1600 const GValue *value G_GNUC_UNUSED,
1601 GParamSpec *pspec G_GNUC_UNUSED)
1602 {
1603 }
1604
1605 static void
1606 cc_shell_search_provider2_proxy_g_signal (GDBusProxy *proxy,
1607 const gchar *sender_name G_GNUC_UNUSED,
1608 const gchar *signal_name,
1609 GVariant *parameters)
1610 {
1611 _ExtendedGDBusSignalInfo *info;
1612 GVariantIter iter;
1613 GVariant *child;
1614 GValue *paramv;
1615 gsize num_params;
1616 gsize n;
1617 guint signal_id;
1618 info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_cc_shell_search_provider2_interface_info.parent_struct, signal_name);
1619 if (info == NULL)
1620 return;
1621 num_params = g_variant_n_children (parameters);
1622 paramv = g_new0 (GValue, num_params + 1);
1623 g_value_init (&paramv[0], CC_TYPE_SHELL_SEARCH_PROVIDER2);
1624 g_value_set_object (&paramv[0], proxy);
1625 g_variant_iter_init (&iter, parameters);
1626 n = 1;
1627 while ((child = g_variant_iter_next_value (&iter)) != NULL)
1628 {
1629 _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1];
1630 if (arg_info->use_gvariant)
1631 {
1632 g_value_init (&paramv[n], G_TYPE_VARIANT);
1633 g_value_set_variant (&paramv[n], child);
1634 n++;
1635 }
1636 else
1637 g_dbus_gvariant_to_gvalue (child, &paramv[n++]);
1638 g_variant_unref (child);
1639 }
1640 signal_id = g_signal_lookup (info->signal_name, CC_TYPE_SHELL_SEARCH_PROVIDER2);
1641 g_signal_emitv (paramv, signal_id, 0, NULL);
1642 for (n = 0; n < num_params + 1; n++)
1643 g_value_unset (&paramv[n]);
1644 g_free (paramv);
1645 }
1646
1647 static void
1648 cc_shell_search_provider2_proxy_g_properties_changed (GDBusProxy *_proxy,
1649 GVariant *changed_properties,
1650 const gchar *const *invalidated_properties)
1651 {
1652 CcShellSearchProvider2Proxy *proxy = CC_SHELL_SEARCH_PROVIDER2_PROXY (_proxy);
1653 guint n;
1654 const gchar *key;
1655 GVariantIter *iter;
1656 _ExtendedGDBusPropertyInfo *info;
1657 g_variant_get (changed_properties, "a{sv}", &iter);
1658 while (g_variant_iter_next (iter, "{&sv}", &key, NULL))
1659 {
1660 info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_cc_shell_search_provider2_interface_info.parent_struct, key);
1661 g_datalist_remove_data (&proxy->priv->qdata, key);
1662 if (info != NULL)
1663 g_object_notify (G_OBJECT (proxy), info->hyphen_name);
1664 }
1665 g_variant_iter_free (iter);
1666 for (n = 0; invalidated_properties[n] != NULL; n++)
1667 {
1668 info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_cc_shell_search_provider2_interface_info.parent_struct, invalidated_properties[n]);
1669 g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]);
1670 if (info != NULL)
1671 g_object_notify (G_OBJECT (proxy), info->hyphen_name);
1672 }
1673 }
1674
1675 static void
1676 cc_shell_search_provider2_proxy_init (CcShellSearchProvider2Proxy *proxy)
1677 {
1678 #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
1679 proxy->priv = cc_shell_search_provider2_proxy_get_instance_private (proxy);
1680 #else
1681 proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, CC_TYPE_SHELL_SEARCH_PROVIDER2_PROXY, CcShellSearchProvider2ProxyPrivate);
1682 #endif
1683
1684 g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), cc_shell_search_provider2_interface_info ());
1685 }
1686
1687 static void
1688 cc_shell_search_provider2_proxy_class_init (CcShellSearchProvider2ProxyClass *klass)
1689 {
1690 GObjectClass *gobject_class;
1691 GDBusProxyClass *proxy_class;
1692
1693 gobject_class = G_OBJECT_CLASS (klass);
1694 gobject_class->finalize = cc_shell_search_provider2_proxy_finalize;
1695 gobject_class->get_property = cc_shell_search_provider2_proxy_get_property;
1696 gobject_class->set_property = cc_shell_search_provider2_proxy_set_property;
1697
1698 proxy_class = G_DBUS_PROXY_CLASS (klass);
1699 proxy_class->g_signal = cc_shell_search_provider2_proxy_g_signal;
1700 proxy_class->g_properties_changed = cc_shell_search_provider2_proxy_g_properties_changed;
1701
1702 #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38
1703 g_type_class_add_private (klass, sizeof (CcShellSearchProvider2ProxyPrivate));
1704 #endif
1705 }
1706
1707 static void
1708 cc_shell_search_provider2_proxy_iface_init (CcShellSearchProvider2Iface *iface G_GNUC_UNUSED)
1709 {
1710 }
1711
1712 /**
1713 * cc_shell_search_provider2_proxy_new:
1714 * @connection: A #GDBusConnection.
1715 * @flags: Flags from the #GDBusProxyFlags enumeration.
1716 * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection.
1717 * @object_path: An object path.
1718 * @cancellable: (nullable): A #GCancellable or %NULL.
1719 * @callback: A #GAsyncReadyCallback to call when the request is satisfied.
1720 * @user_data: User data to pass to @callback.
1721 *
1722 * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-gnome-Shell-SearchProvider2.top_of_page">org.gnome.Shell.SearchProvider2</link>. See g_dbus_proxy_new() for more details.
1723 *
1724 * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
1725 * You can then call cc_shell_search_provider2_proxy_new_finish() to get the result of the operation.
1726 *
1727 * See cc_shell_search_provider2_proxy_new_sync() for the synchronous, blocking version of this constructor.
1728 */
1729 void
1730 cc_shell_search_provider2_proxy_new (
1731 GDBusConnection *connection,
1732 GDBusProxyFlags flags,
1733 const gchar *name,
1734 const gchar *object_path,
1735 GCancellable *cancellable,
1736 GAsyncReadyCallback callback,
1737 gpointer user_data)
1738 {
1739 g_async_initable_new_async (CC_TYPE_SHELL_SEARCH_PROVIDER2_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.gnome.Shell.SearchProvider2", NULL);
1740 }
1741
1742 /**
1743 * cc_shell_search_provider2_proxy_new_finish:
1744 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to cc_shell_search_provider2_proxy_new().
1745 * @error: Return location for error or %NULL
1746 *
1747 * Finishes an operation started with cc_shell_search_provider2_proxy_new().
1748 *
1749 * Returns: (transfer full) (type CcShellSearchProvider2Proxy): The constructed proxy object or %NULL if @error is set.
1750 */
1751 CcShellSearchProvider2 *
1752 cc_shell_search_provider2_proxy_new_finish (
1753 GAsyncResult *res,
1754 GError **error)
1755 {
1756 GObject *ret;
1757 GObject *source_object;
1758 source_object = g_async_result_get_source_object (res);
1759 ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error);
1760 g_object_unref (source_object);
1761 if (ret != NULL)
1762 return CC_SHELL_SEARCH_PROVIDER2 (ret);
1763 else
1764 return NULL;
1765 }
1766
1767 /**
1768 * cc_shell_search_provider2_proxy_new_sync:
1769 * @connection: A #GDBusConnection.
1770 * @flags: Flags from the #GDBusProxyFlags enumeration.
1771 * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection.
1772 * @object_path: An object path.
1773 * @cancellable: (nullable): A #GCancellable or %NULL.
1774 * @error: Return location for error or %NULL
1775 *
1776 * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-gnome-Shell-SearchProvider2.top_of_page">org.gnome.Shell.SearchProvider2</link>. See g_dbus_proxy_new_sync() for more details.
1777 *
1778 * The calling thread is blocked until a reply is received.
1779 *
1780 * See cc_shell_search_provider2_proxy_new() for the asynchronous version of this constructor.
1781 *
1782 * Returns: (transfer full) (type CcShellSearchProvider2Proxy): The constructed proxy object or %NULL if @error is set.
1783 */
1784 CcShellSearchProvider2 *
1785 cc_shell_search_provider2_proxy_new_sync (
1786 GDBusConnection *connection,
1787 GDBusProxyFlags flags,
1788 const gchar *name,
1789 const gchar *object_path,
1790 GCancellable *cancellable,
1791 GError **error)
1792 {
1793 GInitable *ret;
1794 ret = g_initable_new (CC_TYPE_SHELL_SEARCH_PROVIDER2_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.gnome.Shell.SearchProvider2", NULL);
1795 if (ret != NULL)
1796 return CC_SHELL_SEARCH_PROVIDER2 (ret);
1797 else
1798 return NULL;
1799 }
1800
1801
1802 /**
1803 * cc_shell_search_provider2_proxy_new_for_bus:
1804 * @bus_type: A #GBusType.
1805 * @flags: Flags from the #GDBusProxyFlags enumeration.
1806 * @name: A bus name (well-known or unique).
1807 * @object_path: An object path.
1808 * @cancellable: (nullable): A #GCancellable or %NULL.
1809 * @callback: A #GAsyncReadyCallback to call when the request is satisfied.
1810 * @user_data: User data to pass to @callback.
1811 *
1812 * Like cc_shell_search_provider2_proxy_new() but takes a #GBusType instead of a #GDBusConnection.
1813 *
1814 * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()).
1815 * You can then call cc_shell_search_provider2_proxy_new_for_bus_finish() to get the result of the operation.
1816 *
1817 * See cc_shell_search_provider2_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor.
1818 */
1819 void
1820 cc_shell_search_provider2_proxy_new_for_bus (
1821 GBusType bus_type,
1822 GDBusProxyFlags flags,
1823 const gchar *name,
1824 const gchar *object_path,
1825 GCancellable *cancellable,
1826 GAsyncReadyCallback callback,
1827 gpointer user_data)
1828 {
1829 g_async_initable_new_async (CC_TYPE_SHELL_SEARCH_PROVIDER2_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.gnome.Shell.SearchProvider2", NULL);
1830 }
1831
1832 /**
1833 * cc_shell_search_provider2_proxy_new_for_bus_finish:
1834 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to cc_shell_search_provider2_proxy_new_for_bus().
1835 * @error: Return location for error or %NULL
1836 *
1837 * Finishes an operation started with cc_shell_search_provider2_proxy_new_for_bus().
1838 *
1839 * Returns: (transfer full) (type CcShellSearchProvider2Proxy): The constructed proxy object or %NULL if @error is set.
1840 */
1841 CcShellSearchProvider2 *
1842 cc_shell_search_provider2_proxy_new_for_bus_finish (
1843 GAsyncResult *res,
1844 GError **error)
1845 {
1846 GObject *ret;
1847 GObject *source_object;
1848 source_object = g_async_result_get_source_object (res);
1849 ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error);
1850 g_object_unref (source_object);
1851 if (ret != NULL)
1852 return CC_SHELL_SEARCH_PROVIDER2 (ret);
1853 else
1854 return NULL;
1855 }
1856
1857 /**
1858 * cc_shell_search_provider2_proxy_new_for_bus_sync:
1859 * @bus_type: A #GBusType.
1860 * @flags: Flags from the #GDBusProxyFlags enumeration.
1861 * @name: A bus name (well-known or unique).
1862 * @object_path: An object path.
1863 * @cancellable: (nullable): A #GCancellable or %NULL.
1864 * @error: Return location for error or %NULL
1865 *
1866 * Like cc_shell_search_provider2_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection.
1867 *
1868 * The calling thread is blocked until a reply is received.
1869 *
1870 * See cc_shell_search_provider2_proxy_new_for_bus() for the asynchronous version of this constructor.
1871 *
1872 * Returns: (transfer full) (type CcShellSearchProvider2Proxy): The constructed proxy object or %NULL if @error is set.
1873 */
1874 CcShellSearchProvider2 *
1875 cc_shell_search_provider2_proxy_new_for_bus_sync (
1876 GBusType bus_type,
1877 GDBusProxyFlags flags,
1878 const gchar *name,
1879 const gchar *object_path,
1880 GCancellable *cancellable,
1881 GError **error)
1882 {
1883 GInitable *ret;
1884 ret = g_initable_new (CC_TYPE_SHELL_SEARCH_PROVIDER2_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.gnome.Shell.SearchProvider2", NULL);
1885 if (ret != NULL)
1886 return CC_SHELL_SEARCH_PROVIDER2 (ret);
1887 else
1888 return NULL;
1889 }
1890
1891
1892 /* ------------------------------------------------------------------------ */
1893
1894 /**
1895 * CcShellSearchProvider2Skeleton:
1896 *
1897 * The #CcShellSearchProvider2Skeleton structure contains only private data and should only be accessed using the provided API.
1898 */
1899
1900 /**
1901 * CcShellSearchProvider2SkeletonClass:
1902 * @parent_class: The parent class.
1903 *
1904 * Class structure for #CcShellSearchProvider2Skeleton.
1905 */
1906
1907 struct _CcShellSearchProvider2SkeletonPrivate
1908 {
1909 GValue *properties;
1910 GList *changed_properties;
1911 GSource *changed_properties_idle_source;
1912 GMainContext *context;
1913 GMutex lock;
1914 };
1915
1916 static void
1917 _cc_shell_search_provider2_skeleton_handle_method_call (
1918 GDBusConnection *connection G_GNUC_UNUSED,
1919 const gchar *sender G_GNUC_UNUSED,
1920 const gchar *object_path G_GNUC_UNUSED,
1921 const gchar *interface_name,
1922 const gchar *method_name,
1923 GVariant *parameters,
1924 GDBusMethodInvocation *invocation,
1925 gpointer user_data)
1926 {
1927 CcShellSearchProvider2Skeleton *skeleton = CC_SHELL_SEARCH_PROVIDER2_SKELETON (user_data);
1928 _ExtendedGDBusMethodInfo *info;
1929 GVariantIter iter;
1930 GVariant *child;
1931 GValue *paramv;
1932 gsize num_params;
1933 guint num_extra;
1934 gsize n;
1935 guint signal_id;
1936 GValue return_value = G_VALUE_INIT;
1937 info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation);
1938 g_assert (info != NULL);
1939 num_params = g_variant_n_children (parameters);
1940 num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra);
1941 n = 0;
1942 g_value_init (&paramv[n], CC_TYPE_SHELL_SEARCH_PROVIDER2);
1943 g_value_set_object (&paramv[n++], skeleton);
1944 g_value_init (&paramv[n], G_TYPE_DBUS_METHOD_INVOCATION);
1945 g_value_set_object (&paramv[n++], invocation);
1946 if (info->pass_fdlist)
1947 {
1948 #ifdef G_OS_UNIX
1949 g_value_init (&paramv[n], G_TYPE_UNIX_FD_LIST);
1950 g_value_set_object (&paramv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation)));
1951 #else
1952 g_assert_not_reached ();
1953 #endif
1954 }
1955 g_variant_iter_init (&iter, parameters);
1956 while ((child = g_variant_iter_next_value (&iter)) != NULL)
1957 {
1958 _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra];
1959 if (arg_info->use_gvariant)
1960 {
1961 g_value_init (&paramv[n], G_TYPE_VARIANT);
1962 g_value_set_variant (&paramv[n], child);
1963 n++;
1964 }
1965 else
1966 g_dbus_gvariant_to_gvalue (child, &paramv[n++]);
1967 g_variant_unref (child);
1968 }
1969 signal_id = g_signal_lookup (info->signal_name, CC_TYPE_SHELL_SEARCH_PROVIDER2);
1970 g_value_init (&return_value, G_TYPE_BOOLEAN);
1971 g_signal_emitv (paramv, signal_id, 0, &return_value);
1972 if (!g_value_get_boolean (&return_value))
1973 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);
1974 g_value_unset (&return_value);
1975 for (n = 0; n < num_params + num_extra; n++)
1976 g_value_unset (&paramv[n]);
1977 g_free (paramv);
1978 }
1979
1980 static GVariant *
1981 _cc_shell_search_provider2_skeleton_handle_get_property (
1982 GDBusConnection *connection G_GNUC_UNUSED,
1983 const gchar *sender G_GNUC_UNUSED,
1984 const gchar *object_path G_GNUC_UNUSED,
1985 const gchar *interface_name G_GNUC_UNUSED,
1986 const gchar *property_name,
1987 GError **error,
1988 gpointer user_data)
1989 {
1990 CcShellSearchProvider2Skeleton *skeleton = CC_SHELL_SEARCH_PROVIDER2_SKELETON (user_data);
1991 GValue value = G_VALUE_INIT;
1992 GParamSpec *pspec;
1993 _ExtendedGDBusPropertyInfo *info;
1994 GVariant *ret;
1995 ret = NULL;
1996 info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_cc_shell_search_provider2_interface_info.parent_struct, property_name);
1997 g_assert (info != NULL);
1998 pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name);
1999 if (pspec == NULL)
2000 {
2001 g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name);
2002 }
2003 else
2004 {
2005 g_value_init (&value, pspec->value_type);
2006 g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value);
2007 ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature));
2008 g_value_unset (&value);
2009 }
2010 return ret;
2011 }
2012
2013 static gboolean
2014 _cc_shell_search_provider2_skeleton_handle_set_property (
2015 GDBusConnection *connection G_GNUC_UNUSED,
2016 const gchar *sender G_GNUC_UNUSED,
2017 const gchar *object_path G_GNUC_UNUSED,
2018 const gchar *interface_name G_GNUC_UNUSED,
2019 const gchar *property_name,
2020 GVariant *variant,
2021 GError **error,
2022 gpointer user_data)
2023 {
2024 CcShellSearchProvider2Skeleton *skeleton = CC_SHELL_SEARCH_PROVIDER2_SKELETON (user_data);
2025 GValue value = G_VALUE_INIT;
2026 GParamSpec *pspec;
2027 _ExtendedGDBusPropertyInfo *info;
2028 gboolean ret;
2029 ret = FALSE;
2030 info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_cc_shell_search_provider2_interface_info.parent_struct, property_name);
2031 g_assert (info != NULL);
2032 pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name);
2033 if (pspec == NULL)
2034 {
2035 g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name);
2036 }
2037 else
2038 {
2039 if (info->use_gvariant)
2040 g_value_set_variant (&value, variant);
2041 else
2042 g_dbus_gvariant_to_gvalue (variant, &value);
2043 g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value);
2044 g_value_unset (&value);
2045 ret = TRUE;
2046 }
2047 return ret;
2048 }
2049
2050 static const GDBusInterfaceVTable _cc_shell_search_provider2_skeleton_vtable =
2051 {
2052 _cc_shell_search_provider2_skeleton_handle_method_call,
2053 _cc_shell_search_provider2_skeleton_handle_get_property,
2054 _cc_shell_search_provider2_skeleton_handle_set_property,
2055 {NULL}
2056 };
2057
2058 static GDBusInterfaceInfo *
2059 cc_shell_search_provider2_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED)
2060 {
2061 return cc_shell_search_provider2_interface_info ();
2062 }
2063
2064 static GDBusInterfaceVTable *
2065 cc_shell_search_provider2_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED)
2066 {
2067 return (GDBusInterfaceVTable *) &_cc_shell_search_provider2_skeleton_vtable;
2068 }
2069
2070 static GVariant *
2071 cc_shell_search_provider2_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton)
2072 {
2073 CcShellSearchProvider2Skeleton *skeleton = CC_SHELL_SEARCH_PROVIDER2_SKELETON (_skeleton);
2074
2075 GVariantBuilder builder;
2076 guint n;
2077 g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}"));
2078 if (_cc_shell_search_provider2_interface_info.parent_struct.properties == NULL)
2079 goto out;
2080 for (n = 0; _cc_shell_search_provider2_interface_info.parent_struct.properties[n] != NULL; n++)
2081 {
2082 GDBusPropertyInfo *info = _cc_shell_search_provider2_interface_info.parent_struct.properties[n];
2083 if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE)
2084 {
2085 GVariant *value;
2086 value = _cc_shell_search_provider2_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.gnome.Shell.SearchProvider2", info->name, NULL, skeleton);
2087 if (value != NULL)
2088 {
2089 g_variant_take_ref (value);
2090 g_variant_builder_add (&builder, "{sv}", info->name, value);
2091 g_variant_unref (value);
2092 }
2093 }
2094 }
2095 out:
2096 return g_variant_builder_end (&builder);
2097 }
2098
2099 static void
2100 cc_shell_search_provider2_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED)
2101 {
2102 }
2103
2104 static void cc_shell_search_provider2_skeleton_iface_init (CcShellSearchProvider2Iface *iface);
2105 #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
2106 G_DEFINE_TYPE_WITH_CODE (CcShellSearchProvider2Skeleton, cc_shell_search_provider2_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,
2107 G_ADD_PRIVATE (CcShellSearchProvider2Skeleton)
2108 G_IMPLEMENT_INTERFACE (CC_TYPE_SHELL_SEARCH_PROVIDER2, cc_shell_search_provider2_skeleton_iface_init))
2109
2110 #else
2111 G_DEFINE_TYPE_WITH_CODE (CcShellSearchProvider2Skeleton, cc_shell_search_provider2_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,
2112 G_IMPLEMENT_INTERFACE (CC_TYPE_SHELL_SEARCH_PROVIDER2, cc_shell_search_provider2_skeleton_iface_init))
2113
2114 #endif
2115 static void
2116 cc_shell_search_provider2_skeleton_finalize (GObject *object)
2117 {
2118 CcShellSearchProvider2Skeleton *skeleton = CC_SHELL_SEARCH_PROVIDER2_SKELETON (object);
2119 g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free);
2120 if (skeleton->priv->changed_properties_idle_source != NULL)
2121 g_source_destroy (skeleton->priv->changed_properties_idle_source);
2122 g_main_context_unref (skeleton->priv->context);
2123 g_mutex_clear (&skeleton->priv->lock);
2124 G_OBJECT_CLASS (cc_shell_search_provider2_skeleton_parent_class)->finalize (object);
2125 }
2126
2127 static void
2128 cc_shell_search_provider2_skeleton_init (CcShellSearchProvider2Skeleton *skeleton)
2129 {
2130 #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38
2131 skeleton->priv = cc_shell_search_provider2_skeleton_get_instance_private (skeleton);
2132 #else
2133 skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, CC_TYPE_SHELL_SEARCH_PROVIDER2_SKELETON, CcShellSearchProvider2SkeletonPrivate);
2134 #endif
2135
2136 g_mutex_init (&skeleton->priv->lock);
2137 skeleton->priv->context = g_main_context_ref_thread_default ();
2138 }
2139
2140 static void
2141 cc_shell_search_provider2_skeleton_class_init (CcShellSearchProvider2SkeletonClass *klass)
2142 {
2143 GObjectClass *gobject_class;
2144 GDBusInterfaceSkeletonClass *skeleton_class;
2145
2146 gobject_class = G_OBJECT_CLASS (klass);
2147 gobject_class->finalize = cc_shell_search_provider2_skeleton_finalize;
2148
2149 skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass);
2150 skeleton_class->get_info = cc_shell_search_provider2_skeleton_dbus_interface_get_info;
2151 skeleton_class->get_properties = cc_shell_search_provider2_skeleton_dbus_interface_get_properties;
2152 skeleton_class->flush = cc_shell_search_provider2_skeleton_dbus_interface_flush;
2153 skeleton_class->get_vtable = cc_shell_search_provider2_skeleton_dbus_interface_get_vtable;
2154
2155 #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38
2156 g_type_class_add_private (klass, sizeof (CcShellSearchProvider2SkeletonPrivate));
2157 #endif
2158 }
2159
2160 static void
2161 cc_shell_search_provider2_skeleton_iface_init (CcShellSearchProvider2Iface *iface G_GNUC_UNUSED)
2162 {
2163 }
2164
2165 /**
2166 * cc_shell_search_provider2_skeleton_new:
2167 *
2168 * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-gnome-Shell-SearchProvider2.top_of_page">org.gnome.Shell.SearchProvider2</link>.
2169 *
2170 * Returns: (transfer full) (type CcShellSearchProvider2Skeleton): The skeleton object.
2171 */
2172 CcShellSearchProvider2 *
2173 cc_shell_search_provider2_skeleton_new (void)
2174 {
2175 return CC_SHELL_SEARCH_PROVIDER2 (g_object_new (CC_TYPE_SHELL_SEARCH_PROVIDER2_SKELETON, NULL));
2176 }
2177
2178