~ubuntu-branches/ubuntu/utopic/indicator-printers/utopic

« back to all changes in this revision

Viewing changes to src/cups-notifier.c

  • Committer: Package Import Robot
  • Author(s): Lars Uebernickel
  • Date: 2012-02-16 21:19:35 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20120216211935-3xrgag9lqadzp96j
Tags: 0.1.1-0ubuntu1
* New upstream release.
  - prepare for i18n
  - make sure CUPS' dbus notification is on while the service is running
  - fix build system to enable out-of-tree builds

* debian/control
  - bump libindicator dependency 0.3.91

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Generated by gdbus-codegen 2.31.16. 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
 
 
11
 
#include "cups-notifier.h"
12
 
 
13
 
#ifdef G_OS_UNIX
14
 
#  include <gio/gunixfdlist.h>
15
 
#endif
16
 
 
17
 
typedef struct
18
 
{
19
 
  GDBusArgInfo parent_struct;
20
 
  gboolean use_gvariant;
21
 
} _ExtendedGDBusArgInfo;
22
 
 
23
 
typedef struct
24
 
{
25
 
  GDBusMethodInfo parent_struct;
26
 
  const gchar *signal_name;
27
 
  gboolean pass_fdlist;
28
 
} _ExtendedGDBusMethodInfo;
29
 
 
30
 
typedef struct
31
 
{
32
 
  GDBusSignalInfo parent_struct;
33
 
  const gchar *signal_name;
34
 
} _ExtendedGDBusSignalInfo;
35
 
 
36
 
typedef struct
37
 
{
38
 
  GDBusPropertyInfo parent_struct;
39
 
  const gchar *hyphen_name;
40
 
  gboolean use_gvariant;
41
 
} _ExtendedGDBusPropertyInfo;
42
 
 
43
 
typedef struct
44
 
{
45
 
  GDBusInterfaceInfo parent_struct;
46
 
  const gchar *hyphen_name;
47
 
} _ExtendedGDBusInterfaceInfo;
48
 
 
49
 
typedef struct
50
 
{
51
 
  const _ExtendedGDBusPropertyInfo *info;
52
 
  guint prop_id;
53
 
  GValue orig_value; /* the value before the change */
54
 
} ChangedProperty;
55
 
 
56
 
static void
57
 
_changed_property_free (ChangedProperty *data)
58
 
{
59
 
  g_value_unset (&data->orig_value);
60
 
  g_free (data);
61
 
}
62
 
 
63
 
static gboolean
64
 
_g_strv_equal0 (gchar **a, gchar **b)
65
 
{
66
 
  gboolean ret = FALSE;
67
 
  guint n;
68
 
  if (a == NULL && b == NULL)
69
 
    {
70
 
      ret = TRUE;
71
 
      goto out;
72
 
    }
73
 
  if (a == NULL || b == NULL)
74
 
    goto out;
75
 
  if (g_strv_length (a) != g_strv_length (b))
76
 
    goto out;
77
 
  for (n = 0; a[n] != NULL; n++)
78
 
    if (g_strcmp0 (a[n], b[n]) != 0)
79
 
      goto out;
80
 
  ret = TRUE;
81
 
out:
82
 
  return ret;
83
 
}
84
 
 
85
 
static gboolean
86
 
_g_variant_equal0 (GVariant *a, GVariant *b)
87
 
{
88
 
  gboolean ret = FALSE;
89
 
  if (a == NULL && b == NULL)
90
 
    {
91
 
      ret = TRUE;
92
 
      goto out;
93
 
    }
94
 
  if (a == NULL || b == NULL)
95
 
    goto out;
96
 
  ret = g_variant_equal (a, b);
97
 
out:
98
 
  return ret;
99
 
}
100
 
 
101
 
G_GNUC_UNUSED static gboolean
102
 
_g_value_equal (const GValue *a, const GValue *b)
103
 
{
104
 
  gboolean ret = FALSE;
105
 
  g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b));
106
 
  switch (G_VALUE_TYPE (a))
107
 
    {
108
 
      case G_TYPE_BOOLEAN:
109
 
        ret = (g_value_get_boolean (a) == g_value_get_boolean (b));
110
 
        break;
111
 
      case G_TYPE_UCHAR:
112
 
        ret = (g_value_get_uchar (a) == g_value_get_uchar (b));
113
 
        break;
114
 
      case G_TYPE_INT:
115
 
        ret = (g_value_get_int (a) == g_value_get_int (b));
116
 
        break;
117
 
      case G_TYPE_UINT:
118
 
        ret = (g_value_get_uint (a) == g_value_get_uint (b));
119
 
        break;
120
 
      case G_TYPE_INT64:
121
 
        ret = (g_value_get_int64 (a) == g_value_get_int64 (b));
122
 
        break;
123
 
      case G_TYPE_UINT64:
124
 
        ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b));
125
 
        break;
126
 
      case G_TYPE_DOUBLE:
127
 
        ret = (g_value_get_double (a) == g_value_get_double (b));
128
 
        break;
129
 
      case G_TYPE_STRING:
130
 
        ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0);
131
 
        break;
132
 
      case G_TYPE_VARIANT:
133
 
        ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b));
134
 
        break;
135
 
      default:
136
 
        if (G_VALUE_TYPE (a) == G_TYPE_STRV)
137
 
          ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b));
138
 
        else
139
 
          g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a)));
140
 
        break;
141
 
    }
142
 
  return ret;
143
 
}
144
 
 
145
 
/* ------------------------------------------------------------------------
146
 
 * Code for interface org.cups.cupsd.Notifier
147
 
 * ------------------------------------------------------------------------
148
 
 */
149
 
 
150
 
/**
151
 
 * SECTION:CupsNotifier
152
 
 * @title: CupsNotifier
153
 
 * @short_description: Generated C code for the org.cups.cupsd.Notifier D-Bus interface
154
 
 *
155
 
 * This section contains code for working with the <link linkend="gdbus-interface-org-cups-cupsd-Notifier.top_of_page">org.cups.cupsd.Notifier</link> D-Bus interface in C.
156
 
 */
157
 
 
158
 
/* ---- Introspection data for org.cups.cupsd.Notifier ---- */
159
 
 
160
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_server_started_ARG_text =
161
 
{
162
 
  {
163
 
    -1,
164
 
    "text",
165
 
    "s",
166
 
    NULL
167
 
  },
168
 
  FALSE
169
 
};
170
 
 
171
 
static const _ExtendedGDBusArgInfo * const _cups_notifier_signal_info_server_started_ARG_pointers[] =
172
 
{
173
 
  &_cups_notifier_signal_info_server_started_ARG_text,
174
 
  NULL
175
 
};
176
 
 
177
 
static const _ExtendedGDBusSignalInfo _cups_notifier_signal_info_server_started =
178
 
{
179
 
  {
180
 
    -1,
181
 
    "ServerStarted",
182
 
    (GDBusArgInfo **) &_cups_notifier_signal_info_server_started_ARG_pointers,
183
 
    NULL
184
 
  },
185
 
  "server-started"
186
 
};
187
 
 
188
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_server_restarted_ARG_text =
189
 
{
190
 
  {
191
 
    -1,
192
 
    "text",
193
 
    "s",
194
 
    NULL
195
 
  },
196
 
  FALSE
197
 
};
198
 
 
199
 
static const _ExtendedGDBusArgInfo * const _cups_notifier_signal_info_server_restarted_ARG_pointers[] =
200
 
{
201
 
  &_cups_notifier_signal_info_server_restarted_ARG_text,
202
 
  NULL
203
 
};
204
 
 
205
 
static const _ExtendedGDBusSignalInfo _cups_notifier_signal_info_server_restarted =
206
 
{
207
 
  {
208
 
    -1,
209
 
    "ServerRestarted",
210
 
    (GDBusArgInfo **) &_cups_notifier_signal_info_server_restarted_ARG_pointers,
211
 
    NULL
212
 
  },
213
 
  "server-restarted"
214
 
};
215
 
 
216
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_server_stopped_ARG_text =
217
 
{
218
 
  {
219
 
    -1,
220
 
    "text",
221
 
    "s",
222
 
    NULL
223
 
  },
224
 
  FALSE
225
 
};
226
 
 
227
 
static const _ExtendedGDBusArgInfo * const _cups_notifier_signal_info_server_stopped_ARG_pointers[] =
228
 
{
229
 
  &_cups_notifier_signal_info_server_stopped_ARG_text,
230
 
  NULL
231
 
};
232
 
 
233
 
static const _ExtendedGDBusSignalInfo _cups_notifier_signal_info_server_stopped =
234
 
{
235
 
  {
236
 
    -1,
237
 
    "ServerStopped",
238
 
    (GDBusArgInfo **) &_cups_notifier_signal_info_server_stopped_ARG_pointers,
239
 
    NULL
240
 
  },
241
 
  "server-stopped"
242
 
};
243
 
 
244
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_server_audit_ARG_text =
245
 
{
246
 
  {
247
 
    -1,
248
 
    "text",
249
 
    "s",
250
 
    NULL
251
 
  },
252
 
  FALSE
253
 
};
254
 
 
255
 
static const _ExtendedGDBusArgInfo * const _cups_notifier_signal_info_server_audit_ARG_pointers[] =
256
 
{
257
 
  &_cups_notifier_signal_info_server_audit_ARG_text,
258
 
  NULL
259
 
};
260
 
 
261
 
static const _ExtendedGDBusSignalInfo _cups_notifier_signal_info_server_audit =
262
 
{
263
 
  {
264
 
    -1,
265
 
    "ServerAudit",
266
 
    (GDBusArgInfo **) &_cups_notifier_signal_info_server_audit_ARG_pointers,
267
 
    NULL
268
 
  },
269
 
  "server-audit"
270
 
};
271
 
 
272
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_added_ARG_text =
273
 
{
274
 
  {
275
 
    -1,
276
 
    "text",
277
 
    "s",
278
 
    NULL
279
 
  },
280
 
  FALSE
281
 
};
282
 
 
283
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_added_ARG_printer_uri =
284
 
{
285
 
  {
286
 
    -1,
287
 
    "printer_uri",
288
 
    "s",
289
 
    NULL
290
 
  },
291
 
  FALSE
292
 
};
293
 
 
294
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_added_ARG_printer_name =
295
 
{
296
 
  {
297
 
    -1,
298
 
    "printer_name",
299
 
    "s",
300
 
    NULL
301
 
  },
302
 
  FALSE
303
 
};
304
 
 
305
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_added_ARG_printer_state =
306
 
{
307
 
  {
308
 
    -1,
309
 
    "printer_state",
310
 
    "u",
311
 
    NULL
312
 
  },
313
 
  FALSE
314
 
};
315
 
 
316
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_added_ARG_printer_state_reasons =
317
 
{
318
 
  {
319
 
    -1,
320
 
    "printer_state_reasons",
321
 
    "s",
322
 
    NULL
323
 
  },
324
 
  FALSE
325
 
};
326
 
 
327
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_added_ARG_printer_is_accepting_jobs =
328
 
{
329
 
  {
330
 
    -1,
331
 
    "printer_is_accepting_jobs",
332
 
    "b",
333
 
    NULL
334
 
  },
335
 
  FALSE
336
 
};
337
 
 
338
 
static const _ExtendedGDBusArgInfo * const _cups_notifier_signal_info_printer_added_ARG_pointers[] =
339
 
{
340
 
  &_cups_notifier_signal_info_printer_added_ARG_text,
341
 
  &_cups_notifier_signal_info_printer_added_ARG_printer_uri,
342
 
  &_cups_notifier_signal_info_printer_added_ARG_printer_name,
343
 
  &_cups_notifier_signal_info_printer_added_ARG_printer_state,
344
 
  &_cups_notifier_signal_info_printer_added_ARG_printer_state_reasons,
345
 
  &_cups_notifier_signal_info_printer_added_ARG_printer_is_accepting_jobs,
346
 
  NULL
347
 
};
348
 
 
349
 
static const _ExtendedGDBusSignalInfo _cups_notifier_signal_info_printer_added =
350
 
{
351
 
  {
352
 
    -1,
353
 
    "PrinterAdded",
354
 
    (GDBusArgInfo **) &_cups_notifier_signal_info_printer_added_ARG_pointers,
355
 
    NULL
356
 
  },
357
 
  "printer-added"
358
 
};
359
 
 
360
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_deleted_ARG_text =
361
 
{
362
 
  {
363
 
    -1,
364
 
    "text",
365
 
    "s",
366
 
    NULL
367
 
  },
368
 
  FALSE
369
 
};
370
 
 
371
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_deleted_ARG_printer_uri =
372
 
{
373
 
  {
374
 
    -1,
375
 
    "printer_uri",
376
 
    "s",
377
 
    NULL
378
 
  },
379
 
  FALSE
380
 
};
381
 
 
382
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_deleted_ARG_printer_name =
383
 
{
384
 
  {
385
 
    -1,
386
 
    "printer_name",
387
 
    "s",
388
 
    NULL
389
 
  },
390
 
  FALSE
391
 
};
392
 
 
393
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_deleted_ARG_printer_state =
394
 
{
395
 
  {
396
 
    -1,
397
 
    "printer_state",
398
 
    "u",
399
 
    NULL
400
 
  },
401
 
  FALSE
402
 
};
403
 
 
404
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_deleted_ARG_printer_state_reasons =
405
 
{
406
 
  {
407
 
    -1,
408
 
    "printer_state_reasons",
409
 
    "s",
410
 
    NULL
411
 
  },
412
 
  FALSE
413
 
};
414
 
 
415
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_deleted_ARG_printer_is_accepting_jobs =
416
 
{
417
 
  {
418
 
    -1,
419
 
    "printer_is_accepting_jobs",
420
 
    "b",
421
 
    NULL
422
 
  },
423
 
  FALSE
424
 
};
425
 
 
426
 
static const _ExtendedGDBusArgInfo * const _cups_notifier_signal_info_printer_deleted_ARG_pointers[] =
427
 
{
428
 
  &_cups_notifier_signal_info_printer_deleted_ARG_text,
429
 
  &_cups_notifier_signal_info_printer_deleted_ARG_printer_uri,
430
 
  &_cups_notifier_signal_info_printer_deleted_ARG_printer_name,
431
 
  &_cups_notifier_signal_info_printer_deleted_ARG_printer_state,
432
 
  &_cups_notifier_signal_info_printer_deleted_ARG_printer_state_reasons,
433
 
  &_cups_notifier_signal_info_printer_deleted_ARG_printer_is_accepting_jobs,
434
 
  NULL
435
 
};
436
 
 
437
 
static const _ExtendedGDBusSignalInfo _cups_notifier_signal_info_printer_deleted =
438
 
{
439
 
  {
440
 
    -1,
441
 
    "PrinterDeleted",
442
 
    (GDBusArgInfo **) &_cups_notifier_signal_info_printer_deleted_ARG_pointers,
443
 
    NULL
444
 
  },
445
 
  "printer-deleted"
446
 
};
447
 
 
448
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_modified_ARG_text =
449
 
{
450
 
  {
451
 
    -1,
452
 
    "text",
453
 
    "s",
454
 
    NULL
455
 
  },
456
 
  FALSE
457
 
};
458
 
 
459
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_modified_ARG_printer_uri =
460
 
{
461
 
  {
462
 
    -1,
463
 
    "printer_uri",
464
 
    "s",
465
 
    NULL
466
 
  },
467
 
  FALSE
468
 
};
469
 
 
470
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_modified_ARG_printer_name =
471
 
{
472
 
  {
473
 
    -1,
474
 
    "printer_name",
475
 
    "s",
476
 
    NULL
477
 
  },
478
 
  FALSE
479
 
};
480
 
 
481
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_modified_ARG_printer_state =
482
 
{
483
 
  {
484
 
    -1,
485
 
    "printer_state",
486
 
    "u",
487
 
    NULL
488
 
  },
489
 
  FALSE
490
 
};
491
 
 
492
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_modified_ARG_printer_state_reasons =
493
 
{
494
 
  {
495
 
    -1,
496
 
    "printer_state_reasons",
497
 
    "s",
498
 
    NULL
499
 
  },
500
 
  FALSE
501
 
};
502
 
 
503
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_modified_ARG_printer_is_accepting_jobs =
504
 
{
505
 
  {
506
 
    -1,
507
 
    "printer_is_accepting_jobs",
508
 
    "b",
509
 
    NULL
510
 
  },
511
 
  FALSE
512
 
};
513
 
 
514
 
static const _ExtendedGDBusArgInfo * const _cups_notifier_signal_info_printer_modified_ARG_pointers[] =
515
 
{
516
 
  &_cups_notifier_signal_info_printer_modified_ARG_text,
517
 
  &_cups_notifier_signal_info_printer_modified_ARG_printer_uri,
518
 
  &_cups_notifier_signal_info_printer_modified_ARG_printer_name,
519
 
  &_cups_notifier_signal_info_printer_modified_ARG_printer_state,
520
 
  &_cups_notifier_signal_info_printer_modified_ARG_printer_state_reasons,
521
 
  &_cups_notifier_signal_info_printer_modified_ARG_printer_is_accepting_jobs,
522
 
  NULL
523
 
};
524
 
 
525
 
static const _ExtendedGDBusSignalInfo _cups_notifier_signal_info_printer_modified =
526
 
{
527
 
  {
528
 
    -1,
529
 
    "PrinterModified",
530
 
    (GDBusArgInfo **) &_cups_notifier_signal_info_printer_modified_ARG_pointers,
531
 
    NULL
532
 
  },
533
 
  "printer-modified"
534
 
};
535
 
 
536
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_restarted_ARG_text =
537
 
{
538
 
  {
539
 
    -1,
540
 
    "text",
541
 
    "s",
542
 
    NULL
543
 
  },
544
 
  FALSE
545
 
};
546
 
 
547
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_restarted_ARG_printer_uri =
548
 
{
549
 
  {
550
 
    -1,
551
 
    "printer_uri",
552
 
    "s",
553
 
    NULL
554
 
  },
555
 
  FALSE
556
 
};
557
 
 
558
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_restarted_ARG_printer_name =
559
 
{
560
 
  {
561
 
    -1,
562
 
    "printer_name",
563
 
    "s",
564
 
    NULL
565
 
  },
566
 
  FALSE
567
 
};
568
 
 
569
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_restarted_ARG_printer_state =
570
 
{
571
 
  {
572
 
    -1,
573
 
    "printer_state",
574
 
    "u",
575
 
    NULL
576
 
  },
577
 
  FALSE
578
 
};
579
 
 
580
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_restarted_ARG_printer_state_reasons =
581
 
