This file is indexed.

/usr/share/vala-0.12/vapi/grilo-0.1.vapi is in libgrilo-0.1-dev 0.1.18-1.

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
/* grilo-0.1.vapi generated by vapigen, do not modify. */

[CCode (cprefix = "Grl", lower_case_cprefix = "grl_")]
namespace Grl {
	[CCode (cheader_filename = "grilo.h")]
	public class Config : GLib.Object {
		[CCode (has_construct_function = false)]
		public Config (string plugin, string? source);
		public unowned string get_api_key ();
		public uchar get_api_key_blob (size_t size);
		public unowned string get_api_secret ();
		public unowned string get_api_token ();
		public uchar get_binary (string param, size_t size);
		public bool get_boolean (string param);
		public float get_float (string param);
		public int get_int (string param);
		public unowned string get_password ();
		public unowned string get_plugin ();
		public unowned string get_string (string param);
		public unowned string get_username ();
		public bool has_param (string param);
		public void @set (string param, GLib.Value value);
		public void set_api_key (string key);
		public void set_api_key_blob (uchar blob, size_t size);
		public void set_api_secret (string secret);
		public void set_api_token (string token);
		public void set_binary (string param, uchar blob, size_t size);
		public void set_boolean (string param, bool value);
		public void set_float (string param, float value);
		public void set_int (string param, int value);
		public void set_password (string password);
		public void set_plugin (string plugin);
		public void set_source (string source);
		public void set_string (string param, string value);
		public void set_username (string username);
	}
	[CCode (cheader_filename = "grilo.h")]
	public class Data : GLib.Object {
		[CCode (has_construct_function = false)]
		public Data ();
		public void add (Grl.KeyID key);
		public void add_binary (Grl.KeyID key, uchar buf, size_t size);
		public void add_float (Grl.KeyID key, float floatvalue);
		public void add_int (Grl.KeyID key, int intvalue);
		public void add_related_keys (Grl.RelatedKeys relkeys);
		public void add_string (Grl.KeyID key, string strvalue);
		public unowned Grl.Data dup ();
		public GLib.Value @get (Grl.KeyID key);
		public unowned GLib.List get_all_single_related_keys (Grl.KeyID key);
		public unowned GLib.List get_all_single_related_keys_string (Grl.KeyID key);
		public uchar get_binary (Grl.KeyID key, size_t size);
		public float get_float (Grl.KeyID key);
		public int get_int (Grl.KeyID key);
		public GLib.List<weak Grl.KeyID> get_keys ();
		public bool get_overwrite ();
		public unowned Grl.RelatedKeys get_related_keys (Grl.KeyID key, uint index);
		public unowned GLib.List get_single_values_for_key (Grl.KeyID key);
		public unowned GLib.List get_single_values_for_key_string (Grl.KeyID key);
		public unowned string get_string (Grl.KeyID key);
		public bool has_key (Grl.KeyID key);
		public bool key_is_known (Grl.KeyID key);
		public uint length (Grl.KeyID key);
		public void remove (Grl.KeyID key);
		public void remove_nth (Grl.KeyID key, uint index);
		public void @set (Grl.KeyID key, GLib.Value value);
		public void set_binary (Grl.KeyID key, uchar buf, size_t size);
		public void set_float (Grl.KeyID key, float floatvalue);
		public void set_int (Grl.KeyID key, int intvalue);
		public void set_overwrite (bool overwrite);
		public void set_related_keys (Grl.RelatedKeys relkeys, uint index);
		public void set_string (Grl.KeyID key, string strvalue);
		public bool overwrite { get; set; }
	}
	[CCode (cheader_filename = "grilo.h")]
	[Compact]
	public class KeyID {
	}
	[CCode (cheader_filename = "grilo.h")]
	[Compact]
	public class LogDomain {
		[CCode (has_construct_function = false)]
		public LogDomain (string name);
	}
	[CCode (cheader_filename = "grilo.h")]
	public class Media : Grl.Data {
		[CCode (has_construct_function = false)]
		public Media ();
		public void add_author (string author);
		public void add_external_player (string player);
		public void add_external_url (string url);
		public void add_thumbnail (string thumbnail);
		public void add_thumbnail_binary (uchar thumbnail, size_t size);
		public void add_url_data (string url, string mime);
		public unowned string get_author ();
		public unowned string get_author_nth (uint index);
		public unowned string get_certificate ();
		public unowned string get_creation_date ();
		public unowned string get_date ();
		public unowned string get_description ();
		public int get_duration ();
		public unowned string get_external_url ();
		public unowned string get_external_url_nth (uint index);
		public unowned string get_id ();
		public unowned string get_last_played ();
		public int get_last_position ();
		public unowned string get_license ();
		public unowned string get_mime ();
		public int get_play_count ();
		public unowned string get_player ();
		public unowned string get_player_nth (uint index);
		public float get_rating ();
		public unowned string get_site ();
		public unowned string get_source ();
		public unowned string get_studio ();
		public unowned string get_thumbnail ();
		public uchar get_thumbnail_binary (size_t size);
		public uchar get_thumbnail_binary_nth (size_t size, uint index);
		public unowned string get_thumbnail_nth (uint index);
		public unowned string get_title ();
		public unowned string get_url ();
		public unowned string get_url_data (string mime);
		public unowned string get_url_data_nth (uint index, string mime);
		public unowned string serialize ();
		public unowned string serialize_extended (Grl.MediaSerializeType serial_type);
		public void set_author (string author);
		public void set_certificate (string certificate);
		public void set_creation_date (string creation_date);
		public void set_date (string date);
		public void set_description (string description);
		public void set_duration (int duration);
		public void set_external_player (string player);
		public void set_external_url (string url);
		public void set_id (string id);
		public void set_last_played (string last_played);
		public void set_last_position (int last_position);
		public void set_license (string license);
		public void set_mime (string mime);
		public void set_play_count (int play_count);
		public void set_rating (float rating, float max);
		public void set_site (string site);
		public void set_source (string source);
		public void set_studio (string studio);
		public void set_thumbnail (string thumbnail);
		public void set_thumbnail_binary (uchar thumbnail, size_t size);
		public void set_title (string title);
		public void set_url (string url);
		public void set_url_data (string url, string mime);
		public static unowned Grl.Media unserialize (string serial);
	}
	[CCode (cheader_filename = "grilo.h")]
	public class MediaAudio : Grl.Media {
		[CCode (has_construct_function = false, type = "GrlMedia*")]
		public MediaAudio ();
		public void add_artist (string artist);
		public void add_genre (string genre);
		public void add_lyrics (string lyrics);
		public void add_url_data (string url, string mime, int bitrate);
		public unowned string get_album ();
		public unowned string get_artist ();
		public unowned string get_artist_nth (uint index);
		public int get_bitrate ();
		public unowned string get_genre ();
		public unowned string get_genre_nth (uint index);
		public unowned string get_lyrics ();
		public unowned string get_lyrics_nth (uint index);
		public int get_track_number ();
		public unowned string get_url_data (string mime, int bitrate);
		public unowned string get_url_data_nth (uint index, string mime, int bitrate);
		public void set_album (string album);
		public void set_artist (string artist);
		public void set_bitrate (int bitrate);
		public void set_genre (string genre);
		public void set_lyrics (string lyrics);
		public void set_track_number (int track_number);
		public void set_url_data (string url, string mime, int bitrate);
	}
	[CCode (cheader_filename = "grilo.h")]
	public class MediaBox : Grl.Media {
		[CCode (has_construct_function = false, type = "GrlMedia*")]
		public MediaBox ();
		public int get_childcount ();
		public void set_childcount (int childcount);
	}
	[CCode (cheader_filename = "grilo.h")]
	public class MediaImage : Grl.Media {
		[CCode (has_construct_function = false, type = "GrlMedia*")]
		public MediaImage ();
		public void add_url_data (string url, string mime, int width, int height);
		public unowned string get_camera_model ();
		public float get_exposure_time ();
		public unowned string get_flash_used ();
		public int get_height ();
		public float get_iso_speed ();
		public int get_orientation ();
		public unowned string get_url_data (string mime, int width, int height);
		public unowned string get_url_data_nth (uint index, string mime, int width, int height);
		public int get_width ();
		public void set_camera_model (string camera_model);
		public void set_exposure_time (float exposure_time);
		public void set_flash_used (string flash_used);
		public void set_height (int height);
		public void set_iso_speed (float iso_speed);
		public void set_orientation (int orientation);
		public void set_size (int width, int height);
		public void set_url_data (string url, string mime, int width, int height);
		public void set_width (int width);
	}
	[CCode (cheader_filename = "grilo.h")]
	public class MediaPlugin : GLib.Object {
		[CCode (has_construct_function = false)]
		protected MediaPlugin ();
		public unowned string get_author ();
		public unowned string get_description ();
		public unowned string get_filename ();
		public unowned string get_id ();
		public unowned string get_info (string key);
		public GLib.List<weak string> get_info_keys ();
		public unowned string get_license ();
		public unowned string get_name ();
		public int get_rank ();
		public unowned string get_site ();
		public unowned string get_version ();
	}
	[CCode (cheader_filename = "grilo.h")]
	public class MediaSource : Grl.MetadataSource {
		[CCode (has_construct_function = false)]
		protected MediaSource ();
		public virtual void browse (Grl.Media container, GLib.List<Grl.KeyID> keys, uint skip, uint count, Grl.MetadataResolutionFlags flags, Grl.MediaSourceResultCb callback);
		public GLib.List<Grl.Media> browse_sync (Grl.Media container, GLib.List<Grl.KeyID> keys, uint skip, uint count, Grl.MetadataResolutionFlags flags) throws GLib.Error;
		public virtual void cancel (uint operation_id);
		public uint get_auto_split_threshold ();
		public uint get_media_from_uri (string uri, GLib.List keys, Grl.MetadataResolutionFlags flags, Grl.MediaSourceMetadataCb callback);
		public unowned Grl.Media get_media_from_uri_sync (string uri, GLib.List keys, Grl.MetadataResolutionFlags flags) throws GLib.Error;
		public void* get_operation_data (uint operation_id);
		[NoWrapper]
		public virtual void media_from_uri (Grl.MediaSourceMediaFromUriSpec mfss);
		public virtual void metadata (Grl.Media media, GLib.List<Grl.KeyID> keys, Grl.MetadataResolutionFlags flags, Grl.MediaSourceMetadataCb callback);
		public Grl.Media metadata_sync (Grl.Media media, GLib.List<Grl.KeyID> keys, Grl.MetadataResolutionFlags flags) throws GLib.Error;
		public void notify_change (Grl.Media media, Grl.MediaSourceChangeType change_type, bool location_unknown);
		public void notify_change_list (GLib.PtrArray changed_medias, Grl.MediaSourceChangeType change_type, bool location_unknown);
		public virtual bool notify_change_start () throws GLib.Error;
		public virtual bool notify_change_stop () throws GLib.Error;
		public virtual void query (string query, GLib.List<Grl.KeyID> keys, uint skip, uint count, Grl.MetadataResolutionFlags flags, Grl.MediaSourceResultCb callback);
		public GLib.List<Grl.Media> query_sync (string query, GLib.List<Grl.KeyID> keys, uint skip, uint count, Grl.MetadataResolutionFlags flags) throws GLib.Error;
		public virtual void remove (Grl.Media media, Grl.MediaSourceRemoveCb callback);
		public void remove_sync (Grl.Media media) throws GLib.Error;
		public virtual void search (string text, GLib.List<Grl.KeyID> keys, uint skip, uint count, Grl.MetadataResolutionFlags flags, Grl.MediaSourceResultCb callback);
		public GLib.List<Grl.Media> search_sync (string text, GLib.List<Grl.KeyID> keys, uint skip, uint count, Grl.MetadataResolutionFlags flags) throws GLib.Error;
		public void set_auto_split_threshold (uint threshold);
		public void set_operation_data (uint operation_id, void* data);
		public virtual void store (Grl.MediaBox parent, Grl.Media media, Grl.MediaSourceStoreCb callback);
		public void store_sync (Grl.MediaBox parent, Grl.Media media) throws GLib.Error;
		public virtual bool test_media_from_uri (string uri);
		public uint auto_split_threshold { get; set; }
		public virtual signal void content_changed (GLib.PtrArray p0, Grl.MediaSourceChangeType p1, bool p2);
	}
	[CCode (cheader_filename = "grilo.h")]
	[Compact]
	public class MediaSourceBrowseSpec {
		public uint browse_id;
		public weak Grl.MediaSourceResultCb callback;
		public weak Grl.Media container;
		public uint count;
		public Grl.MetadataResolutionFlags flags;
		public weak GLib.List keys;
		public uint skip;
		public weak Grl.MediaSource source;
		public void* user_data;
	}
	[CCode (cheader_filename = "grilo.h")]
	[Compact]
	public class MediaSourceMediaFromUriSpec {
		public weak Grl.MediaSourceMetadataCb callback;
		public Grl.MetadataResolutionFlags flags;
		public weak GLib.List keys;
		public uint media_from_uri_id;
		public weak Grl.MediaSource source;
		public weak string uri;
		public void* user_data;
	}
	[CCode (cheader_filename = "grilo.h")]
	[Compact]
	public class MediaSourceMetadataSpec {
		public weak Grl.MediaSourceMetadataCb callback;
		public Grl.MetadataResolutionFlags flags;
		public weak GLib.List keys;
		public weak Grl.Media media;
		public uint metadata_id;
		public weak Grl.MediaSource source;
		public void* user_data;
	}
	[CCode (cheader_filename = "grilo.h")]
	[Compact]
	public class MediaSourceQuerySpec {
		public weak Grl.MediaSourceResultCb callback;
		public uint count;
		public Grl.MetadataResolutionFlags flags;
		public weak GLib.List keys;
		public weak string query;
		public uint query_id;
		public uint skip;
		public weak Grl.MediaSource source;
		public void* user_data;
	}
	[CCode (cheader_filename = "grilo.h")]
	[Compact]
	public class MediaSourceRemoveSpec {
		public weak Grl.MediaSourceRemoveCb callback;
		public weak Grl.Media media;
		public weak string media_id;
		public weak Grl.MediaSource source;
		public void* user_data;
	}
	[CCode (cheader_filename = "grilo.h")]
	[Compact]
	public class MediaSourceSearchSpec {
		public weak Grl.MediaSourceResultCb callback;
		public uint count;
		public Grl.MetadataResolutionFlags flags;
		public weak GLib.List keys;
		public uint search_id;
		public uint skip;
		public weak Grl.MediaSource source;
		public weak string text;
		public void* user_data;
	}
	[CCode (cheader_filename = "grilo.h")]
	[Compact]
	public class MediaSourceStoreSpec {
		public weak Grl.MediaSourceStoreCb callback;
		public weak Grl.Media media;
		public weak Grl.MediaBox parent;
		public weak Grl.MediaSource source;
		public void* user_data;
	}
	[CCode (cheader_filename = "grilo.h")]
	public class MediaVideo : Grl.Media {
		[CCode (has_construct_function = false, type = "GrlMedia*")]
		public MediaVideo ();
		public void add_url_data (string url, string mime, float framerate, int width, int height);
		public int get_episode ();
		public float get_framerate ();
		public int get_height ();
		public int get_season ();
		public unowned string get_show ();
		public unowned string get_url_data (string mime, float framerate, int width, int height);
		public unowned string get_url_data_nth (uint index, string mime, float framerate, int width, int height);
		public int get_width ();
		public void set_episode (int episode);
		public void set_framerate (float framerate);
		public void set_height (int height);
		public void set_season (int season);
		public void set_show (string show);
		public void set_size (int width, int height);
		public void set_url_data (string url, string mime, float framerate, int width, int height);
		public void set_width (int width);
	}
	[CCode (cheader_filename = "grilo.h")]
	[Compact]
	public class MetadataKey {
		[CCode (cname = "GRL_METADATA_KEY_ALBUM")]
		public static GLib.ParamSpec ALBUM;
		[CCode (cname = "GRL_METADATA_KEY_ARTIST")]
		public static GLib.ParamSpec ARTIST;
		[CCode (cname = "GRL_METADATA_KEY_AUTHOR")]
		public static GLib.ParamSpec AUTHOR;
		[CCode (cname = "GRL_METADATA_KEY_BITRATE")]
		public static GLib.ParamSpec BITRATE;
		[CCode (cname = "GRL_METADATA_KEY_CERTIFICATE")]
		public static GLib.ParamSpec CERTIFICATE;
		[CCode (cname = "GRL_METADATA_KEY_CHILDCOUNT")]
		public static GLib.ParamSpec CHILDCOUNT;
		[CCode (cname = "GRL_METADATA_KEY_DATE")]
		public static GLib.ParamSpec DATE;
		[CCode (cname = "GRL_METADATA_KEY_DESCRIPTION")]
		public static GLib.ParamSpec DESCRIPTION;
		[CCode (cname = "GRL_METADATA_KEY_DURATION")]
		public static GLib.ParamSpec DURATION;
		[CCode (cname = "GRL_METADATA_KEY_EXTERNAL_PLAYER")]
		public static GLib.ParamSpec EXTERNAL_PLAYER;
		[CCode (cname = "GRL_METADATA_KEY_EXTERNAL_URL")]
		public static GLib.ParamSpec EXTERNAL_URL;
		[CCode (cname = "GRL_METADATA_KEY_FRAMERATE")]
		public static GLib.ParamSpec FRAMERATE;
		[CCode (cname = "GRL_METADATA_KEY_GENRE")]
		public static GLib.ParamSpec GENRE;
		[CCode (cname = "GRL_METADATA_KEY_HEIGHT")]
		public static GLib.ParamSpec HEIGHT;
		[CCode (cname = "GRL_METADATA_KEY_ID")]
		public static GLib.ParamSpec ID;
		[CCode (cname = "GRL_METADATA_KEY_LAST_PLAYED")]
		public static GLib.ParamSpec LAST_PLAYED;
		[CCode (cname = "GRL_METADATA_KEY_LAST_POSITION")]
		public static GLib.ParamSpec LAST_POSITION;
		[CCode (cname = "GRL_METADATA_KEY_LICENSE")]
		public static GLib.ParamSpec LICENSE;
		[CCode (cname = "GRL_METADATA_KEY_LYRICS")]
		public static GLib.ParamSpec LYRICS;
		[CCode (cname = "GRL_METADATA_KEY_MIME")]
		public static GLib.ParamSpec MIME;
		[CCode (cname = "GRL_METADATA_KEY_PLAY_COUNT")]
		public static GLib.ParamSpec PLAY_COUNT;
		[CCode (cname = "GRL_METADATA_KEY_RATING")]
		public static GLib.ParamSpec RATING;
		[CCode (cname = "GRL_METADATA_KEY_SITE")]
		public static GLib.ParamSpec SITE;
		[CCode (cname = "GRL_METADATA_KEY_SOURCE")]
		public static GLib.ParamSpec SOURCE;
		[CCode (cname = "GRL_METADATA_KEY_STUDIO")]
		public static GLib.ParamSpec STUDIO;
		[CCode (cname = "GRL_METADATA_KEY_THUMBNAIL")]
		public static GLib.ParamSpec THUMBNAIL;
		[CCode (cname = "GRL_METADATA_KEY_TITLE")]
		public static GLib.ParamSpec TITLE;
		[CCode (cname = "GRL_METADATA_KEY_URL")]
		public static GLib.ParamSpec URL;
		[CCode (cname = "GRL_METADATA_KEY_WIDTH")]
		public static GLib.ParamSpec WIDTH;
		public static unowned GLib.List list_new (GLib.ParamSpec p, ...);
	}
	[CCode (cheader_filename = "grilo.h")]
	public class MetadataSource : Grl.MediaPlugin {
		[CCode (has_construct_function = false)]
		protected MetadataSource ();
		public virtual void cancel (uint operation_id);
		public GLib.List<weak Grl.KeyID> filter_slow (ref unowned GLib.List<weak Grl.KeyID> keys, bool return_filtered);
		public GLib.List<weak Grl.KeyID> filter_supported (ref unowned GLib.List<weak Grl.KeyID> keys, bool return_filtered);
		public GLib.List<weak Grl.KeyID> filter_writable (ref unowned GLib.List<weak Grl.KeyID> keys, bool return_filtered);
		public unowned string get_description ();
		public unowned string get_id ();
		public unowned string get_name ();
		public void* get_operation_data (uint operation_id);
		public virtual unowned GLib.List<weak Grl.KeyID> key_depends (Grl.KeyID key_id);
		public virtual bool may_resolve (Grl.Media media, Grl.KeyID key_id, out GLib.List<weak Grl.KeyID> missing_keys);
		public virtual void resolve (GLib.List<Grl.KeyID> keys, Grl.Media media, Grl.MetadataResolutionFlags flags, Grl.MetadataSourceResolveCb callback);
		public unowned Grl.Media resolve_sync (GLib.List<Grl.KeyID> keys, Grl.Media media, Grl.MetadataResolutionFlags flags) throws GLib.Error;
		public virtual void set_metadata (Grl.Media media, GLib.List<Grl.KeyID> keys, Grl.MetadataWritingFlags flags, Grl.MetadataSourceSetMetadataCb callback);
		public unowned GLib.List set_metadata_sync (Grl.Media media, GLib.List<Grl.KeyID> keys, Grl.MetadataWritingFlags flags) throws GLib.Error;
		public void set_operation_data (uint operation_id, void* data);
		public virtual unowned GLib.List<weak Grl.KeyID> slow_keys ();
		public virtual unowned GLib.List<weak Grl.KeyID> supported_keys ();
		public virtual Grl.SupportedOps supported_operations ();
		public virtual unowned GLib.List<weak Grl.KeyID> writable_keys ();
		[NoAccessorMethod]
		public string source_desc { owned get; set construct; }
		[NoAccessorMethod]
		public string source_id { owned get; set construct; }
		[NoAccessorMethod]
		public string source_name { owned get; set construct; }
	}
	[CCode (cheader_filename = "grilo.h")]
	[Compact]
	public class MetadataSourceResolveSpec {
		public weak Grl.MetadataSourceResolveCb callback;
		public Grl.MetadataResolutionFlags flags;
		public weak GLib.List keys;
		public weak Grl.Media media;
		public uint resolve_id;
		public weak Grl.MetadataSource source;
		public void* user_data;
	}
	[CCode (cheader_filename = "grilo.h")]
	[Compact]
	public class MetadataSourceSetMetadataSpec {
		public weak Grl.MetadataSourceSetMetadataCb callback;
		public weak GLib.List failed_keys;
		public Grl.MetadataWritingFlags flags;
		public weak GLib.List keys;
		public weak Grl.Media media;
		public weak Grl.MetadataSource source;
		public void* user_data;
	}
	[CCode (cheader_filename = "grilo.h")]
	[Compact]
	public class PluginDescriptor {
		public weak GLib.Module module;
		public weak GLib.Callback plugin_deinit;
		public weak string plugin_id;
		public weak GLib.Callback plugin_init;
	}
	[CCode (cheader_filename = "grilo.h")]
	[Compact]
	public class PluginInfo {
		public weak string filename;
		public weak string id;
		public weak GLib.HashTable optional_info;
		public int rank;
	}
	[CCode (cheader_filename = "grilo.h")]
	public class PluginRegistry : GLib.Object {
		[CCode (has_construct_function = false)]
		protected PluginRegistry ();
		public bool add_config (owned Grl.Config config) throws GLib.Error;
		public bool add_config_from_file (string config_file) throws GLib.Error;
		public void add_directory (string path);
		public static unowned Grl.PluginRegistry get_default ();
		public GLib.List<weak Grl.KeyID> get_metadata_keys ();
		public GLib.List<weak Grl.MediaPlugin> get_sources (bool ranked);
		public GLib.List<weak Grl.MediaPlugin> get_sources_by_operations (Grl.SupportedOps ops, bool ranked);
		public bool load (string library_filename) throws GLib.Error;
		public bool load_all () throws GLib.Error;
		public bool load_by_id (string plugin_id) throws GLib.Error;
		public bool load_directory (string path) throws GLib.Error;
		public unowned Grl.KeyID lookup_metadata_key (string key_name);
		public unowned GLib.List lookup_metadata_key_relation (Grl.KeyID key);
		public unowned Grl.MediaPlugin lookup_source (string source_id);
		public unowned Grl.KeyID register_metadata_key (GLib.ParamSpec key) throws GLib.Error;
		public void register_metadata_key_relation (Grl.KeyID key1, Grl.KeyID key2);
		public bool register_source (Grl.PluginInfo plugin, Grl.MediaPlugin source) throws GLib.Error;
		public bool unload (string plugin_id) throws GLib.Error;
		public bool unregister_source (Grl.MediaPlugin source) throws GLib.Error;
		public virtual signal void source_added (Grl.MediaPlugin p0);
		public virtual signal void source_removed (Grl.MediaPlugin p0);
	}
	[CCode (cheader_filename = "grilo.h")]
	public class RelatedKeys : GLib.Object {
		[CCode (has_construct_function = false)]
		public RelatedKeys ();
		public void add (Grl.KeyID key);
		public unowned Grl.RelatedKeys dup ();
		public GLib.Value @get (Grl.KeyID key);
		public uchar get_binary (Grl.KeyID key, size_t size);
		public float get_float (Grl.KeyID key);
		public int get_int (Grl.KeyID key);
		public unowned GLib.List get_keys ();
		public unowned string get_string (Grl.KeyID key);
		public bool has_key (Grl.KeyID key);
		public bool key_is_known (Grl.KeyID key);
		public void @set (Grl.KeyID key, GLib.Value value);
		public void set_binary (Grl.KeyID key, uchar buf, size_t size);
		public void set_float (Grl.KeyID key, float floatvalue);
		public void set_int (Grl.KeyID key, int intvalue);
		public void set_string (Grl.KeyID key, string strvalue);
		[CCode (has_construct_function = false)]
		public RelatedKeys.valist (Grl.KeyID key, void* args);
		[CCode (has_construct_function = false)]
		public RelatedKeys.with_keys (Grl.KeyID key);
	}
	[CCode (cheader_filename = "grilo.h", cprefix = "GRL_LOG_LEVEL_", has_type_id = false)]
	public enum LogLevel {
		NONE,
		ERROR,
		WARNING,
		MESSAGE,
		INFO,
		DEBUG,
		LAST
	}
	[CCode (cheader_filename = "grilo.h", cprefix = "GRL_MEDIA_SERIALIZE_", has_type_id = false)]
	public enum MediaSerializeType {
		BASIC,
		PARTIAL,
		FULL
	}
	[CCode (cheader_filename = "grilo.h", cprefix = "GRL_CONTENT_", has_type_id = false)]
	public enum MediaSourceChangeType {
		CHANGED,
		ADDED,
		REMOVED
	}
	[CCode (cheader_filename = "grilo.h", cprefix = "GRL_RESOLVE_", has_type_id = false)]
	public enum MetadataResolutionFlags {
		NORMAL,
		FULL,
		IDLE_RELAY,
		FAST_ONLY
	}
	[CCode (cheader_filename = "grilo.h", cprefix = "GRL_WRITE_", has_type_id = false)]
	public enum MetadataWritingFlags {
		NORMAL,
		FULL
	}
	[CCode (cheader_filename = "grilo.h", cprefix = "GRL_PLUGIN_RANK_", has_type_id = false)]
	public enum PluginRank {
		LOWEST,
		LOW,
		DEFAULT,
		HIGH,
		HIGHEST
	}
	[CCode (cheader_filename = "grilo.h", cprefix = "GRL_OP_", has_type_id = false)]
	public enum SupportedOps {
		NONE,
		METADATA,
		RESOLVE,
		BROWSE,
		SEARCH,
		QUERY,
		STORE,
		STORE_PARENT,
		REMOVE,
		SET_METADATA,
		MEDIA_FROM_URI,
		NOTIFY_CHANGE
	}
	[CCode (cheader_filename = "grilo.h", cprefix = "GRL_CORE_ERROR_")]
	public errordomain CoreError {
		BROWSE_FAILED,
		SEARCH_FAILED,
		SEARCH_NULL_UNSUPPORTED,
		QUERY_FAILED,
		METADATA_FAILED,
		RESOLVE_FAILED,
		MEDIA_NOT_FOUND,
		STORE_FAILED,
		REMOVE_FAILED,
		SET_METADATA_FAILED,
		MEDIA_FROM_URI_FAILED,
		CONFIG_LOAD_FAILED,
		CONFIG_FAILED,
		UNREGISTER_SOURCE_FAILED,
		LOAD_PLUGIN_FAILED,
		UNLOAD_PLUGIN_FAILED,
		REGISTER_METADATA_KEY_FAILED,
		NOTIFY_CHANGED_FAILED,
		OPERATION_CANCELLED
	}
	[CCode (cheader_filename = "grilo.h", instance_pos = 3.1)]
	public delegate void MediaSourceMetadataCb (Grl.MediaSource source, uint operation_id, Grl.Media? media, GLib.Error error);
	[CCode (cheader_filename = "grilo.h", instance_pos = 2.1)]
	public delegate void MediaSourceRemoveCb (Grl.MediaSource source, Grl.Media? media, GLib.Error error);
	[CCode (cheader_filename = "grilo.h", instance_pos = 4.1)]
	public delegate void MediaSourceResultCb (Grl.MediaSource source, uint operation_id, Grl.Media? media, uint remaining, GLib.Error? error);
	[CCode (cheader_filename = "grilo.h", instance_pos = 3.1)]
	public delegate void MediaSourceStoreCb (Grl.MediaSource source, Grl.MediaBox? parent, Grl.Media? media, GLib.Error? error);
	[CCode (cheader_filename = "grilo.h", instance_pos = 3.1)]
	public delegate void MetadataSourceResolveCb (Grl.MetadataSource source, uint operation_id, Grl.Media? media, GLib.Error? error);
	[CCode (cheader_filename = "grilo.h", instance_pos = 3.1)]
	public delegate void MetadataSourceSetMetadataCb (Grl.MetadataSource source, Grl.Media? media, GLib.List failed_keys, GLib.Error? error);
	[CCode (cheader_filename = "grilo.h")]
	public const string CONFIG_KEY_APIKEY;
	[CCode (cheader_filename = "grilo.h")]
	public const string CONFIG_KEY_APIKEY_BLOB;
	[CCode (cheader_filename = "grilo.h")]
	public const string CONFIG_KEY_APISECRET;
	[CCode (cheader_filename = "grilo.h")]
	public const string CONFIG_KEY_APITOKEN;
	[CCode (cheader_filename = "grilo.h")]
	public const string CONFIG_KEY_PASSWORD;
	[CCode (cheader_filename = "grilo.h")]
	public const string CONFIG_KEY_PLUGIN;
	[CCode (cheader_filename = "grilo.h")]
	public const string CONFIG_KEY_SOURCE;
	[CCode (cheader_filename = "grilo.h")]
	public const string CONFIG_KEY_USERNAME;
	[CCode (cheader_filename = "grilo.h")]
	public const string KEYID_FORMAT;
	[CCode (cheader_filename = "grilo.h")]
	public const string MEDIA_PLUGIN_AUTHOR;
	[CCode (cheader_filename = "grilo.h")]
	public const string MEDIA_PLUGIN_DESCRIPTION;
	[CCode (cheader_filename = "grilo.h")]
	public const string MEDIA_PLUGIN_LICENSE;
	[CCode (cheader_filename = "grilo.h")]
	public const string MEDIA_PLUGIN_NAME;
	[CCode (cheader_filename = "grilo.h")]
	public const string MEDIA_PLUGIN_SITE;
	[CCode (cheader_filename = "grilo.h")]
	public const string MEDIA_PLUGIN_VERSION;
	[CCode (cheader_filename = "grilo.h")]
	public const string PLUGIN_LIST_VAR;
	[CCode (cheader_filename = "grilo.h")]
	public const string PLUGIN_PATH_VAR;
	[CCode (cheader_filename = "grilo.h")]
	public const string PLUGIN_RANKS_VAR;
	[CCode (cheader_filename = "grilo.h")]
	public static void init ([CCode (array_length_pos = 0.9)] ref unowned string[] argv);
	[CCode (cheader_filename = "grilo.h")]
	public static unowned GLib.OptionGroup init_get_option_group ();
	[CCode (cheader_filename = "grilo.h")]
	public static unowned GLib.List list_from_va (void* p, ...);
	[CCode (cheader_filename = "grilo.h")]
	public static void log (Grl.LogDomain domain, Grl.LogLevel level, string strloc, string format);
	[CCode (cheader_filename = "grilo.h")]
	public static void log_configure (string config);
	[CCode (cheader_filename = "grilo.h")]
	public static unowned string metadata_key_get_desc (Grl.KeyID key);
	[CCode (cheader_filename = "grilo.h")]
	public static unowned string metadata_key_get_name (Grl.KeyID key);
	[CCode (cheader_filename = "grilo.h")]
	public static void multiple_cancel (uint search_id);
	[CCode (cheader_filename = "grilo.h")]
	public static void multiple_get_media_from_uri (string uri, GLib.List keys, Grl.MetadataResolutionFlags flags, Grl.MediaSourceMetadataCb callback);
	[CCode (cheader_filename = "grilo.h")]
	public static uint multiple_search (GLib.List sources, string text, GLib.List keys, uint count, Grl.MetadataResolutionFlags flags, Grl.MediaSourceResultCb callback);
	[CCode (cheader_filename = "grilo.h")]
	public static unowned GLib.List multiple_search_sync (GLib.List sources, string text, GLib.List keys, uint count, Grl.MetadataResolutionFlags flags) throws GLib.Error;
	[CCode (cheader_filename = "grilo.h")]
	public static void paging_translate (uint skip, uint count, uint max_page_size, uint page_size, uint page_number, uint internal_offset);
}