This file is indexed.

/usr/share/gir-1.0/UpstartAppLaunch-2.gir is in libupstart-app-launch2-dev 0.3+14.04.20140411-0ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
<?xml version="1.0"?>
<!-- This file was automatically generated from C sources - DO NOT EDIT!
To affect the contents of this file, edit the original C definitions,
and/or use gtk-doc annotations.  -->
<repository version="1.2"
            xmlns="http://www.gtk.org/introspection/core/1.0"
            xmlns:c="http://www.gtk.org/introspection/c/1.0"
            xmlns:glib="http://www.gtk.org/introspection/glib/1.0">
  <include name="GObject" version="2.0"/>
  <package name="upstart-app-launch-2"/>
  <c:include name="upstart-app-launch.h"/>
  <namespace name="UpstartAppLaunch"
             version="2"
             shared-library="libupstart-app-launch.so.2"
             c:identifier-prefixes="UpstartAppLaunch"
             c:symbol-prefixes="upstart_app_launch">
    <enumeration name="AppFailed" c:type="UpstartAppLaunchAppFailed">
      <doc xml:space="preserve">Types of failure that we report.</doc>
      <member name="crash"
              value="0"
              c:identifier="UPSTART_APP_LAUNCH_APP_FAILED_CRASH">
      </member>
      <member name="start_failure"
              value="1"
              c:identifier="UPSTART_APP_LAUNCH_APP_FAILED_START_FAILURE">
      </member>
    </enumeration>
    <callback name="AppFailedObserver"
              c:type="UpstartAppLaunchAppFailedObserver">
      <doc xml:space="preserve">Function prototype for application failed observers.</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="appid" transfer-ownership="none">
          <type name="utf8" c:type="const gchar*"/>
        </parameter>
        <parameter name="failure_type" transfer-ownership="none">
          <type name="AppFailed" c:type="UpstartAppLaunchAppFailed"/>
        </parameter>
        <parameter name="user_data" transfer-ownership="none" closure="2">
          <type name="gpointer" c:type="gpointer"/>
        </parameter>
      </parameters>
    </callback>
    <callback name="AppObserver" c:type="UpstartAppLaunchAppObserver">
      <doc xml:space="preserve">Function prototype for application observers.</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="appid" transfer-ownership="none">
          <type name="utf8" c:type="const gchar*"/>
        </parameter>
        <parameter name="user_data" transfer-ownership="none" closure="1">
          <type name="gpointer" c:type="gpointer"/>
        </parameter>
      </parameters>
    </callback>
    <callback name="HelperObserver" c:type="UpstartAppLaunchHelperObserver">
      <doc xml:space="preserve">Function to watch for helpers that are starting and stopping</doc>
      <return-value transfer-ownership="none">
        <type name="none" c:type="void"/>
      </return-value>
      <parameters>
        <parameter name="appid" transfer-ownership="none">
          <type name="utf8" c:type="const gchar*"/>
        </parameter>
        <parameter name="instanceid" transfer-ownership="none">
          <type name="utf8" c:type="const gchar*"/>
        </parameter>
        <parameter name="helpertype" transfer-ownership="none">
          <type name="utf8" c:type="const gchar*"/>
        </parameter>
        <parameter name="user_data" transfer-ownership="none" closure="3">
          <type name="gpointer" c:type="gpointer"/>
        </parameter>
      </parameters>
    </callback>
    <function name="app_id_parse"
              c:identifier="upstart_app_launch_app_id_parse">
      <doc xml:space="preserve">Takes an application ID @appid and breaks it into its component parts.  Each