{
582
 
  {
583
 
    -1,
584
 
    "printer_state_reasons",
585
 
    "s",
586
 
    NULL
587
 
  },
588
 
  FALSE
589
 
};
590
 
 
591
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_restarted_ARG_printer_is_accepting_jobs =
592
 
{
593
 
  {
594
 
    -1,
595
 
    "printer_is_accepting_jobs",
596
 
    "b",
597
 
    NULL
598
 
  },
599
 
  FALSE
600
 
};
601
 
 
602
 
static const _ExtendedGDBusArgInfo * const _cups_notifier_signal_info_printer_restarted_ARG_pointers[] =
603
 
{
604
 
  &_cups_notifier_signal_info_printer_restarted_ARG_text,
605
 
  &_cups_notifier_signal_info_printer_restarted_ARG_printer_uri,
606
 
  &_cups_notifier_signal_info_printer_restarted_ARG_printer_name,
607
 
  &_cups_notifier_signal_info_printer_restarted_ARG_printer_state,
608
 
  &_cups_notifier_signal_info_printer_restarted_ARG_printer_state_reasons,
609
 
  &_cups_notifier_signal_info_printer_restarted_ARG_printer_is_accepting_jobs,
610
 
  NULL
611
 
};
612
 
 
613
 
static const _ExtendedGDBusSignalInfo _cups_notifier_signal_info_printer_restarted =
614
 
{
615
 
  {
616
 
    -1,
617
 
    "PrinterRestarted",
618
 
    (GDBusArgInfo **) &_cups_notifier_signal_info_printer_restarted_ARG_pointers,
619
 
    NULL
620
 
  },
621
 
  "printer-restarted"
622
 
};
623
 
 
624
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_stopped_ARG_text =
625
 
{
626
 
  {
627
 
    -1,
628
 
    "text",
629
 
    "s",
630
 
    NULL
631
 
  },
632
 
  FALSE
633
 
};
634
 
 
635
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_stopped_ARG_printer_uri =
636
 
{
637
 
  {
638
 
    -1,
639
 
    "printer_uri",
640
 
    "s",
641
 
    NULL
642
 
  },
643
 
  FALSE
644
 
};
645
 
 
646
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_stopped_ARG_printer_name =
647
 
{
648
 
  {
649
 
    -1,
650
 
    "printer_name",
651
 
    "s",
652
 
    NULL
653
 
  },
654
 
  FALSE
655
 
};
656
 
 
657
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_stopped_ARG_printer_state =
658
 
{
659
 
  {
660
 
    -1,
661
 
    "printer_state",
662
 
    "u",
663
 
    NULL
664
 
  },
665
 
  FALSE
666
 
};
667
 
 
668
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_stopped_ARG_printer_state_reasons =
669
 
{
670
 
  {
671
 
    -1,
672
 
    "printer_state_reasons",
673
 
    "s",
674
 
    NULL
675
 
  },
676
 
  FALSE
677
 
};
678
 
 
679
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_stopped_ARG_printer_is_accepting_jobs =
680
 
{
681
 
  {
682
 
    -1,
683
 
    "printer_is_accepting_jobs",
684
 
    "b",
685
 
    NULL
686
 
  },
687
 
  FALSE
688
 
};
689
 
 
690
 
static const _ExtendedGDBusArgInfo * const _cups_notifier_signal_info_printer_stopped_ARG_pointers[] =
691
 
{
692
 
  &_cups_notifier_signal_info_printer_stopped_ARG_text,
693
 
  &_cups_notifier_signal_info_printer_stopped_ARG_printer_uri,
694
 
  &_cups_notifier_signal_info_printer_stopped_ARG_printer_name,
695
 
  &_cups_notifier_signal_info_printer_stopped_ARG_printer_state,
696
 
  &_cups_notifier_signal_info_printer_stopped_ARG_printer_state_reasons,
697
 
  &_cups_notifier_signal_info_printer_stopped_ARG_printer_is_accepting_jobs,
698
 
  NULL
699
 
};
700
 
 
701
 
static const _ExtendedGDBusSignalInfo _cups_notifier_signal_info_printer_stopped =
702
 
{
703
 
  {
704
 
    -1,
705
 
    "PrinterStopped",
706
 
    (GDBusArgInfo **) &_cups_notifier_signal_info_printer_stopped_ARG_pointers,
707
 
    NULL
708
 
  },
709
 
  "printer-stopped"
710
 
};
711
 
 
712
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_shutdown_ARG_text =
713
 
{
714
 
  {
715
 
    -1,
716
 
    "text",
717
 
    "s",
718
 
    NULL
719
 
  },
720
 
  FALSE
721
 
};
722
 
 
723
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_shutdown_ARG_printer_uri =
724
 
{
725
 
  {
726
 
    -1,
727
 
    "printer_uri",
728
 
    "s",
729
 
    NULL
730
 
  },
731
 
  FALSE
732
 
};
733
 
 
734
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_shutdown_ARG_printer_name =
735
 
{
736
 
  {
737
 
    -1,
738
 
    "printer_name",
739
 
    "s",
740
 
    NULL
741
 
  },
742
 
  FALSE
743
 
};
744
 
 
745
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_shutdown_ARG_printer_state =
746
 
{
747
 
  {
748
 
    -1,
749
 
    "printer_state",
750
 
    "u",
751
 
    NULL
752
 
  },
753
 
  FALSE
754
 
};
755
 
 
756
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_shutdown_ARG_printer_state_reasons =
757
 
{
758
 
  {
759
 
    -1,
760
 
    "printer_state_reasons",
761
 
    "s",
762
 
    NULL
763
 
  },
764
 
  FALSE
765
 
};
766
 
 
767
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_shutdown_ARG_printer_is_accepting_jobs =
768
 
{
769
 
  {
770
 
    -1,
771
 
    "printer_is_accepting_jobs",
772
 
    "b",
773
 
    NULL
774
 
  },
775
 
  FALSE
776
 
};
777
 
 
778
 
static const _ExtendedGDBusArgInfo * const _cups_notifier_signal_info_printer_shutdown_ARG_pointers[] =
779
 
{
780
 
  &_cups_notifier_signal_info_printer_shutdown_ARG_text,
781
 
  &_cups_notifier_signal_info_printer_shutdown_ARG_printer_uri,
782
 
  &_cups_notifier_signal_info_printer_shutdown_ARG_printer_name,
783
 
  &_cups_notifier_signal_info_printer_shutdown_ARG_printer_state,
784
 
  &_cups_notifier_signal_info_printer_shutdown_ARG_printer_state_reasons,
785
 
  &_cups_notifier_signal_info_printer_shutdown_ARG_printer_is_accepting_jobs,
786
 
  NULL
787
 
};
788
 
 
789
 
static const _ExtendedGDBusSignalInfo _cups_notifier_signal_info_printer_shutdown =
790
 
{
791
 
  {
792
 
    -1,
793
 
    "PrinterShutdown",
794
 
    (GDBusArgInfo **) &_cups_notifier_signal_info_printer_shutdown_ARG_pointers,
795
 
    NULL
796
 
  },
797
 
  "printer-shutdown"
798
 
};
799
 
 
800
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_state_changed_ARG_text =
801
 
{
802
 
  {
803
 
    -1,
804
 
    "text",
805
 
    "s",
806
 
    NULL
807
 
  },
808
 
  FALSE
809
 
};
810
 
 
811
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_state_changed_ARG_printer_uri =
812
 
{
813
 
  {
814
 
    -1,
815
 
    "printer_uri",
816
 
    "s",
817
 
    NULL
818
 
  },
819
 
  FALSE
820
 
};
821
 
 
822
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_state_changed_ARG_printer_name =
823
 
{
824
 
  {
825
 
    -1,
826
 
    "printer_name",
827
 
    "s",
828
 
    NULL
829
 
  },
830
 
  FALSE
831
 
};
832
 
 
833
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_state_changed_ARG_printer_state =
834
 
{
835
 
  {
836
 
    -1,
837
 
    "printer_state",
838
 
    "u",
839
 
    NULL
840
 
  },
841
 
  FALSE
842
 
};
843
 
 
844
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_state_changed_ARG_printer_state_reasons =
845
 
{
846
 
  {
847
 
    -1,
848
 
    "printer_state_reasons",
849
 
    "s",
850
 
    NULL
851
 
  },
852
 
  FALSE
853
 
};
854
 
 
855
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_state_changed_ARG_printer_is_accepting_jobs =
856
 
{
857
 
  {
858
 
    -1,
859
 
    "printer_is_accepting_jobs",
860
 
    "b",
861
 
    NULL
862
 
  },
863
 
  FALSE
864
 
};
865
 
 
866
 
static const _ExtendedGDBusArgInfo * const _cups_notifier_signal_info_printer_state_changed_ARG_pointers[] =
867
 
{
868
 
  &_cups_notifier_signal_info_printer_state_changed_ARG_text,
869
 
  &_cups_notifier_signal_info_printer_state_changed_ARG_printer_uri,
870
 
  &_cups_notifier_signal_info_printer_state_changed_ARG_printer_name,
871
 
  &_cups_notifier_signal_info_printer_state_changed_ARG_printer_state,
872
 
  &_cups_notifier_signal_info_printer_state_changed_ARG_printer_state_reasons,
873
 
  &_cups_notifier_signal_info_printer_state_changed_ARG_printer_is_accepting_jobs,
874
 
  NULL
875
 
};
876
 
 
877
 
static const _ExtendedGDBusSignalInfo _cups_notifier_signal_info_printer_state_changed =
878
 
{
879
 
  {
880
 
    -1,
881
 
    "PrinterStateChanged",
882
 
    (GDBusArgInfo **) &_cups_notifier_signal_info_printer_state_changed_ARG_pointers,
883
 
    NULL
884
 
  },
885
 
  "printer-state-changed"
886
 
};
887
 
 
888
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_finishings_changed_ARG_text =
889
 
{
890
 
  {
891
 
    -1,
892
 
    "text",
893
 
    "s",
894
 
    NULL
895
 
  },
896
 
  FALSE
897
 
};
898
 
 
899
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_finishings_changed_ARG_printer_uri =
900
 
{
901
 
  {
902
 
    -1,
903
 
    "printer_uri",
904
 
    "s",
905
 
    NULL
906
 
  },
907
 
  FALSE
908
 
};
909
 
 
910
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_finishings_changed_ARG_printer_name =
911
 
{
912
 
  {
913
 
    -1,
914
 
    "printer_name",
915
 
    "s",
916
 
    NULL
917
 
  },
918
 
  FALSE
919
 
};
920
 
 
921
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_finishings_changed_ARG_printer_state =
922
 
{
923
 
  {
924
 
    -1,
925
 
    "printer_state",
926
 
    "u",
927
 
    NULL
928
 
  },
929
 
  FALSE
930
 
};
931
 
 
932
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_finishings_changed_ARG_printer_state_reasons =
933
 
{
934
 
  {
935
 
    -1,
936
 
    "printer_state_reasons",
937
 
    "s",
938
 
    NULL
939
 
  },
940
 
  FALSE
941
 
};
942
 
 
943
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_finishings_changed_ARG_printer_is_accepting_jobs =
944
 
{
945
 
  {
946
 
    -1,
947
 
    "printer_is_accepting_jobs",
948
 
    "b",
949
 
    NULL
950
 
  },
951
 
  FALSE
952
 
};
953
 
 
954
 
static const _ExtendedGDBusArgInfo * const _cups_notifier_signal_info_printer_finishings_changed_ARG_pointers[] =
955
 
{
956
 
  &_cups_notifier_signal_info_printer_finishings_changed_ARG_text,
957
 
  &_cups_notifier_signal_info_printer_finishings_changed_ARG_printer_uri,
958
 
  &_cups_notifier_signal_info_printer_finishings_changed_ARG_printer_name,
959
 
  &_cups_notifier_signal_info_printer_finishings_changed_ARG_printer_state,
960
 
  &_cups_notifier_signal_info_printer_finishings_changed_ARG_printer_state_reasons,
961
 
  &_cups_notifier_signal_info_printer_finishings_changed_ARG_printer_is_accepting_jobs,
962
 
  NULL
963
 
};
964
 
 
965
 
static const _ExtendedGDBusSignalInfo _cups_notifier_signal_info_printer_finishings_changed =
966
 
{
967
 
  {
968
 
    -1,
969
 
    "PrinterFinishingsChanged",
970
 
    (GDBusArgInfo **) &_cups_notifier_signal_info_printer_finishings_changed_ARG_pointers,
971
 
    NULL
972
 
  },
973
 
  "printer-finishings-changed"
974
 
};
975
 
 
976
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_media_changed_ARG_text =
977
 
{
978
 
  {
979
 
    -1,
980
 
    "text",
981
 
    "s",
982
 
    NULL
983
 
  },
984
 
  FALSE
985
 
};
986
 
 
987
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_media_changed_ARG_printer_uri =
988
 
{
989
 
  {
990
 
    -1,
991
 
    "printer_uri",
992
 
    "s",
993
 
    NULL
994
 
  },
995
 
  FALSE
996
 
};
997
 
 
998
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_media_changed_ARG_printer_name =
999
 
{
1000
 
  {
1001
 
    -1,
1002
 
    "printer_name",
1003
 
    "s",
1004
 
    NULL
1005
 
  },
1006
 
  FALSE
1007
 
};
1008
 
 
1009
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_media_changed_ARG_printer_state =
1010
 
{
1011
 
  {
1012
 
    -1,
1013
 
    "printer_state",
1014
 
    "u",
1015
 
    NULL
1016
 
  },
1017
 
  FALSE
1018
 
};
1019
 
 
1020
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_media_changed_ARG_printer_state_reasons =
1021
 
{
1022
 
  {
1023
 
    -1,
1024
 
    "printer_state_reasons",
1025
 
    "s",
1026
 
    NULL
1027
 
  },
1028
 
  FALSE
1029
 
};
1030
 
 
1031
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_printer_media_changed_ARG_printer_is_accepting_jobs =
1032
 
{
1033
 
  {
1034
 
    -1,
1035
 
    "printer_is_accepting_jobs",
1036
 
    "b",
1037
 
    NULL
1038
 
  },
1039
 
  FALSE
1040
 
};
1041
 
 
1042
 
static const _ExtendedGDBusArgInfo * const _cups_notifier_signal_info_printer_media_changed_ARG_pointers[] =
1043
 
{
1044
 
  &_cups_notifier_signal_info_printer_media_changed_ARG_text,
1045
 
  &_cups_notifier_signal_info_printer_media_changed_ARG_printer_uri,
1046
 
  &_cups_notifier_signal_info_printer_media_changed_ARG_printer_name,
1047
 
  &_cups_notifier_signal_info_printer_media_changed_ARG_printer_state,
1048
 
  &_cups_notifier_signal_info_printer_media_changed_ARG_printer_state_reasons,
1049
 
  &_cups_notifier_signal_info_printer_media_changed_ARG_printer_is_accepting_jobs,
1050
 
  NULL
1051
 
};
1052
 
 
1053
 
static const _ExtendedGDBusSignalInfo _cups_notifier_signal_info_printer_media_changed =
1054
 
{
1055
 
  {
1056
 
    -1,
1057
 
    "PrinterMediaChanged",
1058
 
    (GDBusArgInfo **) &_cups_notifier_signal_info_printer_media_changed_ARG_pointers,
1059
 
    NULL
1060
 
  },
1061
 
  "printer-media-changed"
1062
 
};
1063
 
 
1064
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_job_created_ARG_text =
1065
 
{
1066
 
  {
1067
 
    -1,
1068
 
    "text",
1069
 
    "s",
1070
 
    NULL
1071
 
  },
1072
 
  FALSE
1073
 
};
1074
 
 
1075
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_job_created_ARG_printer_uri =
1076
 
{
1077
 
  {
1078
 
    -1,
1079
 
    "printer_uri",
1080
 
    "s",
1081
 
    NULL
1082
 
  },
1083
 
  FALSE
1084
 
};
1085
 
 
1086
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_job_created_ARG_printer_name =
1087
 
{
1088
 
  {
1089
 
    -1,
1090
 
    "printer_name",
1091
 
    "s",
1092
 
    NULL
1093
 
  },
1094
 
  FALSE
1095
 
};
1096
 
 
1097
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_job_created_ARG_printer_state =
1098
 
{
1099
 
  {
1100
 
    -1,
1101
 
    "printer_state",
1102
 
    "u",
1103
 
    NULL
1104
 
  },
1105
 
  FALSE
1106
 
};
1107
 
 
1108
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_job_created_ARG_printer_state_reasons =
1109
 
{
1110
 
  {
1111
 
    -1,
1112
 
    "printer_state_reasons",
1113
 
    "s",
1114
 
    NULL
1115
 
  },
1116
 
  FALSE
1117
 
};
1118
 
 
1119
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_job_created_ARG_printer_is_accepting_jobs =
1120
 
{
1121
 
  {
1122
 
    -1,
1123
 
    "printer_is_accepting_jobs",
1124
 
    "b",
1125
 
    NULL
1126
 
  },
1127
 
  FALSE
1128
 
};
1129
 
 
1130
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_job_created_ARG_job_id =
1131
 
{
1132
 
  {
1133
 
    -1,
1134
 
    "job_id",
1135
 
    "u",
1136
 
    NULL
1137
 
  },
1138
 
  FALSE
1139
 
};
1140
 
 
1141
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_job_created_ARG_job_state =
1142
 
{
1143
 
  {
1144
 
    -1,
1145
 
    "job_state",
1146
 
    "u",
1147
 
    NULL
1148
 
  },
1149
 
  FALSE
1150
 
};
1151
 
 
1152
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_job_created_ARG_job_state_reasons =
1153
 
{
1154
 
  {
1155
 
    -1,
1156
 
    "job_state_reasons",
1157
 
    "s",
1158
 
    NULL
1159
 
  },
1160
 
  FALSE
1161
 
};
1162
 
 
1163
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_job_created_ARG_job_name =
1164
 
{
1165
 
  {
1166
 
    -1,
1167
 
    "job_name",
1168
 
    "s",
1169
 
    NULL
1170
 
  },
1171
 
  FALSE
1172
 
};
1173
 
 
1174
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_job_created_ARG_job_impressions_completed =
1175
 
{
1176
 
  {
1177
 
    -1,
1178
 
    "job_impressions_completed",
1179
 
    "u",
1180
 
    NULL
1181
 
  },
1182
 
  FALSE
1183
 
};
1184
 
 
1185
 
