You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1396 lines
59 KiB

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