of them can be NULL if those parts aren't desired.  If all are NULL it will
still parse to generate a proper return value check if @appid is valid.</doc>
      <return-value transfer-ownership="none">
        <doc xml:space="preserve">Whether @appid is valid</doc>
        <type name="gboolean" c:type="gboolean"/>
      </return-value>
      <parameters>
        <parameter name="appid" transfer-ownership="none">
          <doc xml:space="preserve">Application ID to parse</doc>
          <type name="utf8" c:type="const gchar*"/>
        </parameter>
        <parameter name="package"
                   direction="out"
                   caller-allocates="0"
                   transfer-ownership="full"
                   allow-none="1">
          <doc xml:space="preserve">Package section of @appid</doc>
          <type name="utf8" c:type="gchar**"/>
        </parameter>
        <parameter name="application"
                   direction="out"
                   caller-allocates="0"
                   transfer-ownership="full"
                   allow-none="1">
          <doc xml:space="preserve">Application section of @appid</doc>
          <type name="utf8" c:type="gchar**"/>
        </parameter>
        <parameter name="version"
                   direction="out"
                   caller-allocates="0"
                   transfer-ownership="full"
                   allow-none="1">
          <doc xml:space="preserve">Version section of @appid</doc>
          <type name="utf8" c:type="gchar**"/>
        </parameter>
      </parameters>
    </function>
    <function name="application_log_path"
              c:identifier="upstart_app_launch_application_log_path">
      <doc xml:space="preserve">Calculates the path for the log file that may be generated by
the application.  The log file won't be created until the application
prints some output.  Also, this doens't work for legacy applications
that are multi-instance, only single instance ones.</doc>
      <return-value transfer-ownership="full">
        <doc xml:space="preserve">Path to a log file or NULL if unavailable</doc>
        <type name="utf8" c:type="gchar*"/>
      </return-value>
      <parameters>
        <parameter name="appid" transfer-ownership="none">
          <doc xml:space="preserve">ID of the application</doc>
          <type name="utf8" c:type="const gchar*"/>
        </parameter>
      </parameters>
    </function>
    <function name="get_primary_pid"
              c:identifier="upstart_app_launch_get_primary_pid">
      <doc xml:space="preserve">Checks to see if an application is running and returns its
main PID if so.</doc>
      <return-value transfer-ownership="none">
        <doc xml:space="preserve">Either the PID of the application or 0 if it
    is not running.</doc>
        <type name="GLib.Pid" c:type="GPid"/>
      </return-value>
      <parameters>
        <parameter name="appid" transfer-ownership="none">
          <doc xml:space="preserve">ID of the application to look for</doc>
          <type name="utf8" c:type="const gchar*"/>
        </parameter>
      </parameters>
    </function>
    <function name="list_helper_instances"
              c:identifier="upstart_app_launch_list_helper_instances">
      <doc xml:space="preserve">List all the instances for a particular AppID</doc>
      <return-value transfer-ownership="full">
        <doc xml:space="preserve">List of instance IDs</doc>
        <array c:type="gchar**">
          <type name="utf8"/>
        </array>
      </return-value>
      <parameters>
        <parameter name="type" transfer-ownership="none">
          <doc xml:space="preserve">Type of helper</doc>
          <type name="utf8" c:type="const gchar*"/>
        </parameter>
        <parameter name="appid" transfer-ownership="none">
          <doc xml:space="preserve">AppID of helper</doc>
          <type name="utf8" c:type="const gchar*"/>
        </parameter>
      </parameters>
    </function>
    <function name="list_helpers"
              c:identifier="upstart_app_launch_list_helpers">
      <doc xml:space="preserve">List all App IDs of helpers of a given @type.</doc>
      <return-value transfer-ownership="full">
        <doc xml:space="preserve">List of application IDs</doc>
        <array c:type="gchar**">
          <type name="utf8"/>
        </array>
      </return-value>
      <parameters>
        <parameter name="type" transfer-ownership="none">
          <doc xml:space="preserve">Type of helper</doc>
          <type name="utf8" c:type="const gchar*"/>
        </parameter>
      </parameters>
    </function>
    <function name="list_running_apps"
              c:identifier="upstart_app_launch_list_running_apps">
      <doc xml:space="preserve">Gets the Application IDs of all the running applications
in the system.</doc>
      <return-value transfer-ownership="full">
        <doc xml:space="preserve">A NULL terminated list of
    application IDs.  Should be free'd with g_strfreev().</doc>
        <array c:type="gchar**">
          <type name="utf8"/>
        </array>
      </return-value>
    </function>
    <function name="observer_add_app_failed"
              c:identifier="upstart_app_launch_observer_add_app_failed">
      <doc xml:space="preserve">Sets up a callback to get called each time an application
