grilo-0.3.vapi 49 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033
  1. /* grilo-0.3.vapi generated by vapigen-0.30, do not modify. */
  2. [CCode (cprefix = "Grl", gir_namespace = "Grl", gir_version = "0.3", lower_case_cprefix = "grl_")]
  3. namespace Grl {
  4. [CCode (cheader_filename = "grilo.h", type_id = "grl_caps_get_type ()")]
  5. public class Caps : GLib.Object {
  6. [CCode (has_construct_function = false)]
  7. public Caps ();
  8. public unowned GLib.List<Grl.KeyID> get_key_filter ();
  9. public unowned GLib.List<Grl.KeyID> get_key_range_filter ();
  10. public Grl.TypeFilter get_type_filter ();
  11. public bool is_key_filter (Grl.KeyID key);
  12. public bool is_key_range_filter (Grl.KeyID key);
  13. public void set_key_filter (GLib.List<Grl.KeyID> keys);
  14. public void set_key_range_filter (GLib.List<Grl.KeyID> keys);
  15. public void set_type_filter (Grl.TypeFilter filter);
  16. public bool test_option (string key, GLib.Value value);
  17. }
  18. [CCode (cheader_filename = "grilo.h", type_id = "grl_config_get_type ()")]
  19. public class Config : GLib.Object {
  20. [CCode (array_length = false, array_null_terminated = true)]
  21. public weak void*[] _grl_reserved;
  22. [CCode (has_construct_function = false)]
  23. public Config (string plugin, string? source);
  24. public string get_api_key ();
  25. public uint8 get_api_key_blob (size_t size);
  26. public string get_api_secret ();
  27. public string get_api_token ();
  28. public string get_api_token_secret ();
  29. public uint8 get_binary (string param, size_t? size);
  30. public bool get_boolean (string param);
  31. public float get_float (string param);
  32. public int get_int (string param);
  33. public string get_password ();
  34. public string get_plugin ();
  35. public string get_source ();
  36. public string get_string (string param);
  37. public string get_username ();
  38. public bool has_param (string param);
  39. public void @set (string param, GLib.Value value);
  40. public void set_api_key (string key);
  41. public void set_api_key_blob (uint8 blob, size_t size);
  42. public void set_api_secret (string secret);
  43. public void set_api_token (string token);
  44. public void set_api_token_secret (string secret);
  45. public void set_binary (string param, uint8 blob, size_t size);
  46. public void set_boolean (string param, bool value);
  47. public void set_float (string param, float value);
  48. public void set_int (string param, int value);
  49. public void set_password (string password);
  50. public void set_plugin (string plugin);
  51. public void set_source (string source);
  52. public void set_string (string param, string value);
  53. public void set_username (string username);
  54. }
  55. [CCode (cheader_filename = "grilo.h", type_id = "grl_data_get_type ()")]
  56. public class Data : GLib.Object {
  57. [CCode (array_length = false, array_null_terminated = true)]
  58. public weak void*[] _grl_reserved;
  59. [CCode (has_construct_function = false)]
  60. public Data ();
  61. public void add_binary (Grl.KeyID key, uint8 buf, size_t size);
  62. public void add_boxed (Grl.KeyID key, void* boxed);
  63. public void add_float (Grl.KeyID key, float floatvalue);
  64. public void add_int (Grl.KeyID key, int intvalue);
  65. public void add_int64 (Grl.KeyID key, int64 intvalue);
  66. public void add_related_keys (Grl.RelatedKeys relkeys);
  67. public void add_string (Grl.KeyID key, string strvalue);
  68. public Grl.Data dup ();
  69. public unowned GLib.Value? @get (Grl.KeyID key);
  70. public uint8 get_binary (Grl.KeyID key, out size_t size);
  71. public bool get_boolean (Grl.KeyID key);
  72. public void* get_boxed (Grl.KeyID key);
  73. public float get_float (Grl.KeyID key);
  74. public int get_int (Grl.KeyID key);
  75. public int64 get_int64 (Grl.KeyID key);
  76. public GLib.List<weak Grl.KeyID> get_keys ();
  77. public unowned Grl.RelatedKeys get_related_keys (Grl.KeyID key, uint index);
  78. public GLib.List<weak GLib.Value?> get_single_values_for_key (Grl.KeyID key);
  79. public GLib.List<weak string> get_single_values_for_key_string (Grl.KeyID key);
  80. public unowned string get_string (Grl.KeyID key);
  81. public bool has_key (Grl.KeyID key);
  82. public uint length (Grl.KeyID key);
  83. public void remove (Grl.KeyID key);
  84. public void remove_nth (Grl.KeyID key, uint index);
  85. public void @set (Grl.KeyID key, GLib.Value value);
  86. public void set_binary (Grl.KeyID key, uint8 buf, size_t size);
  87. public void set_boolean (Grl.KeyID key, bool boolvalue);
  88. public void set_boxed (Grl.KeyID key, void* boxed);
  89. public void set_float (Grl.KeyID key, float floatvalue);
  90. public void set_int (Grl.KeyID key, int intvalue);
  91. public void set_int64 (Grl.KeyID key, int64 intvalue);
  92. public void set_related_keys (Grl.RelatedKeys relkeys, uint index);
  93. public void set_string (Grl.KeyID key, string strvalue);
  94. }
  95. [CCode (cheader_filename = "grilo.h")]
  96. [Compact]
  97. public class LogDomain {
  98. public void free ();
  99. }
  100. [CCode (cheader_filename = "grilo.h", type_id = "grl_media_get_type ()")]
  101. public class Media : Grl.Data {
  102. [CCode (has_construct_function = false)]
  103. public Media ();
  104. public void add_artist (string artist);
  105. public void add_author (string author);
  106. public void add_director (string director);
  107. public void add_external_player (string player);
  108. public void add_external_url (string url);
  109. public void add_genre (string genre);
  110. public void add_keyword (string keyword);
  111. public void add_lyrics (string lyrics);
  112. public void add_mb_artist_id (string mb_artist_id);
  113. public void add_performer (string performer);
  114. public void add_producer (string producer);
  115. public void add_region_data (string region, GLib.DateTime publication_date, string certificate);
  116. public void add_thumbnail (string thumbnail);
  117. public void add_thumbnail_binary (uint8 thumbnail, size_t size);
  118. public void add_url_data (string url, string mime, int bitrate, float framerate, int width, int height);
  119. [CCode (cname = "grl_media_audio_new", has_construct_function = false)]
  120. public Media.audio_new ();
  121. [CCode (cname = "grl_media_container_new", has_construct_function = false)]
  122. public Media.container_new ();
  123. public unowned string get_album ();
  124. public unowned string get_artist ();
  125. public unowned string get_artist_nth (uint index);
  126. public unowned string get_author ();
  127. public unowned string get_author_nth (uint index);
  128. public int get_bitrate ();
  129. public unowned string get_camera_model ();
  130. public unowned string get_certificate ();
  131. public int get_childcount ();
  132. public unowned GLib.DateTime get_creation_date ();
  133. public unowned string get_description ();
  134. public unowned string get_director ();
  135. public unowned string get_director_nth (uint index);
  136. public int get_duration ();
  137. public int get_episode ();
  138. public unowned string get_episode_title ();
  139. public float get_exposure_time ();
  140. public unowned string get_external_url ();
  141. public unowned string get_external_url_nth (uint index);
  142. public bool get_favourite ();
  143. public unowned string get_flash_used ();
  144. public float get_framerate ();
  145. public unowned string get_genre ();
  146. public unowned string get_genre_nth (uint index);
  147. public int get_height ();
  148. public unowned string get_id ();
  149. public float get_iso_speed ();
  150. public unowned string get_keyword ();
  151. public unowned string get_keyword_nth (uint index);
  152. public GLib.DateTime get_last_played ();
  153. public int get_last_position ();
  154. public unowned string get_license ();
  155. public unowned string get_lyrics ();
  156. public unowned string get_lyrics_nth (uint index);
  157. public unowned string get_mb_album_id ();
  158. public unowned string get_mb_artist_id ();
  159. public unowned string get_mb_artist_id_nth (uint index);
  160. public unowned string get_mb_recording_id ();
  161. public unowned string get_mb_track_id ();
  162. public Grl.MediaType get_media_type ();
  163. public unowned string get_mime ();
  164. public unowned GLib.DateTime get_modification_date ();
  165. public int get_orientation ();
  166. public unowned string get_original_title ();
  167. public unowned string get_performer ();
  168. public unowned string get_performer_nth (uint index);
  169. public int get_play_count ();
  170. public unowned string get_player ();
  171. public unowned string get_player_nth (uint index);
  172. public unowned string get_producer ();
  173. public unowned string get_producer_nth (uint index);
  174. public unowned GLib.DateTime get_publication_date ();
  175. public float get_rating ();
  176. public unowned string get_region ();
  177. public unowned string get_region_data (out unowned GLib.DateTime publication_date, out unowned string certificate);
  178. public unowned string get_region_data_nth (uint index, out unowned GLib.DateTime publication_date, out unowned string certificate);
  179. public int get_season ();
  180. public unowned string get_show ();
  181. public unowned string get_site ();
  182. public int64 get_size ();
  183. public unowned string get_source ();
  184. public float get_start_time ();
  185. public unowned string get_studio ();
  186. public unowned string get_thumbnail ();
  187. public uint8 get_thumbnail_binary (size_t size);
  188. public uint8 get_thumbnail_binary_nth (size_t size, uint index);
  189. public unowned string get_thumbnail_nth (uint index);
  190. public unowned string get_title ();
  191. public int get_track_number ();
  192. public unowned string get_url ();
  193. public unowned string get_url_data (out unowned string mime, out int bitrate, float framerate, int width, int height);
  194. public unowned string get_url_data_nth (uint index, out unowned string mime, out int bitrate, float framerate, int width, int height);
  195. public int get_width ();
  196. [CCode (cname = "grl_media_image_new", has_construct_function = false)]
  197. public Media.image_new ();
  198. public bool is_audio ();
  199. public bool is_container ();
  200. public bool is_image ();
  201. public bool is_video ();
  202. public string serialize ();
  203. public void set_album (string album);
  204. public void set_artist (string artist);
  205. public void set_author (string author);
  206. public void set_bitrate (int bitrate);
  207. public void set_camera_model (string camera_model);
  208. public void set_certificate (string certificate);
  209. public void set_childcount (int childcount);
  210. public void set_creation_date (GLib.DateTime creation_date);
  211. public void set_description (string description);
  212. public void set_director (string director);
  213. public void set_duration (int duration);
  214. public void set_episode (int episode);
  215. public void set_episode_title (string episode_title);
  216. public void set_exposure_time (float exposure_time);
  217. public void set_external_player (string player);
  218. public void set_external_url (string url);
  219. public void set_favourite (bool favourite);
  220. public void set_flash_used (string flash_used);
  221. public void set_framerate (float framerate);
  222. public void set_genre (string genre);
  223. public void set_height (int height);
  224. public void set_id (string id);
  225. public void set_iso_speed (float iso_speed);
  226. public void set_keyword (string keyword);
  227. public void set_last_played (GLib.DateTime last_played);
  228. public void set_last_position (int last_position);
  229. public void set_license (string license);
  230. public void set_lyrics (string lyrics);
  231. public void set_mb_album_id (string mb_album_id);
  232. public void set_mb_artist_id (string mb_artist_id);
  233. public void set_mb_recording_id (string mb_recording_id);
  234. public void set_mb_track_id (string mb_track_id);
  235. public void set_mime (string mime);
  236. public void set_modification_date (GLib.DateTime modification_date);
  237. public void set_orientation (int orientation);
  238. public void set_original_title (string original_title);
  239. public void set_performer (string performer);
  240. public void set_play_count (int play_count);
  241. public void set_producer (string producer);
  242. public void set_publication_date (GLib.DateTime date);
  243. public void set_rating (float rating, float max);
  244. public void set_region (string region);
  245. public void set_region_data (string region, GLib.DateTime publication_date, string certificate);
  246. public void set_season (int season);
  247. public void set_show (string show);
  248. public void set_site (string site);
  249. public void set_size (int64 size);
  250. public void set_source (string source);
  251. public void set_studio (string studio);
  252. public void set_thumbnail (string thumbnail);
  253. public void set_thumbnail_binary (uint8 thumbnail, size_t size);
  254. public void set_title (string title);
  255. public void set_track_number (int track_number);
  256. public void set_url (string url);
  257. public void set_url_data (string url, string mime, int bitrate, float framerate, int width, int height);
  258. public void set_width (int width);
  259. public static Grl.Media unserialize (string serial);
  260. [CCode (cname = "grl_media_video_new", has_construct_function = false)]
  261. public Media.video_new ();
  262. [NoAccessorMethod]
  263. public Grl.MediaType media_type { get; set construct; }
  264. }
  265. [CCode (cheader_filename = "grilo.h", type_id = "grl_operation_options_get_type ()")]
  266. public class OperationOptions : GLib.Object {
  267. [CCode (has_construct_function = false)]
  268. public OperationOptions (Grl.Caps? caps);
  269. public Grl.OperationOptions copy ();
  270. public int get_count ();
  271. public unowned GLib.Value? get_key_filter (Grl.KeyID key);
  272. public GLib.List<weak Grl.KeyID> get_key_filter_list ();
  273. public void get_key_range_filter (Grl.KeyID key, out GLib.Value min_value, out GLib.Value max_value);
  274. public GLib.List<weak Grl.KeyID> get_key_range_filter_list ();
  275. public Grl.ResolutionFlags get_resolution_flags ();
  276. public uint get_skip ();
  277. public Grl.TypeFilter get_type_filter ();
  278. public bool key_is_set (string key);
  279. public bool obey_caps (Grl.Caps caps, out Grl.OperationOptions supported_options, out Grl.OperationOptions unsupported_options);
  280. public bool set_count (int count);
  281. public bool set_key_filter_dictionary (GLib.HashTable<Grl.KeyID,GLib.Value?> filters);
  282. public bool set_key_filter_value (Grl.KeyID key, GLib.Value value);
  283. public bool set_key_range_filter_value (Grl.KeyID key, GLib.Value? min_value, GLib.Value? max_value);
  284. public bool set_resolution_flags (Grl.ResolutionFlags flags);
  285. public bool set_skip (uint skip);
  286. public bool set_type_filter (Grl.TypeFilter filter);
  287. }
  288. [CCode (cheader_filename = "grilo.h", type_id = "grl_plugin_get_type ()")]
  289. public class Plugin : GLib.Object {
  290. [CCode (has_construct_function = false)]
  291. protected Plugin ();
  292. public unowned string get_author ();
  293. public unowned string get_description ();
  294. public unowned string get_filename ();
  295. public unowned string get_id ();
  296. public unowned string get_license ();
  297. public unowned string get_module_name ();
  298. public unowned string get_name ();
  299. public unowned string get_site ();
  300. public GLib.List<weak Grl.Source> get_sources ();
  301. public unowned string get_version ();
  302. public void register_keys ();
  303. public void set_filename (string filename);
  304. public void set_id (string id);
  305. public void set_module (GLib.Module module);
  306. public void set_module_name (string module_name);
  307. public void unload ();
  308. [NoAccessorMethod]
  309. public bool loaded { get; }
  310. }
  311. [CCode (cheader_filename = "grilo.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "grl_range_value_get_type ()")]
  312. [Compact]
  313. public class RangeValue {
  314. public GLib.Value max;
  315. public GLib.Value min;
  316. [CCode (has_construct_function = false)]
  317. public RangeValue (GLib.Value min, GLib.Value max);
  318. public Grl.RangeValue dup ();
  319. public void free ();
  320. public static void hashtable_insert (GLib.HashTable<void*,void*> hash_table, void* key, GLib.Value min, GLib.Value max);
  321. public static GLib.HashTable<void*,Grl.RangeValue> hashtable_new ();
  322. }
  323. [CCode (cheader_filename = "grilo.h", type_id = "grl_registry_get_type ()")]
  324. public class Registry : GLib.Object {
  325. [CCode (has_construct_function = false)]
  326. protected Registry ();
  327. public bool activate_all_plugins ();
  328. public bool activate_plugin_by_id (string plugin_id) throws GLib.Error;
  329. public bool add_config (owned Grl.Config config) throws GLib.Error;
  330. public bool add_config_from_file (string config_file) throws GLib.Error;
  331. public bool add_config_from_resource (string resource_path) throws GLib.Error;
  332. public void add_directory (string path);
  333. public static unowned Grl.Registry get_default ();
  334. public GLib.List<weak Grl.KeyID> get_metadata_keys ();
  335. public GLib.List<weak Grl.Plugin> get_plugins (bool only_loaded);
  336. public GLib.List<weak Grl.Source> get_sources (bool ranked);
  337. public GLib.List<weak Grl.Source> get_sources_by_operations (Grl.SupportedOps ops, bool ranked);
  338. public bool load_all_plugins (bool activate) throws GLib.Error;
  339. public bool load_plugin (string library_filename) throws GLib.Error;
  340. public bool load_plugin_directory (string path) throws GLib.Error;
  341. public Grl.KeyID lookup_metadata_key (string key_name);
  342. public unowned string lookup_metadata_key_desc (Grl.KeyID key);
  343. public unowned string lookup_metadata_key_name (Grl.KeyID key);
  344. public unowned GLib.List<Grl.KeyID> lookup_metadata_key_relation (Grl.KeyID key);
  345. public GLib.Type lookup_metadata_key_type (Grl.KeyID key);
  346. public unowned Grl.Plugin lookup_plugin (string plugin_id);
  347. public unowned Grl.Source lookup_source (string source_id);
  348. public bool metadata_key_validate (Grl.KeyID key, GLib.Value value);
  349. public Grl.KeyID register_metadata_key (owned GLib.ParamSpec param_spec, Grl.KeyID bind_key) throws GLib.Error;
  350. public Grl.KeyID register_metadata_key_system (GLib.ParamSpec param_spec, Grl.KeyID key, Grl.KeyID bind_key) throws GLib.Error;
  351. public bool register_source (Grl.Plugin plugin, owned Grl.Source source) throws GLib.Error;
  352. public void restrict_plugins (string plugins);
  353. public void shutdown ();
  354. public bool unload_plugin (string plugin_id) throws GLib.Error;
  355. public bool unregister_source (Grl.Source source) throws GLib.Error;
  356. public signal void metadata_key_added (string key);
  357. public signal void source_added (Grl.Source source);
  358. public signal void source_removed (Grl.Source source);
  359. }
  360. [CCode (cheader_filename = "grilo.h", type_id = "grl_related_keys_get_type ()")]
  361. public class RelatedKeys : GLib.Object {
  362. [CCode (has_construct_function = false)]
  363. public RelatedKeys ();
  364. public Grl.RelatedKeys dup ();
  365. public unowned GLib.Value? @get (Grl.KeyID key);
  366. public uint8 get_binary (Grl.KeyID key, out size_t size);
  367. public bool get_boolean (Grl.KeyID key);
  368. public void* get_boxed (Grl.KeyID key);
  369. public float get_float (Grl.KeyID key);
  370. public int get_int (Grl.KeyID key);
  371. public int64 get_int64 (Grl.KeyID key);
  372. public GLib.List<weak Grl.KeyID> get_keys ();
  373. public unowned string get_string (Grl.KeyID key);
  374. public bool has_key (Grl.KeyID key);
  375. public void remove (Grl.KeyID key);
  376. public void @set (Grl.KeyID key, GLib.Value value);
  377. public void set_binary (Grl.KeyID key, uint8 buf, size_t size);
  378. public void set_boolean (Grl.KeyID key, bool booleanvalue);
  379. public void set_boxed (Grl.KeyID key, void* boxed);
  380. public void set_float (Grl.KeyID key, float floatvalue);
  381. public void set_int (Grl.KeyID key, int intvalue);
  382. public void set_int64 (Grl.KeyID key, int64 intvalue);
  383. public void set_string (Grl.KeyID key, string strvalue);
  384. }
  385. [CCode (cheader_filename = "grilo.h", type_id = "grl_source_get_type ()")]
  386. public abstract class Source : GLib.Object {
  387. [CCode (has_construct_function = false)]
  388. protected Source ();
  389. [NoWrapper]
  390. public virtual void browse (Grl.SourceBrowseSpec bs);
  391. public GLib.List<Grl.Media> browse_sync (Grl.Media? container, GLib.List<Grl.KeyID> keys, Grl.OperationOptions options) throws GLib.Error;
  392. [NoWrapper]
  393. public virtual void cancel (uint operation_id);
  394. [CCode (cname = "grl_source_browse")]
  395. public uint do_browse (Grl.Media? container, GLib.List<Grl.KeyID> keys, Grl.OperationOptions options, Grl.SourceResultCb callback);
  396. [CCode (cname = "grl_source_query")]
  397. public uint do_query (string query, GLib.List<Grl.KeyID> keys, Grl.OperationOptions options, Grl.SourceResultCb callback);
  398. [CCode (cname = "grl_source_remove")]
  399. public void do_remove (Grl.Media media, Grl.SourceRemoveCb callback);
  400. [CCode (cname = "grl_source_resolve")]
  401. public uint do_resolve (Grl.Media? media, GLib.List<Grl.KeyID> keys, Grl.OperationOptions options, Grl.SourceResolveCb callback);
  402. [CCode (cname = "grl_source_search")]
  403. public uint do_search (string text, GLib.List<Grl.KeyID> keys, Grl.OperationOptions options, Grl.SourceResultCb callback);
  404. [CCode (cname = "grl_source_store")]
  405. public void do_store (Grl.Media? parent, Grl.Media media, Grl.WriteFlags flags, Grl.SourceStoreCb callback);
  406. [CCode (cname = "grl_source_store_metadata")]
  407. public void do_store_metadata (Grl.Media media, GLib.List<Grl.KeyID>? keys, Grl.WriteFlags flags, Grl.SourceStoreCb callback);
  408. public uint get_auto_split_threshold ();
  409. public virtual unowned Grl.Caps get_caps (Grl.SupportedOps operation);
  410. public unowned string get_description ();
  411. public unowned GLib.Icon get_icon ();
  412. public unowned string get_id ();
  413. public uint get_media_from_uri (string uri, GLib.List<Grl.KeyID> keys, Grl.OperationOptions options, Grl.SourceResolveCb callback);
  414. public Grl.Media get_media_from_uri_sync (string uri, GLib.List<Grl.KeyID> keys, Grl.OperationOptions options) throws GLib.Error;
  415. public unowned string get_name ();
  416. public unowned Grl.Plugin get_plugin ();
  417. public int get_rank ();
  418. public Grl.SupportedMedia get_supported_media ();
  419. [CCode (cname = "grl_source_supported_operations")]
  420. public uint get_supported_operations ();
  421. [CCode (array_length = false, array_null_terminated = true)]
  422. public unowned string[] get_tags ();
  423. public virtual bool may_resolve (Grl.Media media, Grl.KeyID key_id, GLib.List<Grl.KeyID> missing_keys);
  424. [NoWrapper]
  425. public virtual void media_from_uri (Grl.SourceMediaFromUriSpec mfus);
  426. public void notify_change (Grl.Media? media, Grl.SourceChangeType change_type, bool location_unknown);
  427. public void notify_change_list (owned GLib.GenericArray<Grl.Media> changed_medias, Grl.SourceChangeType change_type, bool location_unknown);
  428. public virtual bool notify_change_start () throws GLib.Error;
  429. public virtual bool notify_change_stop () throws GLib.Error;
  430. [NoWrapper]
  431. public virtual void query (Grl.SourceQuerySpec qs);
  432. public GLib.List<Grl.Media> query_sync (string query, GLib.List<Grl.KeyID> keys, Grl.OperationOptions options) throws GLib.Error;
  433. [NoWrapper]
  434. public virtual void remove (Grl.SourceRemoveSpec rs);
  435. public void remove_sync (Grl.Media media) throws GLib.Error;
  436. [NoWrapper]
  437. public virtual void resolve (Grl.SourceResolveSpec ms);
  438. public Grl.Media resolve_sync (Grl.Media? media, GLib.List<Grl.KeyID> keys, Grl.OperationOptions options) throws GLib.Error;
  439. [NoWrapper]
  440. public virtual void search (Grl.SourceSearchSpec ss);
  441. public GLib.List<Grl.Media> search_sync (string text, GLib.List<Grl.KeyID> keys, Grl.OperationOptions options) throws GLib.Error;
  442. public void set_auto_split_threshold (uint threshold);
  443. public virtual unowned GLib.List<Grl.KeyID> slow_keys ();
  444. [NoWrapper]
  445. public virtual void store (Grl.SourceStoreSpec ss);
  446. [NoWrapper]
  447. public virtual void store_metadata (Grl.SourceStoreMetadataSpec sms);
  448. public GLib.List<weak Grl.KeyID> store_metadata_sync (Grl.Media media, GLib.List<Grl.KeyID>? keys, Grl.WriteFlags flags) throws GLib.Error;
  449. public void store_sync (Grl.Media? parent, Grl.Media media, Grl.WriteFlags flags) throws GLib.Error;
  450. public virtual unowned GLib.List<Grl.KeyID> supported_keys ();
  451. [NoWrapper]
  452. public virtual Grl.SupportedOps supported_operations ();
  453. public virtual bool test_media_from_uri (string uri);
  454. public virtual unowned GLib.List<Grl.KeyID> writable_keys ();
  455. public uint auto_split_threshold { get; set; }
  456. [NoAccessorMethod]
  457. public Grl.Plugin plugin { owned get; set construct; }
  458. [NoAccessorMethod]
  459. public int rank { get; set construct; }
  460. [NoAccessorMethod]
  461. public string source_desc { owned get; set construct; }
  462. [NoAccessorMethod]
  463. public GLib.Icon source_icon { owned get; set construct; }
  464. [NoAccessorMethod]
  465. public string source_id { owned get; set construct; }
  466. [NoAccessorMethod]
  467. public string source_name { owned get; set construct; }
  468. [CCode (array_length = false, array_null_terminated = true)]
  469. [NoAccessorMethod]
  470. public string[] source_tags { owned get; set construct; }
  471. [NoAccessorMethod]
  472. public Grl.SupportedMedia supported_media { get; set construct; }
  473. public signal void content_changed (GLib.GenericArray<Grl.Media> changed_medias, Grl.SourceChangeType change_type, bool location_unknown);
  474. }
  475. [CCode (cheader_filename = "grilo.h")]
  476. [SimpleType]
  477. public struct KeyID : uint32 {
  478. }
  479. [CCode (cheader_filename = "grilo.h")]
  480. public struct MetadataKey {
  481. [CCode (cname = "GRL_METADATA_KEY_INVALID")]
  482. public static Grl.KeyID INVALID;
  483. [CCode (cname = "GRL_METADATA_KEY_ALBUM")]
  484. public static Grl.KeyID ALBUM;
  485. [CCode (cname = "GRL_METADATA_KEY_ARTIST")]
  486. public static Grl.KeyID ARTIST;
  487. [CCode (cname = "GRL_METADATA_KEY_AUTHOR")]
  488. public static Grl.KeyID AUTHOR;
  489. [CCode (cname = "GRL_METADATA_KEY_BITRATE")]
  490. public static Grl.KeyID BITRATE;
  491. [CCode (cname = "GRL_METADATA_KEY_CERTIFICATE")]
  492. public static Grl.KeyID CERTIFICATE;
  493. [CCode (cname = "GRL_METADATA_KEY_CHILDCOUNT")]
  494. public static Grl.KeyID CHILDCOUNT;
  495. [CCode (cname = "GRL_METADATA_KEY_PUBLICATION_DATE")]
  496. public static Grl.KeyID PUBLICATION_DATE;
  497. [CCode (cname = "GRL_METADATA_KEY_DESCRIPTION")]
  498. public static Grl.KeyID DESCRIPTION;
  499. [CCode (cname = "GRL_METADATA_KEY_DURATION")]
  500. public static Grl.KeyID DURATION;
  501. [CCode (cname = "GRL_METADATA_KEY_EXTERNAL_PLAYER")]
  502. public static Grl.KeyID EXTERNAL_PLAYER;
  503. [CCode (cname = "GRL_METADATA_KEY_EXTERNAL_URL")]
  504. public static Grl.KeyID EXTERNAL_URL;
  505. [CCode (cname = "GRL_METADATA_KEY_FRAMERATE")]
  506. public static Grl.KeyID FRAMERATE;
  507. [CCode (cname = "GRL_METADATA_KEY_GENRE")]
  508. public static Grl.KeyID GENRE;
  509. [CCode (cname = "GRL_METADATA_KEY_HEIGHT")]
  510. public static Grl.KeyID HEIGHT;
  511. [CCode (cname = "GRL_METADATA_KEY_ID")]
  512. public static Grl.KeyID ID;
  513. [CCode (cname = "GRL_METADATA_KEY_LAST_PLAYED")]
  514. public static Grl.KeyID LAST_PLAYED;
  515. [CCode (cname = "GRL_METADATA_KEY_LAST_POSITION")]
  516. public static Grl.KeyID LAST_POSITION;
  517. [CCode (cname = "GRL_METADATA_KEY_LICENSE")]
  518. public static Grl.KeyID LICENSE;
  519. [CCode (cname = "GRL_METADATA_KEY_LYRICS")]
  520. public static Grl.KeyID LYRICS;
  521. [CCode (cname = "GRL_METADATA_KEY_MIME")]
  522. public static Grl.KeyID MIME;
  523. [CCode (cname = "GRL_METADATA_KEY_PLAY_COUNT")]
  524. public static Grl.KeyID PLAY_COUNT;
  525. [CCode (cname = "GRL_METADATA_KEY_RATING")]
  526. public static Grl.KeyID RATING;
  527. [CCode (cname = "GRL_METADATA_KEY_REGION")]
  528. public static Grl.KeyID REGION;
  529. [CCode (cname = "GRL_METADATA_KEY_SITE")]
  530. public static Grl.KeyID SITE;
  531. [CCode (cname = "GRL_METADATA_KEY_SOURCE")]
  532. public static Grl.KeyID SOURCE;
  533. [CCode (cname = "GRL_METADATA_KEY_STUDIO")]
  534. public static Grl.KeyID STUDIO;
  535. [CCode (cname = "GRL_METADATA_KEY_THUMBNAIL")]
  536. public static Grl.KeyID THUMBNAIL;
  537. [CCode (cname = "GRL_METADATA_KEY_THUMBNAIL_BINARY")]
  538. public static Grl.KeyID THUMBNAIL_BINARY;
  539. [CCode (cname = "GRL_METADATA_KEY_TITLE")]
  540. public static Grl.KeyID TITLE;
  541. [CCode (cname = "GRL_METADATA_KEY_URL")]
  542. public static Grl.KeyID URL;
  543. [CCode (cname = "GRL_METADATA_KEY_WIDTH")]
  544. public static Grl.KeyID WIDTH;
  545. [CCode (cname = "GRL_METADATA_KEY_SEASON")]
  546. public static Grl.KeyID SEASON;
  547. [CCode (cname = "GRL_METADATA_KEY_EPISODE")]
  548. public static Grl.KeyID EPISODE;
  549. [CCode (cname = "GRL_METADATA_KEY_EPISODE_TITLE")]
  550. public static Grl.KeyID EPISODE_TITLE;
  551. [CCode (cname = "GRL_METADATA_KEY_SHOW")]
  552. public static Grl.KeyID SHOW;
  553. [CCode (cname = "GRL_METADATA_KEY_CREATION_DATE")]
  554. public static Grl.KeyID CREATION_DATE;
  555. [CCode (cname = "GRL_METADATA_KEY_CAMERA_MODEL")]
  556. public static Grl.KeyID CAMERA_MODEL;
  557. [CCode (cname = "GRL_METADATA_KEY_ORIENTATION")]
  558. public static Grl.KeyID ORIENTATION;
  559. [CCode (cname = "GRL_METADATA_KEY_FLASH_USED")]
  560. public static Grl.KeyID FLASH_USED;
  561. [CCode (cname = "GRL_METADATA_KEY_EXPOSURE_TIME")]
  562. public static Grl.KeyID EXPOSURE_TIME;
  563. [CCode (cname = "GRL_METADATA_KEY_ISO_SPEED")]
  564. public static Grl.KeyID ISO_SPEED;
  565. [CCode (cname = "GRL_METADATA_KEY_TRACK_NUMBER")]
  566. public static Grl.KeyID TRACK_NUMBER;
  567. [CCode (cname = "GRL_METADATA_KEY_MODIFICATION_DATE")]
  568. public static Grl.KeyID MODIFICATION_DATE;
  569. [CCode (cname = "GRL_METADATA_KEY_START_TIME")]
  570. public static Grl.KeyID START_TIME;
  571. [CCode (cname = "GRL_METADATA_KEY_KEYWORD")]
  572. public static Grl.KeyID KEYWORD;
  573. [CCode (cname = "GRL_METADATA_KEY_PERFORMER")]
  574. public static Grl.KeyID PERFORMER;
  575. [CCode (cname = "GRL_METADATA_KEY_PRODUCER")]
  576. public static Grl.KeyID PRODUCER;
  577. [CCode (cname = "GRL_METADATA_KEY_DIRECTOR")]
  578. public static Grl.KeyID DIRECTOR;
  579. [CCode (cname = "GRL_METADATA_KEY_ORIGINAL_TITLE")]
  580. public static Grl.KeyID ORIGINAL_TITLE;
  581. [CCode (cname = "GRL_METADATA_KEY_MB_ALBUM_ID")]
  582. public static Grl.KeyID MB_ALBUM_ID;
  583. [CCode (cname = "GRL_METADATA_KEY_MB_TRACK_ID")]
  584. public static Grl.KeyID MB_TRACK_ID;
  585. [CCode (cname = "GRL_METADATA_KEY_MB_ARTIST_ID")]
  586. public static Grl.KeyID MB_ARTIST_ID;
  587. [CCode (cname = "GRL_METADATA_KEY_MB_RECORDING_ID")]
  588. public static Grl.KeyID MB_RECORDING_ID;
  589. [CCode (cname = "GRL_METADATA_KEY_AUDIO_TRACK")]
  590. public static Grl.KeyID AUDIO_TRACK;
  591. [CCode (cname = "GRL_METADATA_KEY_CHILDCOUNT_UNKNOWN")]
  592. public static uint CHILDCOUNT_UNKNOWN;
  593. [CCode (cname = "GRL_SOURCE_REMAINING_UNKNOWN")]
  594. public static uint REMAINING_UNKNOWN;
  595. public static GLib.List list_new (Grl.KeyID p, ...);
  596. }
  597. [CCode (cheader_filename = "grilo.h", has_type_id = false)]
  598. public struct SourceBrowseSpec {
  599. public weak Grl.Source source;
  600. public uint operation_id;
  601. public weak Grl.Media container;
  602. public weak GLib.List<void*> keys;
  603. public weak Grl.OperationOptions options;
  604. [CCode (delegate_target_cname = "user_data")]
  605. public weak Grl.SourceResultCb callback;
  606. public void* user_data;
  607. }
  608. [CCode (cheader_filename = "grilo.h", has_type_id = false)]
  609. public struct SourceMediaFromUriSpec {
  610. public weak Grl.Source source;
  611. public uint operation_id;
  612. public weak string uri;
  613. public weak GLib.List<void*> keys;
  614. public weak Grl.OperationOptions options;
  615. [CCode (delegate_target_cname = "user_data")]
  616. public weak Grl.SourceResolveCb callback;
  617. public void* user_data;
  618. }
  619. [CCode (cheader_filename = "grilo.h", has_type_id = false)]
  620. public struct SourceQuerySpec {
  621. public weak Grl.Source source;
  622. public uint operation_id;
  623. public weak string query;
  624. public weak GLib.List<void*> keys;
  625. public weak Grl.OperationOptions options;
  626. [CCode (delegate_target_cname = "user_data")]
  627. public weak Grl.SourceResultCb callback;
  628. public void* user_data;
  629. }
  630. [CCode (cheader_filename = "grilo.h", has_type_id = false)]
  631. public struct SourceRemoveSpec {
  632. public weak Grl.Source source;
  633. public weak string media_id;
  634. public weak Grl.Media media;
  635. [CCode (delegate_target_cname = "user_data")]
  636. public weak Grl.SourceRemoveCb callback;
  637. public void* user_data;
  638. }
  639. [CCode (cheader_filename = "grilo.h", has_type_id = false)]
  640. public struct SourceResolveSpec {
  641. public weak Grl.Source source;
  642. public uint operation_id;
  643. public weak Grl.Media media;
  644. public weak GLib.List<void*> keys;
  645. public weak Grl.OperationOptions options;
  646. [CCode (delegate_target_cname = "user_data")]
  647. public weak Grl.SourceResolveCb callback;
  648. public void* user_data;
  649. }
  650. [CCode (cheader_filename = "grilo.h", has_type_id = false)]
  651. public struct SourceSearchSpec {
  652. public weak Grl.Source source;
  653. public uint operation_id;
  654. public weak string text;
  655. public weak GLib.List<void*> keys;
  656. public weak Grl.OperationOptions options;
  657. [CCode (delegate_target_cname = "user_data")]
  658. public weak Grl.SourceResultCb callback;
  659. public void* user_data;
  660. }
  661. [CCode (cheader_filename = "grilo.h", has_type_id = false)]
  662. public struct SourceStoreMetadataSpec {
  663. public weak Grl.Source source;
  664. public weak Grl.Media media;
  665. public weak GLib.List<void*> keys;
  666. public Grl.WriteFlags flags;
  667. [CCode (delegate_target_cname = "user_data")]
  668. public weak Grl.SourceStoreCb callback;
  669. public void* user_data;
  670. public weak GLib.List<void*> failed_keys;
  671. }
  672. [CCode (cheader_filename = "grilo.h", has_type_id = false)]
  673. public struct SourceStoreSpec {
  674. public weak Grl.Source source;
  675. public weak Grl.Media parent;
  676. public weak Grl.Media media;
  677. [CCode (delegate_target_cname = "user_data")]
  678. public weak Grl.SourceStoreCb callback;
  679. public string user_data;
  680. }
  681. [CCode (cheader_filename = "grilo.h", cprefix = "GRL_CORE_ERROR_", has_type_id = false)]
  682. public enum CoreError {
  683. BROWSE_FAILED,
  684. SEARCH_FAILED,
  685. SEARCH_NULL_UNSUPPORTED,
  686. QUERY_FAILED,
  687. RESOLVE_FAILED,
  688. MEDIA_NOT_FOUND,
  689. STORE_FAILED,
  690. STORE_METADATA_FAILED,
  691. REMOVE_FAILED,
  692. MEDIA_FROM_URI_FAILED,
  693. CONFIG_LOAD_FAILED,
  694. CONFIG_FAILED,
  695. UNREGISTER_SOURCE_FAILED,
  696. LOAD_PLUGIN_FAILED,
  697. UNLOAD_PLUGIN_FAILED,
  698. REGISTER_METADATA_KEY_FAILED,
  699. NOTIFY_CHANGED_FAILED,
  700. OPERATION_CANCELLED,
  701. AUTHENTICATION_TOKEN
  702. }
  703. [CCode (cheader_filename = "grilo.h", cprefix = "GRL_LOG_LEVEL_", has_type_id = false)]
  704. public enum LogLevel {
  705. NONE,
  706. ERROR,
  707. WARNING,
  708. MESSAGE,
  709. INFO,
  710. DEBUG,
  711. LAST
  712. }
  713. [CCode (cheader_filename = "grilo.h", cprefix = "GRL_MEDIA_SERIALIZE_", type_id = "grl_media_serialize_type_get_type ()")]
  714. public enum MediaSerializeType {
  715. BASIC,
  716. PARTIAL,
  717. FULL
  718. }
  719. [CCode (cheader_filename = "grilo.h", cprefix = "GRL_MEDIA_TYPE_", type_id = "grl_media_type_get_type ()")]
  720. public enum MediaType {
  721. UNKNOWN,
  722. AUDIO,
  723. VIDEO,
  724. IMAGE,
  725. CONTAINER
  726. }
  727. [CCode (cheader_filename = "grilo.h", cprefix = "GRL_RANK_", has_type_id = false)]
  728. public enum Rank {
  729. LOWEST,
  730. LOW,
  731. DEFAULT,
  732. HIGH,
  733. HIGHEST
  734. }
  735. [CCode (cheader_filename = "grilo.h", cprefix = "GRL_RESOLVE_", type_id = "grl_resolution_flags_get_type ()")]
  736. [Flags]
  737. public enum ResolutionFlags {
  738. NORMAL,
  739. FULL,
  740. IDLE_RELAY,
  741. FAST_ONLY
  742. }
  743. [CCode (cheader_filename = "grilo.h", cprefix = "GRL_CONTENT_", type_id = "grl_source_change_type_get_type ()")]
  744. public enum SourceChangeType {
  745. CHANGED,
  746. ADDED,
  747. REMOVED
  748. }
  749. [CCode (cheader_filename = "grilo.h", cprefix = "GRL_SUPPORTED_MEDIA_", type_id = "grl_supported_media_get_type ()")]
  750. [Flags]
  751. public enum SupportedMedia {
  752. NONE,
  753. AUDIO,
  754. VIDEO,
  755. IMAGE,
  756. ALL
  757. }
  758. [CCode (cheader_filename = "grilo.h", cprefix = "GRL_OP_", type_id = "grl_supported_ops_get_type ()")]
  759. [Flags]
  760. public enum SupportedOps {
  761. NONE,
  762. RESOLVE,
  763. BROWSE,
  764. SEARCH,
  765. QUERY,
  766. STORE,
  767. STORE_PARENT,
  768. STORE_METADATA,
  769. REMOVE,
  770. MEDIA_FROM_URI,
  771. NOTIFY_CHANGE
  772. }
  773. [CCode (cheader_filename = "grilo.h", cprefix = "GRL_TYPE_FILTER_", type_id = "grl_type_filter_get_type ()")]
  774. [Flags]
  775. public enum TypeFilter {
  776. NONE,
  777. AUDIO,
  778. VIDEO,
  779. IMAGE,
  780. ALL
  781. }
  782. [CCode (cheader_filename = "grilo.h", cprefix = "GRL_WRITE_", type_id = "grl_write_flags_get_type ()")]
  783. [Flags]
  784. public enum WriteFlags {
  785. NORMAL,
  786. FULL
  787. }
  788. [CCode (cheader_filename = "grilo.h", has_target = false)]
  789. public delegate void OperationCancelCb (void* data);
  790. [CCode (cheader_filename = "grilo.h", has_target = false)]
  791. public delegate void PluginDeinitFunc (Grl.Plugin plugin);
  792. [CCode (cheader_filename = "grilo.h", has_target = false)]
  793. public delegate void PluginRegisterKeysFunc (Grl.Registry registry, Grl.Plugin plugin);
  794. [CCode (cheader_filename = "grilo.h", instance_pos = 2.9)]
  795. public delegate void SourceRemoveCb (Grl.Source source, owned Grl.Media media, GLib.Error? error);
  796. [CCode (cheader_filename = "grilo.h", instance_pos = 3.9)]
  797. public delegate void SourceResolveCb (Grl.Source source, uint operation_id, owned Grl.Media media, GLib.Error? error);
  798. [CCode (cheader_filename = "grilo.h", instance_pos = 4.9)]
  799. public delegate void SourceResultCb (Grl.Source source, uint operation_id, owned Grl.Media? media, uint remaining, GLib.Error? error);
  800. [CCode (cheader_filename = "grilo.h", instance_pos = 3.9)]
  801. public delegate void SourceStoreCb (Grl.Source source, owned Grl.Media media, GLib.List<Grl.KeyID> failed_keys, GLib.Error? error);
  802. [CCode (cheader_filename = "grilo.h", cname = "GRL_CONFIG_KEY_APIKEY")]
  803. public const string CONFIG_KEY_APIKEY;
  804. [CCode (cheader_filename = "grilo.h", cname = "GRL_CONFIG_KEY_APIKEY_BLOB")]
  805. public const string CONFIG_KEY_APIKEY_BLOB;
  806. [CCode (cheader_filename = "grilo.h", cname = "GRL_CONFIG_KEY_APISECRET")]
  807. public const string CONFIG_KEY_APISECRET;
  808. [CCode (cheader_filename = "grilo.h", cname = "GRL_CONFIG_KEY_APITOKEN")]
  809. public const string CONFIG_KEY_APITOKEN;
  810. [CCode (cheader_filename = "grilo.h", cname = "GRL_CONFIG_KEY_APITOKEN_SECRET")]
  811. public const string CONFIG_KEY_APITOKEN_SECRET;
  812. [CCode (cheader_filename = "grilo.h", cname = "GRL_CONFIG_KEY_PASSWORD")]
  813. public const string CONFIG_KEY_PASSWORD;
  814. [CCode (cheader_filename = "grilo.h", cname = "GRL_CONFIG_KEY_PLUGIN")]
  815. public const string CONFIG_KEY_PLUGIN;
  816. [CCode (cheader_filename = "grilo.h", cname = "GRL_CONFIG_KEY_SOURCE")]
  817. public const string CONFIG_KEY_SOURCE;
  818. [CCode (cheader_filename = "grilo.h", cname = "GRL_CONFIG_KEY_USERNAME")]
  819. public const string CONFIG_KEY_USERNAME;
  820. [CCode (cheader_filename = "grilo.h", cname = "GRL_COUNT_INFINITY")]
  821. public const int COUNT_INFINITY;
  822. [CCode (cheader_filename = "grilo.h", cname = "GRL_KEYID_FORMAT")]
  823. public const string KEYID_FORMAT;
  824. [CCode (cheader_filename = "grilo.h", cname = "GRL_METADATA_KEY_ALBUM")]
  825. public const int METADATA_KEY_ALBUM;
  826. [CCode (cheader_filename = "grilo.h", cname = "GRL_METADATA_KEY_ARTIST")]
  827. public const int METADATA_KEY_ARTIST;
  828. [CCode (cheader_filename = "grilo.h", cname = "GRL_METADATA_KEY_AUDIO_TRACK")]
  829. public const int METADATA_KEY_AUDIO_TRACK;
  830. [CCode (cheader_filename = "grilo.h", cname = "GRL_METADATA_KEY_AUTHOR")]
  831. public const int METADATA_KEY_AUTHOR;
  832. [CCode (cheader_filename = "grilo.h", cname = "GRL_METADATA_KEY_BITRATE")]
  833. public const int METADATA_KEY_BITRATE;
  834. [CCode (cheader_filename = "grilo.h", cname = "GRL_METADATA_KEY_CAMERA_MODEL")]
  835. public const int METADATA_KEY_CAMERA_MODEL;
  836. [CCode (cheader_filename = "grilo.h", cname = "GRL_METADATA_KEY_CERTIFICATE")]
  837. public const int METADATA_KEY_CERTIFICATE;
  838. [CCode (cheader_filename = "grilo.h", cname = "GRL_METADATA_KEY_CHILDCOUNT")]
  839. public const int METADATA_KEY_CHILDCOUNT;
  840. [CCode (cheader_filename = "grilo.h", cname = "GRL_METADATA_KEY_CHILDCOUNT_UNKNOWN")]
  841. public const int METADATA_KEY_CHILDCOUNT_UNKNOWN;
  842. [CCode (cheader_filename = "grilo.h", cname = "GRL_METADATA_KEY_CREATION_DATE")]
  843. public const int METADATA_KEY_CREATION_DATE;
  844. [CCode (cheader_filename = "grilo.h", cname = "GRL_METADATA_KEY_DESCRIPTION")]
  845. public const int METADATA_KEY_DESCRIPTION;
  846. [CCode (cheader_filename = "grilo.h", cname = "GRL_METADATA_KEY_DIRECTOR")]
  847. public const int METADATA_KEY_DIRECTOR;
  848. [CCode (cheader_filename = "grilo.h", cname = "GRL_METADATA_KEY_DURATION")]
  849. public const int METADATA_KEY_DURATION;
  850. [CCode (cheader_filename = "grilo.h", cname = "GRL_METADATA_KEY_EPISODE")]
  851. public const int METADATA_KEY_EPISODE;
  852. [CCode (cheader_filename = "grilo.h", cname = "GRL_METADATA_KEY_EPISODE_TITLE")]
  853. public const int METADATA_KEY_EPISODE_TITLE;
  854. [CCode (cheader_filename = "grilo.h", cname = "GRL_METADATA_KEY_EXPOSURE_TIME")]
  855. public const int METADATA_KEY_EXPOSURE_TIME;
  856. [CCode (cheader_filename = "grilo.h", cname = "GRL_METADATA_KEY_EXTERNAL_PLAYER")]
  857. public const int METADATA_KEY_EXTERNAL_PLAYER;
  858. [CCode (cheader_filename = "grilo.h", cname = "GRL_METADATA_KEY_EXTERNAL_URL")]
  859. public const int METADATA_KEY_EXTERNAL_URL;
  860. [CCode (cheader_filename = "grilo.h", cname = "GRL_METADATA_KEY_FAVOURITE")]
  861. public const int METADATA_KEY_FAVOURITE;
  862. [CCode (cheader_filename = "grilo.h", cname = "GRL_METADATA_KEY_FLASH_USED")]
  863. public const int METADATA_KEY_FLASH_USED;
  864. [CCode (cheader_filename = "grilo.h", cname = "GRL_METADATA_KEY_FRAMERATE")]
  865. public const int METADATA_KEY_FRAMERATE;
  866. [CCode (cheader_filename = "grilo.h", cname = "GRL_METADATA_KEY_GENRE")]
  867. public const int METADATA_KEY_GENRE;
  868. [CCode (cheader_filename = "grilo.h", cname = "GRL_METADATA_KEY_HEIGHT")]
  869. public const int METADATA_KEY_HEIGHT;
  870. [CCode (cheader_filename = "grilo.h", cname = "GRL_METADATA_KEY_ID")]
  871. public const int METADATA_KEY_ID;
  872. [CCode (cheader_filename = "grilo.h", cname = "GRL_METADATA_KEY_INVALID")]
  873. public const int METADATA_KEY_INVALID;
  874. [CCode (cheader_filename = "grilo.h", cname = "GRL_METADATA_KEY_ISO_SPEED")]
  875. public const int METADATA_KEY_ISO_SPEED;
  876. [CCode (cheader_filename = "grilo.h", cname = "GRL_METADATA_KEY_KEYWORD")]
  877. public const int METADATA_KEY_KEYWORD;
  878. [CCode (cheader_filename = "grilo.h", cname = "GRL_METADATA_KEY_LAST_PLAYED")]
  879. public const int METADATA_KEY_LAST_PLAYED;
  880. [CCode (cheader_filename = "grilo.h", cname = "GRL_METADATA_KEY_LAST_POSITION")]
  881. public const int METADATA_KEY_LAST_POSITION;
  882. [CCode (cheader_filename = "grilo.h", cname = "GRL_METADATA_KEY_LICENSE")]
  883. public const int METADATA_KEY_LICENSE;
  884. [CCode (cheader_filename = "grilo.h", cname = "GRL_METADATA_KEY_LYRICS")]
  885. public const int METADATA_KEY_LYRICS;
  886. [CCode (cheader_filename = "grilo.h", cname = "GRL_METADATA_KEY_MB_ALBUM_ID")]
  887. public const int METADATA_KEY_MB_ALBUM_ID;
  888. [CCode (cheader_filename = "grilo.h", cname = "GRL_METADATA_KEY_MB_ARTIST_ID")]
  889. public const int METADATA_KEY_MB_ARTIST_ID;
  890. [CCode (cheader_filename = "grilo.h", cname = "GRL_METADATA_KEY_MB_RECORDING_ID")]
  891. public const int METADATA_KEY_MB_RECORDING_ID;
  892. [CCode (cheader_filename = "grilo.h", cname = "GRL_METADATA_KEY_MB_TRACK_ID")]
  893. public const int METADATA_KEY_MB_TRACK_ID;
  894. [CCode (cheader_filename = "grilo.h", cname = "GRL_METADATA_KEY_MIME")]
  895. public const int METADATA_KEY_MIME;
  896. [CCode (cheader_filename = "grilo.h", cname = "GRL_METADATA_KEY_MODIFICATION_DATE")]
  897. public const int METADATA_KEY_MODIFICATION_DATE;
  898. [CCode (cheader_filename = "grilo.h", cname = "GRL_METADATA_KEY_ORIENTATION")]
  899. public const int METADATA_KEY_ORIENTATION;
  900. [CCode (cheader_filename = "grilo.h", cname = "GRL_METADATA_KEY_ORIGINAL_TITLE")]
  901. public const int METADATA_KEY_ORIGINAL_TITLE;
  902. [CCode (cheader_filename = "grilo.h", cname = "GRL_METADATA_KEY_PERFORMER")]
  903. public const int METADATA_KEY_PERFORMER;
  904. [CCode (cheader_filename = "grilo.h", cname = "GRL_METADATA_KEY_PLAY_COUNT")]
  905. public const int METADATA_KEY_PLAY_COUNT;
  906. [CCode (cheader_filename = "grilo.h", cname = "GRL_METADATA_KEY_PRODUCER")]
  907. public const int METADATA_KEY_PRODUCER;
  908. [CCode (cheader_filename = "grilo.h", cname = "GRL_METADATA_KEY_PUBLICATION_DATE")]
  909. public const int METADATA_KEY_PUBLICATION_DATE;
  910. [CCode (cheader_filename = "grilo.h", cname = "GRL_METADATA_KEY_RATING")]
  911. public const int METADATA_KEY_RATING;
  912. [CCode (cheader_filename = "grilo.h", cname = "GRL_METADATA_KEY_REGION")]
  913. public const int METADATA_KEY_REGION;
  914. [CCode (cheader_filename = "grilo.h", cname = "GRL_METADATA_KEY_SEASON")]
  915. public const int METADATA_KEY_SEASON;
  916. [CCode (cheader_filename = "grilo.h", cname = "GRL_METADATA_KEY_SHOW")]
  917. public const int METADATA_KEY_SHOW;
  918. [CCode (cheader_filename = "grilo.h", cname = "GRL_METADATA_KEY_SITE")]
  919. public const int METADATA_KEY_SITE;
  920. [CCode (cheader_filename = "grilo.h", cname = "GRL_METADATA_KEY_SIZE")]
  921. public const int METADATA_KEY_SIZE;
  922. [CCode (cheader_filename = "grilo.h", cname = "GRL_METADATA_KEY_SOURCE")]
  923. public const int METADATA_KEY_SOURCE;
  924. [CCode (cheader_filename = "grilo.h", cname = "GRL_METADATA_KEY_START_TIME")]
  925. public const int METADATA_KEY_START_TIME;
  926. [CCode (cheader_filename = "grilo.h", cname = "GRL_METADATA_KEY_STUDIO")]
  927. public const int METADATA_KEY_STUDIO;
  928. [CCode (cheader_filename = "grilo.h", cname = "GRL_METADATA_KEY_THUMBNAIL")]
  929. public const int METADATA_KEY_THUMBNAIL;
  930. [CCode (cheader_filename = "grilo.h", cname = "GRL_METADATA_KEY_THUMBNAIL_BINARY")]
  931. public const int METADATA_KEY_THUMBNAIL_BINARY;
  932. [CCode (cheader_filename = "grilo.h", cname = "GRL_METADATA_KEY_TITLE")]
  933. public const int METADATA_KEY_TITLE;
  934. [CCode (cheader_filename = "grilo.h", cname = "GRL_METADATA_KEY_TITLE_FROM_FILENAME")]
  935. public const int METADATA_KEY_TITLE_FROM_FILENAME;
  936. [CCode (cheader_filename = "grilo.h", cname = "GRL_METADATA_KEY_TRACK_NUMBER")]
  937. public const int METADATA_KEY_TRACK_NUMBER;
  938. [CCode (cheader_filename = "grilo.h", cname = "GRL_METADATA_KEY_URL")]
  939. public const int METADATA_KEY_URL;
  940. [CCode (cheader_filename = "grilo.h", cname = "GRL_METADATA_KEY_WIDTH")]
  941. public const int METADATA_KEY_WIDTH;
  942. [CCode (cheader_filename = "grilo.h", cname = "GRL_OPERATION_OPTION_COUNT")]
  943. public const string OPERATION_OPTION_COUNT;
  944. [CCode (cheader_filename = "grilo.h", cname = "GRL_OPERATION_OPTION_KEY_EQUAL_FILTER")]
  945. public const string OPERATION_OPTION_KEY_EQUAL_FILTER;
  946. [CCode (cheader_filename = "grilo.h", cname = "GRL_OPERATION_OPTION_KEY_RANGE_FILTER")]
  947. public const string OPERATION_OPTION_KEY_RANGE_FILTER;
  948. [CCode (cheader_filename = "grilo.h", cname = "GRL_OPERATION_OPTION_RESOLUTION_FLAGS")]
  949. public const string OPERATION_OPTION_RESOLUTION_FLAGS;
  950. [CCode (cheader_filename = "grilo.h", cname = "GRL_OPERATION_OPTION_SKIP")]
  951. public const string OPERATION_OPTION_SKIP;
  952. [CCode (cheader_filename = "grilo.h", cname = "GRL_OPERATION_OPTION_TYPE_FILTER")]
  953. public const string OPERATION_OPTION_TYPE_FILTER;
  954. [CCode (cheader_filename = "grilo.h", cname = "GRL_PADDING")]
  955. public const int PADDING;
  956. [CCode (cheader_filename = "grilo.h", cname = "GRL_PADDING_SMALL")]
  957. public const int PADDING_SMALL;
  958. [CCode (cheader_filename = "grilo.h", cname = "GRL_PLUGIN_AUTHOR")]
  959. public const string PLUGIN_AUTHOR;
  960. [CCode (cheader_filename = "grilo.h", cname = "GRL_PLUGIN_DESCRIPTION")]
  961. public const string PLUGIN_DESCRIPTION;
  962. [CCode (cheader_filename = "grilo.h", cname = "GRL_PLUGIN_LICENSE")]
  963. public const string PLUGIN_LICENSE;
  964. [CCode (cheader_filename = "grilo.h", cname = "GRL_PLUGIN_LIST_VAR")]
  965. public const string PLUGIN_LIST_VAR;
  966. [CCode (cheader_filename = "grilo.h", cname = "GRL_PLUGIN_NAME")]
  967. public const string PLUGIN_NAME;
  968. [CCode (cheader_filename = "grilo.h", cname = "GRL_PLUGIN_PATH_VAR")]
  969. public const string PLUGIN_PATH_VAR;
  970. [CCode (cheader_filename = "grilo.h", cname = "GRL_PLUGIN_RANKS_VAR")]
  971. public const string PLUGIN_RANKS_VAR;
  972. [CCode (cheader_filename = "grilo.h", cname = "GRL_PLUGIN_SITE")]
  973. public const string PLUGIN_SITE;
  974. [CCode (cheader_filename = "grilo.h", cname = "GRL_PLUGIN_VERSION")]
  975. public const string PLUGIN_VERSION;
  976. [CCode (cheader_filename = "grilo.h", cname = "GRL_SOURCE_REMAINING_UNKNOWN")]
  977. public const int SOURCE_REMAINING_UNKNOWN;
  978. [CCode (cheader_filename = "grilo.h")]
  979. public static GLib.DateTime date_time_from_iso8601 (string date);
  980. [CCode (cheader_filename = "grilo.h")]
  981. public static void deinit ();
  982. [CCode (cheader_filename = "grilo.h")]
  983. public static GLib.Value? g_value_dup (GLib.Value value);
  984. [CCode (cheader_filename = "grilo.h")]
  985. public static void g_value_free (GLib.Value value);
  986. [CCode (cheader_filename = "grilo.h")]
  987. public static GLib.HashTable<string,GLib.Value?> g_value_hashtable_new ();
  988. [CCode (cheader_filename = "grilo.h")]
  989. public static GLib.HashTable<void*,GLib.Value?> g_value_hashtable_new_direct ();
  990. [CCode (cheader_filename = "grilo.h")]
  991. public static GLib.Value? g_value_new (GLib.Type g_type);
  992. [CCode (cheader_filename = "grilo.h")]
  993. public static void init ([CCode (array_length_cname = "argc", array_length_pos = 0.5)] ref unowned string[]? argv);
  994. [CCode (cheader_filename = "grilo.h")]
  995. public static GLib.OptionGroup init_get_option_group ();
  996. [CCode (cheader_filename = "grilo.h")]
  997. public static void log_configure (string config);
  998. [CCode (cheader_filename = "grilo.h")]
  999. public static void marshal_VOID__BOXED_ENUM_BOOLEAN (GLib.Closure closure, GLib.Value return_value, uint n_param_values, GLib.Value param_values, void* invocation_hint, void* marshal_data);
  1000. [CCode (cheader_filename = "grilo.h")]
  1001. public static unowned string metadata_key_get_desc (Grl.KeyID key);
  1002. [CCode (cheader_filename = "grilo.h")]
  1003. public static unowned string metadata_key_get_name (Grl.KeyID key);
  1004. [CCode (cheader_filename = "grilo.h")]
  1005. public static GLib.Type metadata_key_get_type (Grl.KeyID key);
  1006. [CCode (cheader_filename = "grilo.h")]
  1007. public static void metadata_key_setup_system_keys (Grl.Registry registry);
  1008. [CCode (cheader_filename = "grilo.h")]
  1009. public static void multiple_get_media_from_uri (string uri, GLib.List<Grl.KeyID> keys, Grl.OperationOptions options, Grl.SourceResolveCb callback);
  1010. [CCode (cheader_filename = "grilo.h")]
  1011. public static uint multiple_search (GLib.List<Grl.Source>? sources, string text, GLib.List<Grl.KeyID> keys, Grl.OperationOptions options, Grl.SourceResultCb callback);
  1012. [CCode (cheader_filename = "grilo.h")]
  1013. public static GLib.List<Grl.Media> multiple_search_sync (GLib.List<Grl.Source>? sources, string text, GLib.List<Grl.KeyID> keys, Grl.OperationOptions options) throws GLib.Error;
  1014. [CCode (cheader_filename = "grilo.h")]
  1015. public static void operation_cancel (uint operation_id);
  1016. [CCode (cheader_filename = "grilo.h")]
  1017. public static uint operation_generate_id ();
  1018. [CCode (cheader_filename = "grilo.h")]
  1019. public static void* operation_get_data (uint operation_id);
  1020. [CCode (cheader_filename = "grilo.h")]
  1021. public static void operation_init ();
  1022. [CCode (cheader_filename = "grilo.h")]
  1023. public static void operation_remove (uint operation_id);
  1024. [CCode (cheader_filename = "grilo.h")]
  1025. public static void operation_set_data (uint operation_id, void* user_data);
  1026. [CCode (cheader_filename = "grilo.h")]
  1027. public static void operation_set_data_full (uint operation_id, void* user_data, GLib.DestroyNotify? destroy_func);
  1028. [CCode (cheader_filename = "grilo.h")]
  1029. public static void operation_set_private_data (uint operation_id, void* private_data, [CCode (destroy_notify_pos = 3.1)] owned Grl.OperationCancelCb cancel_cb);
  1030. [CCode (cheader_filename = "grilo.h")]
  1031. public static void paging_translate (uint skip, uint count, uint max_page_size, uint page_size, uint page_number, uint internal_offset);
  1032. }