static const _ExtendedGDBusArgInfo * const _cups_notifier_signal_info_job_created_ARG_pointers[] =
1186
 
{
1187
 
  &_cups_notifier_signal_info_job_created_ARG_text,
1188
 
  &_cups_notifier_signal_info_job_created_ARG_printer_uri,
1189
 
  &_cups_notifier_signal_info_job_created_ARG_printer_name,
1190
 
  &_cups_notifier_signal_info_job_created_ARG_printer_state,
1191
 
  &_cups_notifier_signal_info_job_created_ARG_printer_state_reasons,
1192
 
  &_cups_notifier_signal_info_job_created_ARG_printer_is_accepting_jobs,
1193
 
  &_cups_notifier_signal_info_job_created_ARG_job_id,
1194
 
  &_cups_notifier_signal_info_job_created_ARG_job_state,
1195
 
  &_cups_notifier_signal_info_job_created_ARG_job_state_reasons,
1196
 
  &_cups_notifier_signal_info_job_created_ARG_job_name,
1197
 
  &_cups_notifier_signal_info_job_created_ARG_job_impressions_completed,
1198
 
  NULL
1199
 
};
1200
 
 
1201
 
static const _ExtendedGDBusSignalInfo _cups_notifier_signal_info_job_created =
1202
 
{
1203
 
  {
1204
 
    -1,
1205
 
    "JobCreated",
1206
 
    (GDBusArgInfo **) &_cups_notifier_signal_info_job_created_ARG_pointers,
1207
 
    NULL
1208
 
  },
1209
 
  "job-created"
1210
 
};
1211
 
 
1212
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_job_completed_ARG_text =
1213
 
{
1214
 
  {
1215
 
    -1,
1216
 
    "text",
1217
 
    "s",
1218
 
    NULL
1219
 
  },
1220
 
  FALSE
1221
 
};
1222
 
 
1223
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_job_completed_ARG_printer_uri =
1224
 
{
1225
 
  {
1226
 
    -1,
1227
 
    "printer_uri",
1228
 
    "s",
1229
 
    NULL
1230
 
  },
1231
 
  FALSE
1232
 
};
1233
 
 
1234
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_job_completed_ARG_printer_name =
1235
 
{
1236
 
  {
1237
 
    -1,
1238
 
    "printer_name",
1239
 
    "s",
1240
 
    NULL
1241
 
  },
1242
 
  FALSE
1243
 
};
1244
 
 
1245
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_job_completed_ARG_printer_state =
1246
 
{
1247
 
  {
1248
 
    -1,
1249
 
    "printer_state",
1250
 
    "u",
1251
 
    NULL
1252
 
  },
1253
 
  FALSE
1254
 
};
1255
 
 
1256
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_job_completed_ARG_printer_state_reasons =
1257
 
{
1258
 
  {
1259
 
    -1,
1260
 
    "printer_state_reasons",
1261
 
    "s",
1262
 
    NULL
1263
 
  },
1264
 
  FALSE
1265
 
};
1266
 
 
1267
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_job_completed_ARG_printer_is_accepting_jobs =
1268
 
{
1269
 
  {
1270
 
    -1,
1271
 
    "printer_is_accepting_jobs",
1272
 
    "b",
1273
 
    NULL
1274
 
  },
1275
 
  FALSE
1276
 
};
1277
 
 
1278
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_job_completed_ARG_job_id =
1279
 
{
1280
 
  {
1281
 
    -1,
1282
 
    "job_id",
1283
 
    "u",
1284
 
    NULL
1285
 
  },
1286
 
  FALSE
1287
 
};
1288
 
 
1289
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_job_completed_ARG_job_state =
1290
 
{
1291
 
  {
1292
 
    -1,
1293
 
    "job_state",
1294
 
    "u",
1295
 
    NULL
1296
 
  },
1297
 
  FALSE
1298
 
};
1299
 
 
1300
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_job_completed_ARG_job_state_reasons =
1301
 
{
1302
 
  {
1303
 
    -1,
1304
 
    "job_state_reasons",
1305
 
    "s",
1306
 
    NULL
1307
 
  },
1308
 
  FALSE
1309
 
};
1310
 
 
1311
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_job_completed_ARG_job_name =
1312
 
{
1313
 
  {
1314
 
    -1,
1315
 
    "job_name",
1316
 
    "s",
1317
 
    NULL
1318
 
  },
1319
 
  FALSE
1320
 
};
1321
 
 
1322
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_job_completed_ARG_job_impressions_completed =
1323
 
{
1324
 
  {
1325
 
    -1,
1326
 
    "job_impressions_completed",
1327
 
    "u",
1328
 
    NULL
1329
 
  },
1330
 
  FALSE
1331
 
};
1332
 
 
1333
 
static const _ExtendedGDBusArgInfo * const _cups_notifier_signal_info_job_completed_ARG_pointers[] =
1334
 
{
1335
 
  &_cups_notifier_signal_info_job_completed_ARG_text,
1336
 
  &_cups_notifier_signal_info_job_completed_ARG_printer_uri,
1337
 
  &_cups_notifier_signal_info_job_completed_ARG_printer_name,
1338
 
  &_cups_notifier_signal_info_job_completed_ARG_printer_state,
1339
 
  &_cups_notifier_signal_info_job_completed_ARG_printer_state_reasons,
1340
 
  &_cups_notifier_signal_info_job_completed_ARG_printer_is_accepting_jobs,
1341
 
  &_cups_notifier_signal_info_job_completed_ARG_job_id,
1342
 
  &_cups_notifier_signal_info_job_completed_ARG_job_state,
1343
 
  &_cups_notifier_signal_info_job_completed_ARG_job_state_reasons,
1344
 
  &_cups_notifier_signal_info_job_completed_ARG_job_name,
1345
 
  &_cups_notifier_signal_info_job_completed_ARG_job_impressions_completed,
1346
 
  NULL
1347
 
};
1348
 
 
1349
 
static const _ExtendedGDBusSignalInfo _cups_notifier_signal_info_job_completed =
1350
 
{
1351
 
  {
1352
 
    -1,
1353
 
    "JobCompleted",
1354
 
    (GDBusArgInfo **) &_cups_notifier_signal_info_job_completed_ARG_pointers,
1355
 
    NULL
1356
 
  },
1357
 
  "job-completed"
1358
 
};
1359
 
 
1360
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_job_state_ARG_text =
1361
 
{
1362
 
  {
1363
 
    -1,
1364
 
    "text",
1365
 
    "s",
1366
 
    NULL
1367
 
  },
1368
 
  FALSE
1369
 
};
1370
 
 
1371
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_job_state_ARG_printer_uri =
1372
 
{
1373
 
  {
1374
 
    -1,
1375
 
    "printer_uri",
1376
 
    "s",
1377
 
    NULL
1378
 
  },
1379
 
  FALSE
1380
 
};
1381
 
 
1382
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_job_state_ARG_printer_name =
1383
 
{
1384
 
  {
1385
 
    -1,
1386
 
    "printer_name",
1387
 
    "s",
1388
 
    NULL
1389
 
  },
1390
 
  FALSE
1391
 
};
1392
 
 
1393
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_job_state_ARG_printer_state =
1394
 
{
1395
 
  {
1396
 
    -1,
1397
 
    "printer_state",
1398
 
    "u",
1399
 
    NULL
1400
 
  },
1401
 
  FALSE
1402
 
};
1403
 
 
1404
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_job_state_ARG_printer_state_reasons =
1405
 
{
1406
 
  {
1407
 
    -1,
1408
 
    "printer_state_reasons",
1409
 
    "s",
1410
 
    NULL
1411
 
  },
1412
 
  FALSE
1413
 
};
1414
 
 
1415
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_job_state_ARG_printer_is_accepting_jobs =
1416
 
{
1417
 
  {
1418
 
    -1,
1419
 
    "printer_is_accepting_jobs",
1420
 
    "b",
1421
 
    NULL
1422
 
  },
1423
 
  FALSE
1424
 
};
1425
 
 
1426
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_job_state_ARG_job_id =
1427
 
{
1428
 
  {
1429
 
    -1,
1430
 
    "job_id",
1431
 
    "u",
1432
 
    NULL
1433
 
  },
1434
 
  FALSE
1435
 
};
1436
 
 
1437
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_job_state_ARG_job_state =
1438
 
{
1439
 
  {
1440
 
    -1,
1441
 
    "job_state",
1442
 
    "u",
1443
 
    NULL
1444
 
  },
1445
 
  FALSE
1446
 
};
1447
 
 
1448
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_job_state_ARG_job_state_reasons =
1449
 
{
1450
 
  {
1451
 
    -1,
1452
 
    "job_state_reasons",
1453
 
    "s",
1454
 
    NULL
1455
 
  },
1456
 
  FALSE
1457
 
};
1458
 
 
1459
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_job_state_ARG_job_name =
1460
 
{
1461
 
  {
1462
 
    -1,
1463
 
    "job_name",
1464
 
    "s",
1465
 
    NULL
1466
 
  },
1467
 
  FALSE
1468
 
};
1469
 
 
1470
 
static const _ExtendedGDBusArgInfo _cups_notifier_signal_info_job_state_ARG_job_impressions_completed =
1471
 
{
1472
 
  {
1473
 
    -1,
1474
 
    "job_impressions_completed",
1475
 
    "u",
1476
 
    NULL
1477
 
  },
1478
 
  FALSE
1479
 
};
1480
 
 
1481
 
static const _ExtendedGDBusArgInfo * const _cups_notifier_signal_info_job_state_ARG_pointers[] =
1482
 
{
1483
 
  &_cups_notifier_signal_info_job_state_ARG_text,
1484
 
  &_cups_notifier_signal_info_job_state_ARG_printer_uri,
1485
 
  &_cups_notifier_signal_info_job_state_ARG_printer_name,
1486
 
  &_cups_notifier_signal_info_job_state_ARG_printer_state,
1487
 
  &_cups_notifier_signal_info_job_state_ARG_printer_state_reasons,
1488
 
  &_cups_notifier_signal_info_job_state_ARG_printer_is_accepting_jobs,
1489
 
  &_cups_notifier_signal_info_job_state_ARG_job_id,
1490
 
  &_cups_notifier_signal_info_job_state_ARG_job_state,
1491
 
  &_cups_notifier_signal_info_job_state_ARG_job_state_reasons,
1492
 
  &_cups_notifier_signal_info_job_state_ARG_job_name,
1493
 
  &_cups_notifier_signal_info_job_state_ARG_job_impressions_completed,
1494
 
  NULL
1495
 
};
1496
 
 
1497
 
static const _ExtendedGDBusSignalInfo _cups_notifier_signal_info_job_state =
1498
 
{
1499
 
  {
1500
 
    -1,
1501
 
    "JobState",
1502
 
    (GDBusArgInfo **) &_cups_notifier_signal_info_job_state_ARG_pointers,
1503
 
    NULL
1504
 
  },
1505
 
  "job-state"
1506
 
};
1507
 
 
1508
 
static const _ExtendedGDBusSignalInfo * const _cups_notifier_signal_info_pointers[] =
1509
 
{
1510
 
  &_cups_notifier_signal_info_server_started,
1511
 
  &_cups_notifier_signal_info_server_restarted,
1512
 
  &_cups_notifier_signal_info_server_stopped,
1513
 
  &_cups_notifier_signal_info_server_audit,
1514
 
  &_cups_notifier_signal_info_printer_added,
1515
 
  &_cups_notifier_signal_info_printer_deleted,
1516
 
  &_cups_notifier_signal_info_printer_modified,
1517
 
  &_cups_notifier_signal_info_printer_restarted,
1518
 
  &_cups_notifier_signal_info_printer_stopped,
1519
 
  &_cups_notifier_signal_info_printer_shutdown,
1520
 
  &_cups_notifier_signal_info_printer_state_changed,
1521
 
  &_cups_notifier_signal_info_printer_finishings_changed,
1522
 
  &_cups_notifier_signal_info_printer_media_changed,
1523
 
  &_cups_notifier_signal_info_job_created,
1524
 
  &_cups_notifier_signal_info_job_completed,
1525
 
  &_cups_notifier_signal_info_job_state,
1526
 
  NULL
1527
 
};
1528
 
 
1529
 
static const _ExtendedGDBusInterfaceInfo _cups_notifier_interface_info =
1530
 
{
1531
 
  {
1532
 
    -1,
1533
 
    "org.cups.cupsd.Notifier",
1534
 
    NULL,
1535
 
    (GDBusSignalInfo **) &_cups_notifier_signal_info_pointers,
1536
 
    NULL,
1537
 
    NULL
1538
 
  },
1539
 
  "notifier",
1540
 
};
1541
 
 
1542
 
 
1543
 
/**
1544
 
 * cups_notifier_interface_info:
1545
 
 *
1546
 
 * Gets a machine-readable description of the <link linkend="gdbus-interface-org-cups-cupsd-Notifier.top_of_page">org.cups.cupsd.Notifier</link> D-Bus interface.
1547
 
 *
1548
 
 * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free.
1549
 
 */
1550
 
GDBusInterfaceInfo *
1551
 
cups_notifier_interface_info (void)
1552
 
{
1553
 
  return (GDBusInterfaceInfo *) &_cups_notifier_interface_info;
1554
 
}
1555
 
 
1556
 
/**
1557
 
 * cups_notifier_override_properties:
1558
 
 * @klass: The class structure for a #GObject<!-- -->-derived class.
1559
 
 * @property_id_begin: The property id to assign to the first overridden property.
1560
 
 *
1561
 
 * Overrides all #GObject properties in the #CupsNotifier interface for a concrete class.
1562
 
 * The properties are overridden in the order they are defined.
1563
 
 *
1564
 
 * Returns: The last property id.
1565
 
 */
1566
 
guint
1567
 
cups_notifier_override_properties (GObjectClass *klass, guint property_id_begin)
1568
 
{
1569
 
  return property_id_begin - 1;
1570
 
}
1571
 
 
1572
 
 
1573
 
 
1574
 
/**
1575
 
 * CupsNotifier:
1576
 
 *
1577
 
 * Abstract interface type for the D-Bus interface <link linkend="gdbus-interface-org-cups-cupsd-Notifier.top_of_page">org.cups.cupsd.Notifier</link>.
1578
 
 */
1579
 
 
1580
 
/**
1581
 
 * CupsNotifierIface:
1582
 
 * @parent_iface: The parent interface.
1583
 
 * @job_completed: Handler for the #CupsNotifier::job-completed signal.
1584
 
 * @job_created: Handler for the #CupsNotifier::job-created signal.
1585
 
 * @job_state: Handler for the #CupsNotifier::job-state signal.
1586
 
 * @printer_added: Handler for the #CupsNotifier::printer-added signal.
1587
 
 * @printer_deleted: Handler for the #CupsNotifier::printer-deleted signal.
1588
 
 * @printer_finishings_changed: Handler for the #CupsNotifier::printer-finishings-changed signal.
1589
 
 * @printer_media_changed: Handler for the #CupsNotifier::printer-media-changed signal.
1590
 
 * @printer_modified: Handler for the #CupsNotifier::printer-modified signal.
1591
 
 * @printer_restarted: Handler for the #CupsNotifier::printer-restarted signal.
1592
 
 * @printer_shutdown: Handler for the #CupsNotifier::printer-shutdown signal.
1593
 
 * @printer_state_changed: Handler for the #CupsNotifier::printer-state-changed signal.
1594
 
 * @printer_stopped: Handler for the #CupsNotifier::printer-stopped signal.
1595
 
 * @server_audit: Handler for the #CupsNotifier::server-audit signal.
1596
 
 * @server_restarted: Handler for the #CupsNotifier::server-restarted signal.
1597
 
 * @server_started: Handler for the #CupsNotifier::server-started signal.
1598
 
 * @server_stopped: Handler for the #CupsNotifier::server-stopped signal.
1599
 
 *
1600
 
 * Virtual table for the D-Bus interface <link linkend="gdbus-interface-org-cups-cupsd-Notifier.top_of_page">org.cups.cupsd.Notifier</link>.
1601
 
 */
1602
 
 
1603
 
static void
1604
 
cups_notifier_default_init (CupsNotifierIface *iface)
1605
 