stops via failure.</doc>
      <return-value transfer-ownership="none">
        <doc xml:space="preserve">Whether adding the observer was successful.</doc>
        <type name="gboolean" c:type="gboolean"/>
      </return-value>
      <parameters>
        <parameter name="observer"
                   transfer-ownership="none"
                   scope="notified"
                   closure="1">
          <doc xml:space="preserve">Callback when an application fails</doc>
          <type name="AppFailedObserver"
                c:type="UpstartAppLaunchAppFailedObserver"/>
        </parameter>
        <parameter name="user_data" transfer-ownership="none" allow-none="1">
          <doc xml:space="preserve">Data to pass to the observer</doc>
          <type name="gpointer" c:type="gpointer"/>
        </parameter>
      </parameters>
    </function>
    <function name="observer_add_app_focus"
              c:identifier="upstart_app_launch_observer_add_app_focus">
      <doc xml:space="preserve">Sets up a callback to get called each time an app gets called
that is already running, so we request it to be focused again.</doc>
      <return-value transfer-ownership="none">
        <doc xml:space="preserve">Whether adding the observer was successful.</doc>
        <type name="gboolean" c:type="gboolean"/>
      </return-value>
      <parameters>
        <parameter name="observer"
                   transfer-ownership="none"
                   scope="notified"
                   closure="1">
          <doc xml:space="preserve">Callback when an application is started for the second time</doc>
          <type name="AppObserver" c:type="UpstartAppLaunchAppObserver"/>
        </parameter>
        <parameter name="user_data" transfer-ownership="none" allow-none="1">
          <doc xml:space="preserve">Data to pass to the observer</doc>
          <type name="gpointer" c:type="gpointer"/>
        </parameter>
      </parameters>
    </function>
    <function name="observer_add_app_resume"
              c:identifier="upstart_app_launch_observer_add_app_resume">
      <doc xml:space="preserve">Sets up a callback to get called each time an app gets called
that is already running, so we request it to be given CPU time.
At the end of the observer running the app as assumed to be active.</doc>
      <return-value transfer-ownership="none">
        <doc xml:space="preserve">Whether adding the observer was successful.</doc>
        <type name="gboolean" c:type="gboolean"/>
      </return-value>
      <parameters>
        <parameter name="observer"
                   transfer-ownership="none"
                   scope="notified"
                   closure="1">
          <doc xml:space="preserve">Callback when an application is started and possibly asleep</doc>
          <type name="AppObserver" c:type="UpstartAppLaunchAppObserver"/>
        </parameter>
        <parameter name="user_data" transfer-ownership="none" allow-none="1">
          <doc xml:space="preserve">Data to pass to the observer</doc>
          <type name="gpointer" c:type="gpointer"/>
        </parameter>
      </parameters>
    </function>
    <function name="observer_add_app_started"
              c:identifier="upstart_app_launch_observer_add_app_started">
      <doc xml:space="preserve">Sets up a callback to get called each time an application
has been started.</doc>
      <return-value transfer-ownership="none">
        <doc xml:space="preserve">Whether adding the observer was successful.</doc>
        <type name="gboolean" c:type="gboolean"/>
      </return-value>
      <parameters>
        <parameter name="observer"
                   transfer-ownership="none"
                   scope="notified"
                   closure="1">
          <doc xml:space="preserve">Callback when an application started</doc>
          <type name="AppObserver" c:type="UpstartAppLaunchAppObserver"/>
        </parameter>
        <parameter name="user_data" transfer-ownership="none" allow-none="1">
          <doc xml:space="preserve">Data to pass to the observer</doc>
          <type name="gpointer" c:type="gpointer"/>
        </parameter>
      </parameters>
    </function>
    <function name="observer_add_app_starting"
              c:identifier="upstart_app_launch_observer_add_app_starting">
      <doc xml:space="preserve">Sets up a callback to get called each time an application
is about to start.  The application will not start until the
function returns.</doc>
      <return-value transfer-ownership="none">
        <doc xml:space="preserve">Whether adding the observer was successful.</doc>
        <type name="gboolean" c:type="gboolean"/>
      </return-value>
      <parameters>
        <parameter name="observer"
                   transfer-ownership="none"
                   scope="notified"
                   closure="1">
          <doc xml:space="preserve">Callback when an application is about to start</doc>
          <type name="AppObserver" c:type="UpstartAppLaunchAppObserver"/>
        </parameter>
        <parameter name="user_data" transfer-ownership="none" allow-none="1">
          <doc xml:space="preserve">Data to pass to the observer</doc>
          <type name="gpointer" c:type="gpointer"/>
        </parameter>
      </parameters>
    </function>
    <function name="observer_add_app_stop"
              c:identifier="upstart_app_launch_observer_add_app_stop">
      <doc xml:space="preserve">Sets up a callback to get called each time an application
stops.</doc>
      <return-value transfer-ownership="none">
        <doc xml:space="preserve">Whether adding the observer was successful.</doc>
        <type name="gboolean" c:type="gboolean"/>
      </return-value>
      <parameters>
        <parameter name="observer"
                   transfer-ownership="none"
                   scope="notified"
                   closure="1">
          <doc xml:space="preserve">Callback when an application stops</doc>
          <type name="AppObserver" c:type="UpstartAppLaunchAppObserver"/>
        </parameter>
        <parameter name="user_data" transfer-ownership="none" allow-none="1">
          <doc xml:space="preserve">Data to pass to the observer</doc>
          <type name="gpointer" c:type="gpointer"/>
        </parameter>
      </parameters>
    </function>
    <function name="observer_add_helper_started"
              c:identifier="upstart_app_launch_observer_add_helper_started">
      <doc xml:space="preserve">Sets up a callback to get called each time a helper of
@helper_type has been started.</doc>
      <return-value transfer-ownership="none">
        <doc xml:space="preserve">Whether adding the observer was successful.</doc>
        <type name="gboolean" c:type="gboolean"/>
      </return-value>
      <parameters>
        <parameter name="observer"
                   transfer-ownership="none"
                   scope="notified"
                   closure="2">
          <doc xml:space="preserve">Callback when a helper started</doc>
          <type name="HelperObserver" c:type="UpstartAppLaunchHelperObserver"/>
        </parameter>
        <parameter name="helper_type" transfer-ownership="none" allow-none="1">
          <doc xml:space="preserve">Type of helpers to look for</doc>
          <type name="utf8" c:type="const gchar*"/>
        </parameter>
        <parameter name="user_data" transfer-ownership="none" allow-none="1">
          <doc xml:space="preserve">Data to pass to the observer</doc>
          <type name="gpointer" c:type="gpointer"/>
        </parameter>
      </parameters>
    </function>
    <function name="observer_add_helper_stop"
              c:identifier="upstart_app_launch_observer_add_helper_stop">
      <doc xml:space="preserve">Sets up a callback to get called each time a helper of
@helper_type stops.</doc>
      <return-value transfer-ownership="none">
        <doc xml:space="preserve">Whether adding the observer was successful.</doc>
        <type name="gboolean" c:type="gboolean"/>
      </return-value>
      <parameters>
        <parameter name="observer"
                   transfer-ownership="none"
                   scope="notified"
                   closure="2">
          <doc xml:space="preserve">Callback when a helper stops</doc>
          <type name="HelperObserver" c:type="UpstartAppLaunchHelperObserver"/>
        </parameter>
        <parameter name="helper_type" transfer-ownership="none" allow-none="1">
          <doc xml:space="preserve">Type of helpers to look for</doc>
          <type name="utf8" c:type="const gchar*"/>
        </parameter>
        <parameter name="user_data" transfer-ownership="none" allow-none="1">
          <doc xml:space="preserve">Data to pass to the observer</doc>
          <type name="gpointer" c:type="gpointer"/>
        </parameter>
      </parameters>
    </function>
    <function name="observer_delete_app_failed"
              c:identifier="upstart_app_launch_observer_delete_app_failed">
      <doc xml:space="preserve">Removes a previously registered callback to ensure it no longer