{
1606
 
  /* GObject signals for received D-Bus signals: */
1607
 
  /**
1608
 
   * CupsNotifier::server-started:
1609
 
   * @object: A #CupsNotifier.
1610
 
   * @arg_text: Argument.
1611
 
   *
1612
 
   * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-cups-cupsd-Notifier.ServerStarted">"ServerStarted"</link> is received.
1613
 
   *
1614
 
   * 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.
1615
 
   */
1616
 
  g_signal_new ("server-started",
1617
 
    G_TYPE_FROM_INTERFACE (iface),
1618
 
    G_SIGNAL_RUN_LAST,
1619
 
    G_STRUCT_OFFSET (CupsNotifierIface, server_started),
1620
 
    NULL,
1621
 
    NULL,
1622
 
    g_cclosure_marshal_generic,
1623
 
    G_TYPE_NONE,
1624
 
    1, G_TYPE_STRING);
1625
 
 
1626
 
  /**
1627
 
   * CupsNotifier::server-restarted:
1628
 
   * @object: A #CupsNotifier.
1629
 
   * @arg_text: Argument.
1630
 
   *
1631
 
   * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-cups-cupsd-Notifier.ServerRestarted">"ServerRestarted"</link> is received.
1632
 
   *
1633
 
   * 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.
1634
 
   */
1635
 
  g_signal_new ("server-restarted",
1636
 
    G_TYPE_FROM_INTERFACE (iface),
1637
 
    G_SIGNAL_RUN_LAST,
1638
 
    G_STRUCT_OFFSET (CupsNotifierIface, server_restarted),
1639
 
    NULL,
1640
 
    NULL,
1641
 
    g_cclosure_marshal_generic,
1642
 
    G_TYPE_NONE,
1643
 
    1, G_TYPE_STRING);
1644
 
 
1645
 
  /**
1646
 
   * CupsNotifier::server-stopped:
1647
 
   * @object: A #CupsNotifier.
1648
 
   * @arg_text: Argument.
1649
 
   *
1650
 
   * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-cups-cupsd-Notifier.ServerStopped">"ServerStopped"</link> is received.
1651
 
   *
1652
 
   * 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.
1653
 
   */
1654
 
  g_signal_new ("server-stopped",
1655
 
    G_TYPE_FROM_INTERFACE (iface),
1656
 
    G_SIGNAL_RUN_LAST,
1657
 
    G_STRUCT_OFFSET (CupsNotifierIface, server_stopped),
1658
 
    NULL,
1659
 
    NULL,
1660
 
    g_cclosure_marshal_generic,
1661
 
    G_TYPE_NONE,
1662
 
    1, G_TYPE_STRING);
1663
 
 
1664
 
  /**
1665
 
   * CupsNotifier::server-audit:
1666
 
   * @object: A #CupsNotifier.
1667
 
   * @arg_text: Argument.
1668
 
   *
1669
 
   * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-cups-cupsd-Notifier.ServerAudit">"ServerAudit"</link> is received.
1670
 
   *
1671
 
   * 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.
1672
 
   */
1673
 
  g_signal_new ("server-audit",
1674
 
    G_TYPE_FROM_INTERFACE (iface),
1675
 
    G_SIGNAL_RUN_LAST,
1676
 
    G_STRUCT_OFFSET (CupsNotifierIface, server_audit),
1677
 
    NULL,
1678
 
    NULL,
1679
 
    g_cclosure_marshal_generic,
1680
 
    G_TYPE_NONE,
1681
 
    1, G_TYPE_STRING);
1682
 
 
1683
 
  /**
1684
 
   * CupsNotifier::printer-added:
1685
 
   * @object: A #CupsNotifier.
1686
 
   * @arg_text: Argument.
1687
 
   * @arg_printer_uri: Argument.
1688
 
   * @arg_printer_name: Argument.
1689
 
   * @arg_printer_state: Argument.
1690
 
   * @arg_printer_state_reasons: Argument.
1691
 
   * @arg_printer_is_accepting_jobs: Argument.
1692
 
   *
1693
 
   * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-cups-cupsd-Notifier.PrinterAdded">"PrinterAdded"</link> is received.
1694
 
   *
1695
 
   * 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.
1696
 
   */
1697
 
  g_signal_new ("printer-added",
1698
 
    G_TYPE_FROM_INTERFACE (iface),
1699
 
    G_SIGNAL_RUN_LAST,
1700
 
    G_STRUCT_OFFSET (CupsNotifierIface, printer_added),
1701
 
    NULL,
1702
 
    NULL,
1703
 
    g_cclosure_marshal_generic,
1704
 
    G_TYPE_NONE,
1705
 
    6, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_UINT, G_TYPE_STRING, G_TYPE_BOOLEAN);
1706
 
 
1707
 
  /**
1708
 
   * CupsNotifier::printer-deleted:
1709
 
   * @object: A #CupsNotifier.
1710
 
   * @arg_text: Argument.
1711
 
   * @arg_printer_uri: Argument.
1712
 
   * @arg_printer_name: Argument.
1713
 
   * @arg_printer_state: Argument.
1714
 
   * @arg_printer_state_reasons: Argument.
1715
 
   * @arg_printer_is_accepting_jobs: Argument.
1716
 
   *
1717
 
   * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-cups-cupsd-Notifier.PrinterDeleted">"PrinterDeleted"</link> is received.
1718
 
   *
1719
 
   * 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.
1720
 
   */
1721
 
  g_signal_new ("printer-deleted",
1722
 
    G_TYPE_FROM_INTERFACE (iface),
1723
 
    G_SIGNAL_RUN_LAST,
1724
 
    G_STRUCT_OFFSET (CupsNotifierIface, printer_deleted),
1725
 
    NULL,
1726
 
    NULL,
1727
 
    g_cclosure_marshal_generic,
1728
 
    G_TYPE_NONE,
1729
 
    6, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_UINT, G_TYPE_STRING, G_TYPE_BOOLEAN);
1730
 
 
1731
 
  /**
1732
 
   * CupsNotifier::printer-modified:
1733
 
   * @object: A #CupsNotifier.
1734
 
   * @arg_text: Argument.
1735
 
   * @arg_printer_uri: Argument.
1736
 
   * @arg_printer_name: Argument.
1737
 
   * @arg_printer_state: Argument.
1738
 
   * @arg_printer_state_reasons: Argument.
1739
 
   * @arg_printer_is_accepting_jobs: Argument.
1740
 
   *
1741
 
   * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-cups-cupsd-Notifier.PrinterModified">"PrinterModified"</link> is received.
1742
 
   *
1743
 
   * 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.
1744
 
   */
1745
 
  g_signal_new ("printer-modified",
1746
 
    G_TYPE_FROM_INTERFACE (iface),
1747
 
    G_SIGNAL_RUN_LAST,
1748
 
    G_STRUCT_OFFSET (CupsNotifierIface, printer_modified),
1749
 
    NULL,
1750
 
    NULL,
1751
 
    g_cclosure_marshal_generic,
1752
 
    G_TYPE_NONE,
1753
 
    6, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_UINT, G_TYPE_STRING, G_TYPE_BOOLEAN);
1754
 
 
1755
 
  /**
1756
 
   * CupsNotifier::printer-restarted:
1757
 
   * @object: A #CupsNotifier.
1758
 
   * @arg_text: Argument.
1759
 
   * @arg_printer_uri: Argument.
1760
 
   * @arg_printer_name: Argument.
1761
 
   * @arg_printer_state: Argument.
1762
 
   * @arg_printer_state_reasons: Argument.
1763
 
   * @arg_printer_is_accepting_jobs: Argument.
1764
 
   *
1765
 
   * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-cups-cupsd-Notifier.PrinterRestarted">"PrinterRestarted"</link> is received.
1766
 
   *
1767
 
   * 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.
1768
 
   */
1769
 
  g_signal_new ("printer-restarted",
1770
 
    G_TYPE_FROM_INTERFACE (iface),
1771
 
    G_SIGNAL_RUN_LAST,
1772
 
    G_STRUCT_OFFSET (CupsNotifierIface, printer_restarted),
1773
 
    NULL,
1774
 
    NULL,
1775
 
    g_cclosure_marshal_generic,
1776
 
    G_TYPE_NONE,
1777
 
    6, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_UINT, G_TYPE_STRING, G_TYPE_BOOLEAN);
1778
 
 
1779
 
  /**
1780
 
   * CupsNotifier::printer-stopped:
1781
 
   * @object: A #CupsNotifier.
1782
 
   * @arg_text: Argument.
1783
 
   * @arg_printer_uri: Argument.
1784
 
   * @arg_printer_name: Argument.
1785
 
   * @arg_printer_state: Argument.
1786
 
   * @arg_printer_state_reasons: Argument.
1787
 
   * @arg_printer_is_accepting_jobs: Argument.
1788
 
   *
1789
 
   * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-cups-cupsd-Notifier.PrinterStopped">"PrinterStopped"</link> is received.
1790
 
   *
1791
 
   * 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.
1792
 
   */
1793
 
  g_signal_new ("printer-stopped",
1794
 
    G_TYPE_FROM_INTERFACE (iface),
1795
 
    G_SIGNAL_RUN_LAST,
1796
 
    G_STRUCT_OFFSET (CupsNotifierIface, printer_stopped),
1797
 
    NULL,
1798
 
    NULL,
1799
 
    g_cclosure_marshal_generic,
1800
 
    G_TYPE_NONE,
1801
 
    6, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_UINT, G_TYPE_STRING, G_TYPE_BOOLEAN);
1802
 
 
1803
 
  /**
1804
 
   * CupsNotifier::printer-shutdown:
1805
 
   * @object: A #CupsNotifier.
1806
 
   * @arg_text: Argument.
1807
 
   * @arg_printer_uri: Argument.
1808
 
   * @arg_printer_name: Argument.
1809
 
   * @arg_printer_state: Argument.
1810
 
   * @arg_printer_state_reasons: Argument.
1811
 
   * @arg_printer_is_accepting_jobs: Argument.
1812
 
   *
1813
 
   * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-cups-cupsd-Notifier.PrinterShutdown">"PrinterShutdown"</link> is received.
1814
 
   *
1815
 
   * 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.
1816
 
   */
1817
 
  g_signal_new ("printer-shutdown",
1818
 
    G_TYPE_FROM_INTERFACE (iface),
1819
 
    G_SIGNAL_RUN_LAST,
1820
 
    G_STRUCT_OFFSET (CupsNotifierIface, printer_shutdown),
1821
 
    NULL,
1822
 
    NULL,
1823
 
    g_cclosure_marshal_generic,
1824
 
    G_TYPE_NONE,
1825
 
    6, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_UINT, G_TYPE_STRING, G_TYPE_BOOLEAN);
1826
 
 
1827
 
  /**
1828
 
   * CupsNotifier::printer-state-changed:
1829
 
   * @object: A #CupsNotifier.
1830
 
   * @arg_text: Argument.
1831
 
   * @arg_printer_uri: Argument.
1832
 
   * @arg_printer_name: Argument.
1833
 
   * @arg_printer_state: Argument.
1834
 
   * @arg_printer_state_reasons: Argument.
1835
 
   * @arg_printer_is_accepting_jobs: Argument.
1836
 
   *
1837
 
   * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-cups-cupsd-Notifier.PrinterStateChanged">"PrinterStateChanged"</link> is received.
1838
 
   *
1839
 
   * 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.
1840
 
   */
1841
 
  g_signal_new ("printer-state-changed",
1842
 
    G_TYPE_FROM_INTERFACE (iface),
1843
 
    G_SIGNAL_RUN_LAST,
1844
 
    G_STRUCT_OFFSET (CupsNotifierIface, printer_state_changed),
1845
 
    NULL,
1846
 
    NULL,
1847
 
    g_cclosure_marshal_generic,
1848
 
    G_TYPE_NONE,
1849
 
    6, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_UINT, G_TYPE_STRING, G_TYPE_BOOLEAN);
1850
 
 
1851
 
  /**
1852
 
   * CupsNotifier::printer-finishings-changed:
1853
 
   * @object: A #CupsNotifier.
1854
 
   * @arg_text: Argument.
1855
 
   * @arg_printer_uri: Argument.
1856
 
   * @arg_printer_name: Argument.
1857
 
   * @arg_printer_state: Argument.
1858
 
   * @arg_printer_state_reasons: Argument.
1859
 
   * @arg_printer_is_accepting_jobs: Argument.
1860
 
   *
1861
 
   * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-cups-cupsd-Notifier.PrinterFinishingsChanged">"PrinterFinishingsChanged"</link> is received.
1862
 
   *
1863
 
   * 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.
1864
 
   */
1865
 
  g_signal_new ("printer-finishings-changed",
1866
 
    G_TYPE_FROM_INTERFACE (iface),
1867
 
    G_SIGNAL_RUN_LAST,
1868
 
    G_STRUCT_OFFSET (CupsNotifierIface, printer_finishings_changed),
1869
 
    NULL,
1870
 
    NULL,
1871
 
    g_cclosure_marshal_generic,
1872
 
    G_TYPE_NONE,
1873
 
    6, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_UINT, G_TYPE_STRING, G_TYPE_BOOLEAN);
1874
 
 
1875
 
  /**
1876
 
   * CupsNotifier::printer-media-changed:
1877
 
   * @object: A #CupsNotifier.
1878
 
   * @arg_text: Argument.
1879
 
   * @arg_printer_uri: Argument.
1880
 
   * @arg_printer_name: Argument.
1881
 
   * @arg_printer_state: Argument.
1882
 
   * @arg_printer_state_reasons: Argument.
1883
 
   * @arg_printer_is_accepting_jobs: Argument.
1884
 
   *
1885
 
   * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-cups-cupsd-Notifier.PrinterMediaChanged">"PrinterMediaChanged"</link> is received.
1886
 
   *
1887
 
   * 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.
1888
 
   */
1889
 
  g_signal_new ("printer-media-changed",
1890
 
    G_TYPE_FROM_INTERFACE (iface),
1891
 
    G_SIGNAL_RUN_LAST,
1892
 
    G_STRUCT_OFFSET (CupsNotifierIface, printer_media_changed),
1893
 
    NULL,
1894
 
    NULL,
1895
 
    g_cclosure_marshal_generic,
1896
 
    G_TYPE_NONE,
1897
 
    6, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_UINT, G_TYPE_STRING, G_TYPE_BOOLEAN);
1898
 
 
1899
 
  /**
1900
 
   * CupsNotifier::job-created:
1901
 
   * @object: A #CupsNotifier.
1902
 
   * @arg_text: Argument.
1903
 
   * @arg_printer_uri: Argument.
1904
 
   * @arg_printer_name: Argument.
1905
 
   * @arg_printer_state: Argument.
1906
 
   * @arg_printer_state_reasons: Argument.
1907
 
   * @arg_printer_is_accepting_jobs: Argument.
1908
 
   * @arg_job_id: Argument.
1909
 
   * @arg_job_state: Argument.
1910
 
   * @arg_job_state_reasons: Argument.
1911
 
   * @arg_job_name: Argument.
1912
 
   * @arg_job_impressions_completed: Argument.
1913
 
   *
1914
 
   * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-cups-cupsd-Notifier.JobCreated">"JobCreated"</link> is received.
1915
 
   *
1916
 
   * 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.
1917
 
   */
1918
 
  g_signal_new ("job-created",
1919
 
    G_TYPE_FROM_INTERFACE (iface),
1920
 
    G_SIGNAL_RUN_LAST,
1921
 
    G_STRUCT_OFFSET (CupsNotifierIface, job_created),
1922
 
    NULL,
1923
 
    NULL,
1924
 
    g_cclosure_marshal_generic,
1925
 
    G_TYPE_NONE,
1926
 
    11, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_UINT, G_TYPE_STRING, G_TYPE_BOOLEAN, G_TYPE_UINT, G_TYPE_UINT, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_UINT);
1927
 
 
1928
 
  /**
1929
 
   * CupsNotifier::job-completed:
1930
 
   * @object: A #CupsNotifier.
1931
 
   * @arg_text: Argument.
1932
 
   * @arg_printer_uri: Argument.
1933
 
   * @arg_printer_name: Argument.
1934
 
   * @arg_printer_state: Argument.
1935
 
   * @arg_printer_state_reasons: Argument.
1936
 
   * @arg_printer_is_accepting_jobs: Argument.
1937
 
   * @arg_job_id: Argument.
1938
 
   * @arg_job_state: Argument.
1939
 
   * @arg_job_state_reasons: Argument.
1940
 
   * @arg_job_name: Argument.
1941
 
   * @arg_job_impressions_completed: Argument.
1942
 
   *
1943
 
   * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-cups-cupsd-Notifier.JobCompleted">"JobCompleted"</link> is received.
1944
 
   *
1945
 
   * 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.
1946
 
   */
1947
 
  g_signal_new ("job-completed",
1948
 
    G_TYPE_FROM_INTERFACE (iface),
1949
 
    G_SIGNAL_RUN_LAST,
1950
 
    G_STRUCT_OFFSET (CupsNotifierIface, job_completed),
1951
 
    NULL,
1952
 
    NULL,
1953
 
    g_cclosure_marshal_generic,
1954
 
    G_TYPE_NONE,
1955
 
    11, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_UINT, G_TYPE_STRING, G_TYPE_BOOLEAN, G_TYPE_UINT, G_TYPE_UINT, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_UINT);
1956
 
 
1957
 
  /**
1958
 
   * CupsNotifier::job-state:
1959
 
   * @object: A #CupsNotifier.
1960
 
   * @arg_text: Argument.
1961
 
   * @arg_printer_uri: Argument.
1962
 
   * @arg_printer_name: Argument.
1963
 
   * @arg_printer_state: Argument.
1964
 
   * @arg_printer_state_reasons: Argument.
1965
 
   * @arg_printer_is_accepting_jobs: Argument.
1966
 
   * @arg_job_id: Argument.
1967
 
   * @arg_job_state: Argument.
1968
 
   * @arg_job_state_reasons: Argument.
1969
 
   * @arg_job_name: Argument.
1970
 
   * @arg_job_impressions_completed: Argument.
1971
 
   *
1972
 
   * On the client-side, this signal is emitted whenever the D-Bus signal <link linkend="gdbus-signal-org-cups-cupsd-Notifier.JobState">"JobState"</link> is received.
1973
 
   *
1974
 
   * 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.
1975
 
   */
1976
 
  g_signal_new ("job-state",
1977
 
    G_TYPE_FROM_INTERFACE (iface),
1978
 
    G_SIGNAL_RUN_LAST,
1979
 
    G_STRUCT_OFFSET (CupsNotifierIface, job_state),
1980
 
    NULL,
1981
 
    NULL,
1982
 
    g_cclosure_marshal_generic,
1983
 
    G_TYPE_NONE,
1984
 
    11, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_UINT, G_TYPE_STRING, G_TYPE_BOOLEAN, G_TYPE_UINT, G_TYPE_UINT, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_UINT);
1985
 
 
1986
 
}
1987
 
 
1988
 
typedef CupsNotifierIface CupsNotifierInterface;
1989
 
G_DEFINE_INTERFACE (CupsNotifier, cups_notifier, G_TYPE_OBJECT);
1990
 
 
1991
 
/**
1992
 
 * cups_notifier_emit_server_started:
1993
 
 * @object: A #CupsNotifier.
1994
 
 * @arg_text: Argument to pass with the signal.
1995
 
 *
1996
 
 * Emits the <link linkend="gdbus-signal-org-cups-cupsd-Notifier.ServerStarted">"ServerStarted"</link> D-Bus signal.
1997
 
 */
1998
 
void
1999
 
cups_notifier_emit_server_started (
2000
 
    CupsNotifier *object,
2001
 
    const gchar *arg_text)
2002
 
{
2003
 
  g_signal_emit_by_name (object, "server-started", arg_text);
2004
 
}
2005
 
 
2006
 
/**
2007
 
 * cups_notifier_emit_server_restarted:
2008
 
 * @object: A #CupsNotifier.
2009
 
 * @arg_text: Argument to pass with the signal.
2010
 
 *
2011
 
 * Emits the <link linkend="gdbus-signal-org-cups-cupsd-Notifier.ServerRestarted">"ServerRestarted"</link> D-Bus signal.
2012
 
 */
2013
 
void
2014
 
cups_notifier_emit_server_restarted (
2015
 
    CupsNotifier *object,
2016
 
    const gchar *arg_text)
2017
 
{
2018
 
  g_signal_emit_by_name (object, "server-restarted", arg_text);
2019
 
}
2020
 
 
2021
 
/**
2022
 
 * cups_notifier_emit_server_stopped:
2023
 
 * @object: A #CupsNotifier.
2024
 
 * @arg_text: Argument to pass with the signal.
2025
 
 *
2026
 
 * Emits the <link linkend="gdbus-signal-org-cups-cupsd-Notifier.ServerStopped">"ServerStopped"</link> D-Bus signal.
2027
 
 */