gets signaled.</doc>
      <return-value transfer-ownership="none">
        <doc xml:space="preserve">Whether deleting the observer was successful.</doc>
        <type name="gboolean" c:type="gboolean"/>
      </return-value>
      <parameters>
        <parameter name="observer"
                   transfer-ownership="none"
                   scope="notified"
                   closure="1">
          <doc xml:space="preserve">Callback to remove</doc>
          <type name="AppFailedObserver"
                c:type="UpstartAppLaunchAppFailedObserver"/>
        </parameter>
        <parameter name="user_data" transfer-ownership="none" allow-none="1">
          <doc xml:space="preserve">Data to pass to the observer</doc>
          <type name="gpointer" c:type="gpointer"/>
        </parameter>
      </parameters>
    </function>
    <function name="observer_delete_app_focus"
              c:identifier="upstart_app_launch_observer_delete_app_focus">
      <doc xml:space="preserve">Removes a previously registered callback to ensure it no longer
gets signaled.</doc>
      <return-value transfer-ownership="none">
        <doc xml:space="preserve">Whether deleting the observer was successful.</doc>
        <type name="gboolean" c:type="gboolean"/>
      </return-value>
      <parameters>
        <parameter name="observer"
                   transfer-ownership="none"
                   scope="notified"
                   closure="1">
          <doc xml:space="preserve">Callback to remove</doc>
          <type name="AppObserver" c:type="UpstartAppLaunchAppObserver"/>
        </parameter>
        <parameter name="user_data" transfer-ownership="none" allow-none="1">
          <doc xml:space="preserve">Data that was passed to the observer</doc>
          <type name="gpointer" c:type="gpointer"/>
        </parameter>
      </parameters>
    </function>
    <function name="observer_delete_app_resume"
              c:identifier="upstart_app_launch_observer_delete_app_resume">
      <doc xml:space="preserve">Removes a previously registered callback to ensure it no longer
gets signaled.</doc>
      <return-value transfer-ownership="none">
        <doc xml:space="preserve">Whether deleting the observer was successful.</doc>
        <type name="gboolean" c:type="gboolean"/>
      </return-value>
      <parameters>
        <parameter name="observer"
                   transfer-ownership="none"
                   scope="notified"
                   closure="1">
          <doc xml:space="preserve">Callback to remove</doc>
          <type name="AppObserver" c:type="UpstartAppLaunchAppObserver"/>
        </parameter>
        <parameter name="user_data" transfer-ownership="none" allow-none="1">
          <doc xml:space="preserve">Data that was passed to the observer</doc>
          <type name="gpointer" c:type="gpointer"/>
        </parameter>
      </parameters>
    </function>
    <function name="observer_delete_app_started"
              c:identifier="upstart_app_launch_observer_delete_app_started">
      <doc xml:space="preserve">Removes a previously registered callback to ensure it no longer
gets signaled.</doc>
      <return-value transfer-ownership="none">
        <doc xml:space="preserve">Whether deleting the observer was successful.</doc>
        <type name="gboolean" c:type="gboolean"/>
      </return-value>
      <parameters>
        <parameter name="observer"
                   transfer-ownership="none"
                   scope="notified"
                   closure="1">
          <doc xml:space="preserve">Callback to remove</doc>
          <type name="AppObserver" c:type="UpstartAppLaunchAppObserver"/>
        </parameter>
        <parameter name="user_data" transfer-ownership="none" allow-none="1">
          <doc xml:space="preserve">Data that was passed to the observer</doc>
          <type name="gpointer" c:type="gpointer"/>
        </parameter>
      </parameters>
    </function>
    <function name="observer_delete_app_starting"
              c:identifier="upstart_app_launch_observer_delete_app_starting">
      <doc xml:space="preserve">Removes a previously registered callback to ensure it no longer
gets signaled.</doc>
      <return-value transfer-ownership="none">
        <doc xml:space="preserve">Whether deleting the observer was successful.</doc>
        <type name="gboolean" c:type="gboolean"/>
      </return-value>
      <parameters>
        <parameter name="observer"
                   transfer-ownership="none"
                   scope="notified"
                   closure="1">
          <doc xml:space="preserve">Callback to remove</doc>
          <type name="AppObserver" c:type="UpstartAppLaunchAppObserver"/>
        </parameter>
        <parameter name="user_data" transfer-ownership="none" allow-none="1">
          <doc xml:space="preserve">Data that was passed to the observer</doc>
          <type name="gpointer" c:type="gpointer"/>
        </parameter>
      </parameters>
    </function>
    <function name="observer_delete_app_stop"
              c:identifier="upstart_app_launch_observer_delete_app_stop">
      <doc xml:space="preserve">Removes a previously registered callback to ensure it no longer