2028
 
void
2029
 
cups_notifier_emit_server_stopped (
2030
 
    CupsNotifier *object,
2031
 
    const gchar *arg_text)
2032
 
{
2033
 
  g_signal_emit_by_name (object, "server-stopped", arg_text);
2034
 
}
2035
 
 
2036
 
/**
2037
 
 * cups_notifier_emit_server_audit:
2038
 
 * @object: A #CupsNotifier.
2039
 
 * @arg_text: Argument to pass with the signal.
2040
 
 *
2041
 
 * Emits the <link linkend="gdbus-signal-org-cups-cupsd-Notifier.ServerAudit">"ServerAudit"</link> D-Bus signal.
2042
 
 */
2043
 
void
2044
 
cups_notifier_emit_server_audit (
2045
 
    CupsNotifier *object,
2046
 
    const gchar *arg_text)
2047
 
{
2048
 
  g_signal_emit_by_name (object, "server-audit", arg_text);
2049
 
}
2050
 
 
2051
 
/**
2052
 
 * cups_notifier_emit_printer_added:
2053
 
 * @object: A #CupsNotifier.
2054
 
 * @arg_text: Argument to pass with the signal.
2055
 
 * @arg_printer_uri: Argument to pass with the signal.
2056
 
 * @arg_printer_name: Argument to pass with the signal.
2057
 
 * @arg_printer_state: Argument to pass with the signal.
2058
 
 * @arg_printer_state_reasons: Argument to pass with the signal.
2059
 
 * @arg_printer_is_accepting_jobs: Argument to pass with the signal.
2060
 
 *
2061
 
 * Emits the <link linkend="gdbus-signal-org-cups-cupsd-Notifier.PrinterAdded">"PrinterAdded"</link> D-Bus signal.
2062
 
 */
2063
 
void
2064
 
cups_notifier_emit_printer_added (
2065
 
    CupsNotifier *object,
2066
 
    const gchar *arg_text,
2067
 
    const gchar *arg_printer_uri,
2068
 
    const gchar *arg_printer_name,
2069
 
    guint arg_printer_state,
2070
 
    const gchar *arg_printer_state_reasons,
2071
 
    gboolean arg_printer_is_accepting_jobs)
2072
 
{
2073
 
  g_signal_emit_by_name (object, "printer-added", arg_text, arg_printer_uri, arg_printer_name, arg_printer_state, arg_printer_state_reasons, arg_printer_is_accepting_jobs);
2074
 
}
2075
 
 
2076
 
/**
2077
 
 * cups_notifier_emit_printer_deleted:
2078
 
 * @object: A #CupsNotifier.
2079
 
 * @arg_text: Argument to pass with the signal.
2080
 
 * @arg_printer_uri: Argument to pass with the signal.
2081
 
 * @arg_printer_name: Argument to pass with the signal.
2082
 
 * @arg_printer_state: Argument to pass with the signal.
2083
 
 * @arg_printer_state_reasons: Argument to pass with the signal.
2084
 
 * @arg_printer_is_accepting_jobs: Argument to pass with the signal.
2085
 
 *
2086
 
 * Emits the <link linkend="gdbus-signal-org-cups-cupsd-Notifier.PrinterDeleted">"PrinterDeleted"</link> D-Bus signal.
2087
 
 */
2088
 
void
2089
 
cups_notifier_emit_printer_deleted (
2090
 
    CupsNotifier *object,
2091
 
    const gchar *arg_text,
2092
 
    const gchar *arg_printer_uri,
2093
 
    const gchar *arg_printer_name,
2094
 
    guint arg_printer_state,
2095
 
    const gchar *arg_printer_state_reasons,
2096
 
    gboolean arg_printer_is_accepting_jobs)
2097
 
{
2098
 
  g_signal_emit_by_name (object, "printer-deleted", arg_text, arg_printer_uri, arg_printer_name, arg_printer_state, arg_printer_state_reasons, arg_printer_is_accepting_jobs);
2099
 
}
2100
 
 
2101
 
/**
2102
 
 * cups_notifier_emit_printer_modified:
2103
 
 * @object: A #CupsNotifier.
2104
 
 * @arg_text: Argument to pass with the signal.
2105
 
 * @arg_printer_uri: Argument to pass with the signal.
2106
 
 * @arg_printer_name: Argument to pass with the signal.
2107
 
 * @arg_printer_state: Argument to pass with the signal.
2108
 
 * @arg_printer_state_reasons: Argument to pass with the signal.
2109
 
 * @arg_printer_is_accepting_jobs: Argument to pass with the signal.
2110
 
 *
2111
 
 * Emits the <link linkend="gdbus-signal-org-cups-cupsd-Notifier.PrinterModified">"PrinterModified"</link> D-Bus signal.
2112
 
 */
2113
 
void
2114
 
cups_notifier_emit_printer_modified (
2115
 
    CupsNotifier *object,
2116
 
    const gchar *arg_text,
2117
 
    const gchar *arg_printer_uri,
2118
 
    const gchar *arg_printer_name,
2119
 
    guint arg_printer_state,
2120
 
    const gchar *arg_printer_state_reasons,
2121
 
    gboolean arg_printer_is_accepting_jobs)
2122
 
{
2123
 
  g_signal_emit_by_name (object, "printer-modified", arg_text, arg_printer_uri, arg_printer_name, arg_printer_state, arg_printer_state_reasons, arg_printer_is_accepting_jobs);
2124
 
}
2125
 
 
2126
 
/**
2127
 
 * cups_notifier_emit_printer_restarted:
2128
 
 * @object: A #CupsNotifier.
2129
 
 * @arg_text: Argument to pass with the signal.
2130
 
 * @arg_printer_uri: Argument to pass with the signal.
2131
 
 * @arg_printer_name: Argument to pass with the signal.
2132
 
 * @arg_printer_state: Argument to pass with the signal.
2133
 
 * @arg_printer_state_reasons: Argument to pass with the signal.
2134
 
 * @arg_printer_is_accepting_jobs: Argument to pass with the signal.
2135
 
 *
2136
 
 * Emits the <link linkend="gdbus-signal-org-cups-cupsd-Notifier.PrinterRestarted">"PrinterRestarted"</link> D-Bus signal.
2137
 
 */
2138
 
void
2139
 
cups_notifier_emit_printer_restarted (
2140
 
    CupsNotifier *object,
2141
 
    const gchar *arg_text,
2142
 
    const gchar *arg_printer_uri,
2143
 
    const gchar *arg_printer_name,
2144
 
    guint arg_printer_state,
2145
 
    const gchar *arg_printer_state_reasons,
2146
 
    gboolean arg_printer_is_accepting_jobs)
2147
 
{
2148
 
  g_signal_emit_by_name (object, "printer-restarted", arg_text, arg_printer_uri, arg_printer_name, arg_printer_state, arg_printer_state_reasons, arg_printer_is_accepting_jobs);
2149
 
}
2150
 
 
2151
 
/**
2152
 
 * cups_notifier_emit_printer_stopped:
2153
 
 * @object: A #CupsNotifier.
2154
 
 * @arg_text: Argument to pass with the signal.
2155
 
 * @arg_printer_uri: Argument to pass with the signal.
2156
 
 * @arg_printer_name: Argument to pass with the signal.
2157
 
 * @arg_printer_state: Argument to pass with the signal.
2158
 
 * @arg_printer_state_reasons: Argument to pass with the signal.
2159
 
 * @arg_printer_is_accepting_jobs: Argument to pass with the signal.
2160
 
 *
2161
 
 * Emits the <link linkend="gdbus-signal-org-cups-cupsd-Notifier.PrinterStopped">"PrinterStopped"</link> D-Bus signal.
2162
 
 */
2163
 
void
2164
 
cups_notifier_emit_printer_stopped (
2165
 
    CupsNotifier *object,
2166
 
    const gchar *arg_text,
2167
 
    const gchar *arg_printer_uri,
2168
 
    const gchar *arg_printer_name,
2169
 
    guint arg_printer_state,
2170
 
    const gchar *arg_printer_state_reasons,
2171
 
    gboolean arg_printer_is_accepting_jobs)
2172
 
{
2173
 
  g_signal_emit_by_name (object, "printer-stopped", arg_text, arg_printer_uri, arg_printer_name, arg_printer_state, arg_printer_state_reasons, arg_printer_is_accepting_jobs);
2174
 
}
2175
 
 
2176
 
/**
2177
 
 * cups_notifier_emit_printer_shutdown:
2178
 
 * @object: A #CupsNotifier.
2179
 
 * @arg_text: Argument to pass with the signal.
2180
 
 * @arg_printer_uri: Argument to pass with the signal.
2181
 
 * @arg_printer_name: Argument to pass with the signal.
2182
 
 * @arg_printer_state: Argument to pass with the signal.
2183
 
 * @arg_printer_state_reasons: Argument to pass with the signal.
2184
 
 * @arg_printer_is_accepting_jobs: Argument to pass with the signal.
2185
 
 *
2186
 
 * Emits the <link linkend="gdbus-signal-org-cups-cupsd-Notifier.PrinterShutdown">"PrinterShutdown"</link> D-Bus signal.
2187
 
 */
2188
 
void
2189
 
cups_notifier_emit_printer_shutdown (
2190
 
    CupsNotifier *object,
2191
 
    const gchar *arg_text,
2192
 
    const gchar *arg_printer_uri,
2193
 
    const gchar *arg_printer_name,
2194
 
    guint arg_printer_state,
2195
 
    const gchar *arg_printer_state_reasons,
2196
 
    gboolean arg_printer_is_accepting_jobs)
2197
 
{
2198
 
  g_signal_emit_by_name (object, "printer-shutdown", arg_text, arg_printer_uri, arg_printer_name, arg_printer_state, arg_printer_state_reasons, arg_printer_is_accepting_jobs);
2199
 
}
2200
 
 
2201
 
/**
2202
 
 * cups_notifier_emit_printer_state_changed:
2203
 
 * @object: A #CupsNotifier.
2204
 
 * @arg_text: Argument to pass with the signal.
2205
 
 * @arg_printer_uri: Argument to pass with the signal.
2206
 
 * @arg_printer_name: Argument to pass with the signal.
2207
 
 * @arg_printer_state: Argument to pass with the signal.
2208
 
 * @arg_printer_state_reasons: Argument to pass with the signal.
2209
 
 * @arg_printer_is_accepting_jobs: Argument to pass with the signal.
2210
 
 *
2211
 
 * Emits the <link linkend="gdbus-signal-org-cups-cupsd-Notifier.PrinterStateChanged">"PrinterStateChanged"</link> D-Bus signal.
2212
 
 */
2213
 
void
2214
 
cups_notifier_emit_printer_state_changed (
2215
 
    CupsNotifier *object,
2216
 
    const gchar *arg_text,
2217
 
    const gchar *arg_printer_uri,
2218
 
    const gchar *arg_printer_name,
2219
 
    guint arg_printer_state,
2220
 
    const gchar *arg_printer_state_reasons,
2221
 
    gboolean arg_printer_is_accepting_jobs)
2222
 
{
2223
 
  g_signal_emit_by_name (object, "printer-state-changed", arg_text, arg_printer_uri, arg_printer_name, arg_printer_state, arg_printer_state_reasons, arg_printer_is_accepting_jobs);
2224
 
}
2225
 
 
2226
 
/**
2227
 
 * cups_notifier_emit_printer_finishings_changed:
2228
 
 * @object: A #CupsNotifier.
2229
 
 * @arg_text: Argument to pass with the signal.
2230
 
 * @arg_printer_uri: Argument to pass with the signal.
2231
 
 * @arg_printer_name: Argument to pass with the signal.
2232
 
 * @arg_printer_state: Argument to pass with the signal.
2233
 
 * @arg_printer_state_reasons: Argument to pass with the signal.
2234
 
 * @arg_printer_is_accepting_jobs: Argument to pass with the signal.
2235
 
 *
2236
 
 * Emits the <link linkend="gdbus-signal-org-cups-cupsd-Notifier.PrinterFinishingsChanged">"PrinterFinishingsChanged"</link> D-Bus signal.
2237
 
 */
2238
 
void
2239
 
cups_notifier_emit_printer_finishings_changed (
2240
 
    CupsNotifier *object,
2241
 
    const gchar *arg_text,
2242
 
    const gchar *arg_printer_uri,
2243
 
    const gchar *arg_printer_name,
2244
 
    guint arg_printer_state,
2245
 
    const gchar *arg_printer_state_reasons,
2246
 
    gboolean arg_printer_is_accepting_jobs)
2247
 
{
2248
 
  g_signal_emit_by_name (object, "printer-finishings-changed", arg_text, arg_printer_uri, arg_printer_name, arg_printer_state, arg_printer_state_reasons, arg_printer_is_accepting_jobs);
2249
 
}
2250
 
 
2251
 
/**
2252
 
 * cups_notifier_emit_printer_media_changed:
2253
 
 * @object: A #CupsNotifier.
2254
 
 * @arg_text: Argument to pass with the signal.
2255
 
 * @arg_printer_uri: Argument to pass with the signal.
2256
 
 * @arg_printer_name: Argument to pass with the signal.
2257
 
 * @arg_printer_state: Argument to pass with the signal.
2258
 
 * @arg_printer_state_reasons: Argument to pass with the signal.
2259
 
 * @arg_printer_is_accepting_jobs: Argument to pass with the signal.
2260
 
 *
2261
 
 * Emits the <link linkend="gdbus-signal-org-cups-cupsd-Notifier.PrinterMediaChanged">"PrinterMediaChanged"</link> D-Bus signal.
2262
 
 */
2263
 
void
2264
 
cups_notifier_emit_printer_media_changed (
2265
 
    CupsNotifier *object,
2266
 
    const gchar *arg_text,
2267
 
    const gchar *arg_printer_uri,
2268
 
    const gchar *arg_printer_name,
2269
 
    guint arg_printer_state,
2270
 
    const gchar *arg_printer_state_reasons,
2271
 
    gboolean arg_printer_is_accepting_jobs)
2272
 
{
2273
 
  g_signal_emit_by_name (object, "printer-media-changed", arg_text, arg_printer_uri, arg_printer_name, arg_printer_state, arg_printer_state_reasons, arg_printer_is_accepting_jobs);
2274
 
}
2275
 
 
2276
 
/**
2277
 
 * cups_notifier_emit_job_created:
2278
 
 * @object: A #CupsNotifier.
2279
 
 * @arg_text: Argument to pass with the signal.
2280
 
 * @arg_printer_uri: Argument to pass with the signal.
2281
 
 * @arg_printer_name: Argument to pass with the signal.
2282
 
 * @arg_printer_state: Argument to pass with the signal.
2283
 
 * @arg_printer_state_reasons: Argument to pass with the signal.
2284
 
 * @arg_printer_is_accepting_jobs: Argument to pass with the signal.
2285
 
 * @arg_job_id: Argument to pass with the signal.
2286
 
 * @arg_job_state: Argument to pass with the signal.
2287
 
 * @arg_job_state_reasons: Argument to pass with the signal.
2288
 
 * @arg_job_name: Argument to pass with the signal.
2289
 
 * @arg_job_impressions_completed: Argument to pass with the signal.
2290
 
 *
2291
 
 * Emits the <link linkend="gdbus-signal-org-cups-cupsd-Notifier.JobCreated">"JobCreated"</link> D-Bus signal.
2292
 
 */
2293
 
void
2294
 
cups_notifier_emit_job_created (
2295
 
    CupsNotifier *object,
2296
 
    const gchar *arg_text,
2297
 
    const gchar *arg_printer_uri,
2298
 
    const gchar *arg_printer_name,
2299
 
    guint arg_printer_state,
2300
 
    const gchar *arg_printer_state_reasons,
2301
 
    gboolean arg_printer_is_accepting_jobs,
2302
 
    guint arg_job_id,
2303
 
    guint arg_job_state,
2304
 
    const gchar *arg_job_state_reasons,
2305
 
    const gchar *arg_job_name,
2306
 
    guint arg_job_impressions_completed)
2307
 
{
2308
 
  g_signal_emit_by_name (object, "job-created", arg_text, arg_printer_uri, arg_printer_name, arg_printer_state, arg_printer_state_reasons, arg_printer_is_accepting_jobs, arg_job_id, arg_job_state, arg_job_state_reasons, arg_job_name, arg_job_impressions_completed);
2309
 
}
2310
 
 
2311
 
/**
2312
 
 * cups_notifier_emit_job_completed:
2313
 
 * @object: A #CupsNotifier.
2314
 
 * @arg_text: Argument to pass with the signal.
2315
 
 * @arg_printer_uri: Argument to pass with the signal.
2316
 
 * @arg_printer_name: Argument to pass with the signal.
2317
 
 * @arg_printer_state: Argument to pass with the signal.
2318
 
 * @arg_printer_state_reasons: Argument to pass with the signal.
2319
 
 * @arg_printer_is_accepting_jobs: Argument to pass with the signal.
2320
 
 * @arg_job_id: Argument to pass with the signal.
2321
 
 * @arg_job_state: Argument to pass with the signal.
2322
 
 * @arg_job_state_reasons: Argument to pass with the signal.
2323
 
 * @arg_job_name: Argument to pass with the signal.
2324
 
 * @arg_job_impressions_completed: Argument to pass with the signal.
2325
 
 *
2326
 
 * Emits the <link linkend="gdbus-signal-org-cups-cupsd-Notifier.JobCompleted">"JobCompleted"</link> D-Bus signal.
2327
 
 */
2328
 
void
2329
 
cups_notifier_emit_job_completed (
2330
 
    CupsNotifier *object,
2331
 
    const gchar *arg_text,
2332
 
    const gchar *arg_printer_uri,
2333
 
    const gchar *arg_printer_name,
2334
 
    guint arg_printer_state,
2335
 
    const gchar *arg_printer_state_reasons,
2336
 
    gboolean arg_printer_is_accepting_jobs,
2337
 
    guint arg_job_id,
2338
 
    guint arg_job_state,
2339
 
    const gchar *arg_job_state_reasons,
2340
 
    const gchar *arg_job_name,
2341
 
    guint arg_job_impressions_completed)
2342
 
{
2343
 
  g_signal_emit_by_name (object, "job-completed", arg_text, arg_printer_uri, arg_printer_name, arg_printer_state, arg_printer_state_reasons, arg_printer_is_accepting_jobs, arg_job_id, arg_job_state, arg_job_state_reasons, arg_job_name, arg_job_impressions_completed);
2344
 
}
2345
 
 
2346
 
/**
2347
 
 * cups_notifier_emit_job_state:
2348
 
 * @object: A #CupsNotifier.
2349
 
 * @arg_text: Argument to pass with the signal.
2350
 
 * @arg_printer_uri: Argument to pass with the signal.
2351
 
 * @arg_printer_name: Argument to pass with the signal.
2352
 
 * @arg_printer_state: Argument to pass with the signal.
2353
 
 * @arg_printer_state_reasons: Argument to pass with the signal.
2354
 
 * @arg_printer_is_accepting_jobs: Argument to pass with the signal.
2355
 
 * @arg_job_id: Argument to pass with the signal.
2356
 
 * @arg_job_state: Argument to pass with the signal.
2357
 
 * @arg_job_state_reasons: Argument to pass with the signal.
2358
 
 * @arg_job_name: Argument to pass with the signal.
2359
 
 * @arg_job_impressions_completed: Argument to pass with the signal.
2360
 
 *
2361
 
 * Emits the <link linkend="gdbus-signal-org-cups-cupsd-Notifier.JobState">"JobState"</link> D-Bus signal.
2362
 
 */
2363
 
void
2364
 
cups_notifier_emit_job_state (
2365
 
    CupsNotifier *object,
2366
 
    const gchar *arg_text,
2367
 
    const gchar *arg_printer_uri,
2368
 
    const gchar *arg_printer_name,
2369
 
    guint arg_printer_state,
2370
 
    const gchar *arg_printer_state_reasons,
2371
 
    gboolean arg_printer_is_accepting_jobs,
2372
 
    guint arg_job_id,
2373
 
    guint arg_job_state,
2374
 
    const gchar *arg_job_state_reasons,
2375
 
    const gchar *arg_job_name,
2376
 
    guint arg_job_impressions_completed)
2377
 
{
2378
 
  g_signal_emit_by_name (object, "job-state", arg_text, arg_printer_uri, arg_printer_name, arg_printer_state, arg_printer_state_reasons, arg_printer_is_accepting_jobs, arg_job_id, arg_job_state, arg_job_state_reasons, arg_job_name, arg_job_impressions_completed);
2379
 
}
2380
 
 
2381
 
/* ------------------------------------------------------------------------ */
2382
 
 
2383
 
/**
2384
 
 * CupsNotifierProxy:
2385
 
 *
2386
 
 * The #CupsNotifierProxy structure contains only private data and should only be accessed using the provided API.
2387
 
 */
2388
 
 
2389
 
/**
2390
 
 * CupsNotifierProxyClass:
2391
 
 * @parent_class: The parent class.
2392
 
 *
2393
 
 * Class structure for #CupsNotifierProxy.
2394
 
 */
2395
 
 
2396
 
struct _CupsNotifierProxyPrivate
2397
 
{
2398
 
  GData *qdata;
2399
 
};
2400
 
 
2401
 
static void cups_notifier_proxy_iface_init (CupsNotifierIface *iface);
2402
 
 
2403
 
G_DEFINE_TYPE_WITH_CODE (CupsNotifierProxy, cups_notifier_proxy, G_TYPE_DBUS_PROXY,
2404
 
                         G_IMPLEMENT_INTERFACE (CUPS_TYPE_NOTIFIER, cups_notifier_proxy_iface_init));
2405
 
 
2406
 
static void
2407
 
cups_notifier_proxy_finalize (GObject *object)
2408
 
{
2409
 
  CupsNotifierProxy *proxy = CUPS_NOTIFIER_PROXY (object);
2410
 
  g_datalist_clear (&proxy->priv->qdata);
2411
 
  G_OBJECT_CLASS (cups_notifier_proxy_parent_class)->finalize (object);
2412
 
}
2413
 
 
2414
 
static void
2415
 
cups_notifier_proxy_get_property (GObject      *object,
2416
 
  guint         prop_id,
2417
 
  GValue       *value,
2418
 
  GParamSpec   *pspec)
2419
 
{
2420
 
}
2421
 
 
2422
 
static void
2423
 
cups_notifier_proxy_set_property (GObject      *object,
2424
 
  guint         prop_id,
2425
 
  const GValue *value,
2426
 
  GParamSpec   *pspec)
2427
 
{
2428
 
}
2429
 
 
2430
 
static void
2431
 
cups_notifier_proxy_g_signal (GDBusProxy *proxy,
2432
 
  const gchar *sender_name,
2433
 
  const gchar *signal_name,
2434
 
  GVariant *parameters)
2435
 
{
2436
 
  _ExtendedGDBusSignalInfo *info;
2437
 
  GVariantIter iter;
2438
 
  GVariant *child;
2439
 
  GValue *paramv;
2440
 
  guint num_params;
2441
 
  guint n;
2442
 
  guint signal_id;
2443
 
  info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_cups_notifier_interface_info, signal_name);
2444
 
  if (info == NULL)
2445
 
    return;
2446
 
  num_params = g_variant_n_children (parameters);
2447
 
  paramv = g_new0 (GValue, num_params + 1);
2448
 
  g_value_init (&paramv[0], CUPS_TYPE_NOTIFIER);
2449
 
  g_value_set_object (&paramv[0], proxy);
2450
 
  g_variant_iter_init (&iter, parameters);
2451
 
  n = 1;
2452
 
  while ((child = g_variant_iter_next_value (&iter)) != NULL)
2453
 
    {
2454
 
      _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1];
2455
 
      if (arg_info->use_gvariant)
2456
 
        {
2457
 
          g_value_init (&paramv[n], G_TYPE_VARIANT);
2458
 
          g_value_set_variant (&paramv[n], child);
2459
 
          n++;
2460
 
        }
2461
 
      else
2462
 
        g_dbus_gvariant_to_gvalue (child, &paramv[n++]);
2463
 
      g_variant_unref (child);
2464
 
    }
2465
 
  signal_id = g_signal_lookup (info->signal_name, CUPS_TYPE_NOTIFIER);
2466
 
  g_signal_emitv (paramv, signal_id, 0, NULL);
2467
 
  for (n = 0; n < num_params + 1; n++)
2468
 
    g_value_unset (&paramv[n]);
2469
 
  g_free (paramv);
2470
 
}
2471
 
 
2472
 
static void
2473
 
cups_notifier_proxy_g_properties_changed (GDBusProxy *_proxy,
2474
 
  GVariant *changed_properties,
2475
 
  const gchar *const *invalidated_properties)
2476
 
{
2477
 
  CupsNotifierProxy *proxy = CUPS_NOTIFIER_PROXY (_proxy);
2478
 
  guint n;
2479
 
  const gchar *key;
2480
 
  GVariantIter *iter;
2481
 
  _ExtendedGDBusPropertyInfo *info;
2482
 
  g_variant_get (changed_properties, "a{sv}", &iter);
2483
 
  while (g_variant_iter_next (iter, "{&sv}", &key, NULL))
2484
 
    {
2485
 
      info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_cups_notifier_interface_info, key);
2486
 
      g_datalist_remove_data (&proxy->priv->qdata, key);
2487
 
      if (info != NULL)
2488
 
        g_object_notify (G_OBJECT (proxy), info->hyphen_name);
2489
 
    }
2490
 
  g_variant_iter_free (iter);
2491
 
  for (n = 0; invalidated_properties[n] != NULL; n++)
2492
 
    {
2493
 
      info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_cups_notifier_interface_info, invalidated_properties[n]);
2494
 
      g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]);
2495
 
      if (info != NULL)
2496
 
        g_object_notify (G_OBJECT (proxy), info->hyphen_name);
2497
 
    }
2498
 
}
2499
 
 
2500
 
static void
2501
 
cups_notifier_proxy_init (CupsNotifierProxy *proxy)
2502
 
{
2503
 
  proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, CUPS_TYPE_NOTIFIER_PROXY, CupsNotifierProxyPrivate);
2504
 
  g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), cups_notifier_interface_info ());
2505
 
}
2506
 
 
2507
 
static void
2508
 
cups_notifier_proxy_class_init (CupsNotifierProxyClass *klass)
2509
 
{
2510
 
  GObjectClass *gobject_class;
2511
 
  GDBusProxyClass *proxy_class;
2512
 
 
2513
 
  g_type_class_add_private (klass, sizeof (CupsNotifierProxyPrivate));
2514
 
 
2515
 
  gobject_class = G_OBJECT_CLASS (klass);
2516
 
  gobject_class->finalize     = cups_notifier_proxy_finalize;
2517
 
  gobject_class->get_property = cups_notifier_proxy_get_property;
2518
 
  gobject_class->set_property = cups_notifier_proxy_set_property;
2519
 
 
2520
 
  proxy_class = G_DBUS_PROXY_CLASS (klass);
2521
 
  proxy_class->g_signal = cups_notifier_proxy_g_signal;
2522
 
  proxy_class->g_properties_changed = cups_notifier_proxy_g_properties_changed;
2523
 
 
2524
 
}
2525
 
 
2526
 
static void
2527
 
cups_notifier_proxy_iface_init (CupsNotifierIface *iface)
2528
 
{
2529
 
}
2530
 
 
2531
 
/**
2532
 
 * cups_notifier_proxy_new:
2533
 
 * @connection: A #GDBusConnection.
2534
 
 * @flags: Flags from the #GDBusProxyFlags enumeration.
2535
 
 * @name: (allow-none): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection.
2536
 
 * @object_path: An object path.
2537
 
 * @cancellable: (allow-none): A #GCancellable or %NULL.
2538
 
 * @callback: A #GAsyncReadyCallback to call when the request is satisfied.
2539
 
 * @user_data: User data to pass to @callback.
2540
 
 *
2541
 
 * Asynchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-cups-cupsd-Notifier.top_of_page">org.cups.cupsd.Notifier</link>. See g_dbus_proxy_new() for more details.
2542
 
 *
2543
 
 * 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.
2544
 
 * You can then call cups_notifier_proxy_new_finish() to get the result of the operation.
2545
 
 *
2546
 
 * See cups_notifier_proxy_new_sync() for the synchronous, blocking version of this constructor.
2547
 
 */
2548
 
void
2549
 
cups_notifier_proxy_new (
2550
 
    GDBusConnection     *connection,
2551
 
    GDBusProxyFlags      flags,
2552
 
    const gchar         *name,
2553
 
    const gchar         *object_path,
2554
 
    GCancellable        *cancellable,
2555
 
    GAsyncReadyCallback  callback,
2556
 
    gpointer             user_data)
2557
 
{
2558
 
  g_async_initable_new_async (CUPS_TYPE_NOTIFIER_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.cups.cupsd.Notifier", NULL);
2559
 
}
2560
 
 
2561
 
/**
2562
 
 * cups_notifier_proxy_new_finish:
2563
 
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to cups_notifier_proxy_new().
2564
 
 * @error: Return location for error or %NULL
2565
 
 *
2566
 
 * Finishes an operation started with cups_notifier_proxy_new().
2567
 
 *
2568
 
 * Returns: (transfer full) (type CupsNotifierProxy): The constructed proxy object or %NULL if @error is set.
2569
 
 */
2570
 
CupsNotifier *
2571
 
cups_notifier_proxy_new_finish (
2572
 
    GAsyncResult        *res,
2573
 
    GError             **error)
2574
 
{
2575
 
  GObject *ret;
2576
 
  GObject *source_object;
2577
 
  source_object = g_async_result_get_source_object (res);
2578
 
  ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error);
2579
 
  g_object_unref (source_object);
2580
 
  if (ret != NULL)
2581
 
    return CUPS_NOTIFIER (ret);
2582
 
  else
2583
 
    return NULL;
2584
 
}
2585
 
 
2586
 
/**
2587
 
 * cups_notifier_proxy_new_sync:
2588
 
 * @connection: A #GDBusConnection.
2589
 
 * @flags: Flags from the #GDBusProxyFlags enumeration.
2590
 
 * @name: (allow-none): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection.
2591
 
 * @object_path: An object path.
2592
 
 * @cancellable: (allow-none): A #GCancellable or %NULL.
2593
 
 * @error: Return location for error or %NULL
2594
 
 *
2595
 
 * Synchronously creates a proxy for the D-Bus interface <link linkend="gdbus-interface-org-cups-cupsd-Notifier.top_of_page">org.cups.cupsd.Notifier</link>. See g_dbus_proxy_new_sync() for more details.
2596
 
 *
2597
 
 * The calling thread is blocked until a reply is received.
2598
 
 *
2599
 
 * See cups_notifier_proxy_new() for the asynchronous version of this constructor.
2600
 
 *
2601
 
 * Returns: (transfer full) (type CupsNotifierProxy): The constructed proxy object or %NULL if @error is set.
2602
 
 */
2603
 
CupsNotifier *
2604
 
cups_notifier_proxy_new_sync (
2605
 
    GDBusConnection     *connection,
2606
 
    GDBusProxyFlags      flags,
2607
 
    const gchar         *name,
2608
 
    const gchar         *object_path,
2609
 
    GCancellable        *cancellable,
2610
 
    GError             **error)
2611
 
{
2612
 
  GInitable *ret;
2613
 
  ret = g_initable_new (CUPS_TYPE_NOTIFIER_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-connection", connection, "g-object-path", object_path, "g-interface-name", "org.cups.cupsd.Notifier", NULL);
2614
 
  if (ret != NULL)
2615
 
    return CUPS_NOTIFIER (ret);
2616
 
  else
2617
 
    return NULL;
2618
 
}
2619
 
 
2620
 
 
2621
 
/**
2622
 
 * cups_notifier_proxy_new_for_bus:
2623
 
 * @bus_type: A #GBusType.
2624
 
 * @flags: Flags from the #GDBusProxyFlags enumeration.
2625
 
 * @name: A bus name (well-known or unique).
2626
 
 * @object_path: An object path.
2627
 
 * @cancellable: (allow-none): A #GCancellable or %NULL.
2628
 
 * @callback: A #GAsyncReadyCallback to call when the request is satisfied.
2629
 
 * @user_data: User data to pass to @callback.
2630
 
 *
2631
 
 * Like cups_notifier_proxy_new() but takes a #GBusType instead of a #GDBusConnection.
2632
 
 *
2633
 
 * 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.
2634
 
 * You can then call cups_notifier_proxy_new_for_bus_finish() to get the result of the operation.
2635
 
 *
2636
 
 * See cups_notifier_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor.
2637
 
 */
2638
 
void
2639
 
cups_notifier_proxy_new_for_bus (
2640
 
    GBusType             bus_type,
2641
 
    GDBusProxyFlags      flags,
2642
 
    const gchar         *name,
2643
 
    const gchar         *object_path,
2644
 
    GCancellable        *cancellable,
2645
 
    GAsyncReadyCallback  callback,
2646
 
    gpointer             user_data)
2647
 
{
2648
 
  g_async_initable_new_async (CUPS_TYPE_NOTIFIER_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.cups.cupsd.Notifier", NULL);
2649
 
}
2650
 
 
2651
 
/**
2652
 
 * cups_notifier_proxy_new_for_bus_finish:
2653
 
 * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to cups_notifier_proxy_new_for_bus().
2654
 
 * @error: Return location for error or %NULL
2655
 
 *
2656
 
 * Finishes an operation started with cups_notifier_proxy_new_for_bus().
2657
 
 *
2658
 
 * Returns: (transfer full) (type CupsNotifierProxy): The constructed proxy object or %NULL if @error is set.
2659
 
 */
2660
 
CupsNotifier *
2661
 
cups_notifier_proxy_new_for_bus_finish (
2662
 
    GAsyncResult        *res,
2663
 
    GError             **error)
2664
 
{
2665
 
  GObject *ret;
2666
 
  GObject *source_object;
2667
 
  source_object = g_async_result_get_source_object (res);
2668
 
  ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error);
2669
 
  g_object_unref (source_object);
2670
 
  if (ret != NULL)
2671
 
    return CUPS_NOTIFIER (ret);
2672
 
  else
2673
 
    return NULL;
2674
 
}
2675
 
 
2676
 
/**
2677
 
 * cups_notifier_proxy_new_for_bus_sync:
2678
 
 * @bus_type: A #GBusType.
2679
 
 * @flags: Flags from the #GDBusProxyFlags enumeration.
2680
 
 * @name: A bus name (well-known or unique).
2681
 
 * @object_path: An object path.
2682
 
 * @cancellable: (allow-none): A #GCancellable or %NULL.
2683
 
 * @error: Return location for error or %NULL
2684
 
 *
2685
 
 * Like cups_notifier_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection.
2686
 
 *
2687
 
 * The calling thread is blocked until a reply is received.
2688
 
 *
2689
 
 * See cups_notifier_proxy_new_for_bus() for the asynchronous version of this constructor.
2690
 
 *
2691
 
 * Returns: (transfer full) (type CupsNotifierProxy): The constructed proxy object or %NULL if @error is set.
2692
 
 */
2693
 
CupsNotifier *
2694
 
cups_notifier_proxy_new_for_bus_sync (
2695
 
    GBusType             bus_type,
2696
 
    GDBusProxyFlags      flags,
2697
 
    const gchar         *name,
2698
 
    const gchar         *object_path,
2699
 
    GCancellable        *cancellable,
2700
 
    GError             **error)
2701
 
{
2702
 
  GInitable *ret;
2703
 
  ret = g_initable_new (CUPS_TYPE_NOTIFIER_PROXY, cancellable, error, "g-flags", flags, "g-name", name, "g-bus-type", bus_type, "g-object-path", object_path, "g-interface-name", "org.cups.cupsd.Notifier", NULL);
2704
 
  if (ret != NULL)
2705
 
    return CUPS_NOTIFIER (ret);
2706
 
  else
2707
 
    return NULL;
2708
 
}
2709
 
 
2710
 
 
2711
 
/* ------------------------------------------------------------------------ */
2712
 
 
2713
 
/**
2714
 
 * CupsNotifierSkeleton:
2715
 
 *
2716
 
 * The #CupsNotifierSkeleton structure contains only private data and should only be accessed using the provided API.
2717
 
 */
2718
 
 
2719
 
/**
2720
 
 * CupsNotifierSkeletonClass:
2721
 
 * @parent_class: The parent class.
2722
 
 *
2723
 
 * Class structure for #CupsNotifierSkeleton.
2724
 
 */
2725
 
 
2726
 
struct _CupsNotifierSkeletonPrivate
2727
 
{
2728
 
  GValue *properties;
2729
 
  GList *changed_properties;
2730
 
  GSource *changed_properties_idle_source;
2731
 
  GMainContext *context;
2732
 
  GMutex lock;
2733
 
};
2734
 
 
2735
 
static void
2736
 
_cups_notifier_skeleton_handle_method_call (
2737
 
  GDBusConnection *connection,
2738
 
  const gchar *sender,
2739
 
  const gchar *object_path,
2740
 
  const gchar *interface_name,
2741
 
  const gchar *method_name,
2742
 
  GVariant *parameters,
2743
 
  GDBusMethodInvocation *invocation,
2744
 
  gpointer user_data)
2745
 
{
2746
 
  CupsNotifierSkeleton *skeleton = CUPS_NOTIFIER_SKELETON (user_data);
2747
 
  _ExtendedGDBusMethodInfo *info;
2748
 
  GVariantIter iter;
2749
 
  GVariant *child;
2750
 
  GValue *paramv;
2751
 
  guint num_params;
2752
 
  guint num_extra;
2753
 
  guint n;
2754
 
  guint signal_id;
2755
 
  GValue return_value = G_VALUE_INIT;
2756
 
  info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation);
2757
 
  g_assert (info != NULL);
2758
 
  num_params = g_variant_n_children (parameters);
2759
 
  num_extra = info->pass_fdlist ? 3 : 2;  paramv = g_new0 (GValue, num_params + num_extra);
2760
 
  n = 0;
2761
 
  g_value_init (&paramv[n], CUPS_TYPE_NOTIFIER);
2762
 
  g_value_set_object (&paramv[n++], skeleton);
2763
 
  g_value_init (&paramv[n], G_TYPE_DBUS_METHOD_INVOCATION);
2764
 
  g_value_set_object (&paramv[n++], invocation);
2765
 
  if (info->pass_fdlist)
2766
 
    {
2767
 
#ifdef G_OS_UNIX
2768
 
      g_value_init (&paramv[n], G_TYPE_UNIX_FD_LIST);
2769
 
      g_value_set_object (&paramv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation)));