gets signaled.</doc>
      <return-value transfer-ownership="none">
        <doc xml:space="preserve">Whether deleting the observer was successful.</doc>
        <type name="gboolean" c:type="gboolean"/>
      </return-value>
      <parameters>
        <parameter name="observer"
                   transfer-ownership="none"
                   scope="notified"
                   closure="1">
          <doc xml:space="preserve">Callback to remove</doc>
          <type name="AppObserver" c:type="UpstartAppLaunchAppObserver"/>
        </parameter>
        <parameter name="user_data" transfer-ownership="none" allow-none="1">
          <doc xml:space="preserve">Data that was passed to the observer</doc>
          <type name="gpointer" c:type="gpointer"/>
        </parameter>
      </parameters>
    </function>
    <function name="observer_delete_helper_started"
              c:identifier="upstart_app_launch_observer_delete_helper_started">
      <doc xml:space="preserve">Removes a previously registered callback to ensure it no longer
gets signaled.</doc>
      <return-value transfer-ownership="none">
        <doc xml:space="preserve">Whether deleting the observer was successful.</doc>
        <type name="gboolean" c:type="gboolean"/>
      </return-value>
      <parameters>
        <parameter name="observer"
                   transfer-ownership="none"
                   scope="notified"
                   closure="2">
          <doc xml:space="preserve">Callback to remove</doc>
          <type name="HelperObserver" c:type="UpstartAppLaunchHelperObserver"/>
        </parameter>
        <parameter name="helper_type" transfer-ownership="none" allow-none="1">
          <doc xml:space="preserve">Type of helpers it looked for</doc>
          <type name="utf8" c:type="const gchar*"/>
        </parameter>
        <parameter name="user_data" transfer-ownership="none" allow-none="1">
          <doc xml:space="preserve">Data that was passed to the observer</doc>
          <type name="gpointer" c:type="gpointer"/>
        </parameter>
      </parameters>
    </function>
    <function name="observer_delete_helper_stop"
              c:identifier="upstart_app_launch_observer_delete_helper_stop">
      <doc xml:space="preserve">Removes a previously registered callback to ensure it no longer
gets signaled.</doc>
      <return-value transfer-ownership="none">
        <doc xml:space="preserve">Whether deleting the observer was successful.</doc>
        <type name="gboolean" c:type="gboolean"/>
      </return-value>
      <parameters>
        <parameter name="observer"
                   transfer-ownership="none"
                   scope="notified"
                   closure="2">
          <doc xml:space="preserve">Callback to remove</doc>
          <type name="HelperObserver" c:type="UpstartAppLaunchHelperObserver"/>
        </parameter>
        <parameter name="helper_type" transfer-ownership="none" allow-none="1">
          <doc xml:space="preserve">Type of helpers it looked for</doc>
          <type name="utf8" c:type="const gchar*"/>
        </parameter>
        <parameter name="user_data" transfer-ownership="none" allow-none="1">
          <doc xml:space="preserve">Data that was passed to the observer</doc>
          <type name="gpointer" c:type="gpointer"/>
        </parameter>
      </parameters>
    </function>
    <function name="pid_in_app_id"
              c:identifier="upstart_app_launch_pid_in_app_id">
      <doc xml:space="preserve">Checks to see if a PID is associated with the current application ID.