2770
 
#else
2771
 
      g_assert_not_reached ();
2772
 
#endif
2773
 
    }
2774
 
  g_variant_iter_init (&iter, parameters);
2775
 
  while ((child = g_variant_iter_next_value (&iter)) != NULL)
2776
 
    {
2777
 
      _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra];
2778
 
      if (arg_info->use_gvariant)
2779
 
        {
2780
 
          g_value_init (&paramv[n], G_TYPE_VARIANT);
2781
 
          g_value_set_variant (&paramv[n], child);
2782
 
          n++;
2783
 
        }
2784
 
      else
2785
 
        g_dbus_gvariant_to_gvalue (child, &paramv[n++]);
2786
 
      g_variant_unref (child);
2787
 
    }
2788
 
  signal_id = g_signal_lookup (info->signal_name, CUPS_TYPE_NOTIFIER);
2789
 
  g_value_init (&return_value, G_TYPE_BOOLEAN);
2790
 
  g_signal_emitv (paramv, signal_id, 0, &return_value);
2791
 
  if (!g_value_get_boolean (&return_value))
2792
 
    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);
2793
 
  g_value_unset (&return_value);
2794
 
  for (n = 0; n < num_params + num_extra; n++)
2795
 
    g_value_unset (&paramv[n]);
2796
 
  g_free (paramv);
2797
 
}
2798
 
 
2799
 
static GVariant *
2800
 
_cups_notifier_skeleton_handle_get_property (
2801
 
  GDBusConnection *connection,
2802
 
  const gchar *sender,
2803
 
  const gchar *object_path,
2804
 
  const gchar *interface_name,
2805
 
  const gchar *property_name,
2806
 
  GError **error,
2807
 
  gpointer user_data)
2808
 
{
2809
 
  CupsNotifierSkeleton *skeleton = CUPS_NOTIFIER_SKELETON (user_data);
2810
 
  GValue value = G_VALUE_INIT;
2811
 
  GParamSpec *pspec;
2812
 
  _ExtendedGDBusPropertyInfo *info;
2813
 
  GVariant *ret;
2814
 
  ret = NULL;
2815
 
  info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_cups_notifier_interface_info, property_name);
2816
 
  g_assert (info != NULL);
2817
 
  pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name);
2818
 
  if (pspec == NULL)
2819
 
    {
2820
 
      g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name);
2821
 
    }
2822
 
  else
2823
 
    {
2824
 
      g_value_init (&value, pspec->value_type);
2825
 
      g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value);
2826
 
      ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature));
2827
 
      g_value_unset (&value);
2828
 
    }
2829
 
  return ret;
2830
 
}
2831
 
 
2832
 
static gboolean
2833
 
_cups_notifier_skeleton_handle_set_property (
2834
 
  GDBusConnection *connection,
2835
 
  const gchar *sender,
2836
 
  const gchar *object_path,
2837
 
  const gchar *interface_name,
2838
 
  const gchar *property_name,
2839
 
  GVariant *variant,
2840
 
  GError **error,
2841
 
  gpointer user_data)
2842
 
{
2843
 
  CupsNotifierSkeleton *skeleton = CUPS_NOTIFIER_SKELETON (user_data);
2844
 
  GValue value = G_VALUE_INIT;
2845
 
  GParamSpec *pspec;
2846
 
  _ExtendedGDBusPropertyInfo *info;
2847
 
  gboolean ret;
2848
 
  ret = FALSE;
2849
 
  info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_cups_notifier_interface_info, property_name);
2850
 
  g_assert (info != NULL);
2851
 
  pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name);
2852
 
  if (pspec == NULL)
2853
 
    {
2854
 
      g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name);
2855
 
    }
2856
 
  else
2857
 
    {
2858
 
      if (info->use_gvariant)
2859
 
        g_value_set_variant (&value, variant);
2860
 
      else
2861
 
        g_dbus_gvariant_to_gvalue (variant, &value);
2862
 
      g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value);
2863
 
      g_value_unset (&value);
2864
 
      ret = TRUE;
2865
 
    }
2866
 
  return ret;
2867
 
}
2868
 
 
2869
 
static const GDBusInterfaceVTable _cups_notifier_skeleton_vtable =
2870
 
{
2871
 
  _cups_notifier_skeleton_handle_method_call,
2872
 
  _cups_notifier_skeleton_handle_get_property,
2873
 
  _cups_notifier_skeleton_handle_set_property
2874
 
};
2875
 
 
2876
 
static GDBusInterfaceInfo *
2877
 
cups_notifier_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton)
2878
 
{
2879
 
  return cups_notifier_interface_info ();
2880
 
}
2881
 
 
2882
 
static GDBusInterfaceVTable *
2883
 
cups_notifier_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton)
2884
 
{
2885
 
  return (GDBusInterfaceVTable *) &_cups_notifier_skeleton_vtable;
2886
 
}
2887
 
 
2888
 
static GVariant *
2889
 
cups_notifier_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton)
2890
 
{
2891
 
  CupsNotifierSkeleton *skeleton = CUPS_NOTIFIER_SKELETON (_skeleton);
2892
 
 
2893
 
  GVariantBuilder builder;
2894
 
  guint n;
2895
 
  g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}"));
2896
 
  if (_cups_notifier_interface_info.parent_struct.properties == NULL)
2897
 
    goto out;
2898
 
  for (n = 0; _cups_notifier_interface_info.parent_struct.properties[n] != NULL; n++)
2899
 
    {
2900
 
      GDBusPropertyInfo *info = _cups_notifier_interface_info.parent_struct.properties[n];
2901
 
      if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE)
2902
 
        {
2903
 
          GVariant *value;
2904
 
          value = _cups_notifier_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.cups.cupsd.Notifier", info->name, NULL, skeleton);
2905
 
          if (value != NULL)
2906
 
            {
2907
 
              g_variant_take_ref (value);
2908
 
              g_variant_builder_add (&builder, "{sv}", info->name, value);
2909
 
              g_variant_unref (value);
2910
 
            }
2911
 
        }
2912
 
    }
2913
 
out:
2914
 
  return g_variant_builder_end (&builder);
2915
 
}
2916
 
 
2917
 
static void
2918
 
cups_notifier_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton)
2919
 
{
2920
 
}
2921
 
 
2922
 
static void
2923
 
_cups_notifier_on_signal_server_started (
2924
 
    CupsNotifier *object,
2925
 
    const gchar *arg_text)
2926
 
{
2927
 
  CupsNotifierSkeleton *skeleton = CUPS_NOTIFIER_SKELETON (object);
2928
 
 
2929
 
  GList      *connections, *l;
2930
 
  GVariant   *signal_variant;
2931
 
  connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
2932
 
 
2933
 
  signal_variant = g_variant_ref_sink (g_variant_new ("(s)",
2934
 
                   arg_text));
2935
 
  for (l = connections; l != NULL; l = l->next)
2936
 
    {
2937
 
      GDBusConnection *connection = l->data;
2938
 
      g_dbus_connection_emit_signal (connection,
2939
 
        NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.cups.cupsd.Notifier", "ServerStarted",
2940
 
        signal_variant, NULL);
2941
 
    }
2942
 
  g_variant_unref (signal_variant);
2943
 
  g_list_free_full (connections, g_object_unref);
2944
 
}
2945
 
 
2946
 
static void
2947
 
_cups_notifier_on_signal_server_restarted (
2948
 
    CupsNotifier *object,
2949
 
    const gchar *arg_text)
2950
 
{
2951
 
  CupsNotifierSkeleton *skeleton = CUPS_NOTIFIER_SKELETON (object);
2952
 
 
2953
 
  GList      *connections, *l;
2954
 
  GVariant   *signal_variant;
2955
 
  connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
2956
 
 
2957
 
  signal_variant = g_variant_ref_sink (g_variant_new ("(s)",
2958
 
                   arg_text));
2959
 
  for (l = connections; l != NULL; l = l->next)
2960
 
    {
2961
 
      GDBusConnection *connection = l->data;
2962
 
      g_dbus_connection_emit_signal (connection,
2963
 
        NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.cups.cupsd.Notifier", "ServerRestarted",
2964
 
        signal_variant, NULL);
2965
 
    }
2966
 
  g_variant_unref (signal_variant);
2967
 
  g_list_free_full (connections, g_object_unref);
2968
 
}
2969
 
 
2970
 
static void
2971
 
_cups_notifier_on_signal_server_stopped (
2972
 
    CupsNotifier *object,
2973
 
    const gchar *arg_text)
2974
 
{
2975
 
  CupsNotifierSkeleton *skeleton = CUPS_NOTIFIER_SKELETON (object);
2976
 
 
2977
 
  GList      *connections, *l;
2978
 
  GVariant   *signal_variant;
2979
 
  connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
2980
 
 
2981
 
  signal_variant = g_variant_ref_sink (g_variant_new ("(s)",
2982
 
                   arg_text));
2983
 
  for (l = connections; l != NULL; l = l->next)
2984
 
    {
2985
 
      GDBusConnection *connection = l->data;
2986
 
      g_dbus_connection_emit_signal (connection,
2987
 
        NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.cups.cupsd.Notifier", "ServerStopped",
2988
 
        signal_variant, NULL);
2989
 
    }
2990
 
  g_variant_unref (signal_variant);
2991
 
  g_list_free_full (connections, g_object_unref);
2992
 
}
2993
 
 
2994
 
static void
2995
 
_cups_notifier_on_signal_server_audit (
2996
 
    CupsNotifier *object,
2997
 
    const gchar *arg_text)
2998
 
{
2999
 
  CupsNotifierSkeleton *skeleton = CUPS_NOTIFIER_SKELETON (object);
3000
 
 
3001
 
  GList      *connections, *l;
3002
 
  GVariant   *signal_variant;
3003
 
  connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
3004
 
 
3005
 
  signal_variant = g_variant_ref_sink (g_variant_new ("(s)",
3006
 
                   arg_text));
3007
 
  for (l = connections; l != NULL; l = l->next)
3008
 
    {
3009
 
      GDBusConnection *connection = l->data;
3010
 
      g_dbus_connection_emit_signal (connection,
3011
 
        NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.cups.cupsd.Notifier", "ServerAudit",
3012
 
        signal_variant, NULL);
3013
 
    }
3014
 
  g_variant_unref (signal_variant);
3015
 
  g_list_free_full (connections, g_object_unref);
3016
 
}
3017
 
 
3018
 
static void
3019
 
_cups_notifier_on_signal_printer_added (
3020
 
    CupsNotifier *object,
3021
 
    const gchar *arg_text,
3022
 
    const gchar *arg_printer_uri,
3023
 
    const gchar *arg_printer_name,
3024
 
    guint arg_printer_state,
3025
 
    const gchar *arg_printer_state_reasons,
3026
 
    gboolean arg_printer_is_accepting_jobs)
3027
 
{
3028
 
  CupsNotifierSkeleton *skeleton = CUPS_NOTIFIER_SKELETON (object);
3029
 
 
3030
 
  GList      *connections, *l;
3031
 
  GVariant   *signal_variant;
3032
 
  connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
3033
 
 
3034
 
  signal_variant = g_variant_ref_sink (g_variant_new ("(sssusb)",
3035
 
                   arg_text,
3036
 
                   arg_printer_uri,
3037
 
                   arg_printer_name,
3038
 
                   arg_printer_state,
3039
 
                   arg_printer_state_reasons,
3040
 
                   arg_printer_is_accepting_jobs));
3041
 
  for (l = connections; l != NULL; l = l->next)
3042
 
    {
3043
 
      GDBusConnection *connection = l->data;
3044
 
      g_dbus_connection_emit_signal (connection,
3045
 
        NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.cups.cupsd.Notifier", "PrinterAdded",
3046
 
        signal_variant, NULL);
3047
 
    }
3048
 
  g_variant_unref (signal_variant);
3049
 
  g_list_free_full (connections, g_object_unref);
3050
 
}
3051
 
 
3052
 
static void
3053
 
_cups_notifier_on_signal_printer_deleted (
3054
 
    CupsNotifier *object,
3055
 
    const gchar *arg_text,
3056
 
    const gchar *arg_printer_uri,
3057
 
    const gchar *arg_printer_name,
3058
 
    guint arg_printer_state,
3059
 
    const gchar *arg_printer_state_reasons,
3060
 
    gboolean arg_printer_is_accepting_jobs)
3061
 
{
3062
 
  CupsNotifierSkeleton *skeleton = CUPS_NOTIFIER_SKELETON (object);
3063
 
 
3064
 
  GList      *connections, *l;
3065
 
  GVariant   *signal_variant;
3066
 
  connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
3067
 
 
3068
 
  signal_variant = g_variant_ref_sink (g_variant_new ("(sssusb)",
3069
 
                   arg_text,
3070
 
                   arg_printer_uri,
3071
 
                   arg_printer_name,
3072
 
                   arg_printer_state,
3073
 
                   arg_printer_state_reasons,
3074
 
                   arg_printer_is_accepting_jobs));
3075
 
  for (l = connections; l != NULL; l = l->next)
3076
 
    {
3077
 
      GDBusConnection *connection = l->data;
3078
 
      g_dbus_connection_emit_signal (connection,
3079
 
        NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.cups.cupsd.Notifier", "PrinterDeleted",
3080
 
        signal_variant, NULL);
3081
 
    }
3082
 
  g_variant_unref (signal_variant);
3083
 
  g_list_free_full (connections, g_object_unref);
3084
 
}
3085
 
 
3086
 
static void
3087
 
_cups_notifier_on_signal_printer_modified (
3088
 
    CupsNotifier *object,
3089
 
    const gchar *arg_text,
3090
 
    const gchar *arg_printer_uri,
3091
 
    const gchar *arg_printer_name,
3092
 
    guint arg_printer_state,
3093
 
    const gchar *arg_printer_state_reasons,
3094
 
    gboolean arg_printer_is_accepting_jobs)
3095
 
{
3096
 
  CupsNotifierSkeleton *skeleton = CUPS_NOTIFIER_SKELETON (object);
3097
 
 
3098
 
  GList      *connections, *l;
3099
 
  GVariant   *signal_variant;
3100
 
  connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
3101
 
 
3102
 
  signal_variant = g_variant_ref_sink (g_variant_new ("(sssusb)",
3103
 
                   arg_text,
3104
 
                   arg_printer_uri,
3105
 
                   arg_printer_name,
3106
 
                   arg_printer_state,
3107
 
                   arg_printer_state_reasons,
3108
 
                   arg_printer_is_accepting_jobs));
3109
 
  for (l = connections; l != NULL; l = l->next)
3110
 
    {
3111
 
      GDBusConnection *connection = l->data;
3112
 
      g_dbus_connection_emit_signal (connection,
3113
 
        NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.cups.cupsd.Notifier", "PrinterModified",
3114
 
        signal_variant, NULL);
3115
 
    }
3116
 
  g_variant_unref (signal_variant);
3117
 
  g_list_free_full (connections, g_object_unref);
3118
 
}
3119
 
 
3120
 
static void
3121
 
_cups_notifier_on_signal_printer_restarted (
3122
 
    CupsNotifier *object,
3123
 
    const gchar *arg_text,
3124
 
    const gchar *arg_printer_uri,
3125
 
    const gchar *arg_printer_name,
3126
 
    guint arg_printer_state,
3127
 
    const gchar *arg_printer_state_reasons,
3128
 
    gboolean arg_printer_is_accepting_jobs)
3129
 
{
3130
 
  CupsNotifierSkeleton *skeleton = CUPS_NOTIFIER_SKELETON (object);
3131
 
 
3132
 
  GList      *connections, *l;
3133
 
  GVariant   *signal_variant;
3134
 
  connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
3135
 
 
3136
 
  signal_variant = g_variant_ref_sink (g_variant_new ("(sssusb)",
3137
 
                   arg_text,
3138
 
                   arg_printer_uri,
3139
 
                   arg_printer_name,
3140
 
                   arg_printer_state,
3141
 
                   arg_printer_state_reasons,
3142
 
                   arg_printer_is_accepting_jobs));
3143
 
  for (l = connections; l != NULL; l = l->next)
3144
 
    {
3145
 
      GDBusConnection *connection = l->data;
3146
 
      g_dbus_connection_emit_signal (connection,
3147
 
        NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.cups.cupsd.Notifier", "PrinterRestarted",
3148
 
        signal_variant, NULL);
3149
 
    }
3150
 
  g_variant_unref (signal_variant);
3151
 
  g_list_free_full (connections, g_object_unref);
3152
 
}
3153
 
 
3154
 
static void
3155
 
_cups_notifier_on_signal_printer_stopped (
3156
 
    CupsNotifier *object,
3157
 
    const gchar *arg_text,
3158
 
    const gchar *arg_printer_uri,
3159
 
    const gchar *arg_printer_name,
3160
 
    guint arg_printer_state,
3161
 
    const gchar *arg_printer_state_reasons,
3162
 
    gboolean arg_printer_is_accepting_jobs)
3163
 
{
3164
 
  CupsNotifierSkeleton *skeleton = CUPS_NOTIFIER_SKELETON (object);
3165
 
 
3166
 
  GList      *connections, *l;
3167
 
  GVariant   *signal_variant;
3168
 
  connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
3169
 
 
3170
 
  signal_variant = g_variant_ref_sink (g_variant_new ("(sssusb)",
3171
 
                   arg_text,
3172
 
                   arg_printer_uri,
3173
 
                   arg_printer_name,
3174
 
                   arg_printer_state,
3175
 
                   arg_printer_state_reasons,
3176
 
                   arg_printer_is_accepting_jobs));
3177
 
  for (l = connections; l != NULL; l = l->next)
3178
 
    {
3179
 
      GDBusConnection *connection = l->data;
3180
 
      g_dbus_connection_emit_signal (connection,
3181
 
        NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.cups.cupsd.Notifier", "PrinterStopped",
3182
 
        signal_variant, NULL);
3183
 
    }
3184
 
  g_variant_unref (signal_variant);
3185
 
  g_list_free_full (connections, g_object_unref);
3186
 
}
3187
 
 
3188
 
static void
3189
 
_cups_notifier_on_signal_printer_shutdown (
3190
 
    CupsNotifier *object,
3191
 
    const gchar *arg_text,
3192
 
    const gchar *arg_printer_uri,
3193
 
    const gchar *arg_printer_name,
3194
 
    guint arg_printer_state,
3195
 
    const gchar *arg_printer_state_reasons,
3196
 
    gboolean arg_printer_is_accepting_jobs)
3197
 
{
3198
 
  CupsNotifierSkeleton *skeleton = CUPS_NOTIFIER_SKELETON (object);
3199
 
 
3200
 
  GList      *connections, *l;
3201
 
  GVariant   *signal_variant;
3202
 
  connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
3203
 
 
3204
 
  signal_variant = g_variant_ref_sink (g_variant_new ("(sssusb)",
3205
 
                   arg_text,
3206
 
                   arg_printer_uri,
3207
 
                   arg_printer_name,
3208
 
                   arg_printer_state,
3209
 
                   arg_printer_state_reasons,
3210
 
                   arg_printer_is_accepting_jobs));
3211
 
  for (l = connections; l != NULL; l = l->next)
3212
 
    {
3213
 
      GDBusConnection *connection = l->data;
3214
 
      g_dbus_connection_emit_signal (connection,
3215
 
        NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.cups.cupsd.Notifier", "PrinterShutdown",
3216
 
        signal_variant, NULL);
3217
 
    }
3218
 
  g_variant_unref (signal_variant);
3219
 
  g_list_free_full (connections, g_object_unref);
3220
 
}
3221
 
 
3222
 
static void
3223
 
_cups_notifier_on_signal_printer_state_changed (
3224
 
    CupsNotifier *object,
3225
 
    const gchar *arg_text,
3226
 
    const gchar *arg_printer_uri,
3227
 
    const gchar *arg_printer_name,
3228
 
    guint arg_printer_state,
3229
 
    const gchar *arg_printer_state_reasons,
3230
 
    gboolean arg_printer_is_accepting_jobs)
3231
 
{
3232
 
  CupsNotifierSkeleton *skeleton = CUPS_NOTIFIER_SKELETON (object);
3233
 
 
3234
 
  GList      *connections, *l;
3235
 
  GVariant   *signal_variant;
3236
 
  connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
3237
 
 
3238
 
  signal_variant = g_variant_ref_sink (g_variant_new ("(sssusb)",
3239
 
                   arg_text,
3240
 
                   arg_printer_uri,
3241
 
                   arg_printer_name,
3242
 
                   arg_printer_state,
3243
 
                   arg_printer_state_reasons,
3244
 
                   arg_printer_is_accepting_jobs));
3245
 
  for (l = connections; l != NULL; l = l->next)
3246
 
    {
3247
 
      GDBusConnection *connection = l->data;
3248
 
      g_dbus_connection_emit_signal (connection,
3249
 
        NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.cups.cupsd.Notifier", "PrinterStateChanged",
3250
 
        signal_variant, NULL);
3251
 
    }
3252
 
  g_variant_unref (signal_variant);
3253
 
  g_list_free_full (connections, g_object_unref);
3254
 
}
3255
 
 
3256
 
static void
3257
 
_cups_notifier_on_signal_printer_finishings_changed (
3258
 
    CupsNotifier *object,
3259
 
    const gchar *arg_text,
3260
 
    const gchar *arg_printer_uri,
3261
 
    const gchar *arg_printer_name,
3262
 
    guint arg_printer_state,
3263
 
    const gchar *arg_printer_state_reasons,
3264
 
    gboolean arg_printer_is_accepting_jobs)
3265
 
{
3266
 
  CupsNotifierSkeleton *skeleton = CUPS_NOTIFIER_SKELETON (object);
3267
 
 
3268
 
  GList      *connections, *l;
3269
 
  GVariant   *signal_variant;
3270
 
  connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
3271
 
 
3272
 
  signal_variant = g_variant_ref_sink (g_variant_new ("(sssusb)",
3273
 
                   arg_text,
3274
 
                   arg_printer_uri,
3275
 
                   arg_printer_name,
3276
 
                   arg_printer_state,
3277
 
                   arg_printer_state_reasons,
3278
 
                   arg_printer_is_accepting_jobs));
3279
 
  for (l = connections; l != NULL; l = l->next)
3280
 
    {
3281
 
      GDBusConnection *connection = l->data;
3282
 
      g_dbus_connection_emit_signal (connection,
3283
 
        NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.cups.cupsd.Notifier", "PrinterFinishingsChanged",
3284
 
        signal_variant, NULL);
3285
 
    }
3286
 
  g_variant_unref (signal_variant);
3287
 
  g_list_free_full (connections, g_object_unref);
3288
 
}
3289
 
 
3290
 
static void
3291
 
_cups_notifier_on_signal_printer_media_changed (
3292
 
    CupsNotifier *object,
3293
 
    const gchar *arg_text,
3294
 
    const gchar *arg_printer_uri,
3295
 
    const gchar *arg_printer_name,
3296
 
    guint arg_printer_state,
3297
 
    const gchar *arg_printer_state_reasons,
3298
 
    gboolean arg_printer_is_accepting_jobs)
3299
 
{
3300
 
  CupsNotifierSkeleton *skeleton = CUPS_NOTIFIER_SKELETON (object);
3301
 
 
3302
 
  GList      *connections, *l;
3303
 
  GVariant   *signal_variant;
3304
 
  connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
3305
 
 
3306
 
  signal_variant = g_variant_ref_sink (g_variant_new ("(sssusb)",
3307
 
                   arg_text,
3308
 
                   arg_printer_uri,
3309
 
                   arg_printer_name,
3310
 
                   arg_printer_state,
3311
 
                   arg_printer_state_reasons,
3312
 
                   arg_printer_is_accepting_jobs));
3313
 
  for (l = connections; l != NULL; l = l->next)
3314
 
    {
3315
 
      GDBusConnection *connection = l->data;
3316
 
      g_dbus_connection_emit_signal (connection,
3317
 
        NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.cups.cupsd.Notifier", "PrinterMediaChanged",
3318
 
        signal_variant, NULL);
3319
 
    }
3320
 
  g_variant_unref (signal_variant);
3321
 
  g_list_free_full (connections, g_object_unref);
3322
 
}
3323
 
 
3324
 
static void
3325
 
_cups_notifier_on_signal_job_created (
3326
 
    CupsNotifier *object,
3327
 
    const gchar *arg_text,
3328
 
    const gchar *arg_printer_uri,
3329
 
    const gchar *arg_printer_name,
3330
 
    guint arg_printer_state,
3331
 
    const gchar *arg_printer_state_reasons,
3332
 
    gboolean arg_printer_is_accepting_jobs,
3333
 
    guint arg_job_id,
3334
 
    guint arg_job_state,
3335
 
    const gchar *arg_job_state_reasons,
3336
 
    const gchar *arg_job_name,
3337
 
    guint arg_job_impressions_completed)
3338
 
{
3339
 
  CupsNotifierSkeleton *skeleton = CUPS_NOTIFIER_SKELETON (object);
3340
 
 
3341
 
  GList      *connections, *l;
3342
 
  GVariant   *signal_variant;
3343
 
  connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
3344
 
 
3345
 
  signal_variant = g_variant_ref_sink (g_variant_new ("(sssusbuussu)",
3346
 
                   arg_text,
3347
 
                   arg_printer_uri,
3348
 
                   arg_printer_name,
3349
 
                   arg_printer_state,
3350
 
                   arg_printer_state_reasons,
3351
 
                   arg_printer_is_accepting_jobs,
3352
 
                   arg_job_id,
3353
 
                   arg_job_state,
3354
 
                   arg_job_state_reasons,
3355
 
                   arg_job_name,
3356
 
                   arg_job_impressions_completed));
3357
 
  for (l = connections; l != NULL; l = l->next)
3358
 
    {
3359
 
      GDBusConnection *connection = l->data;
3360
 
      g_dbus_connection_emit_signal (connection,
3361
 
        NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.cups.cupsd.Notifier", "JobCreated",
3362
 
        signal_variant, NULL);
3363
 
    }
3364
 
  g_variant_unref (signal_variant);
3365
 
  g_list_free_full (connections, g_object_unref);
3366
 
}
3367
 
 
3368
 
static void
3369
 
_cups_notifier_on_signal_job_completed (
3370
 
    CupsNotifier *object,
3371
 
    const gchar *arg_text,
3372
 
    const gchar *arg_printer_uri,
3373
 
    const gchar *arg_printer_name,
3374
 
    guint arg_printer_state,
3375
 
    const gchar *arg_printer_state_reasons,
3376
 
    gboolean arg_printer_is_accepting_jobs,
3377
 
    guint arg_job_id,
3378
 
    guint arg_job_state,
3379
 
    const gchar *arg_job_state_reasons,
3380
 
    const gchar *arg_job_name,
3381
 
    guint arg_job_impressions_completed)
3382
 
{
3383
 
  CupsNotifierSkeleton *skeleton = CUPS_NOTIFIER_SKELETON (object);
3384
 
 
3385
 
  GList      *connections, *l;
3386
 
  GVariant   *signal_variant;
3387
 
  connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
3388
 
 
3389
 
  signal_variant = g_variant_ref_sink (g_variant_new ("(sssusbuussu)",
3390
 
                   arg_text,
3391
 
                   arg_printer_uri,
3392
 
                   arg_printer_name,
3393
 
                   arg_printer_state,
3394
 
                   arg_printer_state_reasons,
3395
 
                   arg_printer_is_accepting_jobs,
3396
 
                   arg_job_id,
3397
 
                   arg_job_state,
3398
 
                   arg_job_state_reasons,
3399
 
                   arg_job_name,
3400
 
                   arg_job_impressions_completed));
3401
 
  for (l = connections; l != NULL; l = l->next)
3402
 
    {
3403
 
      GDBusConnection *connection = l->data;
3404
 
      g_dbus_connection_emit_signal (connection,
3405
 
        NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.cups.cupsd.Notifier", "JobCompleted",
3406
 
        signal_variant, NULL);
3407
 
    }
3408
 
  g_variant_unref (signal_variant);
3409
 
  g_list_free_full (connections, g_object_unref);
3410
 
}
3411
 
 
3412
 
static void
3413
 
_cups_notifier_on_signal_job_state (
3414
 
    CupsNotifier *object,
3415
 
    const gchar *arg_text,
3416
 
    const gchar *arg_printer_uri,
3417
 
    const gchar *arg_printer_name,
3418
 
    guint arg_printer_state,
3419
 
    const gchar *arg_printer_state_reasons,
3420
 
    gboolean arg_printer_is_accepting_jobs,
3421
 
    guint arg_job_id,
3422
 
    guint arg_job_state,
3423
 
    const gchar *arg_job_state_reasons,
3424
 
    const gchar *arg_job_name,
3425
 
    guint arg_job_impressions_completed)
3426
 
{
3427
 
  CupsNotifierSkeleton *skeleton = CUPS_NOTIFIER_SKELETON (object);
3428
 
 
3429
 
  GList      *connections, *l;
3430
 
  GVariant   *signal_variant;
3431
 
  connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton));
3432
 
 
3433
 
  signal_variant = g_variant_ref_sink (g_variant_new ("(sssusbuussu)",
3434
 
                   arg_text,
3435
 
                   arg_printer_uri,
3436
 
                   arg_printer_name,
3437
 
                   arg_printer_state,
3438
 
                   arg_printer_state_reasons,
3439
 
                   arg_printer_is_accepting_jobs,
3440
 
                   arg_job_id,
3441
 
                   arg_job_state,
3442
 
                   arg_job_state_reasons,
3443
 
                   arg_job_name,
3444
 
                   arg_job_impressions_completed));
3445
 
  for (l = connections; l != NULL; l = l->next)
3446
 
    {
3447
 
      GDBusConnection *connection = l->data;
3448
 
      g_dbus_connection_emit_signal (connection,
3449
 
        NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.cups.cupsd.Notifier", "JobState",
3450
 
        signal_variant, NULL);
3451
 
    }
3452
 
  g_variant_unref (signal_variant);
3453
 
  g_list_free_full (connections, g_object_unref);
3454
 
}
3455
 
 
3456
 
static void cups_notifier_skeleton_iface_init (CupsNotifierIface *iface);
3457
 
G_DEFINE_TYPE_WITH_CODE (CupsNotifierSkeleton, cups_notifier_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON,
3458
 
                         G_IMPLEMENT_INTERFACE (CUPS_TYPE_NOTIFIER, cups_notifier_skeleton_iface_init));
3459
 
 
3460
 
static void
3461
 
cups_notifier_skeleton_finalize (GObject *object)
3462
 
{
3463
 
  CupsNotifierSkeleton *skeleton = CUPS_NOTIFIER_SKELETON (object);
3464
 
  g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free);
3465
 
  if (skeleton->priv->changed_properties_idle_source != NULL)
3466
 
    g_source_destroy (skeleton->priv->changed_properties_idle_source);
3467
 
  g_main_context_unref (skeleton->priv->context);
3468
 
  g_mutex_clear (&skeleton->priv->lock);
3469
 
  G_OBJECT_CLASS (cups_notifier_skeleton_parent_class)->finalize (object);
3470
 
}
3471
 
 
3472
 
static void
3473
 
cups_notifier_skeleton_init (CupsNotifierSkeleton *skeleton)
3474
 
{
3475
 
  skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, CUPS_TYPE_NOTIFIER_SKELETON, CupsNotifierSkeletonPrivate);
3476
 
  g_mutex_init (&skeleton->priv->lock);
3477
 
  skeleton->priv->context = g_main_context_ref_thread_default ();
3478
 
}
3479
 
 
3480
 
static void
3481
 
cups_notifier_skeleton_class_init (CupsNotifierSkeletonClass *klass)
3482
 
{
3483
 
  GObjectClass *gobject_class;
3484
 
  GDBusInterfaceSkeletonClass *skeleton_class;
3485
 
 
3486
 
  g_type_class_add_private (klass, sizeof (CupsNotifierSkeletonPrivate));
3487
 
 
3488
 
  gobject_class = G_OBJECT_CLASS (klass);
3489
 
  gobject_class->finalize = cups_notifier_skeleton_finalize;
3490
 
 
3491
 
  skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass);
3492
 
  skeleton_class->get_info = cups_notifier_skeleton_dbus_interface_get_info;
3493
 
  skeleton_class->get_properties = cups_notifier_skeleton_dbus_interface_get_properties;
3494
 
  skeleton_class->flush = cups_notifier_skeleton_dbus_interface_flush;
3495
 
  skeleton_class->get_vtable = cups_notifier_skeleton_dbus_interface_get_vtable;
3496
 
}
3497
 
 
3498
 
static void
3499
 
cups_notifier_skeleton_iface_init (CupsNotifierIface *iface)
3500
 
{
3501
 
  iface->server_started = _cups_notifier_on_signal_server_started;
3502
 
  iface->server_restarted = _cups_notifier_on_signal_server_restarted;
3503
 
  iface->server_stopped = _cups_notifier_on_signal_server_stopped;
3504
 
  iface->server_audit = _cups_notifier_on_signal_server_audit;
3505
 
  iface->printer_added = _cups_notifier_on_signal_printer_added;
3506
 
  iface->printer_deleted = _cups_notifier_on_signal_printer_deleted;
3507
 
  iface->printer_modified = _cups_notifier_on_signal_printer_modified;
3508
 
  iface->printer_restarted = _cups_notifier_on_signal_printer_restarted;
3509
 
  iface->printer_stopped = _cups_notifier_on_signal_printer_stopped;
3510
 
  iface->printer_shutdown = _cups_notifier_on_signal_printer_shutdown;
3511
 
  iface->printer_state_changed = _cups_notifier_on_signal_printer_state_changed;
3512
 
  iface->printer_finishings_changed = _cups_notifier_on_signal_printer_finishings_changed;
3513
 
  iface->printer_media_changed = _cups_notifier_on_signal_printer_media_changed;
3514
 
  iface->job_created = _cups_notifier_on_signal_job_created;
3515
 
  iface->job_completed = _cups_notifier_on_signal_job_completed;
3516
 
  iface->job_state = _cups_notifier_on_signal_job_state;
3517
 
}
3518
 
 
3519
 
/**
3520
 
 * cups_notifier_skeleton_new:
3521
 
 *
3522
 
 * Creates a skeleton object for the D-Bus interface <link linkend="gdbus-interface-org-cups-cupsd-Notifier.top_of_page">org.cups.cupsd.Notifier</link>.
3523
 
 *
3524
 
 * Returns: (transfer full) (type CupsNotifierSkeleton): The skeleton object.
3525
 
 */
3526
 
CupsNotifier *
3527
 
cups_notifier_skeleton_new (void)
3528
 
{
3529
 
  return CUPS_NOTIFIER (g_object_new (CUPS_TYPE_NOTIFIER_SKELETON, NULL));
3530
 
}
3531