Currently the implementation just calls upstart_app_launch_get_primary_pid()
and checks to see if they're the same.  But in the future this will check
any PID created in the cgroup to see if it is associated.</doc>
      <return-value transfer-ownership="none">
        <doc xml:space="preserve">Whether @pid is associated with the @appid</doc>
        <type name="gboolean" c:type="gboolean"/>
      </return-value>
      <parameters>
        <parameter name="pid" transfer-ownership="none">
          <doc xml:space="preserve">Process ID to check on</doc>
          <type name="GLib.Pid" c:type="GPid"/>
        </parameter>
        <parameter name="appid" transfer-ownership="none">
          <doc xml:space="preserve">ID of the application to look in</doc>
          <type name="utf8" c:type="const gchar*"/>
        </parameter>
      </parameters>
    </function>
    <function name="start_application"
              c:identifier="upstart_app_launch_start_application">
      <doc xml:space="preserve">Asks upstart to launch an application.</doc>
      <return-value transfer-ownership="none">
        <doc xml:space="preserve">Whether the launch succeeded (may fail later, but upstart
   will report the error in that case.</doc>
        <type name="gboolean" c:type="gboolean"/>
      </return-value>
      <parameters>
        <parameter name="appid" transfer-ownership="none">
          <doc xml:space="preserve">ID of the application to launch</doc>
          <type name="utf8" c:type="const gchar*"/>
        </parameter>
        <parameter name="uris" transfer-ownership="none" allow-none="1">
          <doc xml:space="preserve">A NULL terminated list of URIs to send to the application</doc>
          <array c:type="gchar**">
            <type name="utf8"/>
          </array>
        </parameter>
      </parameters>
    </function>
    <function name="start_application_test"
              c:identifier="upstart_app_launch_start_application_test">
      <doc xml:space="preserve">Asks upstart to launch an application with environment variables set
to enable testing.  Should only be used in testing.</doc>
      <return-value transfer-ownership="none">
        <doc xml:space="preserve">Whether the launch succeeded (may fail later, but upstart
   will report the error in that case.</doc>
        <type name="gboolean" c:type="gboolean"/>
      </return-value>
      <parameters>
        <parameter name="appid" transfer-ownership="none">
          <doc xml:space="preserve">ID of the application to launch</doc>
          <type name="utf8" c:type="const gchar*"/>
        </parameter>
        <parameter name="uris" transfer-ownership="none" allow-none="1">
          <doc xml:space="preserve">A NULL terminated list of URIs to send to the application</doc>
          <array c:type="gchar**">
            <type name="utf8"/>
          </array>
        </parameter>
      </parameters>
    </function>
    <function name="start_helper"
              c:identifier="upstart_app_launch_start_helper">
      <doc xml:space="preserve">Start an untrusted helper for a specific @type on a given
@appid.  We don't know how that is done specifically, as Upstart
will call a helper for that type.  And then execute it under the
AppArmor profile for the helper as defined in its manifest.</doc>
      <return-value transfer-ownership="none">
        <doc xml:space="preserve">Whether the helper was able to be started</doc>
        <type name="gboolean" c:type="gboolean"/>
      </return-value>
      <parameters>
        <parameter name="type" transfer-ownership="none">
          <doc xml:space="preserve">Type of helper</doc>
          <type name="utf8" c:type="const gchar*"/>
        </parameter>
        <parameter name="appid" transfer-ownership="none">
          <doc xml:space="preserve">App ID of the helper</doc>
          <type name="utf8" c:type="const gchar*"/>
        </parameter>
        <parameter name="uris" transfer-ownership="none" allow-none="1">
          <doc xml:space="preserve">A NULL terminated list of URIs to send to the helper</doc>
          <array c:type="gchar**">
            <type name="utf8"/>
          </array>
        </parameter>
      </parameters>
    </function>
    <function name="start_multiple_helper"
              c:identifier="upstart_app_launch_start_multiple_helper">
      <doc xml:space="preserve">Start an untrusted helper for a specific @type on a given
@appid.  We don't know how that is done specifically, as Upstart
will call a helper for that type.  And then execute it under the
Apparmor profile for that helper type.  This function is different
from @upstart_app_launch_start_helper in that it works for helpers
that aren't single instance and the manager will be managing the
instances as well.</doc>
      <return-value transfer-ownership="full">
        <doc xml:space="preserve">The generated instance ID or NULL on failure</doc>
        <type name="utf8" c:type="gchar*"/>
      </return-value>
      <parameters>
        <parameter name="type" transfer-ownership="none">
          <doc xml:space="preserve">Type of helper</doc>
          <type name="utf8" c:type="const gchar*"/>
        </parameter>
        <parameter name="appid" transfer-ownership="none">
          <doc xml:space="preserve">App ID of the helper</doc>
          <type name="utf8" c:type="const gchar*"/>
        </parameter>
        <parameter name="uris" transfer-ownership="none" allow-none="1">
          <doc xml:space="preserve">A NULL terminated list of URIs to send to the helper</doc>
          <array c:type="gchar**">
            <type name="utf8"/>
          </array>
        </parameter>
      </parameters>
    </function>
    <function name="stop_application"
              c:identifier="upstart_app_launch_stop_application">
      <doc xml:space="preserve">Asks upstart to stop an application.</doc>
      <return-value transfer-ownership="none">
        <doc xml:space="preserve">Whether we were able to ask Upstart to stop the process,
   used upstart_app_launch_observer_add_app_stop() to know when it is
   finally stopped.</doc>
        <type name="gboolean" c:type="gboolean"/>
      </return-value>
      <parameters>
        <parameter name="appid" transfer-ownership="none">
          <doc xml:space="preserve">ID of the application to launch</doc>
          <type name="utf8" c:type="const gchar*"/>
        </parameter>
      </parameters>
    </function>
    <function name="stop_helper" c:identifier="upstart_app_launch_stop_helper">
      <doc xml:space="preserve">Asks Upstart to kill a helper.  In general, this should be a last resort
as we should ask the helper a better way probably with an in-band protocol
of use.</doc>
      <return-value transfer-ownership="none">
        <doc xml:space="preserve">Whether the helper is stopped</doc>
        <type name="gboolean" c:type="gboolean"/>
      </return-value>
      <parameters>
        <parameter name="type" transfer-ownership="none">
          <doc xml:space="preserve">Type of helper</doc>
          <type name="utf8" c:type="const gchar*"/>
        </parameter>
        <parameter name="appid" transfer-ownership="none">
          <doc xml:space="preserve">App ID of the helper</doc>
          <type name="utf8" c:type="const gchar*"/>
        </parameter>
      </parameters>
    </function>
    <function name="stop_multiple_helper"
              c:identifier="upstart_app_launch_stop_multiple_helper">
      <doc xml:space="preserve">Asks Upstart to kill a helper.  In general, this should be a last resort
as we should ask the helper a better way probably with an in-band protocol
of use.</doc>
      <return-value transfer-ownership="none">
        <doc xml:space="preserve">Whether the helper is stopped</doc>
        <type name="gboolean" c:type="gboolean"/>
      </return-value>
      <parameters>
        <parameter name="type" transfer-ownership="none">
          <doc xml:space="preserve">Type of helper</doc>
          <type name="utf8" c:type="const gchar*"/>
        </parameter>
        <parameter name="appid" transfer-ownership="none">
          <doc xml:space="preserve">App ID of the helper</doc>
          <type name="utf8" c:type="const gchar*"/>
        </parameter>
        <parameter name="instanceid" transfer-ownership="none">
          <doc xml:space="preserve">The instance ID returned when starting the helper</doc>
          <type name="utf8" c:type="const gchar*"/>
        </parameter>
      </parameters>
    </function>
    <function name="triplet_to_app_id"
              c:identifier="upstart_app_launch_triplet_to_app_id">
      <doc xml:space="preserve">Constructs an appid from pkg, app, version triple.  Wildcards are allowed
for the @app and @version parameters.

For the @app parameter the wildcards * "first-listed-app", "last-listed-app"
and "only-listed-app" can be used.  A NULL value will default to the
first listed app.

For the @version parameter only one wildcard is allowed, "current-user-version".
If NULL is passed that is the default.</doc>
      <return-value transfer-ownership="full">
        <doc xml:space="preserve">Either the properly constructed @appid or NULL if it failed
    to construct it.</doc>
        <type name="utf8" c:type="gchar*"/>
      </return-value>
      <parameters>
        <parameter name="pkg" transfer-ownership="none">
          <doc xml:space="preserve">Click package name</doc>
          <type name="utf8" c:type="const gchar*"/>
        </parameter>
        <parameter name="app" transfer-ownership="none" allow-none="1">
          <doc xml:space="preserve">Application name, see description</doc>
          <type name="utf8" c:type="const gchar*"/>
        </parameter>
        <parameter name="version" transfer-ownership="none" allow-none="1">
          <doc xml:space="preserve">Specific version or wildcard, see description</doc>
          <type name="utf8" c:type="const gchar*"/>
        </parameter>
      </parameters>
    </function>
  </namespace>
</repository>