mconnect - KDE Connect protocol implementation in Vala/C
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.

5089 lines
271 KiB

  1. /* gio-2.0.vapi generated by vapigen, do not modify. */
  2. [CCode (cprefix = "G", gir_namespace = "Gio", gir_version = "2.0", lower_case_cprefix = "g_")]
  3. namespace GLib {
  4. namespace Bus {
  5. [CCode (cheader_filename = "gio/gio.h")]
  6. public static async GLib.DBusConnection @get (GLib.BusType bus_type, GLib.Cancellable? cancellable = null) throws GLib.IOError;
  7. [CCode (cheader_filename = "gio/gio.h")]
  8. public static async T get_proxy<T> (GLib.BusType bus_type, string name, string object_path, GLib.DBusProxyFlags flags = 0, GLib.Cancellable? cancellable = null) throws GLib.IOError;
  9. [CCode (cheader_filename = "gio/gio.h")]
  10. public static T get_proxy_sync<T> (GLib.BusType bus_type, string name, string object_path, GLib.DBusProxyFlags flags = 0, GLib.Cancellable? cancellable = null) throws GLib.IOError;
  11. [CCode (cheader_filename = "gio/gio.h")]
  12. public static GLib.DBusConnection get_sync (GLib.BusType bus_type, GLib.Cancellable? cancellable = null) throws GLib.IOError;
  13. [CCode (cheader_filename = "gio/gio.h", cname = "g_bus_own_name_with_closures")]
  14. [Version (since = "2.26")]
  15. public static uint own_name (GLib.BusType bus_type, string name, GLib.BusNameOwnerFlags flags, [CCode (type = "GClosure*")] owned GLib.BusAcquiredCallback? bus_acquired_closure = null, [CCode (type = "GClosure*")] owned GLib.BusNameAcquiredCallback? name_acquired_closure = null, [CCode (type = "GClosure*")] owned GLib.BusNameLostCallback? name_lost_closure = null);
  16. [CCode (cheader_filename = "gio/gio.h", cname = "g_bus_own_name_on_connection_with_closures")]
  17. [Version (since = "2.26")]
  18. public static uint own_name_on_connection (GLib.DBusConnection connection, string name, GLib.BusNameOwnerFlags flags, [CCode (type = "GClosure*")] owned GLib.BusNameAcquiredCallback? name_acquired_closure = null, [CCode (type = "GClosure*")] owned GLib.BusNameLostCallback? name_lost_closure = null);
  19. [CCode (cheader_filename = "gio/gio.h")]
  20. [Version (since = "2.26")]
  21. public static void unown_name (uint owner_id);
  22. [CCode (cheader_filename = "gio/gio.h")]
  23. [Version (since = "2.26")]
  24. public static void unwatch_name (uint watcher_id);
  25. [CCode (cheader_filename = "gio/gio.h", cname = "g_bus_watch_name_with_closures")]
  26. [Version (since = "2.26")]
  27. public static uint watch_name (GLib.BusType bus_type, string name, GLib.BusNameWatcherFlags flags, [CCode (type = "GClosure*")] owned GLib.BusNameAppearedCallback? name_appeared_closure = null, [CCode (type = "GClosure*")] owned GLib.BusNameVanishedCallback? name_vanished_closure = null);
  28. [CCode (cheader_filename = "gio/gio.h", cname = "g_bus_watch_name_on_connection_with_closures")]
  29. [Version (since = "2.26")]
  30. public static uint watch_name_on_connection (GLib.DBusConnection connection, string name, GLib.BusNameWatcherFlags flags, [CCode (type = "GClosure*")] owned GLib.BusNameAppearedCallback? name_appeared_closure = null, [CCode (type = "GClosure*")] owned GLib.BusNameVanishedCallback? name_vanished_closure = null);
  31. }
  32. namespace ContentType {
  33. [CCode (cheader_filename = "gio/gio.h")]
  34. public static bool can_be_executable (string type);
  35. [CCode (cheader_filename = "gio/gio.h")]
  36. public static bool equals (string type1, string type2);
  37. [CCode (cheader_filename = "gio/gio.h")]
  38. [Version (since = "2.18")]
  39. public static string? from_mime_type (string mime_type);
  40. [CCode (cheader_filename = "gio/gio.h")]
  41. public static string get_description (string type);
  42. [CCode (cheader_filename = "gio/gio.h")]
  43. [Version (since = "2.34")]
  44. public static string? get_generic_icon_name (string type);
  45. [CCode (cheader_filename = "gio/gio.h")]
  46. public static GLib.Icon get_icon (string type);
  47. [CCode (cheader_filename = "gio/gio.h")]
  48. public static string? get_mime_type (string type);
  49. [CCode (cheader_filename = "gio/gio.h")]
  50. [Version (since = "2.34")]
  51. public static GLib.Icon get_symbolic_icon (string type);
  52. [CCode (cheader_filename = "gio/gio.h")]
  53. public static string guess (string? filename, [CCode (array_length_cname = "data_size", array_length_pos = 2.5, array_length_type = "gsize")] uint8[]? data, out bool result_uncertain);
  54. [CCode (array_length = false, array_null_terminated = true, cheader_filename = "gio/gio.h")]
  55. [Version (since = "2.18")]
  56. public static string[] guess_for_tree (GLib.File root);
  57. [CCode (cheader_filename = "gio/gio.h")]
  58. public static bool is_a (string type, string supertype);
  59. [CCode (cheader_filename = "gio/gio.h")]
  60. public static bool is_unknown (string type);
  61. [CCode (cheader_filename = "gio/gio.h", cname = "g_content_types_get_registered")]
  62. public static GLib.List<string> list_registered ();
  63. }
  64. namespace DBus {
  65. [CCode (cheader_filename = "gio/gio.h")]
  66. [Version (since = "2.36")]
  67. public static string address_escape_value (string string);
  68. [CCode (cheader_filename = "gio/gio.h")]
  69. [Version (since = "2.26")]
  70. public static async GLib.IOStream address_get_stream (string address, GLib.Cancellable? cancellable = null, out string out_guid) throws GLib.Error;
  71. [CCode (cheader_filename = "gio/gio.h")]
  72. [Version (since = "2.26")]
  73. public static GLib.IOStream address_get_stream_sync (string address, out string out_guid, GLib.Cancellable? cancellable = null) throws GLib.Error;
  74. [CCode (cheader_filename = "gio/gio.h")]
  75. [Version (since = "2.26")]
  76. public static unowned string annotation_info_lookup ([CCode (array_length = false, array_null_terminated = true)] GLib.DBusAnnotationInfo[]? annotations, string name);
  77. [CCode (cheader_filename = "gio/gio.h")]
  78. [Version (since = "2.26")]
  79. public static string generate_guid ();
  80. [CCode (cheader_filename = "gio/gio.h")]
  81. [Version (since = "2.30")]
  82. public static GLib.Variant gvalue_to_gvariant (GLib.Value gvalue, GLib.VariantType type);
  83. [CCode (cheader_filename = "gio/gio.h")]
  84. [Version (since = "2.30")]
  85. public static GLib.Value gvariant_to_gvalue (GLib.Variant value);
  86. [CCode (cheader_filename = "gio/gio.h")]
  87. [Version (since = "2.26")]
  88. public static bool is_address (string string);
  89. [CCode (cheader_filename = "gio/gio.h")]
  90. [Version (since = "2.26")]
  91. public static bool is_guid (string string);
  92. [CCode (cheader_filename = "gio/gio.h")]
  93. [Version (since = "2.26")]
  94. public static bool is_interface_name (string string);
  95. [CCode (cheader_filename = "gio/gio.h")]
  96. [Version (since = "2.26")]
  97. public static bool is_member_name (string string);
  98. [CCode (cheader_filename = "gio/gio.h")]
  99. [Version (since = "2.26")]
  100. public static bool is_name (string string);
  101. [CCode (cheader_filename = "gio/gio.h")]
  102. [Version (since = "2.26")]
  103. public static bool is_supported_address (string string) throws GLib.Error;
  104. [CCode (cheader_filename = "gio/gio.h")]
  105. [Version (since = "2.26")]
  106. public static bool is_unique_name (string string);
  107. }
  108. namespace FileAttribute {
  109. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_ACCESS_CAN_DELETE")]
  110. public const string ACCESS_CAN_DELETE;
  111. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_ACCESS_CAN_EXECUTE")]
  112. public const string ACCESS_CAN_EXECUTE;
  113. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_ACCESS_CAN_READ")]
  114. public const string ACCESS_CAN_READ;
  115. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_ACCESS_CAN_RENAME")]
  116. public const string ACCESS_CAN_RENAME;
  117. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_ACCESS_CAN_TRASH")]
  118. public const string ACCESS_CAN_TRASH;
  119. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_ACCESS_CAN_WRITE")]
  120. public const string ACCESS_CAN_WRITE;
  121. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_DOS_IS_ARCHIVE")]
  122. public const string DOS_IS_ARCHIVE;
  123. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_DOS_IS_SYSTEM")]
  124. public const string DOS_IS_SYSTEM;
  125. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_ETAG_VALUE")]
  126. public const string ETAG_VALUE;
  127. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_FILESYSTEM_FREE")]
  128. public const string FILESYSTEM_FREE;
  129. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_FILESYSTEM_READONLY")]
  130. public const string FILESYSTEM_READONLY;
  131. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_FILESYSTEM_SIZE")]
  132. public const string FILESYSTEM_SIZE;
  133. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_FILESYSTEM_TYPE")]
  134. public const string FILESYSTEM_TYPE;
  135. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_FILESYSTEM_USED")]
  136. [Version (since = "2.32")]
  137. public const string FILESYSTEM_USED;
  138. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_FILESYSTEM_USE_PREVIEW")]
  139. public const string FILESYSTEM_USE_PREVIEW;
  140. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_GVFS_BACKEND")]
  141. public const string GVFS_BACKEND;
  142. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_ID_FILE")]
  143. public const string ID_FILE;
  144. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_ID_FILESYSTEM")]
  145. public const string ID_FILESYSTEM;
  146. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_MOUNTABLE_CAN_EJECT")]
  147. public const string MOUNTABLE_CAN_EJECT;
  148. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_MOUNTABLE_CAN_MOUNT")]
  149. public const string MOUNTABLE_CAN_MOUNT;
  150. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_MOUNTABLE_CAN_POLL")]
  151. [Version (since = "2.22")]
  152. public const string MOUNTABLE_CAN_POLL;
  153. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_MOUNTABLE_CAN_START")]
  154. [Version (since = "2.22")]
  155. public const string MOUNTABLE_CAN_START;
  156. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_MOUNTABLE_CAN_START_DEGRADED")]
  157. [Version (since = "2.22")]
  158. public const string MOUNTABLE_CAN_START_DEGRADED;
  159. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_MOUNTABLE_CAN_STOP")]
  160. [Version (since = "2.22")]
  161. public const string MOUNTABLE_CAN_STOP;
  162. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_MOUNTABLE_CAN_UNMOUNT")]
  163. public const string MOUNTABLE_CAN_UNMOUNT;
  164. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_MOUNTABLE_HAL_UDI")]
  165. public const string MOUNTABLE_HAL_UDI;
  166. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_MOUNTABLE_IS_MEDIA_CHECK_AUTOMATIC")]
  167. [Version (since = "2.22")]
  168. public const string MOUNTABLE_IS_MEDIA_CHECK_AUTOMATIC;
  169. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_MOUNTABLE_START_STOP_TYPE")]
  170. [Version (since = "2.22")]
  171. public const string MOUNTABLE_START_STOP_TYPE;
  172. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_MOUNTABLE_UNIX_DEVICE")]
  173. public const string MOUNTABLE_UNIX_DEVICE;
  174. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_MOUNTABLE_UNIX_DEVICE_FILE")]
  175. [Version (since = "2.22")]
  176. public const string MOUNTABLE_UNIX_DEVICE_FILE;
  177. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_OWNER_GROUP")]
  178. public const string OWNER_GROUP;
  179. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_OWNER_USER")]
  180. public const string OWNER_USER;
  181. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_OWNER_USER_REAL")]
  182. public const string OWNER_USER_REAL;
  183. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_PREVIEW_ICON")]
  184. [Version (since = "2.20")]
  185. public const string PREVIEW_ICON;
  186. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_SELINUX_CONTEXT")]
  187. public const string SELINUX_CONTEXT;
  188. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_ALLOCATED_SIZE")]
  189. [Version (since = "2.20")]
  190. public const string STANDARD_ALLOCATED_SIZE;
  191. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE")]
  192. public const string STANDARD_CONTENT_TYPE;
  193. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_COPY_NAME")]
  194. public const string STANDARD_COPY_NAME;
  195. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_DESCRIPTION")]
  196. public const string STANDARD_DESCRIPTION;
  197. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME")]
  198. public const string STANDARD_DISPLAY_NAME;
  199. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_EDIT_NAME")]
  200. public const string STANDARD_EDIT_NAME;
  201. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_FAST_CONTENT_TYPE")]
  202. public const string STANDARD_FAST_CONTENT_TYPE;
  203. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_ICON")]
  204. public const string STANDARD_ICON;
  205. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_IS_BACKUP")]
  206. public const string STANDARD_IS_BACKUP;
  207. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_IS_HIDDEN")]
  208. public const string STANDARD_IS_HIDDEN;
  209. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_IS_SYMLINK")]
  210. public const string STANDARD_IS_SYMLINK;
  211. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_IS_VIRTUAL")]
  212. public const string STANDARD_IS_VIRTUAL;
  213. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_IS_VOLATILE")]
  214. [Version (since = "2.46")]
  215. public const string STANDARD_IS_VOLATILE;
  216. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_NAME")]
  217. public const string STANDARD_NAME;
  218. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_SIZE")]
  219. public const string STANDARD_SIZE;
  220. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_SORT_ORDER")]
  221. public const string STANDARD_SORT_ORDER;
  222. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_SYMBOLIC_ICON")]
  223. [Version (since = "2.34")]
  224. public const string STANDARD_SYMBOLIC_ICON;
  225. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_SYMLINK_TARGET")]
  226. public const string STANDARD_SYMLINK_TARGET;
  227. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_TARGET_URI")]
  228. public const string STANDARD_TARGET_URI;
  229. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_STANDARD_TYPE")]
  230. public const string STANDARD_TYPE;
  231. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_THUMBNAILING_FAILED")]
  232. public const string THUMBNAILING_FAILED;
  233. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_THUMBNAIL_IS_VALID")]
  234. [Version (since = "2.40")]
  235. public const string THUMBNAIL_IS_VALID;
  236. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_THUMBNAIL_PATH")]
  237. public const string THUMBNAIL_PATH;
  238. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_TIME_ACCESS")]
  239. public const string TIME_ACCESS;
  240. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_TIME_ACCESS_USEC")]
  241. public const string TIME_ACCESS_USEC;
  242. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_TIME_CHANGED")]
  243. public const string TIME_CHANGED;
  244. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_TIME_CHANGED_USEC")]
  245. public const string TIME_CHANGED_USEC;
  246. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_TIME_CREATED")]
  247. public const string TIME_CREATED;
  248. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_TIME_CREATED_USEC")]
  249. public const string TIME_CREATED_USEC;
  250. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_TIME_MODIFIED")]
  251. public const string TIME_MODIFIED;
  252. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_TIME_MODIFIED_USEC")]
  253. public const string TIME_MODIFIED_USEC;
  254. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_TRASH_DELETION_DATE")]
  255. [Version (since = "2.24")]
  256. public const string TRASH_DELETION_DATE;
  257. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_TRASH_ITEM_COUNT")]
  258. public const string TRASH_ITEM_COUNT;
  259. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_TRASH_ORIG_PATH")]
  260. [Version (since = "2.24")]
  261. public const string TRASH_ORIG_PATH;
  262. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_UNIX_BLOCKS")]
  263. public const string UNIX_BLOCKS;
  264. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_UNIX_BLOCK_SIZE")]
  265. public const string UNIX_BLOCK_SIZE;
  266. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_UNIX_DEVICE")]
  267. public const string UNIX_DEVICE;
  268. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_UNIX_GID")]
  269. public const string UNIX_GID;
  270. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_UNIX_INODE")]
  271. public const string UNIX_INODE;
  272. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_UNIX_IS_MOUNTPOINT")]
  273. public const string UNIX_IS_MOUNTPOINT;
  274. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_UNIX_MODE")]
  275. public const string UNIX_MODE;
  276. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_UNIX_NLINK")]
  277. public const string UNIX_NLINK;
  278. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_UNIX_RDEV")]
  279. public const string UNIX_RDEV;
  280. [CCode (cheader_filename = "gio/gio.h", cname = "G_FILE_ATTRIBUTE_UNIX_UID")]
  281. public const string UNIX_UID;
  282. }
  283. namespace VolumeIdentifier {
  284. [CCode (cheader_filename = "gio/gio.h", cname = "G_VOLUME_IDENTIFIER_KIND_CLASS")]
  285. public const string CLASS;
  286. [CCode (cheader_filename = "gio/gio.h", cname = "G_VOLUME_IDENTIFIER_KIND_HAL_UDI")]
  287. public const string HAL_UDI;
  288. [CCode (cheader_filename = "gio/gio.h", cname = "G_VOLUME_IDENTIFIER_KIND_LABEL")]
  289. public const string LABEL;
  290. [CCode (cheader_filename = "gio/gio.h", cname = "G_VOLUME_IDENTIFIER_KIND_NFS_MOUNT")]
  291. public const string NFS_MOUNT;
  292. [CCode (cheader_filename = "gio/gio.h", cname = "G_VOLUME_IDENTIFIER_KIND_UNIX_DEVICE")]
  293. public const string UNIX_DEVICE;
  294. [CCode (cheader_filename = "gio/gio.h", cname = "G_VOLUME_IDENTIFIER_KIND_UUID")]
  295. public const string UUID;
  296. }
  297. [CCode (cheader_filename = "gio/gio.h", type_id = "g_app_info_monitor_get_type ()")]
  298. [Version (since = "2.40")]
  299. public class AppInfoMonitor : GLib.Object {
  300. [CCode (has_construct_function = false)]
  301. protected AppInfoMonitor ();
  302. public static GLib.AppInfoMonitor @get ();
  303. public signal void changed ();
  304. }
  305. [CCode (cheader_filename = "gio/gio.h", type_id = "g_app_launch_context_get_type ()")]
  306. public class AppLaunchContext : GLib.Object {
  307. [CCode (has_construct_function = false)]
  308. public AppLaunchContext ();
  309. public virtual string get_display (GLib.AppInfo info, GLib.List<GLib.File> files);
  310. [CCode (array_length = false, array_null_terminated = true)]
  311. [Version (since = "2.32")]
  312. public string[] get_environment ();
  313. public virtual string get_startup_notify_id (GLib.AppInfo info, GLib.List<GLib.File> files);
  314. [Version (since = "2.32")]
  315. public void setenv (string variable, string value);
  316. [Version (since = "2.32")]
  317. public void unsetenv (string variable);
  318. [HasEmitter]
  319. [Version (since = "2.36")]
  320. public virtual signal void launch_failed (string startup_notify_id);
  321. [Version (since = "2.36")]
  322. public virtual signal void launched (GLib.AppInfo info, GLib.Variant platform_data);
  323. }
  324. [CCode (cheader_filename = "gio/gio.h", type_id = "g_application_get_type ()")]
  325. [Version (since = "2.28")]
  326. public class Application : GLib.Object, GLib.ActionGroup, GLib.ActionMap {
  327. [CCode (has_construct_function = false)]
  328. public Application (string? application_id, GLib.ApplicationFlags flags);
  329. [Version (since = "2.42")]
  330. public void add_main_option (string long_name, char short_name, GLib.OptionFlags flags, GLib.OptionArg arg, string description, string? arg_description);
  331. [Version (since = "2.40")]
  332. public void add_main_option_entries ([CCode (array_length = false, array_null_terminated = true)] GLib.OptionEntry[] entries);
  333. [Version (since = "2.40")]
  334. public void add_option_group (owned GLib.OptionGroup group);
  335. [NoWrapper]
  336. public virtual void add_platform_data (GLib.VariantBuilder builder);
  337. [NoWrapper]
  338. public virtual void after_emit (GLib.Variant platform_data);
  339. [NoWrapper]
  340. public virtual void before_emit (GLib.Variant platform_data);
  341. [Version (since = "2.44")]
  342. public void bind_busy_property (GLib.Object object, string property);
  343. [NoWrapper]
  344. public virtual bool dbus_register (GLib.DBusConnection connection, string object_path) throws GLib.Error;
  345. [NoWrapper]
  346. public virtual void dbus_unregister (GLib.DBusConnection connection, string object_path);
  347. public unowned string get_application_id ();
  348. [Version (since = "2.34")]
  349. public unowned GLib.DBusConnection get_dbus_connection ();
  350. [Version (since = "2.34")]
  351. public unowned string get_dbus_object_path ();
  352. [Version (since = "2.32")]
  353. public static unowned GLib.Application get_default ();
  354. public GLib.ApplicationFlags get_flags ();
  355. public uint get_inactivity_timeout ();
  356. [Version (since = "2.44")]
  357. public bool get_is_busy ();
  358. public bool get_is_registered ();
  359. public bool get_is_remote ();
  360. [Version (since = "2.42")]
  361. public unowned string? get_resource_base_path ();
  362. public void hold ();
  363. public static bool id_is_valid (string application_id);
  364. [NoWrapper]
  365. public virtual bool local_command_line ([CCode (array_length = false, array_null_terminated = true)] ref unowned string[] arguments, out int exit_status);
  366. [Version (since = "2.38")]
  367. public void mark_busy ();
  368. [Version (since = "2.32")]
  369. public void quit ();
  370. [NoWrapper]
  371. public virtual void quit_mainloop ();
  372. public bool register (GLib.Cancellable? cancellable = null) throws GLib.Error;
  373. public void release ();
  374. public int run ([CCode (array_length_cname = "argc", array_length_pos = 0.5)] string[]? argv = null);
  375. [NoWrapper]
  376. public virtual void run_mainloop ();
  377. [Version (since = "2.40")]
  378. public void send_notification (string? id, GLib.Notification notification);
  379. [Version (deprecated = true, deprecated_since = "2.32", since = "2.28")]
  380. public void set_action_group (GLib.ActionGroup? action_group);
  381. public void set_application_id (string? application_id);
  382. [Version (since = "2.32")]
  383. public void set_default ();
  384. public void set_flags (GLib.ApplicationFlags flags);
  385. public void set_inactivity_timeout (uint inactivity_timeout);
  386. [Version (since = "2.42")]
  387. public void set_resource_base_path (string? resource_path);
  388. [Version (since = "2.44")]
  389. public void unbind_busy_property (GLib.Object object, string property);
  390. [Version (since = "2.38")]
  391. public void unmark_busy ();
  392. [Version (since = "2.40")]
  393. public void withdraw_notification (string id);
  394. public GLib.ActionGroup action_group { set; }
  395. public string application_id { get; set construct; }
  396. public GLib.ApplicationFlags flags { get; set; }
  397. public uint inactivity_timeout { get; set; }
  398. [Version (since = "2.44")]
  399. public bool is_busy { get; }
  400. public bool is_registered { get; }
  401. public bool is_remote { get; }
  402. public string resource_base_path { get; set; }
  403. [HasEmitter]
  404. public virtual signal void activate ();
  405. public virtual signal int command_line (GLib.ApplicationCommandLine command_line);
  406. [Version (since = "2.40")]
  407. public virtual signal int handle_local_options (GLib.VariantDict options);
  408. [HasEmitter]
  409. public virtual signal void open ([CCode (array_length_cname = "n_files", array_length_pos = 1.5)] GLib.File[] files, string hint);
  410. public virtual signal void shutdown ();
  411. public virtual signal void startup ();
  412. }
  413. [CCode (cheader_filename = "gio/gio.h", type_id = "g_application_command_line_get_type ()")]
  414. public class ApplicationCommandLine : GLib.Object {
  415. [CCode (has_construct_function = false)]
  416. protected ApplicationCommandLine ();
  417. [Version (since = "2.36")]
  418. public GLib.File create_file_for_arg (string arg);
  419. [CCode (array_length_pos = 0.1)]
  420. [Version (since = "2.28")]
  421. public string[] get_arguments ();
  422. [Version (since = "2.28")]
  423. public unowned string get_cwd ();
  424. [CCode (array_length = false, array_null_terminated = true)]
  425. [Version (since = "2.28")]
  426. public unowned string[] get_environ ();
  427. [Version (since = "2.28")]
  428. public int get_exit_status ();
  429. [Version (since = "2.28")]
  430. public bool get_is_remote ();
  431. [Version (since = "2.40")]
  432. public unowned GLib.VariantDict get_options_dict ();
  433. [Version (since = "2.28")]
  434. public GLib.Variant? get_platform_data ();
  435. [Version (since = "2.34")]
  436. public virtual GLib.InputStream get_stdin ();
  437. [Version (since = "2.28")]
  438. public unowned string getenv (string name);
  439. [PrintfFormat]
  440. [Version (since = "2.28")]
  441. public void print (string format, ...);
  442. [NoWrapper]
  443. public virtual void print_literal (string message);
  444. [PrintfFormat]
  445. [Version (since = "2.28")]
  446. public void printerr (string format, ...);
  447. [NoWrapper]
  448. public virtual void printerr_literal (string message);
  449. [Version (since = "2.28")]
  450. public void set_exit_status (int exit_status);
  451. public GLib.Variant arguments { construct; }
  452. public bool is_remote { get; }
  453. public GLib.Variant options { construct; }
  454. public GLib.Variant platform_data { construct; }
  455. }
  456. [CCode (cheader_filename = "gio/gio.h", type_id = "g_buffered_input_stream_get_type ()")]
  457. public class BufferedInputStream : GLib.FilterInputStream, GLib.Seekable {
  458. [CCode (has_construct_function = false, type = "GInputStream*")]
  459. public BufferedInputStream (GLib.InputStream base_stream);
  460. public virtual ssize_t fill (ssize_t count, GLib.Cancellable? cancellable = null) throws GLib.Error;
  461. public virtual async ssize_t fill_async (ssize_t count, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
  462. public size_t get_available ();
  463. public size_t get_buffer_size ();
  464. public size_t peek ([CCode (array_length_cname = "count", array_length_pos = 2.1, array_length_type = "gsize")] uint8[] buffer, size_t offset = 0);
  465. [CCode (array_length_pos = 0.1, array_length_type = "gsize")]
  466. public unowned uint8[] peek_buffer ();
  467. public int read_byte (GLib.Cancellable? cancellable = null) throws GLib.Error;
  468. public void set_buffer_size (size_t size);
  469. [CCode (has_construct_function = false, type = "GInputStream*")]
  470. public BufferedInputStream.sized (GLib.InputStream base_stream, size_t size);
  471. public uint buffer_size { get; set construct; }
  472. }
  473. [CCode (cheader_filename = "gio/gio.h", type_id = "g_buffered_output_stream_get_type ()")]
  474. public class BufferedOutputStream : GLib.FilterOutputStream, GLib.Seekable {
  475. [CCode (has_construct_function = false, type = "GOutputStream*")]
  476. public BufferedOutputStream (GLib.OutputStream base_stream);
  477. public bool get_auto_grow ();
  478. public size_t get_buffer_size ();
  479. public void set_auto_grow (bool auto_grow);
  480. public void set_buffer_size (size_t size);
  481. [CCode (has_construct_function = false, type = "GOutputStream*")]
  482. public BufferedOutputStream.sized (GLib.OutputStream base_stream, size_t size);
  483. public bool auto_grow { get; set; }
  484. public uint buffer_size { get; set construct; }
  485. }
  486. [CCode (cheader_filename = "gio/gio.h", type_id = "g_bytes_icon_get_type ()")]
  487. public class BytesIcon : GLib.Object, GLib.Icon, GLib.LoadableIcon {
  488. [CCode (has_construct_function = false, type = "GIcon*")]
  489. [Version (since = "2.38")]
  490. public BytesIcon (GLib.Bytes bytes);
  491. [Version (since = "2.38")]
  492. public unowned GLib.Bytes get_bytes ();
  493. public GLib.Bytes bytes { get; construct; }
  494. }
  495. [CCode (cheader_filename = "gio/gio.h", type_id = "g_cancellable_get_type ()")]
  496. public class Cancellable : GLib.Object {
  497. [CCode (has_construct_function = false)]
  498. public Cancellable ();
  499. public void cancel ();
  500. [Version (since = "2.22")]
  501. public ulong connect ([CCode (type = "GCallback")] owned GLib.Func<GLib.Cancellable> callback);
  502. [Version (since = "2.22")]
  503. public void disconnect (ulong handler_id);
  504. public static unowned GLib.Cancellable? get_current ();
  505. public int get_fd ();
  506. public bool is_cancelled ();
  507. [Version (since = "2.22")]
  508. public bool make_pollfd (GLib.PollFD pollfd);
  509. public void pop_current ();
  510. public void push_current ();
  511. [Version (since = "2.22")]
  512. public void release_fd ();
  513. public void reset ();
  514. public bool set_error_if_cancelled () throws GLib.IOError;
  515. [Version (since = "2.28")]
  516. public GLib.CancellableSource source_new ();
  517. public virtual signal void cancelled ();
  518. }
  519. [CCode (cheader_filename = "gio/gio.h", cname = "GSource", ref_function = "g_source_ref", unref_function = "g_source_unref")]
  520. [Compact]
  521. public class CancellableSource : GLib.Source {
  522. [CCode (cname = "g_source_set_callback")]
  523. public void set_callback ([CCode (type = "GSourceFunc")] owned GLib.CancellableSourceFunc func);
  524. }
  525. [CCode (cheader_filename = "gio/gio.h", type_id = "g_charset_converter_get_type ()")]
  526. public class CharsetConverter : GLib.Object, GLib.Converter, GLib.Initable {
  527. [CCode (has_construct_function = false)]
  528. [Version (since = "2.24")]
  529. public CharsetConverter (string to_charset, string from_charset) throws GLib.Error;
  530. [Version (since = "2.24")]
  531. public uint get_num_fallbacks ();
  532. [Version (since = "2.24")]
  533. public bool get_use_fallback ();
  534. [Version (since = "2.24")]
  535. public void set_use_fallback (bool use_fallback);
  536. [NoAccessorMethod]
  537. public string from_charset { owned get; construct; }
  538. [NoAccessorMethod]
  539. public string to_charset { owned get; construct; }
  540. public bool use_fallback { get; set construct; }
  541. }
  542. [CCode (cheader_filename = "gio/gio.h", type_id = "g_converter_input_stream_get_type ()")]
  543. public class ConverterInputStream : GLib.FilterInputStream, GLib.PollableInputStream {
  544. [CCode (has_construct_function = false, type = "GInputStream*")]
  545. public ConverterInputStream (GLib.InputStream base_stream, GLib.Converter converter);
  546. [Version (since = "2.24")]
  547. public unowned GLib.Converter get_converter ();
  548. public GLib.Converter converter { get; construct; }
  549. }
  550. [CCode (cheader_filename = "gio/gio.h", type_id = "g_converter_output_stream_get_type ()")]
  551. public class ConverterOutputStream : GLib.FilterOutputStream, GLib.PollableOutputStream {
  552. [CCode (has_construct_function = false, type = "GOutputStream*")]
  553. public ConverterOutputStream (GLib.OutputStream base_stream, GLib.Converter converter);
  554. [Version (since = "2.24")]
  555. public unowned GLib.Converter get_converter ();
  556. public GLib.Converter converter { get; construct; }
  557. }
  558. [CCode (cheader_filename = "gio/gio.h", type_id = "g_credentials_get_type ()")]
  559. [Version (since = "2.26")]
  560. public class Credentials : GLib.Object {
  561. [CCode (has_construct_function = false)]
  562. public Credentials ();
  563. public void* get_native (GLib.CredentialsType native_type);
  564. [Version (since = "2.36")]
  565. public int get_unix_pid () throws GLib.Error;
  566. public uint get_unix_user () throws GLib.Error;
  567. public bool is_same_user (GLib.Credentials other_credentials) throws GLib.Error;
  568. public void set_native (GLib.CredentialsType native_type, void* native);
  569. public bool set_unix_user (uint uid) throws GLib.Error;
  570. public string to_string ();
  571. }
  572. [CCode (cheader_filename = "gio/gio.h", type_id = "g_dbus_action_group_get_type ()")]
  573. public class DBusActionGroup : GLib.Object, GLib.ActionGroup, GLib.RemoteActionGroup {
  574. [CCode (has_construct_function = false)]
  575. protected DBusActionGroup ();
  576. [Version (since = "2.32")]
  577. public static GLib.DBusActionGroup @get (GLib.DBusConnection connection, string bus_name, string object_path);
  578. }
  579. [CCode (cheader_filename = "gio/gio.h", ref_function = "g_dbus_annotation_info_ref", type_id = "g_dbus_annotation_info_get_type ()", unref_function = "g_dbus_annotation_info_unref")]
  580. [Compact]
  581. [Version (since = "2.26")]
  582. public class DBusAnnotationInfo {
  583. [CCode (array_length = false, array_null_terminated = true)]
  584. public GLib.DBusAnnotationInfo[] annotations;
  585. public string key;
  586. public int ref_count;
  587. public string value;
  588. public GLib.DBusAnnotationInfo @ref ();
  589. public void unref ();
  590. }
  591. [CCode (cheader_filename = "gio/gio.h", ref_function = "g_dbus_arg_info_ref", type_id = "g_dbus_arg_info_get_type ()", unref_function = "g_dbus_arg_info_unref")]
  592. [Compact]
  593. [Version (since = "2.26")]
  594. public class DBusArgInfo {
  595. [CCode (array_length = false, array_null_terminated = true)]
  596. public GLib.DBusAnnotationInfo[] annotations;
  597. public string name;
  598. public int ref_count;
  599. public string signature;
  600. public GLib.DBusArgInfo @ref ();
  601. public void unref ();
  602. }
  603. [CCode (cheader_filename = "gio/gio.h", type_id = "g_dbus_auth_observer_get_type ()")]
  604. [Version (since = "2.26")]
  605. public class DBusAuthObserver : GLib.Object {
  606. [CCode (has_construct_function = false)]
  607. public DBusAuthObserver ();
  608. [HasEmitter]
  609. [Version (since = "2.34")]
  610. public signal bool allow_mechanism (string mechanism);
  611. public virtual signal bool authorize_authenticated_peer (GLib.IOStream stream, GLib.Credentials? credentials);
  612. }
  613. [CCode (cheader_filename = "gio/gio.h")]
  614. [Version (since = "2.26")]
  615. public class DBusConnection : GLib.Object, GLib.AsyncInitable, GLib.Initable, GLib.AsyncInitable, GLib.Initable {
  616. [CCode (has_construct_function = false)]
  617. protected DBusConnection ();
  618. public uint add_filter (owned GLib.DBusMessageFilterFunction filter_function);
  619. public async GLib.Variant call (string? bus_name, string object_path, string interface_name, string method_name, GLib.Variant? parameters, GLib.VariantType? reply_type, GLib.DBusCallFlags flags, int timeout_msec, GLib.Cancellable? cancellable = null) throws GLib.Error;
  620. public GLib.Variant call_sync (string? bus_name, string object_path, string interface_name, string method_name, GLib.Variant? parameters, GLib.VariantType? reply_type, GLib.DBusCallFlags flags, int timeout_msec, GLib.Cancellable? cancellable = null) throws GLib.Error;
  621. [Version (since = "2.30")]
  622. public async GLib.Variant call_with_unix_fd_list (string? bus_name, string object_path, string interface_name, string method_name, GLib.Variant? parameters, GLib.VariantType? reply_type, GLib.DBusCallFlags flags, int timeout_msec, GLib.UnixFDList? fd_list = null, GLib.Cancellable? cancellable = null, out GLib.UnixFDList? out_fd_list = null) throws GLib.Error;
  623. [Version (since = "2.30")]
  624. public GLib.Variant call_with_unix_fd_list_sync (string? bus_name, string object_path, string interface_name, string method_name, GLib.Variant? parameters, GLib.VariantType? reply_type, GLib.DBusCallFlags flags, int timeout_msec, GLib.UnixFDList? fd_list = null, out GLib.UnixFDList? out_fd_list = null, GLib.Cancellable? cancellable = null) throws GLib.Error;
  625. public async bool close (GLib.Cancellable? cancellable = null) throws GLib.Error;
  626. public bool close_sync (GLib.Cancellable? cancellable = null) throws GLib.Error;
  627. public bool emit_signal (string? destination_bus_name, string object_path, string interface_name, string signal_name, GLib.Variant? parameters) throws GLib.Error;
  628. [Version (since = "2.32")]
  629. public uint export_action_group (string object_path, GLib.ActionGroup action_group) throws GLib.Error;
  630. [Version (since = "2.32")]
  631. public uint export_menu_model (string object_path, GLib.MenuModel menu) throws GLib.Error;
  632. public async bool flush (GLib.Cancellable? cancellable = null) throws GLib.Error;
  633. public bool flush_sync (GLib.Cancellable? cancellable = null) throws GLib.Error;
  634. [CCode (has_construct_function = false)]
  635. public DBusConnection.for_address_sync (string address, GLib.DBusConnectionFlags flags, GLib.DBusAuthObserver? observer = null, GLib.Cancellable? cancellable = null) throws GLib.Error;
  636. public GLib.DBusCapabilityFlags get_capabilities ();
  637. public bool get_exit_on_close ();
  638. public unowned string get_guid ();
  639. [Version (since = "2.34")]
  640. public uint32 get_last_serial ();
  641. public unowned GLib.Credentials? get_peer_credentials ();
  642. public async T get_proxy<T> (string? name, string object_path, GLib.DBusProxyFlags flags = 0, GLib.Cancellable? cancellable = null) throws GLib.IOError;
  643. public T get_proxy_sync<T> (string? name, string object_path, GLib.DBusProxyFlags flags = 0, GLib.Cancellable? cancellable = null) throws GLib.IOError;
  644. public unowned GLib.IOStream get_stream ();
  645. public unowned string get_unique_name ();
  646. public bool is_closed ();
  647. [CCode (cname = "g_dbus_connection_new", finish_function = "g_dbus_connection_new_finish")]
  648. public static async GLib.DBusConnection @new (GLib.IOStream stream, string guid, GLib.DBusConnectionFlags flags, GLib.DBusAuthObserver? observer = null, GLib.Cancellable? cancellable = null) throws GLib.Error;
  649. [CCode (cname = "g_dbus_connection_new_for_address", finish_function = "g_dbus_connection_new_for_address_finish")]
  650. public static async GLib.DBusConnection new_for_address (string address, GLib.DBusConnectionFlags flags, GLib.DBusAuthObserver? observer = null, GLib.Cancellable? cancellable = null) throws GLib.Error;
  651. public uint register_object<T> (string object_path, T object) throws GLib.IOError;
  652. [Version (since = "2.46")]
  653. public uint register_object_with_closures (string object_path, GLib.DBusInterfaceInfo interface_info, GLib.Closure? method_call_closure, GLib.Closure? get_property_closure, GLib.Closure? set_property_closure) throws GLib.Error;
  654. public uint register_subtree (string object_path, GLib.DBusSubtreeVTable vtable, GLib.DBusSubtreeFlags flags, void* user_data, GLib.DestroyNotify user_data_free_func) throws GLib.Error;
  655. public void remove_filter (uint filter_id);
  656. public bool send_message (GLib.DBusMessage message, GLib.DBusSendMessageFlags flags, out uint32 out_serial) throws GLib.Error;
  657. public async GLib.DBusMessage send_message_with_reply (GLib.DBusMessage message, GLib.DBusSendMessageFlags flags, int timeout_msec, uint32* out_serial = null, GLib.Cancellable? cancellable = null) throws GLib.IOError;
  658. public GLib.DBusMessage send_message_with_reply_sync (GLib.DBusMessage message, GLib.DBusSendMessageFlags flags, int timeout_msec, out uint32 out_serial = null, GLib.Cancellable? cancellable = null) throws GLib.IOError;
  659. public void set_exit_on_close (bool exit_on_close);
  660. public uint signal_subscribe (string? sender, string? interface_name, string? member, string? object_path, string? arg0, GLib.DBusSignalFlags flags, owned GLib.DBusSignalCallback callback);
  661. public void signal_unsubscribe (uint subscription_id);
  662. public void start_message_processing ();
  663. [CCode (has_construct_function = false)]
  664. public DBusConnection.sync (GLib.IOStream stream, string? guid, GLib.DBusConnectionFlags flags, GLib.DBusAuthObserver? observer = null, GLib.Cancellable? cancellable = null) throws GLib.Error;
  665. [Version (since = "2.32")]
  666. public void unexport_action_group (uint export_id);
  667. [Version (since = "2.32")]
  668. public void unexport_menu_model (uint export_id);
  669. public bool unregister_object (uint registration_id);
  670. public bool unregister_subtree (uint registration_id);
  671. public string address { construct; }
  672. public GLib.DBusAuthObserver authentication_observer { construct; }
  673. public GLib.DBusCapabilityFlags capabilities { get; }
  674. [NoAccessorMethod]
  675. public bool closed { get; }
  676. public bool exit_on_close { get; set; }
  677. public GLib.DBusConnectionFlags flags { construct; }
  678. public string guid { get; construct; }
  679. public GLib.IOStream stream { get; construct; }
  680. public string unique_name { get; }
  681. }
  682. [CCode (cheader_filename = "gio/gio.h", ref_function = "g_dbus_interface_info_ref", type_id = "g_dbus_interface_info_get_type ()", unref_function = "g_dbus_interface_info_unref")]
  683. [Compact]
  684. [Version (since = "2.26")]
  685. public class DBusInterfaceInfo {
  686. [CCode (array_length = false, array_null_terminated = true)]
  687. public GLib.DBusAnnotationInfo[] annotations;
  688. [CCode (array_length = false, array_null_terminated = true)]
  689. public GLib.DBusMethodInfo[] methods;
  690. public string name;
  691. [CCode (array_length = false, array_null_terminated = true)]
  692. public GLib.DBusPropertyInfo[] properties;
  693. public int ref_count;
  694. [CCode (array_length = false, array_null_terminated = true)]
  695. public GLib.DBusSignalInfo[] signals;
  696. [Version (since = "2.30")]
  697. public void cache_build ();
  698. [Version (since = "2.30")]
  699. public void cache_release ();
  700. public void generate_xml (uint indent, GLib.StringBuilder string_builder);
  701. public unowned GLib.DBusMethodInfo lookup_method (string name);
  702. public unowned GLib.DBusPropertyInfo lookup_property (string name);
  703. public unowned GLib.DBusSignalInfo lookup_signal (string name);
  704. public GLib.DBusInterfaceInfo @ref ();
  705. public void unref ();
  706. }
  707. [CCode (cheader_filename = "gio/gio.h", type_id = "g_dbus_interface_skeleton_get_type ()")]
  708. [Version (since = "2.30")]
  709. public abstract class DBusInterfaceSkeleton : GLib.Object, GLib.DBusInterface {
  710. [CCode (has_construct_function = false)]
  711. protected DBusInterfaceSkeleton ();
  712. public bool export (GLib.DBusConnection connection, string object_path) throws GLib.Error;
  713. public virtual void flush ();
  714. public unowned GLib.DBusConnection get_connection ();
  715. [Version (since = "2.32")]
  716. public GLib.List<GLib.DBusConnection> get_connections ();
  717. public GLib.DBusInterfaceSkeletonFlags get_flags ();
  718. public virtual unowned GLib.DBusInterfaceInfo get_info ();
  719. public unowned string get_object_path ();
  720. public virtual GLib.Variant get_properties ();
  721. public virtual GLib.DBusInterfaceVTable? get_vtable ();
  722. [Version (since = "2.32")]
  723. public bool has_connection (GLib.DBusConnection connection);
  724. public void set_flags (GLib.DBusInterfaceSkeletonFlags flags);
  725. public void unexport ();
  726. [Version (since = "2.32")]
  727. public void unexport_from_connection (GLib.DBusConnection connection);
  728. [NoAccessorMethod]
  729. public GLib.DBusInterfaceSkeletonFlags g_flags { get; set; }
  730. public virtual signal bool g_authorize_method (GLib.DBusMethodInvocation invocation);
  731. }
  732. [CCode (cheader_filename = "gio/gio.h", type_id = "g_dbus_menu_model_get_type ()")]
  733. public class DBusMenuModel : GLib.MenuModel {
  734. [CCode (has_construct_function = false)]
  735. protected DBusMenuModel ();
  736. [Version (since = "2.32")]
  737. public static GLib.DBusMenuModel @get (GLib.DBusConnection connection, string bus_name, string object_path);
  738. }
  739. [CCode (cheader_filename = "gio/gio.h")]
  740. [Version (since = "2.26")]
  741. public class DBusMessage : GLib.Object {
  742. [CCode (has_construct_function = false)]
  743. public DBusMessage ();
  744. public static ssize_t bytes_needed ([CCode (array_length_cname = "blob_len", array_length_pos = 1.1, array_length_type = "gsize")] uint8[] blob) throws GLib.Error;
  745. public GLib.DBusMessage copy () throws GLib.Error;
  746. [CCode (has_construct_function = false)]
  747. public DBusMessage.from_blob ([CCode (array_length_cname = "blob_len", array_length_pos = 1.5, array_length_type = "gsize")] uint8[] blob, GLib.DBusCapabilityFlags capabilities) throws GLib.Error;
  748. public unowned string get_arg0 ();
  749. public unowned GLib.Variant get_body ();
  750. public GLib.DBusMessageByteOrder get_byte_order ();
  751. public unowned string get_destination ();
  752. public unowned string get_error_name ();
  753. public GLib.DBusMessageFlags get_flags ();
  754. public GLib.Variant get_header (GLib.DBusMessageHeaderField header_field);
  755. [CCode (array_length = false, array_null_terminated = true)]
  756. public uchar[] get_header_fields ();
  757. public unowned string get_interface ();
  758. public bool get_locked ();
  759. public unowned string get_member ();
  760. public GLib.DBusMessageType get_message_type ();
  761. public uint32 get_num_unix_fds ();
  762. public unowned string get_path ();
  763. public uint32 get_reply_serial ();
  764. public unowned string get_sender ();
  765. public uint32 get_serial ();
  766. public unowned string get_signature ();
  767. public unowned GLib.UnixFDList get_unix_fd_list ();
  768. public void @lock ();
  769. [CCode (has_construct_function = false)]
  770. public DBusMessage.method_call (string name, string path, string interface_, string method);
  771. [CCode (has_construct_function = false)]
  772. [PrintfFormat]
  773. public DBusMessage.method_error (GLib.DBusMessage method_call_message, string error_name, string error_message_format, ...);
  774. [CCode (has_construct_function = false)]
  775. public DBusMessage.method_error_literal (GLib.DBusMessage method_call_message, string error_name, string error_message);
  776. [CCode (has_construct_function = false)]
  777. public DBusMessage.method_error_valist (GLib.DBusMessage method_call_message, string error_name, string error_message_format, va_list var_args);
  778. [CCode (has_construct_function = false)]
  779. public DBusMessage.method_reply (GLib.DBusMessage method_call_message);
  780. public string print (uint indent = 0);
  781. public void set_body (GLib.Variant body);
  782. public void set_byte_order (GLib.DBusMessageByteOrder byte_order);
  783. public void set_destination (string value);
  784. public void set_error_name (string value);
  785. public void set_flags (GLib.DBusMessageFlags flags);
  786. public void set_header (GLib.DBusMessageHeaderField header_field, GLib.Variant? value);
  787. public void set_interface (string value);
  788. public void set_member (string value);
  789. public void set_message_type (GLib.DBusMessageType type);
  790. public void set_num_unix_fds (uint32 value);
  791. public void set_path (string value);
  792. public void set_reply_serial (uint32 value);
  793. public void set_sender (string value);
  794. public void set_serial (uint32 serial);
  795. public void set_signature (string value);
  796. public void set_unix_fd_list (GLib.UnixFDList? fd_list);
  797. [CCode (has_construct_function = false)]
  798. public DBusMessage.@signal (string path, string interface_, string @signal);
  799. [CCode (array_length_pos = 0.5, array_length_type = "gsize")]
  800. public uint8[] to_blob (GLib.DBusCapabilityFlags capabilities) throws GLib.Error;
  801. public bool to_gerror () throws GLib.Error;
  802. public bool locked { get; }
  803. }
  804. [CCode (cheader_filename = "gio/gio.h", ref_function = "g_dbus_method_info_ref", type_id = "g_dbus_method_info_get_type ()", unref_function = "g_dbus_method_info_unref")]
  805. [Compact]
  806. [Version (since = "2.26")]
  807. public class DBusMethodInfo {
  808. [CCode (array_length = false, array_null_terminated = true)]
  809. public GLib.DBusAnnotationInfo[] annotations;
  810. [CCode (array_length = false, array_null_terminated = true)]
  811. public GLib.DBusArgInfo[] in_args;
  812. public string name;
  813. [CCode (array_length = false, array_null_terminated = true)]
  814. public GLib.DBusArgInfo[] out_args;
  815. public int ref_count;
  816. public GLib.DBusMethodInfo @ref ();
  817. public void unref ();
  818. }
  819. [CCode (cheader_filename = "gio/gio.h", type_id = "g_dbus_method_invocation_get_type ()")]
  820. [Version (since = "2.26")]
  821. public class DBusMethodInvocation : GLib.Object {
  822. [CCode (has_construct_function = false)]
  823. protected DBusMethodInvocation ();
  824. public unowned GLib.DBusConnection get_connection ();
  825. public unowned string get_interface_name ();
  826. public unowned GLib.DBusMessage get_message ();
  827. public unowned GLib.DBusMethodInfo get_method_info ();
  828. public unowned string get_method_name ();
  829. public unowned string get_object_path ();
  830. public unowned GLib.Variant get_parameters ();
  831. [Version (since = "2.38")]
  832. public unowned GLib.DBusPropertyInfo get_property_info ();
  833. public unowned string get_sender ();
  834. public void* get_user_data ();
  835. public void return_dbus_error (string error_name, string error_message);
  836. public void return_error (GLib.Quark domain, int code, string format, ...);
  837. public void return_error_literal (GLib.Quark domain, int code, string message);
  838. public void return_error_valist (GLib.Quark domain, int code, string format, [CCode (type = "va_list")] va_list var_args);
  839. public void return_gerror (GLib.Error error);
  840. public void return_value (GLib.Variant? parameters);
  841. [Version (since = "2.30")]
  842. public void return_value_with_unix_fd_list (GLib.Variant? parameters, GLib.UnixFDList? fd_list);
  843. [Version (since = "2.30")]
  844. public void take_error (owned GLib.Error error);
  845. }
  846. [CCode (cheader_filename = "gio/gio.h", ref_function = "g_dbus_node_info_ref", type_id = "g_dbus_node_info_get_type ()", unref_function = "g_dbus_node_info_unref")]
  847. [Compact]
  848. [Version (since = "2.26")]
  849. public class DBusNodeInfo {
  850. [CCode (array_length = false, array_null_terminated = true)]
  851. public GLib.DBusAnnotationInfo[] annotations;
  852. [CCode (array_length = false, array_null_terminated = true)]
  853. public GLib.DBusInterfaceInfo[] interfaces;
  854. [CCode (array_length = false, array_null_terminated = true)]
  855. public GLib.DBusNodeInfo[] nodes;
  856. public string path;
  857. public int ref_count;
  858. [CCode (has_construct_function = false)]
  859. public DBusNodeInfo.for_xml (string xml_data) throws GLib.Error;
  860. public void generate_xml (uint indent, GLib.StringBuilder string_builder);
  861. public unowned GLib.DBusInterfaceInfo lookup_interface (string name);
  862. public GLib.DBusNodeInfo @ref ();
  863. public void unref ();
  864. }
  865. [CCode (cheader_filename = "gio/gio.h", type_id = "g_dbus_object_manager_client_get_type ()")]
  866. [Version (since = "2.30")]
  867. public class DBusObjectManagerClient : GLib.Object, GLib.AsyncInitable, GLib.DBusObjectManager, GLib.Initable, GLib.AsyncInitable, GLib.DBusObjectManager, GLib.Initable {
  868. [CCode (has_construct_function = false)]
  869. protected DBusObjectManagerClient ();
  870. [CCode (has_construct_function = false, type = "GDBusObjectManager*")]
  871. public DBusObjectManagerClient.for_bus_sync (GLib.BusType bus_type, GLib.DBusObjectManagerClientFlags flags, string name, string object_path, [CCode (delegate_target_pos = 5.33333, destroy_notify_pos = 5.66667)] owned GLib.DBusProxyTypeFunc? get_proxy_type_func, GLib.Cancellable? cancellable = null) throws GLib.Error;
  872. public unowned GLib.DBusConnection get_connection ();
  873. public GLib.DBusObjectManagerClientFlags get_flags ();
  874. public unowned string get_name ();
  875. public string? get_name_owner ();
  876. [CCode (cname = "g_dbus_object_manager_client_new", finish_function = "g_dbus_object_manager_client_new_finish")]
  877. public static async GLib.DBusObjectManagerClient @new (GLib.DBusConnection connection, GLib.DBusObjectManagerClientFlags flags, string name, string object_path, [CCode (delegate_target_pos = 5.33333, destroy_notify_pos = 5.66667)] owned GLib.DBusProxyTypeFunc get_proxy_type_func, GLib.Cancellable? cancellable = null) throws GLib.Error;
  878. [CCode (cname = "g_dbus_object_manager_client_new_for_bus", finish_function = "g_dbus_object_manager_client_new_for_bus_finish")]
  879. public static async GLib.DBusObjectManagerClient new_for_bus (GLib.BusType bus_type, GLib.DBusObjectManagerClientFlags flags, string name, string object_path, [CCode (delegate_target_pos = 5.33333, destroy_notify_pos = 5.66667)] owned GLib.DBusProxyTypeFunc get_proxy_type_func, GLib.Cancellable? cancellable = null) throws GLib.Error;
  880. [CCode (has_construct_function = false, type = "GDBusObjectManager*")]
  881. public DBusObjectManagerClient.sync (GLib.DBusConnection connection, GLib.DBusObjectManagerClientFlags flags, string? name, string object_path, [CCode (delegate_target_pos = 5.33333, destroy_notify_pos = 5.66667)] owned GLib.DBusProxyTypeFunc? get_proxy_type_func, GLib.Cancellable? cancellable = null) throws GLib.Error;
  882. public GLib.BusType bus_type { construct; }
  883. public GLib.DBusConnection connection { get; construct; }
  884. public GLib.DBusObjectManagerClientFlags flags { get; construct; }
  885. [NoAccessorMethod]
  886. public void* get_proxy_type_destroy_notify { get; construct; }
  887. [NoAccessorMethod]
  888. public void* get_proxy_type_func { get; construct; }
  889. [NoAccessorMethod]
  890. public void* get_proxy_type_user_data { get; construct; }
  891. public string name { get; construct; }
  892. public string? name_owner { owned get; }
  893. [NoAccessorMethod]
  894. public string object_path { owned get; construct; }
  895. public virtual signal void interface_proxy_properties_changed (GLib.DBusObjectProxy object_proxy, GLib.DBusProxy interface_proxy, GLib.Variant changed_properties, [CCode (array_length = false, array_null_terminated = true)] string[] invalidated_properties);
  896. public virtual signal void interface_proxy_signal (GLib.DBusObjectProxy object_proxy, GLib.DBusProxy interface_proxy, string sender_name, string signal_name, GLib.Variant parameters);
  897. }
  898. [CCode (cheader_filename = "gio/gio.h", type_id = "g_dbus_object_manager_server_get_type ()")]
  899. [Version (since = "2.30")]
  900. public class DBusObjectManagerServer : GLib.Object, GLib.DBusObjectManager {
  901. [CCode (has_construct_function = false)]
  902. public DBusObjectManagerServer (string object_path);
  903. public void export (GLib.DBusObjectSkeleton object);
  904. public void export_uniquely (GLib.DBusObjectSkeleton object);
  905. public GLib.DBusConnection get_connection ();
  906. [Version (since = "2.34")]
  907. public bool is_exported (GLib.DBusObjectSkeleton object);
  908. public void set_connection (GLib.DBusConnection? connection);
  909. public bool unexport (string object_path);
  910. public GLib.DBusConnection connection { owned get; set; }
  911. [NoAccessorMethod]
  912. public string object_path { owned get; construct; }
  913. }
  914. [CCode (cheader_filename = "gio/gio.h", type_id = "g_dbus_object_proxy_get_type ()")]
  915. [Version (since = "2.30")]
  916. public class DBusObjectProxy : GLib.Object, GLib.DBusObject {
  917. [CCode (has_construct_function = false)]
  918. public DBusObjectProxy (GLib.DBusConnection connection, string object_path);
  919. public unowned GLib.DBusConnection get_connection ();
  920. [NoAccessorMethod]
  921. public GLib.DBusConnection g_connection { owned get; construct; }
  922. [NoAccessorMethod]
  923. public string g_object_path { owned get; construct; }
  924. }
  925. [CCode (cheader_filename = "gio/gio.h", type_id = "g_dbus_object_skeleton_get_type ()")]
  926. [Version (since = "2.30")]
  927. public class DBusObjectSkeleton : GLib.Object, GLib.DBusObject {
  928. [CCode (has_construct_function = false)]
  929. public DBusObjectSkeleton (string object_path);
  930. public void add_interface (GLib.DBusInterfaceSkeleton interface_);
  931. public void flush ();
  932. public void remove_interface (GLib.DBusInterfaceSkeleton interface_);
  933. public void remove_interface_by_name (string interface_name);
  934. public void set_object_path (string object_path);
  935. [NoAccessorMethod]
  936. public string g_object_path { owned get; set construct; }
  937. public virtual signal bool authorize_method (GLib.DBusInterfaceSkeleton interface_, GLib.DBusMethodInvocation invocation);
  938. }
  939. [CCode (cheader_filename = "gio/gio.h", ref_function = "g_dbus_property_info_ref", type_id = "g_dbus_property_info_get_type ()", unref_function = "g_dbus_property_info_unref")]
  940. [Compact]
  941. [Version (since = "2.26")]
  942. public class DBusPropertyInfo {
  943. [CCode (array_length = false, array_null_terminated = true)]
  944. public GLib.DBusAnnotationInfo[] annotations;
  945. public GLib.DBusPropertyInfoFlags flags;
  946. public string name;
  947. public int ref_count;
  948. public string signature;
  949. public GLib.DBusPropertyInfo @ref ();
  950. public void unref ();
  951. }
  952. [CCode (cheader_filename = "gio/gio.h")]
  953. [Version (since = "2.26")]
  954. public class DBusProxy : GLib.Object, GLib.AsyncInitable, GLib.DBusInterface, GLib.Initable, GLib.AsyncInitable, GLib.DBusInterface, GLib.Initable {
  955. [CCode (has_construct_function = false)]
  956. protected DBusProxy ();
  957. public async GLib.Variant call (string method_name, GLib.Variant? parameters, GLib.DBusCallFlags flags, int timeout_msec, GLib.Cancellable? cancellable = null) throws GLib.Error;
  958. public GLib.Variant call_sync (string method_name, GLib.Variant? parameters, GLib.DBusCallFlags flags, int timeout_msec, GLib.Cancellable? cancellable = null) throws GLib.Error;
  959. [Version (since = "2.30")]
  960. public async GLib.Variant call_with_unix_fd_list (string method_name, GLib.Variant? parameters, GLib.DBusCallFlags flags, int timeout_msec, GLib.UnixFDList? fd_list = null, GLib.Cancellable? cancellable = null, out GLib.UnixFDList? out_fd_list = null) throws GLib.Error;
  961. [Version (since = "2.30")]
  962. public GLib.Variant call_with_unix_fd_list_sync (string method_name, GLib.Variant? parameters, GLib.DBusCallFlags flags, int timeout_msec, GLib.UnixFDList? fd_list = null, out GLib.UnixFDList? out_fd_list = null, GLib.Cancellable? cancellable = null) throws GLib.Error;
  963. [CCode (cname = "g_dbus_proxy_new_for_bus", finish_function = "g_dbus_proxy_new_for_bus_finish")]
  964. public static async GLib.DBusProxy create_for_bus (GLib.BusType bus_type, GLib.DBusProxyFlags flags, GLib.DBusInterfaceInfo? info, string name, string object_path, string interface_name, GLib.Cancellable? cancellable = null) throws GLib.IOError;
  965. [CCode (has_construct_function = false)]
  966. public DBusProxy.for_bus_sync (GLib.BusType bus_type, GLib.DBusProxyFlags flags, GLib.DBusInterfaceInfo? info, string name, string object_path, string interface_name, GLib.Cancellable? cancellable = null) throws GLib.Error;
  967. public GLib.Variant get_cached_property (string property_name);
  968. [CCode (array_length = false, array_null_terminated = true)]
  969. public string[] get_cached_property_names ();
  970. public unowned GLib.DBusConnection get_connection ();
  971. public int get_default_timeout ();
  972. public GLib.DBusProxyFlags get_flags ();
  973. public GLib.DBusInterfaceInfo get_interface_info ();
  974. public unowned string get_interface_name ();
  975. public unowned string get_name ();
  976. public string get_name_owner ();
  977. public unowned string get_object_path ();
  978. [CCode (cname = "g_dbus_proxy_new", finish_function = "g_dbus_proxy_new_finish")]
  979. public static async GLib.DBusProxy @new (GLib.DBusConnection connection, GLib.DBusProxyFlags flags, GLib.DBusInterfaceInfo? info, string? name, string object_path, string interface_name, GLib.Cancellable? cancellable = null) throws GLib.IOError;
  980. public void set_cached_property (string property_name, GLib.Variant? value);
  981. public void set_default_timeout (int timeout_msec);
  982. public void set_interface_info (GLib.DBusInterfaceInfo? info);
  983. [CCode (has_construct_function = false)]
  984. public DBusProxy.sync (GLib.DBusConnection connection, GLib.DBusProxyFlags flags, GLib.DBusInterfaceInfo? info, string? name, string object_path, string interface_name, GLib.Cancellable? cancellable = null) throws GLib.Error;
  985. public GLib.BusType g_bus_type { construct; }
  986. [NoAccessorMethod]
  987. public GLib.DBusConnection g_connection { owned get; construct; }
  988. [NoAccessorMethod]
  989. public int g_default_timeout { get; set construct; }
  990. [NoAccessorMethod]
  991. public GLib.DBusProxyFlags g_flags { get; construct; }
  992. [NoAccessorMethod]
  993. public GLib.DBusInterfaceInfo g_interface_info { owned get; set; }
  994. [NoAccessorMethod]
  995. public string g_interface_name { owned get; construct; }
  996. [NoAccessorMethod]
  997. public string g_name { owned get; construct; }
  998. [NoAccessorMethod]
  999. public string g_name_owner { owned get; }
  1000. [NoAccessorMethod]
  1001. public string g_object_path { owned get; construct; }
  1002. public virtual signal void g_properties_changed (GLib.Variant changed_properties, [CCode (array_length = false, array_null_terminated = true)] string[] invalidated_properties);
  1003. public virtual signal void g_signal (string? sender_name, string signal_name, GLib.Variant parameters);
  1004. }
  1005. [CCode (cheader_filename = "gio/gio.h", type_id = "g_dbus_server_get_type ()")]
  1006. [Version (since = "2.26")]
  1007. public class DBusServer : GLib.Object, GLib.Initable {
  1008. [CCode (has_construct_function = false)]
  1009. protected DBusServer ();
  1010. public unowned string get_client_address ();
  1011. public GLib.DBusServerFlags get_flags ();
  1012. public unowned string get_guid ();
  1013. public bool is_active ();
  1014. public void start ();
  1015. public void stop ();
  1016. [CCode (has_construct_function = false)]
  1017. public DBusServer.sync (string address, GLib.DBusServerFlags flags, string guid, GLib.DBusAuthObserver? observer = null, GLib.Cancellable? cancellable = null) throws GLib.Error;
  1018. [NoAccessorMethod]
  1019. public bool active { get; }
  1020. [NoAccessorMethod]
  1021. public string address { owned get; construct; }
  1022. [NoAccessorMethod]
  1023. public GLib.DBusAuthObserver authentication_observer { owned get; construct; }
  1024. public string client_address { get; }
  1025. public GLib.DBusServerFlags flags { get; construct; }
  1026. public string guid { get; construct; }
  1027. public signal bool new_connection (GLib.DBusConnection connection);
  1028. }
  1029. [CCode (cheader_filename = "gio/gio.h", ref_function = "g_dbus_signal_info_ref", type_id = "g_dbus_signal_info_get_type ()", unref_function = "g_dbus_signal_info_unref")]
  1030. [Compact]
  1031. [Version (since = "2.26")]
  1032. public class DBusSignalInfo {
  1033. [CCode (array_length = false, array_null_terminated = true)]
  1034. public GLib.DBusAnnotationInfo[] annotations;
  1035. [CCode (array_length = false, array_null_terminated = true)]
  1036. public GLib.DBusArgInfo[] args;
  1037. public string name;
  1038. public int ref_count;
  1039. public GLib.DBusSignalInfo @ref ();
  1040. public void unref ();
  1041. }
  1042. [CCode (cheader_filename = "gio/gio.h")]
  1043. public class DataInputStream : GLib.BufferedInputStream, GLib.Seekable {
  1044. [CCode (has_construct_function = false)]
  1045. public DataInputStream (GLib.InputStream base_stream);
  1046. public GLib.DataStreamByteOrder get_byte_order ();
  1047. public GLib.DataStreamNewlineType get_newline_type ();
  1048. public uint8 read_byte (GLib.Cancellable? cancellable = null) throws GLib.IOError;
  1049. public int16 read_int16 (GLib.Cancellable? cancellable = null) throws GLib.IOError;
  1050. public int32 read_int32 (GLib.Cancellable? cancellable = null) throws GLib.IOError;
  1051. public int64 read_int64 (GLib.Cancellable? cancellable = null) throws GLib.IOError;
  1052. [CCode (array_length = false, array_null_terminated = true)]
  1053. public string? read_line (out size_t length = null, GLib.Cancellable? cancellable = null) throws GLib.IOError;
  1054. [CCode (array_length = false, array_null_terminated = true)]
  1055. [Version (since = "2.20")]
  1056. public async string? read_line_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null, out size_t length = null) throws GLib.IOError, GLib.IOError;
  1057. [Version (since = "2.30")]
  1058. public string? read_line_utf8 (out size_t length, GLib.Cancellable? cancellable = null) throws GLib.IOError;
  1059. [CCode (cname = "g_data_input_stream_read_line_async", finish_function = "g_data_input_stream_read_line_finish_utf8")]
  1060. public async string? read_line_utf8_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null, out size_t length) throws GLib.IOError, GLib.IOError;
  1061. public uint16 read_uint16 (GLib.Cancellable? cancellable = null) throws GLib.IOError;
  1062. public uint32 read_uint32 (GLib.Cancellable? cancellable = null) throws GLib.IOError;
  1063. public uint64 read_uint64 (GLib.Cancellable? cancellable = null) throws GLib.IOError;
  1064. public string read_until (string stop_chars, out size_t length, GLib.Cancellable? cancellable = null) throws GLib.IOError;
  1065. [Version (since = "2.20")]
  1066. public async string read_until_async (string stop_chars, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null, out size_t length) throws GLib.IOError, GLib.IOError;
  1067. [Version (since = "2.26")]
  1068. public string read_upto (string stop_chars, ssize_t stop_chars_len, out size_t length, GLib.Cancellable? cancellable = null) throws GLib.IOError;
  1069. [Version (since = "2.26")]
  1070. public async string read_upto_async (string stop_chars, ssize_t stop_chars_len, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null, out size_t length) throws GLib.IOError, GLib.IOError;
  1071. public void set_byte_order (GLib.DataStreamByteOrder order);
  1072. public void set_newline_type (GLib.DataStreamNewlineType type);
  1073. public GLib.DataStreamByteOrder byte_order { get; set; }
  1074. public GLib.DataStreamNewlineType newline_type { get; set; }
  1075. }
  1076. [CCode (cheader_filename = "gio/gio.h", type_id = "g_data_output_stream_get_type ()")]
  1077. public class DataOutputStream : GLib.FilterOutputStream, GLib.Seekable {
  1078. [CCode (has_construct_function = false)]
  1079. public DataOutputStream (GLib.OutputStream base_stream);
  1080. public GLib.DataStreamByteOrder get_byte_order ();
  1081. public bool put_byte (uint8 data, GLib.Cancellable? cancellable = null) throws GLib.IOError;
  1082. public bool put_int16 (int16 data, GLib.Cancellable? cancellable = null) throws GLib.IOError;
  1083. public bool put_int32 (int32 data, GLib.Cancellable? cancellable = null) throws GLib.IOError;
  1084. public bool put_int64 (int64 data, GLib.Cancellable? cancellable = null) throws GLib.IOError;
  1085. public bool put_string (string str, GLib.Cancellable? cancellable = null) throws GLib.IOError;
  1086. public bool put_uint16 (uint16 data, GLib.Cancellable? cancellable = null) throws GLib.IOError;
  1087. public bool put_uint32 (uint32 data, GLib.Cancellable? cancellable = null) throws GLib.IOError;
  1088. public bool put_uint64 (uint64 data, GLib.Cancellable? cancellable = null) throws GLib.IOError;
  1089. public void set_byte_order (GLib.DataStreamByteOrder order);
  1090. public GLib.DataStreamByteOrder byte_order { get; set; }
  1091. }
  1092. [CCode (cheader_filename = "gio/gio.h", type_id = "g_emblem_get_type ()")]
  1093. public class Emblem : GLib.Object, GLib.Icon {
  1094. [CCode (has_construct_function = false)]
  1095. [Version (since = "2.18")]
  1096. public Emblem (GLib.Icon icon);
  1097. [Version (since = "2.18")]
  1098. public unowned GLib.Icon get_icon ();
  1099. [Version (since = "2.18")]
  1100. public GLib.EmblemOrigin get_origin ();
  1101. [CCode (has_construct_function = false)]
  1102. [Version (since = "2.18")]
  1103. public Emblem.with_origin (GLib.Icon icon, GLib.EmblemOrigin origin);
  1104. public GLib.Object icon { get; construct; }
  1105. public GLib.EmblemOrigin origin { get; construct; }
  1106. }
  1107. [CCode (cheader_filename = "gio/gio.h", type_id = "g_emblemed_icon_get_type ()")]
  1108. public class EmblemedIcon : GLib.Object, GLib.Icon {
  1109. [CCode (has_construct_function = false, type = "GIcon*")]
  1110. [Version (since = "2.18")]
  1111. public EmblemedIcon (GLib.Icon icon, GLib.Emblem? emblem);
  1112. [Version (since = "2.18")]
  1113. public void add_emblem (GLib.Emblem emblem);
  1114. [Version (since = "2.28")]
  1115. public void clear_emblems ();
  1116. [Version (since = "2.18")]
  1117. public unowned GLib.List<GLib.Emblem> get_emblems ();
  1118. [Version (since = "2.18")]
  1119. public unowned GLib.Icon get_icon ();
  1120. [NoAccessorMethod]
  1121. public GLib.Icon gicon { owned get; construct; }
  1122. }
  1123. [CCode (cheader_filename = "gio/gio.h", ref_function = "g_file_attribute_info_list_ref", type_id = "g_file_attribute_info_list_get_type ()", unref_function = "g_file_attribute_info_list_unref")]
  1124. [Compact]
  1125. public class FileAttributeInfoList {
  1126. [CCode (array_length_cname = "n_infos")]
  1127. public GLib.FileAttributeInfo[] infos;
  1128. public int n_infos;
  1129. [CCode (has_construct_function = false)]
  1130. public FileAttributeInfoList ();
  1131. public void add (string name, GLib.FileAttributeType type, GLib.FileAttributeInfoFlags flags);
  1132. public GLib.FileAttributeInfoList dup ();
  1133. public unowned GLib.FileAttributeInfo? lookup (string name);
  1134. public GLib.FileAttributeInfoList @ref ();
  1135. public void unref ();
  1136. }
  1137. [CCode (cheader_filename = "gio/gio.h", ref_function = "g_file_attribute_matcher_ref", type_id = "g_file_attribute_matcher_get_type ()", unref_function = "g_file_attribute_matcher_unref")]
  1138. [Compact]
  1139. public class FileAttributeMatcher {
  1140. [CCode (has_construct_function = false)]
  1141. public FileAttributeMatcher (string attributes);
  1142. public bool enumerate_namespace (string ns);
  1143. public unowned string enumerate_next ();
  1144. public bool matches (string attribute);
  1145. public bool matches_only (string attribute);
  1146. public GLib.FileAttributeMatcher @ref ();
  1147. public GLib.FileAttributeMatcher subtract (GLib.FileAttributeMatcher subtract);
  1148. [Version (since = "2.32")]
  1149. public string to_string ();
  1150. public void unref ();
  1151. }
  1152. [CCode (cheader_filename = "gio/gio.h", type_id = "g_file_enumerator_get_type ()")]
  1153. public class FileEnumerator : GLib.Object {
  1154. [CCode (has_construct_function = false)]
  1155. protected FileEnumerator ();
  1156. public bool close (GLib.Cancellable? cancellable = null) throws GLib.Error;
  1157. public virtual async bool close_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
  1158. [NoWrapper]
  1159. public virtual bool close_fn (GLib.Cancellable? cancellable = null) throws GLib.Error;
  1160. [Version (since = "2.36")]
  1161. public GLib.File get_child (GLib.FileInfo info);
  1162. [Version (since = "2.18")]
  1163. public unowned GLib.File get_container ();
  1164. public bool has_pending ();
  1165. public bool is_closed ();
  1166. [Version (since = "2.44")]
  1167. public bool iterate (out unowned GLib.FileInfo out_info, out unowned GLib.File out_child, GLib.Cancellable? cancellable = null) throws GLib.Error;
  1168. public virtual GLib.FileInfo? next_file (GLib.Cancellable? cancellable = null) throws GLib.Error;
  1169. public virtual async GLib.List<GLib.FileInfo> next_files_async (int num_files, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
  1170. public void set_pending (bool pending);
  1171. public GLib.File container { construct; }
  1172. }
  1173. [CCode (cheader_filename = "gio/gio.h", type_id = "g_file_io_stream_get_type ()")]
  1174. public class FileIOStream : GLib.IOStream, GLib.Seekable {
  1175. [CCode (has_construct_function = false)]
  1176. protected FileIOStream ();
  1177. [NoWrapper]
  1178. public virtual bool can_seek ();
  1179. [NoWrapper]
  1180. public virtual bool can_truncate ();
  1181. [Version (since = "2.22")]
  1182. public virtual string get_etag ();
  1183. [Version (since = "2.22")]
  1184. public virtual GLib.FileInfo query_info (string attributes, GLib.Cancellable? cancellable = null) throws GLib.Error;
  1185. [Version (since = "2.22")]
  1186. public virtual async GLib.FileInfo query_info_async (string attributes, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
  1187. [NoWrapper]
  1188. public virtual bool seek (int64 offset, GLib.SeekType type, GLib.Cancellable? cancellable = null) throws GLib.Error;
  1189. [NoWrapper]
  1190. public virtual int64 tell ();
  1191. [NoWrapper]
  1192. public virtual bool truncate_fn (int64 size, GLib.Cancellable? cancellable = null) throws GLib.Error;
  1193. }
  1194. [CCode (cheader_filename = "gio/gio.h", type_id = "g_file_icon_get_type ()")]
  1195. public class FileIcon : GLib.Object, GLib.Icon, GLib.LoadableIcon {
  1196. [CCode (has_construct_function = false, type = "GIcon*")]
  1197. public FileIcon (GLib.File file);
  1198. public unowned GLib.File get_file ();
  1199. public GLib.File file { get; construct; }
  1200. }
  1201. [CCode (cheader_filename = "gio/gio.h", type_id = "g_file_info_get_type ()")]
  1202. public class FileInfo : GLib.Object {
  1203. [CCode (has_construct_function = false)]
  1204. public FileInfo ();
  1205. public void clear_status ();
  1206. public void copy_into (GLib.FileInfo dest_info);
  1207. public GLib.FileInfo dup ();
  1208. public string get_attribute_as_string (string attribute);
  1209. public bool get_attribute_boolean (string attribute);
  1210. public unowned string get_attribute_byte_string (string attribute);
  1211. public bool get_attribute_data (string attribute, out GLib.FileAttributeType type, out void* value_pp, out GLib.FileAttributeStatus status);
  1212. public int32 get_attribute_int32 (string attribute);
  1213. public int64 get_attribute_int64 (string attribute);
  1214. public unowned GLib.Object get_attribute_object (string attribute);
  1215. public GLib.FileAttributeStatus get_attribute_status (string attribute);
  1216. public unowned string get_attribute_string (string attribute);
  1217. [CCode (array_length = false, array_null_terminated = true)]
  1218. [Version (since = "2.22")]
  1219. public unowned string[] get_attribute_stringv (string attribute);
  1220. public GLib.FileAttributeType get_attribute_type (string attribute);
  1221. public uint32 get_attribute_uint32 (string attribute);
  1222. public uint64 get_attribute_uint64 (string attribute);
  1223. public unowned string get_content_type ();
  1224. [Version (since = "2.36")]
  1225. public GLib.DateTime get_deletion_date ();
  1226. public unowned string get_display_name ();
  1227. public unowned string get_edit_name ();
  1228. public unowned string get_etag ();
  1229. public GLib.FileType get_file_type ();
  1230. public unowned GLib.Icon get_icon ();
  1231. public bool get_is_backup ();
  1232. public bool get_is_hidden ();
  1233. public bool get_is_symlink ();
  1234. public GLib.TimeVal get_modification_time ();
  1235. public unowned string get_name ();
  1236. public int64 get_size ();
  1237. public int32 get_sort_order ();
  1238. [Version (since = "2.34")]
  1239. public unowned GLib.Icon get_symbolic_icon ();
  1240. public unowned string get_symlink_target ();
  1241. public bool has_attribute (string attribute);
  1242. [Version (since = "2.22")]
  1243. public bool has_namespace (string name_space);
  1244. [CCode (array_length = false, array_null_terminated = true)]
  1245. public string[]? list_attributes (string? name_space);
  1246. public void remove_attribute (string attribute);
  1247. public void set_attribute (string attribute, GLib.FileAttributeType type, void* value_p);
  1248. public void set_attribute_boolean (string attribute, bool attr_value);
  1249. public void set_attribute_byte_string (string attribute, string attr_value);
  1250. public void set_attribute_int32 (string attribute, int32 attr_value);
  1251. public void set_attribute_int64 (string attribute, int64 attr_value);
  1252. public void set_attribute_mask (GLib.FileAttributeMatcher mask);
  1253. public void set_attribute_object (string attribute, GLib.Object attr_value);
  1254. [Version (since = "2.22")]
  1255. public bool set_attribute_status (string attribute, GLib.FileAttributeStatus status);
  1256. public void set_attribute_string (string attribute, string attr_value);
  1257. public void set_attribute_stringv (string attribute, [CCode (array_length = false)] string[] attr_value);
  1258. public void set_attribute_uint32 (string attribute, uint32 attr_value);
  1259. public void set_attribute_uint64 (string attribute, uint64 attr_value);
  1260. public void set_content_type (string content_type);
  1261. public void set_display_name (string display_name);
  1262. public void set_edit_name (string edit_name);
  1263. public void set_file_type (GLib.FileType type);
  1264. public void set_icon (GLib.Icon icon);
  1265. public void set_is_hidden (bool is_hidden);
  1266. public void set_is_symlink (bool is_symlink);
  1267. public void set_modification_time (GLib.TimeVal mtime);
  1268. public void set_name (string name);
  1269. public void set_size (int64 size);
  1270. public void set_sort_order (int32 sort_order);
  1271. [Version (since = "2.34")]
  1272. public void set_symbolic_icon (GLib.Icon icon);
  1273. public void set_symlink_target (string symlink_target);
  1274. public void unset_attribute_mask ();
  1275. }
  1276. [CCode (cheader_filename = "gio/gio.h", type_id = "g_file_input_stream_get_type ()")]
  1277. public class FileInputStream : GLib.InputStream, GLib.Seekable {
  1278. [CCode (has_construct_function = false)]
  1279. protected FileInputStream ();
  1280. [NoWrapper]
  1281. public virtual bool can_seek ();
  1282. public virtual GLib.FileInfo query_info (string attributes, GLib.Cancellable? cancellable = null) throws GLib.Error;
  1283. public virtual async GLib.FileInfo query_info_async (string attributes, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
  1284. [NoWrapper]
  1285. public virtual bool seek (int64 offset, GLib.SeekType type, GLib.Cancellable? cancellable = null) throws GLib.Error;
  1286. [NoWrapper]
  1287. public virtual int64 tell ();
  1288. }
  1289. [CCode (cheader_filename = "gio/gio.h", type_id = "g_file_monitor_get_type ()")]
  1290. public abstract class FileMonitor : GLib.Object {
  1291. [CCode (has_construct_function = false)]
  1292. protected FileMonitor ();
  1293. public virtual bool cancel ();
  1294. public void emit_event (GLib.File child, GLib.File other_file, GLib.FileMonitorEvent event_type);
  1295. public bool is_cancelled ();
  1296. public void set_rate_limit (int limit_msecs);
  1297. [NoAccessorMethod]
  1298. public bool cancelled { get; }
  1299. [Version (deprecated_since = "2.46")]
  1300. public GLib.MainContext context { construct; }
  1301. [NoAccessorMethod]
  1302. public int rate_limit { get; set; }
  1303. public virtual signal void changed (GLib.File file, GLib.File? other_file, GLib.FileMonitorEvent event_type);
  1304. }
  1305. [CCode (cheader_filename = "gio/gio.h", type_id = "g_file_output_stream_get_type ()")]
  1306. public class FileOutputStream : GLib.OutputStream, GLib.Seekable {
  1307. [CCode (has_construct_function = false)]
  1308. protected FileOutputStream ();
  1309. [NoWrapper]
  1310. public virtual bool can_seek ();
  1311. [NoWrapper]
  1312. public virtual bool can_truncate ();
  1313. public virtual string get_etag ();
  1314. public virtual GLib.FileInfo query_info (string attributes, GLib.Cancellable? cancellable = null) throws GLib.Error;
  1315. public virtual async GLib.FileInfo query_info_async (string attributes, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
  1316. [NoWrapper]
  1317. public virtual bool seek (int64 offset, GLib.SeekType type, GLib.Cancellable? cancellable = null) throws GLib.Error;
  1318. [NoWrapper]
  1319. public virtual int64 tell ();
  1320. [NoWrapper]
  1321. public virtual bool truncate_fn (int64 size, GLib.Cancellable? cancellable = null) throws GLib.Error;
  1322. }
  1323. [CCode (cheader_filename = "gio/gio.h", type_id = "g_filename_completer_get_type ()")]
  1324. public class FilenameCompleter : GLib.Object {
  1325. [CCode (has_construct_function = false)]
  1326. public FilenameCompleter ();
  1327. public string get_completion_suffix (string initial_text);
  1328. [CCode (array_length = false, array_null_terminated = true)]
  1329. public string[] get_completions (string initial_text);
  1330. public void set_dirs_only (bool dirs_only);
  1331. public virtual signal void got_completion_data ();
  1332. }
  1333. [CCode (cheader_filename = "gio/gio.h", type_id = "g_filter_input_stream_get_type ()")]
  1334. public abstract class FilterInputStream : GLib.InputStream {
  1335. [CCode (has_construct_function = false)]
  1336. protected FilterInputStream ();
  1337. public unowned GLib.InputStream get_base_stream ();
  1338. public bool get_close_base_stream ();
  1339. public void set_close_base_stream (bool close_base);
  1340. public GLib.InputStream base_stream { get; construct; }
  1341. public bool close_base_stream { get; set construct; }
  1342. }
  1343. [CCode (cheader_filename = "gio/gio.h", type_id = "g_filter_output_stream_get_type ()")]
  1344. public abstract class FilterOutputStream : GLib.OutputStream {
  1345. [CCode (has_construct_function = false)]
  1346. protected FilterOutputStream ();
  1347. public unowned GLib.OutputStream get_base_stream ();
  1348. public bool get_close_base_stream ();
  1349. public void set_close_base_stream (bool close_base);
  1350. public GLib.OutputStream base_stream { get; construct; }
  1351. public bool close_base_stream { get; construct; }
  1352. }
  1353. [CCode (cheader_filename = "gio/gio.h")]
  1354. [Compact]
  1355. public class IOExtension {
  1356. public unowned string get_name ();
  1357. public int get_priority ();
  1358. public GLib.Type get_type ();
  1359. }
  1360. [CCode (cheader_filename = "gio/gio.h")]
  1361. [Compact]
  1362. public class IOExtensionPoint {
  1363. [CCode (cheader_filename = "gio/gio.h", cname = "G_DESKTOP_APP_INFO_LOOKUP_EXTENSION_POINT_NAME")]
  1364. public const string DESKTOP_APP_INFO_LOOKUP;
  1365. [CCode (cheader_filename = "gio/gio.h", cname = "G_NATIVE_VOLUME_MONITOR_EXTENSION_POINT_NAME")]
  1366. public const string NATIVE_VOLUME_MONITOR;
  1367. [CCode (cheader_filename = "gio/gio.h", cname = "G_NETWORK_MONITOR_EXTENSION_POINT_NAME")]
  1368. [Version (since = "2.30")]
  1369. public const string NETWORK_MONITOR;
  1370. [CCode (cheader_filename = "gio/gio.h", cname = "G_PROXY_EXTENSION_POINT_NAME")]
  1371. [Version (since = "2.26")]
  1372. public const string PROXY;
  1373. [CCode (cheader_filename = "gio/gio.h", cname = "G_PROXY_RESOLVER_EXTENSION_POINT_NAME")]
  1374. public const string PROXY_RESOLVER;
  1375. [CCode (cheader_filename = "gio/gio.h", cname = "G_TLS_BACKEND_EXTENSION_POINT_NAME")]
  1376. public const string TLS_BACKEND;
  1377. [CCode (cheader_filename = "gio/gio.h", cname = "G_VFS_EXTENSION_POINT_NAME")]
  1378. public const string VFS;
  1379. [CCode (cheader_filename = "gio/gio.h", cname = "G_VOLUME_MONITOR_EXTENSION_POINT_NAME")]
  1380. public const string VOLUME_MONITOR;
  1381. public unowned GLib.IOExtension get_extension_by_name (string name);
  1382. public unowned GLib.List<GLib.IOExtension> get_extensions ();
  1383. public GLib.Type get_required_type ();
  1384. [CCode (cheader_filename = "gio/gio.h")]
  1385. public static unowned GLib.IOExtension implement (string extension_point_name, GLib.Type type, string extension_name, int priority);
  1386. [CCode (cheader_filename = "gio/gio.h")]
  1387. public static unowned GLib.IOExtensionPoint lookup (string name);
  1388. [CCode (cheader_filename = "gio/gio.h")]
  1389. public static unowned GLib.IOExtensionPoint register (string name);
  1390. public void set_required_type (GLib.Type type);
  1391. }
  1392. [CCode (cheader_filename = "gio/gio.h", type_id = "g_io_module_get_type ()")]
  1393. public class IOModule : GLib.TypeModule, GLib.TypePlugin {
  1394. [CCode (has_construct_function = false)]
  1395. public IOModule (string filename);
  1396. public void load ();
  1397. [CCode (cheader_filename = "gio/gio.h", cname = "g_io_modules_load_all_in_directory")]
  1398. public static GLib.List<GLib.IOModule> load_all_in_directory (string dirname);
  1399. [CCode (cheader_filename = "gio/gio.h", cname = "g_io_modules_load_all_in_directory_with_scope")]
  1400. [Version (since = "2.30")]
  1401. public static GLib.List<GLib.IOModule> load_all_in_directory_with_scope (string dirname, GLib.IOModuleScope scope);
  1402. [CCode (array_length = false, array_null_terminated = true)]
  1403. [Version (since = "2.24")]
  1404. public static string[] query ();
  1405. [CCode (cheader_filename = "gio/gio.h", cname = "g_io_modules_scan_all_in_directory")]
  1406. [Version (since = "2.24")]
  1407. public static void scan_all_in_directory (string dirname);
  1408. [CCode (cheader_filename = "gio/gio.h", cname = "g_io_modules_scan_all_in_directory_with_scope")]
  1409. [Version (since = "2.30")]
  1410. public static void scan_all_in_directory_with_scope (string dirname, GLib.IOModuleScope scope);
  1411. public void unload ();
  1412. }
  1413. [CCode (cheader_filename = "gio/gio.h")]
  1414. [Compact]
  1415. [Version (since = "2.30")]
  1416. public class IOModuleScope {
  1417. [CCode (has_construct_function = false)]
  1418. public IOModuleScope (GLib.IOModuleScopeFlags flags);
  1419. public void block (string basename);
  1420. public void free ();
  1421. }
  1422. [CCode (cheader_filename = "gio/gio.h")]
  1423. [Compact]
  1424. public class IOSchedulerJob {
  1425. [CCode (cheader_filename = "gio/gio.h", cname = "g_io_scheduler_cancel_all_jobs")]
  1426. [Version (deprecated = true)]
  1427. public static void cancel_all ();
  1428. [CCode (cheader_filename = "gio/gio.h", cname = "g_io_scheduler_push_job")]
  1429. [Version (deprecated = true)]
  1430. public static void push ([CCode (delegate_target_pos = 1.33333, destroy_notify_pos = 1.66667)] owned GLib.IOSchedulerJobFunc job_func, int io_priority, GLib.Cancellable? cancellable = null);
  1431. [Version (deprecated = true)]
  1432. public bool send_to_mainloop (owned GLib.SourceFunc func);
  1433. [Version (deprecated = true)]
  1434. public void send_to_mainloop_async (owned GLib.SourceFunc func);
  1435. }
  1436. [CCode (cheader_filename = "gio/gio.h")]
  1437. public abstract class IOStream : GLib.Object {
  1438. [CCode (has_construct_function = false)]
  1439. protected IOStream ();
  1440. [Version (since = "2.22")]
  1441. public void clear_pending ();
  1442. [CCode (vfunc_name = "close_fn")]
  1443. public virtual bool close (GLib.Cancellable? cancellable = null) throws GLib.IOError;
  1444. public virtual async bool close_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.IOError;
  1445. [Version (since = "2.22")]
  1446. public virtual unowned GLib.InputStream get_input_stream ();
  1447. [Version (since = "2.22")]
  1448. public virtual unowned GLib.OutputStream get_output_stream ();
  1449. [Version (since = "2.22")]
  1450. public bool has_pending ();
  1451. [Version (since = "2.22")]
  1452. public bool is_closed ();
  1453. [Version (since = "2.22")]
  1454. public bool set_pending () throws GLib.Error;
  1455. [Version (since = "2.28")]
  1456. public async bool splice_async (GLib.IOStream stream2, GLib.IOStreamSpliceFlags flags, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
  1457. [NoAccessorMethod]
  1458. public bool closed { get; }
  1459. public abstract GLib.InputStream input_stream { get; }
  1460. public abstract GLib.OutputStream output_stream { get; }
  1461. }
  1462. [CCode (cheader_filename = "gio/gio.h")]
  1463. [Compact]
  1464. public class IOStreamAdapter {
  1465. }
  1466. [CCode (cheader_filename = "gio/gio.h", type_id = "g_inet_address_get_type ()")]
  1467. public class InetAddress : GLib.Object {
  1468. [CCode (has_construct_function = false)]
  1469. protected InetAddress ();
  1470. [CCode (has_construct_function = false)]
  1471. [Version (since = "2.22")]
  1472. public InetAddress.any (GLib.SocketFamily family);
  1473. [Version (since = "2.30")]
  1474. public bool equal (GLib.InetAddress other_address);
  1475. [CCode (has_construct_function = false)]
  1476. [Version (since = "2.22")]
  1477. public InetAddress.from_bytes ([CCode (array_length = false)] uint8[] bytes, GLib.SocketFamily family);
  1478. [CCode (has_construct_function = false)]
  1479. [Version (since = "2.22")]
  1480. public InetAddress.from_string (string string);
  1481. [Version (since = "2.22")]
  1482. public GLib.SocketFamily get_family ();
  1483. [Version (since = "2.22")]
  1484. public bool get_is_any ();
  1485. [Version (since = "2.22")]
  1486. public bool get_is_link_local ();
  1487. [Version (since = "2.22")]
  1488. public bool get_is_loopback ();
  1489. [Version (since = "2.22")]
  1490. public bool get_is_mc_global ();
  1491. [Version (since = "2.22")]
  1492. public bool get_is_mc_link_local ();
  1493. [Version (since = "2.22")]
  1494. public bool get_is_mc_node_local ();
  1495. [Version (since = "2.22")]
  1496. public bool get_is_mc_org_local ();
  1497. [Version (since = "2.22")]
  1498. public bool get_is_mc_site_local ();
  1499. [Version (since = "2.22")]
  1500. public bool get_is_multicast ();
  1501. [Version (since = "2.22")]
  1502. public bool get_is_site_local ();
  1503. [Version (since = "2.22")]
  1504. public size_t get_native_size ();
  1505. [CCode (has_construct_function = false)]
  1506. [Version (since = "2.22")]
  1507. public InetAddress.loopback (GLib.SocketFamily family);
  1508. [CCode (array_length = false)]
  1509. [Version (since = "2.22")]
  1510. public virtual unowned uint8[] to_bytes ();
  1511. [Version (since = "2.22")]
  1512. public virtual string to_string ();
  1513. [NoAccessorMethod]
  1514. public void* bytes { get; construct; }
  1515. public GLib.SocketFamily family { get; construct; }
  1516. [Version (since = "2.22")]
  1517. public bool is_any { get; }
  1518. [Version (since = "2.22")]
  1519. public bool is_link_local { get; }
  1520. [Version (since = "2.22")]
  1521. public bool is_loopback { get; }
  1522. [Version (since = "2.22")]
  1523. public bool is_mc_global { get; }
  1524. [Version (since = "2.22")]
  1525. public bool is_mc_link_local { get; }
  1526. [Version (since = "2.22")]
  1527. public bool is_mc_node_local { get; }
  1528. [Version (since = "2.22")]
  1529. public bool is_mc_org_local { get; }
  1530. [Version (since = "2.22")]
  1531. public bool is_mc_site_local { get; }
  1532. [Version (since = "2.22")]
  1533. public bool is_multicast { get; }
  1534. [Version (since = "2.22")]
  1535. public bool is_site_local { get; }
  1536. }
  1537. [CCode (cheader_filename = "gio/gio.h", type_id = "g_inet_address_mask_get_type ()")]
  1538. [Version (since = "2.32")]
  1539. public class InetAddressMask : GLib.Object, GLib.Initable {
  1540. [CCode (has_construct_function = false)]
  1541. public InetAddressMask (GLib.InetAddress addr, uint length) throws GLib.Error;
  1542. public bool equal (GLib.InetAddressMask mask2);
  1543. [CCode (has_construct_function = false)]
  1544. public InetAddressMask.from_string (string mask_string) throws GLib.Error;
  1545. public unowned GLib.InetAddress get_address ();
  1546. public GLib.SocketFamily get_family ();
  1547. public uint get_length ();
  1548. public bool matches (GLib.InetAddress address);
  1549. public string to_string ();
  1550. [NoAccessorMethod]
  1551. public GLib.InetAddress address { owned get; set; }
  1552. public GLib.SocketFamily family { get; }
  1553. [NoAccessorMethod]
  1554. public uint length { get; set; }
  1555. }
  1556. [CCode (cheader_filename = "gio/gio.h", type_id = "g_inet_socket_address_get_type ()")]
  1557. public class InetSocketAddress : GLib.SocketAddress, GLib.SocketConnectable {
  1558. [CCode (has_construct_function = false, type = "GSocketAddress*")]
  1559. [Version (since = "2.22")]
  1560. public InetSocketAddress (GLib.InetAddress address, uint16 port);
  1561. [CCode (has_construct_function = false, type = "GSocketAddress*")]
  1562. [Version (since = "2.40")]
  1563. public InetSocketAddress.from_string (string address, uint port);
  1564. [Version (since = "2.22")]
  1565. public unowned GLib.InetAddress get_address ();
  1566. [Version (since = "2.32")]
  1567. public uint32 get_flowinfo ();
  1568. [Version (since = "2.22")]
  1569. public uint16 get_port ();
  1570. [Version (since = "2.32")]
  1571. public uint32 get_scope_id ();
  1572. public GLib.InetAddress address { get; construct; }
  1573. [Version (since = "2.32")]
  1574. public uint flowinfo { get; construct; }
  1575. public uint port { get; construct; }
  1576. public uint scope_id { get; construct; }
  1577. }
  1578. [CCode (cheader_filename = "gio/gio.h")]
  1579. public abstract class InputStream : GLib.Object {
  1580. [CCode (has_construct_function = false)]
  1581. protected InputStream ();
  1582. public void clear_pending ();
  1583. [CCode (vfunc_name = "close_fn")]
  1584. public abstract bool close (GLib.Cancellable? cancellable = null) throws GLib.IOError;
  1585. public virtual async bool close_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.IOError;
  1586. public bool has_pending ();
  1587. public bool is_closed ();
  1588. [CCode (vfunc_name = "read_fn")]
  1589. public abstract ssize_t read ([CCode (array_length_type = "gsize")] uint8[] buffer, GLib.Cancellable? cancellable = null) throws GLib.IOError;
  1590. public bool read_all ([CCode (array_length_cname = "count", array_length_pos = 1.5, array_length_type = "gsize")] uint8[] buffer, out size_t bytes_read, GLib.Cancellable? cancellable = null) throws GLib.IOError;
  1591. [Version (since = "2.44")]
  1592. public async bool read_all_async ([CCode (array_length_cname = "count", array_length_pos = 1.5, array_length_type = "gsize")] uint8[] buffer, int io_priority, GLib.Cancellable? cancellable, out size_t bytes_read) throws GLib.Error;
  1593. public virtual async ssize_t read_async ([CCode (array_length_cname = "count", array_length_pos = 1.5, array_length_type = "gsize")] uint8[]? buffer, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.IOError;
  1594. [Version (since = "2.34")]
  1595. public GLib.Bytes read_bytes (size_t count, GLib.Cancellable? cancellable = null) throws GLib.Error;
  1596. [Version (since = "2.34")]
  1597. public async GLib.Bytes read_bytes_async (size_t count, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
  1598. public bool set_pending () throws GLib.Error;
  1599. public virtual ssize_t skip (size_t count, GLib.Cancellable? cancellable = null) throws GLib.IOError;
  1600. public virtual async ssize_t skip_async (size_t count, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.IOError;
  1601. }
  1602. [CCode (cheader_filename = "gio/gio.h", type_id = "g_list_store_get_type ()")]
  1603. public class ListStore : GLib.Object, GLib.ListModel {
  1604. [CCode (has_construct_function = false)]
  1605. [Version (since = "2.44")]
  1606. public ListStore (GLib.Type item_type);
  1607. [Version (since = "2.44")]
  1608. public void append (GLib.Object item);
  1609. [Version (since = "2.44")]
  1610. public void insert (uint position, GLib.Object item);
  1611. [Version (since = "2.44")]
  1612. public uint insert_sorted (GLib.Object item, GLib.CompareDataFunc compare_func);
  1613. [Version (since = "2.44")]
  1614. public void remove (uint position);
  1615. [Version (since = "2.44")]
  1616. public void remove_all ();
  1617. [Version (since = "2.46")]
  1618. public void sort (GLib.CompareDataFunc compare_func);
  1619. [Version (since = "2.44")]
  1620. public void splice (uint position, uint n_removals, [CCode (array_length_cname = "n_additions", array_length_pos = 3.1, array_length_type = "guint")] GLib.Object[] additions);
  1621. [NoAccessorMethod]
  1622. [Version (since = "2.44")]
  1623. public GLib.Type item_type { get; construct; }
  1624. }
  1625. [CCode (cheader_filename = "gio/gio.h", type_id = "g_memory_input_stream_get_type ()")]
  1626. public class MemoryInputStream : GLib.InputStream, GLib.PollableInputStream, GLib.Seekable {
  1627. [CCode (has_construct_function = false, type = "GInputStream*")]
  1628. public MemoryInputStream ();
  1629. [Version (since = "2.34")]
  1630. public void add_bytes (GLib.Bytes bytes);
  1631. public void add_data ([CCode (array_length_cname = "len", array_length_pos = 1.5, array_length_type = "gssize")] owned uint8[] data, GLib.DestroyNotify? destroy = GLib.g_free);
  1632. [CCode (has_construct_function = false, type = "GInputStream*")]
  1633. [Version (since = "2.34")]
  1634. public MemoryInputStream.from_bytes (GLib.Bytes bytes);
  1635. [CCode (has_construct_function = false, type = "GInputStream*")]
  1636. public MemoryInputStream.from_data ([CCode (array_length_cname = "len", array_length_pos = 1.5, array_length_type = "gssize")] owned uint8[] data, GLib.DestroyNotify? destroy = GLib.g_free);
  1637. }
  1638. [CCode (cheader_filename = "gio/gio.h")]
  1639. public class MemoryOutputStream : GLib.OutputStream, GLib.PollableOutputStream, GLib.Seekable {
  1640. [CCode (has_construct_function = false, type = "GOutputStream*")]
  1641. public MemoryOutputStream ([CCode (array_length_type = "gsize")] owned uint8[]? data, GLib.ReallocFunc? realloc_function = GLib.g_realloc, GLib.DestroyNotify? destroy_function = GLib.g_free);
  1642. [CCode (array_length = false)]
  1643. public unowned uint8[] get_data ();
  1644. [Version (since = "2.18")]
  1645. public size_t get_data_size ();
  1646. public size_t get_size ();
  1647. [CCode (has_construct_function = false, type = "GOutputStream*")]
  1648. [Version (since = "2.36")]
  1649. public MemoryOutputStream.resizable ();
  1650. [Version (since = "2.34")]
  1651. public GLib.Bytes steal_as_bytes ();
  1652. [CCode (array_length = false)]
  1653. [Version (since = "2.26")]
  1654. public uint8[] steal_data ();
  1655. [Version (since = "2.24")]
  1656. public void* data { get; construct; }
  1657. [Version (since = "2.24")]
  1658. public ulong data_size { get; }
  1659. [NoAccessorMethod]
  1660. [Version (since = "2.24")]
  1661. public GLib.DestroyNotify? destroy_function { get; construct; }
  1662. [NoAccessorMethod]
  1663. [Version (since = "2.24")]
  1664. public GLib.ReallocFunc? realloc_function { get; construct; }
  1665. [Version (since = "2.24")]
  1666. public ulong size { get; construct; }
  1667. }
  1668. [CCode (cheader_filename = "gio/gio.h", type_id = "g_menu_get_type ()")]
  1669. [Version (since = "2.32")]
  1670. public class Menu : GLib.MenuModel {
  1671. [CCode (cheader_filename = "gio/gio.h", cname = "G_MENU_ATTRIBUTE_ACTION")]
  1672. public const string ATTRIBUTE_ACTION;
  1673. [CCode (cheader_filename = "gio/gio.h", cname = "G_MENU_ATTRIBUTE_ACTION_NAMESPACE")]
  1674. [Version (since = "2.36")]
  1675. public const string ATTRIBUTE_ACTION_NAMESPACE;
  1676. [CCode (cheader_filename = "gio/gio.h", cname = "G_MENU_ATTRIBUTE_ICON")]
  1677. [Version (since = "2.38")]
  1678. public const string ATTRIBUTE_ICON;
  1679. [CCode (cheader_filename = "gio/gio.h", cname = "G_MENU_ATTRIBUTE_LABEL")]
  1680. public const string ATTRIBUTE_LABEL;
  1681. [CCode (cheader_filename = "gio/gio.h", cname = "G_MENU_ATTRIBUTE_TARGET")]
  1682. public const string ATTRIBUTE_TARGET;
  1683. [CCode (cheader_filename = "gio/gio.h", cname = "G_MENU_LINK_SECTION")]
  1684. public const string LINK_SECTION;
  1685. [CCode (cheader_filename = "gio/gio.h", cname = "G_MENU_LINK_SUBMENU")]
  1686. public const string LINK_SUBMENU;
  1687. [CCode (has_construct_function = false)]
  1688. public Menu ();
  1689. public void append (string? label, string? detailed_action);
  1690. public void append_item (GLib.MenuItem item);
  1691. public void append_section (string? label, GLib.MenuModel section);
  1692. public void append_submenu (string? label, GLib.MenuModel submenu);
  1693. public void freeze ();
  1694. public void insert (int position, string? label, string? detailed_action);
  1695. public void insert_item (int position, GLib.MenuItem item);
  1696. public void insert_section (int position, string? label, GLib.MenuModel section);
  1697. public void insert_submenu (int position, string? label, GLib.MenuModel submenu);
  1698. public void prepend (string? label, string? detailed_action);
  1699. public void prepend_item (GLib.MenuItem item);
  1700. public void prepend_section (string? label, GLib.MenuModel section);
  1701. public void prepend_submenu (string? label, GLib.MenuModel submenu);
  1702. public void remove (int position);
  1703. [Version (since = "2.38")]
  1704. public void remove_all ();
  1705. }
  1706. [CCode (cheader_filename = "gio/gio.h", type_id = "g_menu_attribute_iter_get_type ()")]
  1707. [Version (since = "2.32")]
  1708. public abstract class MenuAttributeIter : GLib.Object {
  1709. [CCode (has_construct_function = false)]
  1710. protected MenuAttributeIter ();
  1711. public unowned string get_name ();
  1712. public virtual bool get_next (out unowned string out_name, out GLib.Variant value);
  1713. public GLib.Variant get_value ();
  1714. public bool next ();
  1715. }
  1716. [CCode (cheader_filename = "gio/gio.h", type_id = "g_menu_item_get_type ()")]
  1717. [Version (since = "2.32")]
  1718. public class MenuItem : GLib.Object {
  1719. [CCode (has_construct_function = false)]
  1720. public MenuItem (string? label, string? detailed_action);
  1721. [CCode (has_construct_function = false)]
  1722. [Version (since = "2.34")]
  1723. public MenuItem.from_model (GLib.MenuModel model, int item_index);
  1724. [Version (since = "2.34")]
  1725. public GLib.Variant get_attribute_value (string attribute, GLib.VariantType? expected_type);
  1726. [Version (since = "2.34")]
  1727. public GLib.MenuModel get_link (string link);
  1728. [CCode (has_construct_function = false)]
  1729. public MenuItem.section (string? label, GLib.MenuModel section);
  1730. public void set_action_and_target (string? action, string? format_string, ...);
  1731. public void set_action_and_target_value (string? action, GLib.Variant? target_value);
  1732. public void set_attribute (string attribute, string? format_string, ...);
  1733. public void set_attribute_value (string attribute, GLib.Variant? value);
  1734. public void set_detailed_action (string detailed_action);
  1735. [Version (since = "2.38")]
  1736. public void set_icon (GLib.Icon icon);
  1737. public void set_label (string? label);
  1738. public void set_link (string link, GLib.MenuModel? model);
  1739. public void set_section (GLib.MenuModel? section);
  1740. public void set_submenu (GLib.MenuModel? submenu);
  1741. [CCode (has_construct_function = false)]
  1742. public MenuItem.submenu (string? label, GLib.MenuModel submenu);
  1743. }
  1744. [CCode (cheader_filename = "gio/gio.h", type_id = "g_menu_link_iter_get_type ()")]
  1745. [Version (since = "2.32")]
  1746. public abstract class MenuLinkIter : GLib.Object {
  1747. [CCode (has_construct_function = false)]
  1748. protected MenuLinkIter ();
  1749. public unowned string get_name ();
  1750. public virtual bool get_next (out unowned string out_link, out GLib.MenuModel value);
  1751. public GLib.MenuModel get_value ();
  1752. public bool next ();
  1753. }
  1754. [CCode (cheader_filename = "gio/gio.h", type_id = "g_menu_model_get_type ()")]
  1755. [Version (since = "2.32")]
  1756. public abstract class MenuModel : GLib.Object {
  1757. [CCode (has_construct_function = false)]
  1758. protected MenuModel ();
  1759. public bool get_item_attribute (int item_index, string attribute, string format_string, ...);
  1760. public virtual GLib.Variant get_item_attribute_value (int item_index, string attribute, GLib.VariantType? expected_type);
  1761. [NoWrapper]
  1762. public virtual void get_item_attributes (int item_index, [CCode (type = "GHashTable**")] out GLib.HashTable<string,GLib.Variant>? attributes);
  1763. public virtual GLib.MenuModel get_item_link (int item_index, string link);
  1764. [NoWrapper]
  1765. public virtual void get_item_links (int item_index, out GLib.HashTable<string,GLib.MenuModel> links);
  1766. public virtual int get_n_items ();
  1767. public virtual bool is_mutable ();
  1768. public virtual GLib.MenuAttributeIter iterate_item_attributes (int item_index);
  1769. public virtual GLib.MenuLinkIter iterate_item_links (int item_index);
  1770. [HasEmitter]
  1771. public signal void items_changed (int position, int removed, int added);
  1772. }
  1773. [CCode (cheader_filename = "gio/gio.h", type_id = "g_mount_operation_get_type ()")]
  1774. public class MountOperation : GLib.Object {
  1775. [CCode (has_construct_function = false)]
  1776. public MountOperation ();
  1777. public bool get_anonymous ();
  1778. public int get_choice ();
  1779. public unowned string get_domain ();
  1780. public unowned string get_password ();
  1781. public GLib.PasswordSave get_password_save ();
  1782. public unowned string get_username ();
  1783. public void set_anonymous (bool anonymous);
  1784. public void set_choice (int choice);
  1785. public void set_domain (string domain);
  1786. public void set_password (string password);
  1787. public void set_password_save (GLib.PasswordSave save);
  1788. public void set_username (string username);
  1789. public bool anonymous { get; set; }
  1790. public int choice { get; set; }
  1791. public string domain { get; set; }
  1792. public string password { get; set; }
  1793. public GLib.PasswordSave password_save { get; set; }
  1794. public string username { get; set; }
  1795. [Version (since = "2.20")]
  1796. public virtual signal void aborted ();
  1797. public virtual signal void ask_password (string message, string default_user, string default_domain, GLib.AskPasswordFlags flags);
  1798. public virtual signal void ask_question (string message, [CCode (array_length = false, array_null_terminated = true)] string[] choices);
  1799. [HasEmitter]
  1800. public virtual signal void reply (GLib.MountOperationResult result);
  1801. [Version (since = "2.22")]
  1802. public signal void show_processes (string message, GLib.Array<GLib.Pid> processes, [CCode (array_length = false, array_null_terminated = true)] string[] choices);
  1803. [Version (since = "2.34")]
  1804. public virtual signal void show_unmount_progress (string message, int64 time_left, int64 bytes_left);
  1805. }
  1806. [CCode (cheader_filename = "gio/gio.h", type_id = "g_native_socket_address_get_type ()")]
  1807. public class NativeSocketAddress : GLib.SocketAddress {
  1808. public NativeSocketAddress (void* native, size_t len);
  1809. }
  1810. [CCode (cheader_filename = "gio/gio.h")]
  1811. public abstract class NativeVolumeMonitor : GLib.VolumeMonitor {
  1812. [CCode (has_construct_function = false)]
  1813. protected NativeVolumeMonitor ();
  1814. [NoWrapper]
  1815. public abstract GLib.Mount get_mount_for_mount_path (string mount_path, GLib.Cancellable? cancellable = null);
  1816. }
  1817. [CCode (cheader_filename = "gio/gio.h", type_id = "g_network_address_get_type ()")]
  1818. public class NetworkAddress : GLib.Object, GLib.SocketConnectable {
  1819. [CCode (has_construct_function = false, type = "GSocketConnectable*")]
  1820. [Version (since = "2.22")]
  1821. public NetworkAddress (string hostname, uint16 port);
  1822. [Version (since = "2.22")]
  1823. public unowned string get_hostname ();
  1824. [Version (since = "2.22")]
  1825. public uint16 get_port ();
  1826. [Version (since = "2.26")]
  1827. public unowned string get_scheme ();
  1828. [CCode (has_construct_function = false, type = "GSocketConnectable*")]
  1829. [Version (since = "2.44")]
  1830. public NetworkAddress.loopback (uint16 port);
  1831. [Version (since = "2.22")]
  1832. public static GLib.NetworkAddress parse (string host_and_port, uint16 default_port) throws GLib.Error;
  1833. [Version (since = "2.26")]
  1834. public static GLib.NetworkAddress parse_uri (string uri, uint16 default_port) throws GLib.Error;
  1835. public string hostname { get; construct; }
  1836. public uint port { get; construct; }
  1837. public string scheme { get; construct; }
  1838. }
  1839. [CCode (cheader_filename = "gio/gio.h", type_id = "g_network_service_get_type ()")]
  1840. public class NetworkService : GLib.Object, GLib.SocketConnectable {
  1841. [CCode (has_construct_function = false, type = "GSocketConnectable*")]
  1842. [Version (since = "2.22")]
  1843. public NetworkService (string service, string protocol, string domain);
  1844. [Version (since = "2.22")]
  1845. public unowned string get_domain ();
  1846. [Version (since = "2.22")]
  1847. public unowned string get_protocol ();
  1848. [Version (since = "2.26")]
  1849. public unowned string get_scheme ();
  1850. [Version (since = "2.22")]
  1851. public unowned string get_service ();
  1852. [Version (since = "2.26")]
  1853. public void set_scheme (string scheme);
  1854. public string domain { get; construct; }
  1855. public string protocol { get; construct; }
  1856. public string scheme { get; set; }
  1857. public string service { get; construct; }
  1858. }
  1859. [CCode (cheader_filename = "gio/gio.h", type_id = "g_notification_get_type ()")]
  1860. [Version (since = "2.40")]
  1861. public class Notification : GLib.Object {
  1862. [CCode (has_construct_function = false)]
  1863. public Notification (string title);
  1864. public void add_button (string label, string detailed_action);
  1865. public void add_button_with_target_value (string label, string action, GLib.Variant? target);
  1866. public void set_body (string? body);
  1867. public void set_default_action (string detailed_action);
  1868. public void set_default_action_and_target_value (string action, GLib.Variant? target);
  1869. public void set_icon (GLib.Icon icon);
  1870. public void set_priority (GLib.NotificationPriority priority);
  1871. public void set_title (string title);
  1872. public void set_urgent (bool urgent);
  1873. }
  1874. [CCode (cheader_filename = "gio/gio.h")]
  1875. public abstract class OutputStream : GLib.Object {
  1876. [CCode (has_construct_function = false)]
  1877. protected OutputStream ();
  1878. public void clear_pending ();
  1879. [CCode (vfunc_name = "close_fn")]
  1880. public abstract bool close (GLib.Cancellable? cancellable = null) throws GLib.IOError;
  1881. public virtual async bool close_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.IOError;
  1882. public virtual bool flush (GLib.Cancellable? cancellable = null) throws GLib.Error;
  1883. public virtual async bool flush_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
  1884. public bool has_pending ();
  1885. public bool is_closed ();
  1886. [Version (since = "2.24")]
  1887. public bool is_closing ();
  1888. public bool set_pending () throws GLib.Error;
  1889. public virtual ssize_t splice (GLib.InputStream source, GLib.OutputStreamSpliceFlags flags, GLib.Cancellable? cancellable = null) throws GLib.IOError;
  1890. public virtual async ssize_t splice_async (GLib.InputStream source, GLib.OutputStreamSpliceFlags flags, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.IOError;
  1891. [CCode (vfunc_name = "write_fn")]
  1892. public abstract ssize_t write ([CCode (array_length_type = "gsize")] uint8[] buffer, GLib.Cancellable? cancellable = null) throws GLib.IOError;
  1893. public bool write_all ([CCode (array_length_cname = "count", array_length_pos = 1.5, array_length_type = "gsize")] uint8[] buffer, out size_t bytes_written, GLib.Cancellable? cancellable = null) throws GLib.IOError;
  1894. [Version (since = "2.44")]
  1895. public async bool write_all_async ([CCode (array_length_cname = "count", array_length_pos = 1.5, array_length_type = "gsize")] uint8[] buffer, int io_priority, GLib.Cancellable? cancellable, out size_t bytes_written) throws GLib.Error;
  1896. public virtual async ssize_t write_async ([CCode (array_length_cname = "count", array_length_pos = 1.5, array_length_type = "gsize")] uint8[]? buffer, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.IOError;
  1897. public ssize_t write_bytes (GLib.Bytes bytes, GLib.Cancellable? cancellable = null) throws GLib.Error;
  1898. public async ssize_t write_bytes_async (GLib.Bytes bytes, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
  1899. }
  1900. [CCode (cheader_filename = "gio/gio.h", type_id = "g_permission_get_type ()")]
  1901. public abstract class Permission : GLib.Object {
  1902. [CCode (has_construct_function = false)]
  1903. protected Permission ();
  1904. [Version (since = "2.26")]
  1905. public virtual bool acquire (GLib.Cancellable? cancellable = null) throws GLib.Error;
  1906. [Version (since = "2.26")]
  1907. public virtual async bool acquire_async (GLib.Cancellable? cancellable = null) throws GLib.Error;
  1908. [Version (since = "2.26")]
  1909. public bool get_allowed ();
  1910. [Version (since = "2.26")]
  1911. public bool get_can_acquire ();
  1912. [Version (since = "2.26")]
  1913. public bool get_can_release ();
  1914. [Version (since = "2.26")]
  1915. public void impl_update (bool allowed, bool can_acquire, bool can_release);
  1916. [Version (since = "2.26")]
  1917. public virtual bool release (GLib.Cancellable? cancellable = null) throws GLib.Error;
  1918. [Version (since = "2.26")]
  1919. public virtual async bool release_async (GLib.Cancellable? cancellable = null) throws GLib.Error;
  1920. public bool allowed { get; }
  1921. public bool can_acquire { get; }
  1922. public bool can_release { get; }
  1923. }
  1924. [CCode (cheader_filename = "gio/gio.h", cname = "GSource", ref_function = "g_source_ref", unref_function = "g_source_unref")]
  1925. [Compact]
  1926. public class PollableSource : GLib.Source {
  1927. [CCode (type = "GSource*")]
  1928. public PollableSource (GLib.Object pollable_stream);
  1929. [CCode (type = "GSource*")]
  1930. public PollableSource.full (GLib.Object pollable_stream, GLib.Source? child_source, GLib.Cancellable? cancellable = null);
  1931. [CCode (cname = "g_source_set_callback")]
  1932. public void set_callback ([CCode (type = "GSourceFunc")] owned GLib.PollableSourceFunc func);
  1933. }
  1934. [CCode (cheader_filename = "gio/gio.h", type_id = "g_property_action_get_type ()")]
  1935. [Version (since = "2.38")]
  1936. public class PropertyAction : GLib.Object, GLib.Action {
  1937. [CCode (has_construct_function = false)]
  1938. public PropertyAction (string name, GLib.Object object, string property_name);
  1939. [NoAccessorMethod]
  1940. [Version (since = "2.46")]
  1941. public bool invert_boolean { get; construct; }
  1942. public GLib.Object object { construct; }
  1943. public string property_name { construct; }
  1944. }
  1945. [CCode (cheader_filename = "gio/gio.h", type_id = "g_proxy_address_get_type ()")]
  1946. [Version (since = "2.26")]
  1947. public class ProxyAddress : GLib.InetSocketAddress, GLib.SocketConnectable {
  1948. [CCode (has_construct_function = false, type = "GSocketAddress*")]
  1949. public ProxyAddress (GLib.InetAddress inetaddr, uint16 port, string protocol, string dest_hostname, uint16 dest_port, string? username, string? password);
  1950. public unowned string get_destination_hostname ();
  1951. public uint16 get_destination_port ();
  1952. [Version (since = "2.34")]
  1953. public unowned string get_destination_protocol ();
  1954. public unowned string get_password ();
  1955. public unowned string get_protocol ();
  1956. [Version (since = "2.34")]
  1957. public unowned string get_uri ();
  1958. public unowned string get_username ();
  1959. public string destination_hostname { get; construct; }
  1960. public uint destination_port { get; construct; }
  1961. [Version (since = "2.34")]
  1962. public string destination_protocol { get; construct; }
  1963. public string password { get; construct; }
  1964. public string protocol { get; construct; }
  1965. [Version (since = "2.34")]
  1966. public string uri { get; construct; }
  1967. public string username { get; construct; }
  1968. }
  1969. [CCode (cheader_filename = "gio/gio.h", type_id = "g_proxy_address_enumerator_get_type ()")]
  1970. public class ProxyAddressEnumerator : GLib.SocketAddressEnumerator {
  1971. [CCode (has_construct_function = false)]
  1972. protected ProxyAddressEnumerator ();
  1973. [NoAccessorMethod]
  1974. public GLib.SocketConnectable connectable { owned get; construct; }
  1975. [NoAccessorMethod]
  1976. [Version (since = "2.38")]
  1977. public uint default_port { get; construct; }
  1978. [NoAccessorMethod]
  1979. [Version (since = "2.36")]
  1980. public GLib.ProxyResolver proxy_resolver { owned get; set construct; }
  1981. [NoAccessorMethod]
  1982. public string uri { owned get; construct; }
  1983. }
  1984. [CCode (cheader_filename = "gio/gio.h")]
  1985. public class Resolver : GLib.Object {
  1986. [CCode (has_construct_function = false)]
  1987. protected Resolver ();
  1988. [Version (since = "2.22")]
  1989. public static GLib.Resolver get_default ();
  1990. [Version (since = "2.22")]
  1991. public virtual string lookup_by_address (GLib.InetAddress address, GLib.Cancellable? cancellable = null) throws GLib.Error;
  1992. [Version (since = "2.22")]
  1993. public virtual async string lookup_by_address_async (GLib.InetAddress address, GLib.Cancellable? cancellable = null) throws GLib.Error;
  1994. [Version (since = "2.22")]
  1995. public virtual GLib.List<GLib.InetAddress> lookup_by_name (string hostname, GLib.Cancellable? cancellable = null) throws GLib.Error;
  1996. [Version (since = "2.22")]
  1997. public virtual async GLib.List<GLib.InetAddress> lookup_by_name_async (string hostname, GLib.Cancellable? cancellable = null) throws GLib.Error;
  1998. [Version (since = "2.34")]
  1999. public virtual GLib.List<GLib.Variant> lookup_records (string rrname, GLib.ResolverRecordType record_type, GLib.Cancellable? cancellable = null) throws GLib.Error;
  2000. [Version (since = "2.34")]
  2001. public virtual async GLib.List<GLib.Variant> lookup_records_async (string rrname, GLib.ResolverRecordType record_type, GLib.Cancellable? cancellable = null) throws GLib.Error;
  2002. [Version (since = "2.22")]
  2003. public GLib.List<GLib.SrvTarget> lookup_service (string service, string protocol, string domain, GLib.Cancellable? cancellable = null) throws GLib.Error;
  2004. [CCode (finish_function = "g_resolver_lookup_service_finish")]
  2005. public async GLib.List<GLib.SrvTarget> lookup_service_async (string service, string protocol, string domain, GLib.Cancellable? cancellable = null) throws GLib.Error;
  2006. [CCode (vfunc_name = "lookup_service")]
  2007. [NoWrapper]
  2008. public virtual GLib.List<GLib.SrvTarget> lookup_service_fn (string rrname, GLib.Cancellable? cancellable = null) throws GLib.Error;
  2009. [CCode (finish_function = "g_resolver_lookup_service_finish", vfunc_name = "lookup_service_async")]
  2010. [NoWrapper]
  2011. public virtual async GLib.List<GLib.SrvTarget> lookup_service_fn_async (string rrname, GLib.Cancellable? cancellable = null);
  2012. [Version (since = "2.22")]
  2013. public void set_default ();
  2014. public virtual signal void reload ();
  2015. }
  2016. [CCode (cheader_filename = "gio/gio.h", ref_function = "g_resource_ref", type_id = "g_resource_get_type ()", unref_function = "g_resource_unref")]
  2017. [Compact]
  2018. [Version (since = "2.32")]
  2019. public class Resource {
  2020. [CCode (cname = "g_resources_register")]
  2021. public void _register ();
  2022. [CCode (cname = "g_resources_unregister")]
  2023. public void _unregister ();
  2024. [CCode (array_length = false, array_null_terminated = true)]
  2025. public string[] enumerate_children (string path, GLib.ResourceLookupFlags lookup_flags) throws GLib.Error;
  2026. [CCode (has_construct_function = false)]
  2027. public Resource.from_data (GLib.Bytes data) throws GLib.Error;
  2028. public bool get_info (string path, GLib.ResourceLookupFlags lookup_flags, out size_t size, out uint32 flags) throws GLib.Error;
  2029. [CCode (cheader_filename = "gio/gio.h")]
  2030. public static GLib.Resource load (string filename) throws GLib.Error;
  2031. public GLib.Bytes lookup_data (string path, GLib.ResourceLookupFlags lookup_flags) throws GLib.Error;
  2032. public GLib.InputStream open_stream (string path, GLib.ResourceLookupFlags lookup_flags) throws GLib.Error;
  2033. public GLib.Resource @ref ();
  2034. public void unref ();
  2035. }
  2036. [CCode (cheader_filename = "gio/gio.h")]
  2037. public class Settings : GLib.Object {
  2038. [CCode (has_construct_function = false)]
  2039. [Version (since = "2.26")]
  2040. public Settings (string schema_id);
  2041. public void apply ();
  2042. [Version (since = "2.26")]
  2043. public void bind (string key, GLib.Object object, string property, GLib.SettingsBindFlags flags);
  2044. public void bind_with_mapping (string key, GLib.Object object, string property, GLib.SettingsBindFlags flags, GLib.SettingsBindGetMappingShared get_mapping, GLib.SettingsBindSetMappingShared set_mapping, void* user_data, GLib.DestroyNotify? notify);
  2045. [Version (since = "2.26")]
  2046. public void bind_writable (string key, GLib.Object object, string property, bool inverted);
  2047. [Version (since = "2.32")]
  2048. public GLib.Action create_action (string key);
  2049. [Version (since = "2.26")]
  2050. public void delay ();
  2051. [CCode (has_construct_function = false)]
  2052. [Version (since = "2.32")]
  2053. public Settings.full (GLib.SettingsSchema schema, GLib.SettingsBackend? backend, string? path);
  2054. [CCode (sentinel = "")]
  2055. [Version (since = "2.26")]
  2056. public void @get (string key, string format, ...);
  2057. [Version (since = "2.26")]
  2058. public bool get_boolean (string key);
  2059. [Version (since = "2.26")]
  2060. public GLib.Settings get_child (string name);
  2061. [Version (since = "2.40")]
  2062. public GLib.Variant? get_default_value (string key);
  2063. [Version (since = "2.26")]
  2064. public double get_double (string key);
  2065. [Version (since = "2.26")]
  2066. public int get_enum (string key);
  2067. [Version (since = "2.26")]
  2068. public uint get_flags (string key);
  2069. [Version (since = "2.26")]
  2070. public bool get_has_unapplied ();
  2071. [Version (since = "2.26")]
  2072. public int get_int (string key);
  2073. public void* get_mapped (string key, GLib.SettingsGetMapping mapping);
  2074. [Version (deprecated = true, deprecated_since = "2.40", since = "2.28")]
  2075. public GLib.Variant get_range (string key);
  2076. [Version (since = "2.26")]
  2077. public string get_string (string key);
  2078. [CCode (array_length = false, array_null_terminated = true)]
  2079. [Version (since = "2.26")]
  2080. public string[] get_strv (string key);
  2081. [Version (since = "2.30")]
  2082. public uint get_uint (string key);
  2083. [Version (since = "2.40")]
  2084. public GLib.Variant? get_user_value (string key);
  2085. [Version (since = "2.26")]
  2086. public GLib.Variant get_value (string key);
  2087. [Version (since = "2.26")]
  2088. public bool is_writable (string name);
  2089. [CCode (array_length = false, array_null_terminated = true)]
  2090. public string[] list_children ();
  2091. [CCode (array_length = false, array_null_terminated = true)]
  2092. public string[] list_keys ();
  2093. [CCode (array_length = false, array_null_terminated = true)]
  2094. [Version (deprecated = true, deprecated_since = "2.40", since = "2.28")]
  2095. public static unowned string[] list_relocatable_schemas ();
  2096. [CCode (array_length = false, array_null_terminated = true)]
  2097. [Version (deprecated = true, deprecated_since = "2.40", since = "2.26")]
  2098. public static unowned string[] list_schemas ();
  2099. [Version (deprecated = true, deprecated_since = "2.40", since = "2.28")]
  2100. public bool range_check (string key, GLib.Variant value);
  2101. public void reset (string key);
  2102. public void revert ();
  2103. [CCode (sentinel = "")]
  2104. [Version (since = "2.26")]
  2105. public bool @set (string key, string format, ...);
  2106. [Version (since = "2.26")]
  2107. public bool set_boolean (string key, bool value);
  2108. [Version (since = "2.26")]
  2109. public bool set_double (string key, double value);
  2110. public bool set_enum (string key, int value);
  2111. public bool set_flags (string key, uint value);
  2112. [Version (since = "2.26")]
  2113. public bool set_int (string key, int value);
  2114. [Version (since = "2.26")]
  2115. public bool set_string (string key, string value);
  2116. [Version (since = "2.26")]
  2117. public bool set_strv (string key, [CCode (array_length = false, array_null_terminated = true)] string[]? value);
  2118. [Version (since = "2.30")]
  2119. public bool set_uint (string key, uint value);
  2120. [Version (since = "2.26")]
  2121. public bool set_value (string key, GLib.Variant value);
  2122. public static void sync ();
  2123. [Version (since = "2.26")]
  2124. public static void unbind (GLib.Object object, string property);
  2125. [CCode (has_construct_function = false)]
  2126. [Version (since = "2.26")]
  2127. public Settings.with_backend (string schema_id, GLib.SettingsBackend backend);
  2128. [CCode (has_construct_function = false)]
  2129. [Version (since = "2.26")]
  2130. public Settings.with_backend_and_path (string schema_id, GLib.SettingsBackend backend, string path);
  2131. [CCode (has_construct_function = false)]
  2132. [Version (since = "2.26")]
  2133. public Settings.with_path (string schema_id, string path);
  2134. [NoAccessorMethod]
  2135. public GLib.SettingsBackend backend { owned get; construct; }
  2136. [NoAccessorMethod]
  2137. [Version (since = "2.28")]
  2138. public bool delay_apply { get; }
  2139. public bool has_unapplied { get; }
  2140. [NoAccessorMethod]
  2141. public string path { owned get; construct; }
  2142. [NoAccessorMethod]
  2143. [Version (deprecated = true, deprecated_since = "2.32")]
  2144. public string schema { owned get; construct; }
  2145. [NoAccessorMethod]
  2146. public string schema_id { owned get; construct; }
  2147. [NoAccessorMethod]
  2148. public GLib.SettingsSchema settings_schema { owned get; construct; }
  2149. public virtual signal bool change_event (GLib.Quark[]? keys);
  2150. public virtual signal void changed (string key);
  2151. public virtual signal bool writable_change_event (uint key);
  2152. public virtual signal void writable_changed (string key);
  2153. }
  2154. [CCode (cheader_filename = "gio/gio.h")]
  2155. public class SettingsBackend : GLib.Object {
  2156. [CCode (has_construct_function = false)]
  2157. protected SettingsBackend ();
  2158. }
  2159. [CCode (cheader_filename = "gio/gio.h", ref_function = "g_settings_schema_ref", type_id = "g_settings_schema_get_type ()", unref_function = "g_settings_schema_unref")]
  2160. [Compact]
  2161. [Version (since = "2.32")]
  2162. public class SettingsSchema {
  2163. public unowned string get_id ();
  2164. [Version (since = "2.40")]
  2165. public GLib.SettingsSchemaKey get_key (string name);
  2166. public unowned string get_path ();
  2167. [Version (since = "2.40")]
  2168. public bool has_key (string name);
  2169. [CCode (array_length = false, array_null_terminated = true)]
  2170. [Version (since = "2.44")]
  2171. public string[] list_children ();
  2172. [CCode (array_length = false, array_null_terminated = true)]
  2173. [Version (since = "2.46")]
  2174. public string[] list_keys ();
  2175. public GLib.SettingsSchema @ref ();
  2176. public void unref ();
  2177. }
  2178. [CCode (cheader_filename = "gio/gio.h", ref_function = "g_settings_schema_key_ref", type_id = "g_settings_schema_key_get_type ()", unref_function = "g_settings_schema_key_unref")]
  2179. [Compact]
  2180. public class SettingsSchemaKey {
  2181. [Version (since = "2.40")]
  2182. public GLib.Variant get_default_value ();
  2183. [Version (since = "2.34")]
  2184. public unowned string get_description ();
  2185. [Version (since = "2.44")]
  2186. public unowned string get_name ();
  2187. [Version (since = "2.40")]
  2188. public GLib.Variant get_range ();
  2189. [Version (since = "2.34")]
  2190. public unowned string get_summary ();
  2191. [Version (since = "2.40")]
  2192. public unowned GLib.VariantType get_value_type ();
  2193. [Version (since = "2.40")]
  2194. public bool range_check (GLib.Variant value);
  2195. [Version (since = "2.40")]
  2196. public GLib.SettingsSchemaKey @ref ();
  2197. [Version (since = "2.40")]
  2198. public void unref ();
  2199. }
  2200. [CCode (cheader_filename = "gio/gio.h", ref_function = "g_settings_schema_source_ref", type_id = "g_settings_schema_source_get_type ()", unref_function = "g_settings_schema_source_unref")]
  2201. [Compact]
  2202. [Version (since = "2.32")]
  2203. public class SettingsSchemaSource {
  2204. [CCode (has_construct_function = false)]
  2205. public SettingsSchemaSource.from_directory (string directory, GLib.SettingsSchemaSource? parent, bool trusted) throws GLib.Error;
  2206. [CCode (cheader_filename = "gio/gio.h")]
  2207. public static unowned GLib.SettingsSchemaSource get_default ();
  2208. [Version (since = "2.40")]
  2209. public void list_schemas (bool recursive, [CCode (array_length = false, array_null_terminated = true)] out string[] non_relocatable, [CCode (array_length = false, array_null_terminated = true)] out string[] relocatable);
  2210. public GLib.SettingsSchema? lookup (string schema_id, bool recursive);
  2211. public GLib.SettingsSchemaSource @ref ();
  2212. public void unref ();
  2213. }
  2214. [CCode (cheader_filename = "gio/gio.h", type_id = "g_simple_action_get_type ()")]
  2215. public class SimpleAction : GLib.Object, GLib.Action {
  2216. [CCode (has_construct_function = false)]
  2217. [Version (since = "2.28")]
  2218. public SimpleAction (string name, GLib.VariantType? parameter_type);
  2219. [Version (since = "2.28")]
  2220. public void set_enabled (bool enabled);
  2221. [Version (since = "2.30")]
  2222. public void set_state (GLib.Variant value);
  2223. [Version (since = "2.44")]
  2224. public void set_state_hint (GLib.Variant? state_hint);
  2225. [CCode (has_construct_function = false)]
  2226. [Version (since = "2.28")]
  2227. public SimpleAction.stateful (string name, GLib.VariantType? parameter_type, GLib.Variant state);
  2228. [Version (since = "2.28")]
  2229. public signal void activate (GLib.Variant? parameter);
  2230. [Version (since = "2.30")]
  2231. public signal void change_state (GLib.Variant? value);
  2232. }
  2233. [CCode (cheader_filename = "gio/gio.h", type_id = "g_simple_action_group_get_type ()")]
  2234. [Version (since = "2.28")]
  2235. public class SimpleActionGroup : GLib.Object, GLib.ActionGroup, GLib.ActionMap {
  2236. [CCode (has_construct_function = false)]
  2237. public SimpleActionGroup ();
  2238. [Version (deprecated = true, deprecated_since = "2.38", since = "2.30")]
  2239. public void add_entries ([CCode (array_length_cname = "n_entries", array_length_pos = 1.5)] GLib.ActionEntry[] entries, void* user_data);
  2240. [Version (deprecated = true, deprecated_since = "2.38", since = "2.28")]
  2241. public void insert (GLib.Action action);
  2242. [Version (deprecated = true, deprecated_since = "2.38", since = "2.28")]
  2243. public unowned GLib.Action lookup (string action_name);
  2244. [Version (deprecated = true, deprecated_since = "2.38", since = "2.28")]
  2245. public void remove (string action_name);
  2246. }
  2247. [CCode (cheader_filename = "gio/gio.h")]
  2248. public class SimpleAsyncResult : GLib.Object, GLib.AsyncResult, GLib.AsyncResult {
  2249. [CCode (has_construct_function = false)]
  2250. public SimpleAsyncResult (GLib.Object? source_object, void* source_tag);
  2251. [Version (deprecated = true, deprecated_since = "2.46")]
  2252. public void complete ();
  2253. [Version (deprecated = true, deprecated_since = "2.46")]
  2254. public void complete_in_idle ();
  2255. [CCode (has_construct_function = false)]
  2256. [PrintfFormat]
  2257. public SimpleAsyncResult.error (GLib.Object? source_object, GLib.Quark domain, int code, string format, ...);
  2258. [CCode (has_construct_function = false)]
  2259. public SimpleAsyncResult.from_error (GLib.Object? source_object, GLib.Error error);
  2260. [Version (deprecated = true, deprecated_since = "2.46")]
  2261. public bool get_op_res_gboolean ();
  2262. [CCode (simple_generics = true)]
  2263. public unowned T get_op_res_gpointer<T> ();
  2264. [Version (deprecated = true, deprecated_since = "2.46")]
  2265. public ssize_t get_op_res_gssize ();
  2266. [Version (deprecated = true, deprecated_since = "2.46.")]
  2267. public void* get_source_tag ();
  2268. [Version (deprecated = true, deprecated_since = "2.46", since = "2.20")]
  2269. public static bool is_valid (GLib.AsyncResult result, GLib.Object? source, void* source_tag);
  2270. [Version (deprecated = true, deprecated_since = "2.46")]
  2271. public bool propagate_error () throws GLib.Error;
  2272. [CCode (cheader_filename = "gio/gio.h", cname = "g_simple_async_report_gerror_in_idle")]
  2273. [Version (deprecated = true, deprecated_since = "2.46")]
  2274. public static async void report_gerror_in_idle (GLib.Object? object, GLib.Error error);
  2275. [Version (deprecated = true, deprecated_since = "2.46")]
  2276. public void run_in_thread (GLib.SimpleAsyncThreadFunc func, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null);
  2277. [Version (deprecated = true, deprecated_since = "2.46", since = "2.32")]
  2278. public void set_check_cancellable (GLib.Cancellable? check_cancellable);
  2279. [PrintfFormat]
  2280. [Version (deprecated = true, deprecated_since = "2.46")]
  2281. public void set_error (GLib.Quark domain, int code, string format, ...);
  2282. [Version (deprecated = true, deprecated_since = "2.46")]
  2283. public void set_error_va (GLib.Quark domain, int code, string format, va_list args);
  2284. [Version (deprecated = true, deprecated_since = "2.46")]
  2285. public void set_from_error (GLib.Error error);
  2286. [Version (deprecated = true, deprecated_since = "2.46")]
  2287. public void set_handle_cancellation (bool handle_cancellation);
  2288. [Version (deprecated = true, deprecated_since = "2.46")]
  2289. public void set_op_res_gboolean (bool op_res);
  2290. [CCode (simple_generics = true)]
  2291. public void set_op_res_gpointer<T> (owned T op_res);
  2292. [Version (deprecated = true, deprecated_since = "2.46")]
  2293. public void set_op_res_gssize (ssize_t op_res);
  2294. [Version (deprecated = true, deprecated_since = "2.46", since = "2.28")]
  2295. public void take_error (GLib.Error error);
  2296. }
  2297. [CCode (cheader_filename = "gio/gio.h", type_id = "g_simple_io_stream_get_type ()")]
  2298. [Version (since = "2.44")]
  2299. public class SimpleIOStream : GLib.IOStream {
  2300. [CCode (has_construct_function = false, type = "GIOStream*")]
  2301. public SimpleIOStream (GLib.InputStream input_stream, GLib.OutputStream output_stream);
  2302. [NoAccessorMethod]
  2303. public GLib.InputStream input_stream { owned get; construct; }
  2304. [NoAccessorMethod]
  2305. public GLib.OutputStream output_stream { owned get; construct; }
  2306. }
  2307. [CCode (cheader_filename = "gio/gio.h", type_id = "g_simple_permission_get_type ()")]
  2308. public class SimplePermission : GLib.Permission {
  2309. [CCode (has_construct_function = false, type = "GPermission*")]
  2310. [Version (since = "2.26")]
  2311. public SimplePermission (bool allowed);
  2312. }
  2313. [CCode (cheader_filename = "gio/gio.h", type_id = "g_simple_proxy_resolver_get_type ()")]
  2314. public class SimpleProxyResolver : GLib.Object, GLib.ProxyResolver {
  2315. [CCode (has_construct_function = false)]
  2316. protected SimpleProxyResolver ();
  2317. [Version (since = "2.36")]
  2318. public static GLib.ProxyResolver @new (string? default_proxy, string? ignore_hosts);
  2319. [Version (since = "2.36")]
  2320. public void set_default_proxy (string default_proxy);
  2321. [Version (since = "2.36")]
  2322. public void set_ignore_hosts (string ignore_hosts);
  2323. [Version (since = "2.36")]
  2324. public void set_uri_proxy (string uri_scheme, string proxy);
  2325. [NoAccessorMethod]
  2326. public string default_proxy { owned get; set; }
  2327. [CCode (array_length = false, array_null_terminated = true)]
  2328. [NoAccessorMethod]
  2329. public string[] ignore_hosts { owned get; set; }
  2330. }
  2331. [CCode (cheader_filename = "gio/gio.h", type_id = "g_socket_get_type ()")]
  2332. [Version (since = "2.22")]
  2333. public class Socket : GLib.Object, GLib.DatagramBased, GLib.Initable {
  2334. [CCode (has_construct_function = false)]
  2335. public Socket (GLib.SocketFamily family, GLib.SocketType type, GLib.SocketProtocol protocol) throws GLib.Error;
  2336. public GLib.Socket accept (GLib.Cancellable? cancellable = null) throws GLib.Error;
  2337. public bool bind (GLib.SocketAddress address, bool allow_reuse) throws GLib.Error;
  2338. public bool check_connect_result () throws GLib.Error;
  2339. public bool close () throws GLib.Error;
  2340. [Version (since = "2.32")]
  2341. public bool condition_timed_wait (GLib.IOCondition condition, int64 timeout, GLib.Cancellable? cancellable = null) throws GLib.Error;
  2342. public bool connect (GLib.SocketAddress address, GLib.Cancellable? cancellable = null) throws GLib.Error;
  2343. [CCode (cname = "g_socket_create_source")]
  2344. public GLib.SocketSource create_socket_source (GLib.IOCondition condition, GLib.Cancellable? cancellable = null);
  2345. [CCode (has_construct_function = false)]
  2346. public Socket.from_fd (int fd) throws GLib.Error;
  2347. [Version (since = "2.32")]
  2348. public ssize_t get_available_bytes ();
  2349. public bool get_blocking ();
  2350. [Version (since = "2.32")]
  2351. public bool get_broadcast ();
  2352. [Version (since = "2.26")]
  2353. public GLib.Credentials get_credentials () throws GLib.Error;
  2354. public GLib.SocketFamily get_family ();
  2355. public int get_fd ();
  2356. public bool get_keepalive ();
  2357. public int get_listen_backlog ();
  2358. public GLib.SocketAddress get_local_address () throws GLib.Error;
  2359. [Version (since = "2.32")]
  2360. public bool get_multicast_loopback ();
  2361. [Version (since = "2.32")]
  2362. public uint get_multicast_ttl ();
  2363. [Version (since = "2.36")]
  2364. public bool get_option (int level, int optname, out int value) throws GLib.Error;
  2365. public GLib.SocketProtocol get_protocol ();
  2366. public GLib.SocketAddress get_remote_address () throws GLib.Error;
  2367. public GLib.SocketType get_socket_type ();
  2368. [Version (since = "2.26")]
  2369. public uint get_timeout ();
  2370. [Version (since = "2.32")]
  2371. public uint get_ttl ();
  2372. public bool is_closed ();
  2373. public bool is_connected ();
  2374. [Version (since = "2.32")]
  2375. public bool join_multicast_group (GLib.InetAddress group, bool source_specific, string? iface) throws GLib.Error;
  2376. [Version (since = "2.32")]
  2377. public bool leave_multicast_group (GLib.InetAddress group, bool source_specific, string? iface) throws GLib.Error;
  2378. public bool listen () throws GLib.Error;
  2379. public ssize_t receive ([CCode (array_length_cname = "size", array_length_pos = 1.5, array_length_type = "gsize")] uint8[] buffer, GLib.Cancellable? cancellable = null) throws GLib.Error;
  2380. public ssize_t receive_from (out GLib.SocketAddress address, [CCode (array_length_cname = "size", array_length_pos = 2.5, array_length_type = "gsize")] uint8[] buffer, GLib.Cancellable? cancellable = null) throws GLib.Error;
  2381. public ssize_t receive_message (out GLib.SocketAddress? address, [CCode (array_length_cname = "num_vectors", array_length_pos = 2.5)] GLib.InputVector[] vectors, [CCode (array_length_cname = "num_messages", array_length_pos = 3.5)] out GLib.SocketControlMessage[]? messages, ref int flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
  2382. [Version (since = "2.26")]
  2383. public ssize_t receive_with_blocking ([CCode (array_length_cname = "size", array_length_pos = 1.5, array_length_type = "gsize")] uint8[] buffer, bool blocking, GLib.Cancellable? cancellable = null) throws GLib.Error;
  2384. public ssize_t send ([CCode (array_length_cname = "size", array_length_pos = 1.5, array_length_type = "gsize")] uint8[] buffer, GLib.Cancellable? cancellable = null) throws GLib.Error;
  2385. public ssize_t send_message (GLib.SocketAddress? address, [CCode (array_length_cname = "num_vectors", array_length_pos = 2.5)] GLib.OutputVector[] vectors, [CCode (array_length_cname = "num_messages", array_length_pos = 3.5)] GLib.SocketControlMessage[]? messages, int flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
  2386. public ssize_t send_to (GLib.SocketAddress? address, [CCode (array_length_cname = "size", array_length_pos = 2.5, array_length_type = "gsize")] uint8[] buffer, GLib.Cancellable? cancellable = null) throws GLib.Error;
  2387. [Version (since = "2.26")]
  2388. public ssize_t send_with_blocking ([CCode (array_length_cname = "size", array_length_pos = 1.5, array_length_type = "gsize")] uint8[] buffer, bool blocking, GLib.Cancellable? cancellable = null) throws GLib.Error;
  2389. public void set_blocking (bool blocking);
  2390. [Version (since = "2.32")]
  2391. public void set_broadcast (bool broadcast);
  2392. public void set_keepalive (bool keepalive);
  2393. public void set_listen_backlog (int backlog);
  2394. [Version (since = "2.32")]
  2395. public void set_multicast_loopback (bool loopback);
  2396. [Version (since = "2.32")]
  2397. public void set_multicast_ttl (uint ttl);
  2398. [Version (since = "2.36")]
  2399. public bool set_option (int level, int optname, int value) throws GLib.Error;
  2400. [Version (since = "2.26")]
  2401. public void set_timeout (uint timeout);
  2402. [Version (since = "2.32")]
  2403. public void set_ttl (uint ttl);
  2404. public bool shutdown (bool shutdown_read, bool shutdown_write) throws GLib.Error;
  2405. public bool speaks_ipv4 ();
  2406. public bool blocking { get; set; }
  2407. [Version (since = "2.32")]
  2408. public bool broadcast { get; set; }
  2409. public GLib.SocketFamily family { get; construct; }
  2410. public int fd { get; construct; }
  2411. public bool keepalive { get; set; }
  2412. public int listen_backlog { get; set; }
  2413. public GLib.SocketAddress local_address { owned get; }
  2414. [Version (since = "2.32")]
  2415. public bool multicast_loopback { get; set; }
  2416. [Version (since = "2.32")]
  2417. public uint multicast_ttl { get; set; }
  2418. public GLib.SocketProtocol protocol { get; construct; }
  2419. public GLib.SocketAddress remote_address { owned get; }
  2420. [Version (since = "2.26")]
  2421. public uint timeout { get; set; }
  2422. [Version (since = "2.32")]
  2423. public uint ttl { get; set; }
  2424. [NoAccessorMethod]
  2425. public GLib.SocketType type { get; construct; }
  2426. }
  2427. [CCode (cheader_filename = "gio/gio.h", type_id = "g_socket_address_get_type ()")]
  2428. public abstract class SocketAddress : GLib.Object, GLib.SocketConnectable {
  2429. [CCode (has_construct_function = false)]
  2430. protected SocketAddress ();
  2431. [CCode (has_construct_function = false)]
  2432. [Version (since = "2.22")]
  2433. public SocketAddress.from_native (void* native, size_t len);
  2434. [Version (since = "2.22")]
  2435. public virtual GLib.SocketFamily get_family ();
  2436. [Version (since = "2.22")]
  2437. public virtual ssize_t get_native_size ();
  2438. [Version (since = "2.22")]
  2439. public virtual bool to_native (void* dest, size_t destlen) throws GLib.Error;
  2440. public GLib.SocketFamily family { get; }
  2441. }
  2442. [CCode (cheader_filename = "gio/gio.h", type_id = "g_socket_address_enumerator_get_type ()")]
  2443. public abstract class SocketAddressEnumerator : GLib.Object {
  2444. [CCode (has_construct_function = false)]
  2445. protected SocketAddressEnumerator ();
  2446. public virtual GLib.SocketAddress next (GLib.Cancellable? cancellable = null) throws GLib.Error;
  2447. public virtual async GLib.SocketAddress next_async (GLib.Cancellable? cancellable = null) throws GLib.Error;
  2448. }
  2449. [CCode (cheader_filename = "gio/gio.h", type_id = "g_socket_client_get_type ()")]
  2450. [Version (since = "2.22")]
  2451. public class SocketClient : GLib.Object {
  2452. [CCode (has_construct_function = false)]
  2453. public SocketClient ();
  2454. public void add_application_proxy (string protocol);
  2455. public GLib.SocketConnection connect (GLib.SocketConnectable connectable, GLib.Cancellable? cancellable = null) throws GLib.Error;
  2456. public async GLib.SocketConnection connect_async (GLib.SocketConnectable connectable, GLib.Cancellable? cancellable = null) throws GLib.Error;
  2457. public GLib.SocketConnection connect_to_host (string host_and_port, uint16 default_port, GLib.Cancellable? cancellable = null) throws GLib.Error;
  2458. public async GLib.SocketConnection connect_to_host_async (string host_and_port, uint16 default_port, GLib.Cancellable? cancellable = null) throws GLib.Error;
  2459. public GLib.SocketConnection connect_to_service (string domain, string service, GLib.Cancellable? cancellable = null) throws GLib.Error;
  2460. public async GLib.SocketConnection connect_to_service_async (string domain, string service, GLib.Cancellable? cancellable = null) throws GLib.Error;
  2461. [Version (since = "2.26")]
  2462. public GLib.SocketConnection connect_to_uri (string uri, uint16 default_port, GLib.Cancellable? cancellable = null) throws GLib.Error;
  2463. [Version (since = "2.26")]
  2464. public async GLib.SocketConnection connect_to_uri_async (string uri, uint16 default_port, GLib.Cancellable? cancellable = null) throws GLib.Error;
  2465. [Version (since = "2.26")]
  2466. public bool get_enable_proxy ();
  2467. public GLib.SocketFamily get_family ();
  2468. public unowned GLib.SocketAddress get_local_address ();
  2469. public GLib.SocketProtocol get_protocol ();
  2470. [Version (since = "2.36")]
  2471. public unowned GLib.ProxyResolver get_proxy_resolver ();
  2472. public GLib.SocketType get_socket_type ();
  2473. [Version (since = "2.26")]
  2474. public uint get_timeout ();
  2475. [Version (since = "2.28")]
  2476. public bool get_tls ();
  2477. [Version (since = "2.28")]
  2478. public GLib.TlsCertificateFlags get_tls_validation_flags ();
  2479. [Version (since = "2.26")]
  2480. public void set_enable_proxy (bool enable);
  2481. public void set_family (GLib.SocketFamily family);
  2482. public void set_local_address (GLib.SocketAddress? address);
  2483. public void set_protocol (GLib.SocketProtocol protocol);
  2484. [Version (since = "2.36")]
  2485. public void set_proxy_resolver (GLib.ProxyResolver? proxy_resolver);
  2486. public void set_socket_type (GLib.SocketType type);
  2487. [Version (since = "2.26")]
  2488. public void set_timeout (uint timeout);
  2489. [Version (since = "2.28")]
  2490. public void set_tls (bool tls);
  2491. [Version (since = "2.28")]
  2492. public void set_tls_validation_flags (GLib.TlsCertificateFlags flags);
  2493. public bool enable_proxy { get; set construct; }
  2494. public GLib.SocketFamily family { get; set construct; }
  2495. public GLib.SocketAddress local_address { get; set construct; }
  2496. public GLib.SocketProtocol protocol { get; set construct; }
  2497. [Version (since = "2.36")]
  2498. public GLib.ProxyResolver proxy_resolver { get; set construct; }
  2499. public uint timeout { get; set construct; }
  2500. public bool tls { get; set construct; }
  2501. public GLib.TlsCertificateFlags tls_validation_flags { get; set construct; }
  2502. [NoAccessorMethod]
  2503. public GLib.SocketType type { get; set construct; }
  2504. [Version (since = "2.32")]
  2505. public virtual signal void event (GLib.SocketClientEvent event, GLib.SocketConnectable connectable, GLib.IOStream? connection);
  2506. }
  2507. [CCode (cheader_filename = "gio/gio.h")]
  2508. [Version (since = "2.22")]
  2509. public class SocketConnection : GLib.IOStream {
  2510. [CCode (has_construct_function = false)]
  2511. protected SocketConnection ();
  2512. [Version (since = "2.32")]
  2513. public bool connect (GLib.SocketAddress address, GLib.Cancellable? cancellable = null) throws GLib.Error;
  2514. [Version (since = "2.32")]
  2515. public async bool connect_async (GLib.SocketAddress address, GLib.Cancellable? cancellable = null) throws GLib.Error;
  2516. public static GLib.SocketConnection factory_create_connection (GLib.Socket socket);
  2517. public static GLib.Type factory_lookup_type (GLib.SocketFamily family, GLib.SocketType type, int protocol_id);
  2518. public static void factory_register_type (GLib.Type g_type, GLib.SocketFamily family, GLib.SocketType type, int protocol);
  2519. public GLib.SocketAddress get_local_address () throws GLib.Error;
  2520. public GLib.SocketAddress get_remote_address () throws GLib.Error;
  2521. public unowned GLib.Socket get_socket ();
  2522. [Version (since = "2.32")]
  2523. public bool is_connected ();
  2524. public GLib.Socket socket { get; construct; }
  2525. }
  2526. [CCode (cheader_filename = "gio/gio.h", type_id = "g_socket_control_message_get_type ()")]
  2527. public abstract class SocketControlMessage : GLib.Object {
  2528. [CCode (has_construct_function = false)]
  2529. protected SocketControlMessage ();
  2530. [Version (since = "2.22")]
  2531. public static GLib.SocketControlMessage deserialize (int level, int type, [CCode (array_length_cname = "size", array_length_pos = 2.5, array_length_type = "gsize")] uint8[] data);
  2532. [Version (since = "2.22")]
  2533. public virtual int get_level ();
  2534. [Version (since = "2.22")]
  2535. public int get_msg_type ();
  2536. [Version (since = "2.22")]
  2537. public virtual size_t get_size ();
  2538. [NoWrapper]
  2539. public virtual int get_type ();
  2540. [Version (since = "2.22")]
  2541. public virtual void serialize ([CCode (array_length = false, type = "gpointer")] uint8[] data);
  2542. }
  2543. [CCode (cheader_filename = "gio/gio.h", type_id = "g_socket_listener_get_type ()")]
  2544. [Version (since = "2.22")]
  2545. public class SocketListener : GLib.Object {
  2546. [CCode (has_construct_function = false)]
  2547. public SocketListener ();
  2548. public GLib.SocketConnection accept (out unowned GLib.Object source_object = null, GLib.Cancellable? cancellable = null) throws GLib.Error;
  2549. public async GLib.SocketConnection accept_async (GLib.Cancellable? cancellable = null, out unowned GLib.Object source_object = null) throws GLib.Error;
  2550. public GLib.Socket accept_socket (out unowned GLib.Object source_object = null, GLib.Cancellable? cancellable = null) throws GLib.Error;
  2551. public async GLib.Socket accept_socket_async (GLib.Cancellable? cancellable = null, out unowned GLib.Object source_object = null) throws GLib.Error;
  2552. public bool add_address (GLib.SocketAddress address, GLib.SocketType type, GLib.SocketProtocol protocol, GLib.Object? source_object, out GLib.SocketAddress effective_address) throws GLib.Error;
  2553. [Version (since = "2.24")]
  2554. public uint16 add_any_inet_port (GLib.Object? source_object) throws GLib.Error;
  2555. public bool add_inet_port (uint16 port, GLib.Object? source_object) throws GLib.Error;
  2556. public bool add_socket (GLib.Socket socket, GLib.Object? source_object) throws GLib.Error;
  2557. [NoWrapper]
  2558. public virtual void changed ();
  2559. public void close ();
  2560. public void set_backlog (int listen_backlog);
  2561. [NoAccessorMethod]
  2562. public int listen_backlog { get; set construct; }
  2563. [Version (since = "2.46")]
  2564. public virtual signal void event (GLib.SocketListenerEvent event, GLib.Socket socket);
  2565. }
  2566. [CCode (cheader_filename = "gio/gio.h", type_id = "g_socket_service_get_type ()")]
  2567. [Version (since = "2.22")]
  2568. public class SocketService : GLib.SocketListener {
  2569. [CCode (has_construct_function = false)]
  2570. public SocketService ();
  2571. public bool is_active ();
  2572. public void start ();
  2573. public void stop ();
  2574. [NoAccessorMethod]
  2575. [Version (since = "2.46")]
  2576. public bool active { get; set construct; }
  2577. public virtual signal bool incoming (GLib.SocketConnection connection, GLib.Object? source_object);
  2578. }
  2579. [CCode (cheader_filename = "gio/gio.h", cname = "GSource", ref_function = "g_source_ref", unref_function = "g_source_unref")]
  2580. [Compact]
  2581. public class SocketSource : GLib.Source {
  2582. [CCode (cname = "g_source_set_callback")]
  2583. public void set_callback ([CCode (type = "GSourceFunc")] owned GLib.SocketSourceFunc func);
  2584. }
  2585. [CCode (cheader_filename = "gio/gio.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "g_srv_target_get_type ()")]
  2586. [Compact]
  2587. public class SrvTarget {
  2588. [CCode (has_construct_function = false)]
  2589. [Version (since = "2.22")]
  2590. public SrvTarget (string hostname, uint16 port, uint16 priority, uint16 weight);
  2591. [Version (since = "2.22")]
  2592. public GLib.SrvTarget copy ();
  2593. [Version (since = "2.22")]
  2594. public void free ();
  2595. [Version (since = "2.22")]
  2596. public unowned string get_hostname ();
  2597. [Version (since = "2.22")]
  2598. public uint16 get_port ();
  2599. [Version (since = "2.22")]
  2600. public uint16 get_priority ();
  2601. [Version (since = "2.22")]
  2602. public uint16 get_weight ();
  2603. [CCode (cheader_filename = "gio/gio.h")]
  2604. [Version (since = "2.22")]
  2605. public static GLib.List<GLib.SrvTarget> list_sort (owned GLib.List<GLib.SrvTarget> targets);
  2606. }
  2607. [CCode (cheader_filename = "gio/gio.h", type_id = "g_subprocess_get_type ()")]
  2608. [Version (since = "2.40")]
  2609. public class Subprocess : GLib.Object, GLib.Initable {
  2610. [CCode (has_construct_function = false)]
  2611. public Subprocess (GLib.SubprocessFlags flags, ...) throws GLib.Error;
  2612. public bool communicate (GLib.Bytes? stdin_buf, GLib.Cancellable? cancellable, out GLib.Bytes stdout_buf, out GLib.Bytes stderr_buf) throws GLib.Error;
  2613. public async bool communicate_async (GLib.Bytes? stdin_buf, GLib.Cancellable? cancellable, out GLib.Bytes stdout_buf, out GLib.Bytes stderr_buf) throws GLib.Error;
  2614. public bool communicate_utf8 (string? stdin_buf, GLib.Cancellable? cancellable, out string stdout_buf, out string stderr_buf) throws GLib.Error;
  2615. public async bool communicate_utf8_async (string? stdin_buf, GLib.Cancellable? cancellable, out string stdout_buf, out string stderr_buf) throws GLib.Error;
  2616. public void force_exit ();
  2617. public int get_exit_status ();
  2618. public unowned string get_identifier ();
  2619. public bool get_if_exited ();
  2620. public bool get_if_signaled ();
  2621. public int get_status ();
  2622. public unowned GLib.InputStream get_stderr_pipe ();
  2623. public unowned GLib.OutputStream get_stdin_pipe ();
  2624. public unowned GLib.InputStream get_stdout_pipe ();
  2625. public bool get_successful ();
  2626. public int get_term_sig ();
  2627. [CCode (cname = "g_subprocess_newv", has_construct_function = false)]
  2628. public Subprocess.newv ([CCode (array_length = false, array_null_terminated = true)] string[] argv, GLib.SubprocessFlags flags) throws GLib.Error;
  2629. public void send_signal (int signal_num);
  2630. public bool wait (GLib.Cancellable? cancellable = null) throws GLib.Error;
  2631. public async bool wait_async (GLib.Cancellable? cancellable = null) throws GLib.Error;
  2632. public bool wait_check (GLib.Cancellable? cancellable = null) throws GLib.Error;
  2633. public async bool wait_check_async (GLib.Cancellable? cancellable = null) throws GLib.Error;
  2634. [CCode (array_length = false, array_null_terminated = true)]
  2635. public string[] argv { construct; }
  2636. public GLib.SubprocessFlags flags { construct; }
  2637. }
  2638. [CCode (cheader_filename = "gio/gio.h", type_id = "g_subprocess_launcher_get_type ()")]
  2639. [Version (since = "2.40")]
  2640. public class SubprocessLauncher : GLib.Object {
  2641. [CCode (has_construct_function = false)]
  2642. public SubprocessLauncher (GLib.SubprocessFlags flags);
  2643. public unowned string getenv (string variable);
  2644. public void set_child_setup (owned GLib.SpawnChildSetupFunc child_setup);
  2645. public void set_cwd (string cwd);
  2646. public void set_environ (string env);
  2647. public void set_flags (GLib.SubprocessFlags flags);
  2648. public void set_stderr_file_path (string path);
  2649. public void set_stdin_file_path (string path);
  2650. public void set_stdout_file_path (string path);
  2651. public void setenv (string variable, string value, bool overwrite);
  2652. public GLib.Subprocess spawnv ([CCode (array_length = false, array_null_terminated = true)] string[] argv) throws GLib.Error;
  2653. public void take_fd (int source_fd, int target_fd);
  2654. public void take_stderr_fd (int fd);
  2655. public void take_stdin_fd (int fd);
  2656. public void take_stdout_fd (int fd);
  2657. public void unsetenv (string variable);
  2658. public GLib.SubprocessFlags flags { construct; }
  2659. }
  2660. [CCode (cheader_filename = "gio/gio.h", type_id = "g_task_get_type ()")]
  2661. public class Task : GLib.Object, GLib.AsyncResult {
  2662. [CCode (has_construct_function = false)]
  2663. [Version (since = "2.36")]
  2664. public async Task (GLib.Object? source_object, GLib.Cancellable? cancellable = null);
  2665. [Version (since = "2.36")]
  2666. public unowned GLib.Cancellable get_cancellable ();
  2667. [Version (since = "2.36")]
  2668. public bool get_check_cancellable ();
  2669. [Version (since = "2.44")]
  2670. public bool get_completed ();
  2671. [Version (since = "2.36")]
  2672. public unowned GLib.MainContext get_context ();
  2673. [Version (since = "2.36")]
  2674. public int get_priority ();
  2675. [Version (since = "2.36")]
  2676. public bool get_return_on_cancel ();
  2677. [Version (since = "2.36")]
  2678. public void* get_source_tag ();
  2679. [Version (since = "2.36")]
  2680. public void* get_task_data ();
  2681. [Version (since = "2.36")]
  2682. public bool had_error ();
  2683. [Version (since = "2.36")]
  2684. public static bool is_valid (GLib.AsyncResult result, GLib.Object? source_object);
  2685. [Version (since = "2.36")]
  2686. public bool propagate_boolean () throws GLib.Error;
  2687. [Version (since = "2.36")]
  2688. public ssize_t propagate_int () throws GLib.Error;
  2689. [Version (since = "2.36")]
  2690. public void* propagate_pointer () throws GLib.Error;
  2691. [Version (since = "2.36")]
  2692. public static async void report_error (GLib.Object? source_object, void* source_tag, owned GLib.Error error);
  2693. [Version (since = "2.36")]
  2694. public void return_boolean (bool result);
  2695. [Version (since = "2.36")]
  2696. public void return_error (owned GLib.Error error);
  2697. [Version (since = "2.36")]
  2698. public bool return_error_if_cancelled ();
  2699. [Version (since = "2.36")]
  2700. public void return_int (ssize_t result);
  2701. [Version (since = "2.36")]
  2702. public void return_pointer (owned void* result, GLib.DestroyNotify? result_destroy);
  2703. [Version (since = "2.36")]
  2704. public void set_check_cancellable (bool check_cancellable);
  2705. [Version (since = "2.36")]
  2706. public void set_priority (int priority);
  2707. [Version (since = "2.36")]
  2708. public bool set_return_on_cancel (bool return_on_cancel);
  2709. [Version (since = "2.36")]
  2710. public void set_source_tag (void* source_tag);
  2711. [Version (since = "2.36")]
  2712. public void set_task_data (void* task_data, GLib.DestroyNotify? task_data_destroy);
  2713. [Version (since = "2.44")]
  2714. public bool completed { get; }
  2715. }
  2716. [CCode (cheader_filename = "gio/gio.h", type_id = "g_tcp_connection_get_type ()")]
  2717. [Version (since = "2.22")]
  2718. public class TcpConnection : GLib.SocketConnection {
  2719. [CCode (has_construct_function = false)]
  2720. protected TcpConnection ();
  2721. public bool get_graceful_disconnect ();
  2722. public void set_graceful_disconnect (bool graceful_disconnect);
  2723. public bool graceful_disconnect { get; set; }
  2724. }
  2725. [CCode (cheader_filename = "gio/gio.h", type_id = "g_tcp_wrapper_connection_get_type ()")]
  2726. public class TcpWrapperConnection : GLib.TcpConnection {
  2727. [CCode (has_construct_function = false, type = "GSocketConnection*")]
  2728. [Version (since = "2.28")]
  2729. public TcpWrapperConnection (GLib.IOStream base_io_stream, GLib.Socket socket);
  2730. public unowned GLib.IOStream get_base_io_stream ();
  2731. public GLib.IOStream base_io_stream { get; construct; }
  2732. }
  2733. [CCode (cheader_filename = "gio/gio.h", type_id = "g_test_dbus_get_type ()")]
  2734. [Version (since = "2.34")]
  2735. public class TestDBus : GLib.Object {
  2736. [CCode (has_construct_function = false)]
  2737. public TestDBus (GLib.TestDBusFlags flags);
  2738. public void add_service_dir (string path);
  2739. public void down ();
  2740. public unowned string? get_bus_address ();
  2741. public GLib.TestDBusFlags get_flags ();
  2742. public void stop ();
  2743. public static void unset ();
  2744. public void up ();
  2745. public GLib.TestDBusFlags flags { get; construct; }
  2746. }
  2747. [CCode (cheader_filename = "gio/gio.h", type_id = "g_themed_icon_get_type ()")]
  2748. public class ThemedIcon : GLib.Object, GLib.Icon {
  2749. [CCode (has_construct_function = false, type = "GIcon*")]
  2750. public ThemedIcon (string iconname);
  2751. public void append_name (string iconname);
  2752. [CCode (has_construct_function = false, type = "GIcon*")]
  2753. public ThemedIcon.from_names ([CCode (array_length_cname = "len", array_length_pos = 1.1)] string[] iconnames);
  2754. [CCode (array_length = false, array_null_terminated = true)]
  2755. public unowned string[] get_names ();
  2756. [Version (since = "2.18")]
  2757. public void prepend_name (string iconname);
  2758. [CCode (has_construct_function = false, type = "GIcon*")]
  2759. public ThemedIcon.with_default_fallbacks (string iconname);
  2760. public string name { construct; }
  2761. [CCode (array_length = false, array_null_terminated = true)]
  2762. public string[] names { get; construct; }
  2763. [NoAccessorMethod]
  2764. public bool use_default_fallbacks { get; construct; }
  2765. }
  2766. [CCode (cheader_filename = "gio/gio.h", type_id = "g_threaded_socket_service_get_type ()")]
  2767. [Version (since = "2.22")]
  2768. public class ThreadedSocketService : GLib.SocketService {
  2769. [CCode (has_construct_function = false, type = "GSocketService*")]
  2770. public ThreadedSocketService (int max_threads);
  2771. [NoAccessorMethod]
  2772. public int max_threads { get; construct; }
  2773. public virtual signal bool run (GLib.SocketConnection connection, GLib.Object source_object);
  2774. }
  2775. [CCode (cheader_filename = "gio/gio.h", type_id = "g_tls_certificate_get_type ()")]
  2776. [Version (since = "2.28")]
  2777. public class TlsCertificate : GLib.Object {
  2778. [CCode (has_construct_function = false)]
  2779. protected TlsCertificate ();
  2780. [CCode (has_construct_function = false)]
  2781. public TlsCertificate.from_file (string file) throws GLib.Error;
  2782. [CCode (has_construct_function = false)]
  2783. public TlsCertificate.from_files (string cert_file, string key_file) throws GLib.Error;
  2784. [CCode (has_construct_function = false)]
  2785. public TlsCertificate.from_pem (string data, ssize_t length) throws GLib.Error;
  2786. public unowned GLib.TlsCertificate get_issuer ();
  2787. [Version (since = "2.34")]
  2788. public bool is_same (GLib.TlsCertificate cert_two);
  2789. public static GLib.List<GLib.TlsCertificate> list_new_from_file (string file) throws GLib.Error;
  2790. public virtual GLib.TlsCertificateFlags verify (GLib.SocketConnectable? identity, GLib.TlsCertificate? trusted_ca);
  2791. [NoAccessorMethod]
  2792. public GLib.ByteArray certificate { owned get; construct; }
  2793. [NoAccessorMethod]
  2794. public string certificate_pem { owned get; construct; }
  2795. public GLib.TlsCertificate issuer { get; construct; }
  2796. public GLib.ByteArray private_key { construct; }
  2797. public string private_key_pem { construct; }
  2798. }
  2799. [CCode (cheader_filename = "gio/gio.h", type_id = "g_tls_connection_get_type ()")]
  2800. [Version (since = "2.28")]
  2801. public abstract class TlsConnection : GLib.IOStream {
  2802. [CCode (has_construct_function = false)]
  2803. protected TlsConnection ();
  2804. public bool emit_accept_certificate (GLib.TlsCertificate peer_cert, GLib.TlsCertificateFlags errors);
  2805. public unowned GLib.TlsCertificate get_certificate ();
  2806. [Version (since = "2.30")]
  2807. public unowned GLib.TlsDatabase get_database ();
  2808. [Version (since = "2.30")]
  2809. public unowned GLib.TlsInteraction get_interaction ();
  2810. public unowned GLib.TlsCertificate get_peer_certificate ();
  2811. public GLib.TlsCertificateFlags get_peer_certificate_errors ();
  2812. public GLib.TlsRehandshakeMode get_rehandshake_mode ();
  2813. public bool get_require_close_notify ();
  2814. [Version (deprecated = true, deprecated_since = "2.30")]
  2815. public bool get_use_system_certdb ();
  2816. public virtual bool handshake (GLib.Cancellable? cancellable = null) throws GLib.Error;
  2817. public virtual async bool handshake_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
  2818. public void set_certificate (GLib.TlsCertificate certificate);
  2819. [Version (since = "2.30")]
  2820. public void set_database (GLib.TlsDatabase database);
  2821. [Version (since = "2.30")]
  2822. public void set_interaction (GLib.TlsInteraction? interaction);
  2823. public void set_rehandshake_mode (GLib.TlsRehandshakeMode mode);
  2824. public void set_require_close_notify (bool require_close_notify);
  2825. [Version (deprecated = true, deprecated_since = "2.30")]
  2826. public void set_use_system_certdb (bool use_system_certdb);
  2827. [NoAccessorMethod]
  2828. public GLib.IOStream base_io_stream { owned get; construct; }
  2829. public GLib.TlsCertificate certificate { get; set; }
  2830. [Version (since = "2.30")]
  2831. public GLib.TlsDatabase database { get; set; }
  2832. [Version (since = "2.30")]
  2833. public GLib.TlsInteraction interaction { get; set; }
  2834. public GLib.TlsCertificate peer_certificate { get; }
  2835. public GLib.TlsCertificateFlags peer_certificate_errors { get; }
  2836. public GLib.TlsRehandshakeMode rehandshake_mode { get; set construct; }
  2837. public bool require_close_notify { get; set construct; }
  2838. [Version (deprecated = true, deprecated_since = "2.30")]
  2839. public bool use_system_certdb { get; set construct; }
  2840. public virtual signal bool accept_certificate (GLib.TlsCertificate peer_cert, GLib.TlsCertificateFlags errors);
  2841. }
  2842. [CCode (cheader_filename = "gio/gio.h", type_id = "g_tls_database_get_type ()")]
  2843. [Version (since = "2.30")]
  2844. public abstract class TlsDatabase : GLib.Object {
  2845. [CCode (cheader_filename = "gio/gio.h", cname = "G_TLS_DATABASE_PURPOSE_AUTHENTICATE_CLIENT")]
  2846. public const string PURPOSE_AUTHENTICATE_CLIENT;
  2847. [CCode (cheader_filename = "gio/gio.h", cname = "G_TLS_DATABASE_PURPOSE_AUTHENTICATE_SERVER")]
  2848. public const string PURPOSE_AUTHENTICATE_SERVER;
  2849. [CCode (has_construct_function = false)]
  2850. protected TlsDatabase ();
  2851. public virtual string? create_certificate_handle (GLib.TlsCertificate certificate);
  2852. public virtual GLib.TlsCertificate? lookup_certificate_for_handle (string handle, GLib.TlsInteraction? interaction, GLib.TlsDatabaseLookupFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
  2853. public virtual async GLib.TlsCertificate lookup_certificate_for_handle_async (string handle, GLib.TlsInteraction? interaction, GLib.TlsDatabaseLookupFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
  2854. public virtual GLib.TlsCertificate lookup_certificate_issuer (GLib.TlsCertificate certificate, GLib.TlsInteraction? interaction, GLib.TlsDatabaseLookupFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
  2855. public virtual async GLib.TlsCertificate lookup_certificate_issuer_async (GLib.TlsCertificate certificate, GLib.TlsInteraction? interaction, GLib.TlsDatabaseLookupFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
  2856. public virtual GLib.List<GLib.TlsCertificate> lookup_certificates_issued_by (GLib.ByteArray issuer_raw_dn, GLib.TlsInteraction? interaction, GLib.TlsDatabaseLookupFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
  2857. public virtual async GLib.List<GLib.TlsCertificate> lookup_certificates_issued_by_async (GLib.ByteArray issuer_raw_dn, GLib.TlsInteraction? interaction, GLib.TlsDatabaseLookupFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
  2858. public virtual GLib.TlsCertificateFlags verify_chain (GLib.TlsCertificate chain, string purpose, GLib.SocketConnectable? identity, GLib.TlsInteraction? interaction, GLib.TlsDatabaseVerifyFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
  2859. public virtual async GLib.TlsCertificateFlags verify_chain_async (GLib.TlsCertificate chain, string purpose, GLib.SocketConnectable? identity, GLib.TlsInteraction? interaction, GLib.TlsDatabaseVerifyFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
  2860. }
  2861. [CCode (cheader_filename = "gio/gio.h", type_id = "g_tls_interaction_get_type ()")]
  2862. [Version (since = "2.30")]
  2863. public class TlsInteraction : GLib.Object {
  2864. [CCode (has_construct_function = false)]
  2865. protected TlsInteraction ();
  2866. public virtual GLib.TlsInteractionResult ask_password (GLib.TlsPassword password, GLib.Cancellable? cancellable = null) throws GLib.Error;
  2867. public virtual async GLib.TlsInteractionResult ask_password_async (GLib.TlsPassword password, GLib.Cancellable? cancellable = null) throws GLib.Error;
  2868. public GLib.TlsInteractionResult invoke_ask_password (GLib.TlsPassword password, GLib.Cancellable? cancellable = null) throws GLib.Error;
  2869. [Version (since = "2.40")]
  2870. public GLib.TlsInteractionResult invoke_request_certificate (GLib.TlsConnection connection, GLib.TlsCertificateRequestFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
  2871. [Version (since = "2.40")]
  2872. public virtual GLib.TlsInteractionResult request_certificate (GLib.TlsConnection connection, GLib.TlsCertificateRequestFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
  2873. [Version (since = "2.40")]
  2874. public virtual async GLib.TlsInteractionResult request_certificate_async (GLib.TlsConnection connection, GLib.TlsCertificateRequestFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
  2875. }
  2876. [CCode (cheader_filename = "gio/gio.h")]
  2877. [Version (since = "2.30")]
  2878. public class TlsPassword : GLib.Object {
  2879. [CCode (has_construct_function = false)]
  2880. public TlsPassword (GLib.TlsPasswordFlags flags, string description);
  2881. [NoWrapper]
  2882. public virtual unowned string get_default_warning ();
  2883. public unowned string get_description ();
  2884. public GLib.TlsPasswordFlags get_flags ();
  2885. [CCode (array_length_pos = 0.1)]
  2886. public virtual unowned uint8[] get_value ();
  2887. public unowned string get_warning ();
  2888. public void set_description (string description);
  2889. public void set_flags (GLib.TlsPasswordFlags flags);
  2890. public void set_value ([CCode (array_length_cname = "length", array_length_pos = 1.1, array_length_type = "gssize", type = "const guchar*")] uint8[] value);
  2891. [CCode (vfunc_name = "set_value")]
  2892. public virtual void set_value_full ([CCode (array_length_cname = "length", array_length_pos = 1.5, array_length_type = "gssize", type = "guchar*")] owned uint8[] value, GLib.DestroyNotify? notify = GLib.g_free);
  2893. public void set_warning (string warning);
  2894. public string description { get; set; }
  2895. public GLib.TlsPasswordFlags flags { get; set; }
  2896. public string warning { get; set; }
  2897. }
  2898. [CCode (cheader_filename = "gio/gunixfdlist.h", type_id = "g_unix_fd_list_get_type ()")]
  2899. public class UnixFDList : GLib.Object {
  2900. [CCode (has_construct_function = false)]
  2901. [Version (since = "2.24")]
  2902. public UnixFDList ();
  2903. [Version (since = "2.24")]
  2904. public int append (int fd) throws GLib.Error;
  2905. [CCode (has_construct_function = false)]
  2906. [Version (since = "2.24")]
  2907. public UnixFDList.from_array ([CCode (array_length_cname = "n_fds", array_length_pos = 1.1)] int[] fds);
  2908. [Version (since = "2.24")]
  2909. public int @get (int index_) throws GLib.Error;
  2910. [Version (since = "2.24")]
  2911. public int get_length ();
  2912. [CCode (array_length_pos = 0.1)]
  2913. [Version (since = "2.24")]
  2914. public unowned int[] peek_fds ();
  2915. [CCode (array_length_pos = 0.1)]
  2916. [Version (since = "2.24")]
  2917. public int[] steal_fds ();
  2918. }
  2919. [CCode (cheader_filename = "gio/gio.h", type_id = "g_vfs_get_type ()")]
  2920. public class Vfs : GLib.Object {
  2921. [CCode (has_construct_function = false)]
  2922. protected Vfs ();
  2923. [NoWrapper]
  2924. public virtual void add_writable_namespaces (GLib.FileAttributeInfoList list);
  2925. public static unowned GLib.Vfs get_default ();
  2926. public virtual GLib.File get_file_for_path (string path);
  2927. public virtual GLib.File get_file_for_uri (string uri);
  2928. public static unowned GLib.Vfs get_local ();
  2929. [CCode (array_length = false, array_null_terminated = true)]
  2930. public virtual unowned string[] get_supported_uri_schemes ();
  2931. public virtual bool is_active ();
  2932. [NoWrapper]
  2933. public virtual void local_file_add_info (string filename, uint64 device, GLib.FileAttributeMatcher attribute_matcher, GLib.FileInfo info, GLib.Cancellable? cancellable = null, void* extra_data = null, GLib.DestroyNotify? free_extra_data = null);
  2934. [NoWrapper]
  2935. public virtual void local_file_moved (string source, string dest);
  2936. [NoWrapper]
  2937. public virtual void local_file_removed (string filename);
  2938. [NoWrapper]
  2939. public virtual bool local_file_set_attributes (string filename, GLib.FileInfo info, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
  2940. public virtual GLib.File parse_name (string parse_name);
  2941. }
  2942. [CCode (cheader_filename = "gio/gio.h")]
  2943. public class VolumeMonitor : GLib.Object {
  2944. [CCode (has_construct_function = false)]
  2945. protected VolumeMonitor ();
  2946. [Version (deprecated = true, deprecated_since = "2.20")]
  2947. public static GLib.Volume adopt_orphan_mount (GLib.Mount mount);
  2948. public static GLib.VolumeMonitor @get ();
  2949. public virtual GLib.List<GLib.Drive> get_connected_drives ();
  2950. public virtual GLib.Mount get_mount_for_uuid (string uuid);
  2951. public virtual GLib.List<GLib.Mount> get_mounts ();
  2952. public virtual GLib.Volume get_volume_for_uuid (string uuid);
  2953. public virtual GLib.List<GLib.Volume> get_volumes ();
  2954. [NoWrapper]
  2955. public virtual bool is_supported ();
  2956. public virtual signal void drive_changed (GLib.Drive drive);
  2957. public virtual signal void drive_connected (GLib.Drive drive);
  2958. public virtual signal void drive_disconnected (GLib.Drive drive);
  2959. [Version (since = "2.18")]
  2960. public virtual signal void drive_eject_button (GLib.Drive drive);
  2961. [Version (since = "2.22")]
  2962. public virtual signal void drive_stop_button (GLib.Drive drive);
  2963. public virtual signal void mount_added (GLib.Mount mount);
  2964. public virtual signal void mount_changed (GLib.Mount mount);
  2965. public virtual signal void mount_pre_unmount (GLib.Mount mount);
  2966. public virtual signal void mount_removed (GLib.Mount mount);
  2967. public virtual signal void volume_added (GLib.Volume volume);
  2968. public virtual signal void volume_changed (GLib.Volume volume);
  2969. public virtual signal void volume_removed (GLib.Volume volume);
  2970. }
  2971. [CCode (cheader_filename = "gio/gio.h", type_id = "g_zlib_compressor_get_type ()")]
  2972. public class ZlibCompressor : GLib.Object, GLib.Converter {
  2973. [CCode (has_construct_function = false)]
  2974. [Version (since = "2.24")]
  2975. public ZlibCompressor (GLib.ZlibCompressorFormat format, int level = -1);
  2976. [Version (since = "2.26")]
  2977. public unowned GLib.FileInfo get_file_info ();
  2978. [Version (since = "2.26")]
  2979. public void set_file_info (GLib.FileInfo? file_info);
  2980. [Version (since = "2.26")]
  2981. public GLib.FileInfo file_info { get; set; }
  2982. [NoAccessorMethod]
  2983. public GLib.ZlibCompressorFormat format { get; construct; }
  2984. [NoAccessorMethod]
  2985. public int level { get; construct; }
  2986. }
  2987. [CCode (cheader_filename = "gio/gio.h", type_id = "g_zlib_decompressor_get_type ()")]
  2988. public class ZlibDecompressor : GLib.Object, GLib.Converter {
  2989. [CCode (has_construct_function = false)]
  2990. [Version (since = "2.24")]
  2991. public ZlibDecompressor (GLib.ZlibCompressorFormat format);
  2992. [Version (since = "2.26")]
  2993. public unowned GLib.FileInfo get_file_info ();
  2994. [Version (since = "2.26")]
  2995. public GLib.FileInfo file_info { get; }
  2996. [NoAccessorMethod]
  2997. public GLib.ZlibCompressorFormat format { get; construct; }
  2998. }
  2999. [CCode (cheader_filename = "gio/gio.h", type_cname = "GActionInterface", type_id = "g_action_get_type ()")]
  3000. public interface Action : GLib.Object {
  3001. [Version (since = "2.28")]
  3002. public abstract void activate (GLib.Variant? parameter);
  3003. [Version (since = "2.30")]
  3004. public abstract void change_state (GLib.Variant value);
  3005. [Version (since = "2.28")]
  3006. public abstract bool get_enabled ();
  3007. [Version (since = "2.28")]
  3008. public abstract unowned string get_name ();
  3009. [Version (since = "2.28")]
  3010. public abstract unowned GLib.VariantType? get_parameter_type ();
  3011. [Version (since = "2.28")]
  3012. public abstract GLib.Variant get_state ();
  3013. [Version (since = "2.28")]
  3014. public abstract GLib.Variant? get_state_hint ();
  3015. [Version (since = "2.28")]
  3016. public abstract unowned GLib.VariantType? get_state_type ();
  3017. [Version (since = "2.38")]
  3018. public static bool name_is_valid (string action_name);
  3019. [Version (since = "2.38")]
  3020. public static bool parse_detailed_name (string detailed_name, out string action_name, out GLib.Variant target_value) throws GLib.Error;
  3021. [Version (since = "2.38")]
  3022. public static string print_detailed_name (string action_name, GLib.Variant? target_value);
  3023. [Version (since = "2.28")]
  3024. public abstract bool enabled { get; }
  3025. [Version (since = "2.28")]
  3026. public abstract string name { get; }
  3027. [Version (since = "2.28")]
  3028. public abstract GLib.VariantType? parameter_type { get; }
  3029. [Version (since = "2.28")]
  3030. public abstract GLib.Variant? state { owned get; }
  3031. [Version (since = "2.28")]
  3032. public abstract GLib.VariantType? state_type { get; }
  3033. }
  3034. [CCode (cheader_filename = "gio/gio.h", type_cname = "GActionGroupInterface", type_id = "g_action_group_get_type ()")]
  3035. public interface ActionGroup : GLib.Object {
  3036. [Version (since = "2.28")]
  3037. public abstract void activate_action (string action_name, GLib.Variant? parameter);
  3038. [Version (since = "2.28")]
  3039. public abstract void change_action_state (string action_name, GLib.Variant value);
  3040. [Version (since = "2.28")]
  3041. public abstract bool get_action_enabled (string action_name);
  3042. [Version (since = "2.28")]
  3043. public abstract unowned GLib.VariantType? get_action_parameter_type (string action_name);
  3044. [Version (since = "2.28")]
  3045. public abstract GLib.Variant? get_action_state (string action_name);
  3046. [Version (since = "2.28")]
  3047. public abstract GLib.Variant? get_action_state_hint (string action_name);
  3048. [Version (since = "2.28")]
  3049. public abstract unowned GLib.VariantType? get_action_state_type (string action_name);
  3050. [Version (since = "2.28")]
  3051. public abstract bool has_action (string action_name);
  3052. [CCode (array_length = false, array_null_terminated = true)]
  3053. [Version (since = "2.28")]
  3054. public abstract string[] list_actions ();
  3055. [Version (since = "2.32")]
  3056. public virtual bool query_action (string action_name, out bool enabled, out GLib.VariantType parameter_type, out GLib.VariantType state_type, out GLib.Variant state_hint, out GLib.Variant state);
  3057. [HasEmitter]
  3058. [Version (since = "2.28")]
  3059. public virtual signal void action_added (string action_name);
  3060. [HasEmitter]
  3061. [Version (since = "2.28")]
  3062. public virtual signal void action_enabled_changed (string action_name, bool enabled);
  3063. [HasEmitter]
  3064. [Version (since = "2.28")]
  3065. public virtual signal void action_removed (string action_name);
  3066. [HasEmitter]
  3067. [Version (since = "2.28")]
  3068. public virtual signal void action_state_changed (string action_name, GLib.Variant state);
  3069. }
  3070. [CCode (cheader_filename = "gio/gio.h", type_cname = "GActionMapInterface", type_id = "g_action_map_get_type ()")]
  3071. public interface ActionMap : GLib.Object {
  3072. [Version (since = "2.32")]
  3073. public abstract void add_action (GLib.Action action);
  3074. [Version (since = "2.32")]
  3075. public void add_action_entries ([CCode (array_length_cname = "n_entries", array_length_pos = 1.5)] GLib.ActionEntry[] entries, void* user_data);
  3076. [Version (since = "2.32")]
  3077. public abstract unowned GLib.Action lookup_action (string action_name);
  3078. [Version (since = "2.32")]
  3079. public abstract void remove_action (string action_name);
  3080. }
  3081. [CCode (cheader_filename = "gio/gio.h", type_id = "g_app_info_get_type ()")]
  3082. public interface AppInfo : GLib.Object {
  3083. public abstract bool add_supports_type (string content_type) throws GLib.Error;
  3084. [Version (since = "2.20")]
  3085. public abstract bool can_delete ();
  3086. public abstract bool can_remove_supports_type ();
  3087. public static GLib.AppInfo create_from_commandline (string commandline, string? application_name, GLib.AppInfoCreateFlags flags) throws GLib.Error;
  3088. [CCode (vfunc_name = "do_delete")]
  3089. [Version (since = "2.20")]
  3090. public abstract bool @delete ();
  3091. public abstract GLib.AppInfo dup ();
  3092. public abstract bool equal (GLib.AppInfo appinfo2);
  3093. public static GLib.List<GLib.AppInfo> get_all ();
  3094. public static GLib.List<GLib.AppInfo> get_all_for_type (string content_type);
  3095. [Version (since = "2.20")]
  3096. public abstract unowned string get_commandline ();
  3097. public static GLib.AppInfo get_default_for_type (string content_type, bool must_support_uris);
  3098. public static GLib.AppInfo get_default_for_uri_scheme (string uri_scheme);
  3099. public abstract unowned string get_description ();
  3100. [Version (since = "2.24")]
  3101. public abstract unowned string get_display_name ();
  3102. public abstract unowned string get_executable ();
  3103. [Version (since = "2.28")]
  3104. public static GLib.List<GLib.AppInfo> get_fallback_for_type (string content_type);
  3105. public abstract unowned GLib.Icon get_icon ();
  3106. public abstract unowned string get_id ();
  3107. public abstract unowned string get_name ();
  3108. [Version (since = "2.28")]
  3109. public static GLib.List<GLib.AppInfo> get_recommended_for_type (string content_type);
  3110. [CCode (array_length = false, array_null_terminated = true)]
  3111. [Version (since = "2.34")]
  3112. public abstract unowned string[] get_supported_types ();
  3113. public abstract bool launch (GLib.List<GLib.File>? files, GLib.AppLaunchContext? launch_context) throws GLib.Error;
  3114. public static bool launch_default_for_uri (string uri, GLib.AppLaunchContext? launch_context) throws GLib.Error;
  3115. public abstract bool launch_uris (GLib.List<string>? uris, GLib.AppLaunchContext? launch_context) throws GLib.Error;
  3116. public abstract bool remove_supports_type (string content_type) throws GLib.Error;
  3117. [Version (since = "2.20")]
  3118. public static void reset_type_associations (string content_type);
  3119. public abstract bool set_as_default_for_extension (string extension) throws GLib.Error;
  3120. public abstract bool set_as_default_for_type (string content_type) throws GLib.Error;
  3121. public abstract bool set_as_last_used_for_type (string content_type) throws GLib.Error;
  3122. public abstract bool should_show ();
  3123. public abstract bool supports_files ();
  3124. public abstract bool supports_uris ();
  3125. }
  3126. [CCode (cheader_filename = "gio/gio.h")]
  3127. [Version (since = "2.22")]
  3128. public interface AsyncInitable : GLib.Object {
  3129. public virtual async bool init_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3130. [CCode (finish_function = "g_async_initable_new_finish")]
  3131. public static async GLib.Object new_async (GLib.Type object_type, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable, ...) throws GLib.Error;
  3132. [CCode (finish_function = "g_async_initable_new_finish")]
  3133. public static async GLib.Object new_valist_async (GLib.Type object_type, string first_property_name, va_list var_args, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null);
  3134. [CCode (finish_function = "g_async_initable_new_finish")]
  3135. public static async GLib.Object newv_async (GLib.Type object_type, [CCode (array_length_pos = 1.1)] GLib.Parameter[] parameters, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null);
  3136. }
  3137. [CCode (cheader_filename = "gio/gio.h", type_id = "g_async_result_get_type ()")]
  3138. public interface AsyncResult : GLib.Object {
  3139. public abstract GLib.Object get_source_object ();
  3140. public abstract void* get_user_data ();
  3141. [Version (since = "2.34")]
  3142. public abstract bool is_tagged (void* source_tag);
  3143. [Version (since = "2.34")]
  3144. public bool legacy_propagate_error () throws GLib.Error;
  3145. }
  3146. [CCode (cheader_filename = "gio/gio.h", type_id = "g_converter_get_type ()")]
  3147. [Version (since = "2.24")]
  3148. public interface Converter : GLib.Object {
  3149. public abstract GLib.ConverterResult convert ([CCode (array_length_cname = "inbuf_size", array_length_pos = 1.5, array_length_type = "gsize")] uint8[] inbuf, [CCode (array_length_cname = "outbuf_size", array_length_pos = 2.5, array_length_type = "gsize")] uint8[] outbuf, GLib.ConverterFlags flags, out size_t bytes_read, out size_t bytes_written) throws GLib.Error;
  3150. public abstract void reset ();
  3151. }
  3152. [CCode (cheader_filename = "gio/gio.h", type_id = "g_dbus_interface_get_type ()")]
  3153. [Version (since = "2.30")]
  3154. public interface DBusInterface : GLib.Object {
  3155. [Version (since = "2.32")]
  3156. public abstract GLib.DBusObject dup_object ();
  3157. public abstract unowned GLib.DBusInterfaceInfo get_info ();
  3158. public abstract unowned GLib.DBusObject get_object ();
  3159. public abstract void set_object (GLib.DBusObject? object);
  3160. }
  3161. [CCode (cheader_filename = "gio/gio.h", type_id = "g_dbus_object_get_type ()")]
  3162. public interface DBusObject : GLib.Object {
  3163. [Version (since = "2.30")]
  3164. public abstract GLib.DBusInterface get_interface (string interface_name);
  3165. [Version (since = "2.30")]
  3166. public abstract GLib.List<GLib.DBusInterface> get_interfaces ();
  3167. [Version (since = "2.30")]
  3168. public abstract unowned string get_object_path ();
  3169. [Version (since = "2.30")]
  3170. public virtual signal void interface_added (GLib.DBusInterface interface_);
  3171. [Version (since = "2.30")]
  3172. public virtual signal void interface_removed (GLib.DBusInterface interface_);
  3173. }
  3174. [CCode (cheader_filename = "gio/gio.h", type_id = "g_dbus_object_manager_get_type ()")]
  3175. public interface DBusObjectManager : GLib.Object {
  3176. [Version (since = "2.30")]
  3177. public abstract GLib.DBusInterface get_interface (string object_path, string interface_name);
  3178. [Version (since = "2.30")]
  3179. public abstract GLib.DBusObject get_object (string object_path);
  3180. [Version (since = "2.30")]
  3181. public abstract unowned string get_object_path ();
  3182. [Version (since = "2.30")]
  3183. public abstract GLib.List<GLib.DBusObject> get_objects ();
  3184. [Version (since = "2.30")]
  3185. public virtual signal void interface_added (GLib.DBusObject object, GLib.DBusInterface interface_);
  3186. [Version (since = "2.30")]
  3187. public virtual signal void interface_removed (GLib.DBusObject object, GLib.DBusInterface interface_);
  3188. [Version (since = "2.30")]
  3189. public virtual signal void object_added (GLib.DBusObject object);
  3190. [Version (since = "2.30")]
  3191. public virtual signal void object_removed (GLib.DBusObject object);
  3192. }
  3193. [CCode (cheader_filename = "gio/gio.h", type_cname = "GDatagramBasedInterface", type_id = "g_datagram_based_get_type ()")]
  3194. [Version (since = "2.48")]
  3195. public interface DatagramBased : GLib.Object {
  3196. public abstract GLib.IOCondition condition_check (GLib.IOCondition condition);
  3197. public abstract bool condition_wait (GLib.IOCondition condition, int64 timeout, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3198. public abstract GLib.Source create_source (GLib.IOCondition condition, GLib.Cancellable? cancellable = null);
  3199. public abstract int receive_messages ([CCode (array_length_cname = "num_messages", array_length_pos = 1.5, array_length_type = "guint")] GLib.InputMessage[] messages, int flags, int64 timeout, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3200. public abstract int send_messages ([CCode (array_length_cname = "num_messages", array_length_pos = 1.5, array_length_type = "guint")] GLib.OutputMessage[] messages, int flags, int64 timeout, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3201. }
  3202. [CCode (cheader_filename = "gio/gio.h", type_id = "g_drive_get_type ()")]
  3203. public interface Drive : GLib.Object {
  3204. public abstract bool can_eject ();
  3205. public abstract bool can_poll_for_media ();
  3206. [Version (since = "2.22")]
  3207. public abstract bool can_start ();
  3208. [Version (since = "2.22")]
  3209. public abstract bool can_start_degraded ();
  3210. [Version (since = "2.22")]
  3211. public abstract bool can_stop ();
  3212. [Version (deprecated = true, deprecated_since = "2.22")]
  3213. public abstract async bool eject (GLib.MountUnmountFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3214. [Version (since = "2.22")]
  3215. public abstract async bool eject_with_operation (GLib.MountUnmountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3216. [CCode (array_length = false, array_null_terminated = true)]
  3217. public abstract string[] enumerate_identifiers ();
  3218. public abstract GLib.Icon get_icon ();
  3219. public abstract string get_identifier (string kind);
  3220. public abstract string get_name ();
  3221. [Version (since = "2.32")]
  3222. public virtual unowned string get_sort_key ();
  3223. [Version (since = "2.22")]
  3224. public abstract GLib.DriveStartStopType get_start_stop_type ();
  3225. [Version (since = "2.34")]
  3226. public abstract GLib.Icon get_symbolic_icon ();
  3227. public abstract GLib.List<GLib.Volume> get_volumes ();
  3228. public abstract bool has_media ();
  3229. public abstract bool has_volumes ();
  3230. public abstract bool is_media_check_automatic ();
  3231. public abstract bool is_media_removable ();
  3232. public abstract async bool poll_for_media (GLib.Cancellable? cancellable = null) throws GLib.Error;
  3233. [Version (since = "2.22")]
  3234. public abstract async bool start (GLib.DriveStartFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3235. [Version (since = "2.22")]
  3236. public abstract async bool stop (GLib.MountUnmountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3237. public virtual signal void changed ();
  3238. public virtual signal void disconnected ();
  3239. public virtual signal void eject_button ();
  3240. [Version (since = "2.22")]
  3241. public virtual signal void stop_button ();
  3242. }
  3243. [CCode (cheader_filename = "gio/gio.h", type_cname = "GDtlsClientConnectionInterface", type_id = "g_dtls_client_connection_get_type ()")]
  3244. [Version (since = "2.48")]
  3245. public interface DtlsClientConnection : GLib.DatagramBased, GLib.DtlsConnection, GLib.Object {
  3246. public GLib.List<GLib.ByteArray> get_accepted_cas ();
  3247. public unowned GLib.SocketConnectable get_server_identity ();
  3248. public GLib.TlsCertificateFlags get_validation_flags ();
  3249. public static GLib.DtlsClientConnection @new (GLib.DatagramBased base_socket, GLib.SocketConnectable? server_identity) throws GLib.Error;
  3250. public void set_server_identity (GLib.SocketConnectable identity);
  3251. public void set_validation_flags (GLib.TlsCertificateFlags flags);
  3252. [ConcreteAccessor]
  3253. public abstract GLib.List<weak void*> accepted_cas { owned get; }
  3254. [ConcreteAccessor]
  3255. public abstract GLib.SocketConnectable server_identity { get; set construct; }
  3256. [ConcreteAccessor]
  3257. public abstract GLib.TlsCertificateFlags validation_flags { get; set construct; }
  3258. }
  3259. [CCode (cheader_filename = "gio/gio.h", type_cname = "GDtlsConnectionInterface", type_id = "g_dtls_connection_get_type ()")]
  3260. [Version (since = "2.48")]
  3261. public interface DtlsConnection : GLib.DatagramBased, GLib.Object {
  3262. public bool close (GLib.Cancellable? cancellable = null) throws GLib.Error;
  3263. public async bool close_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3264. public bool emit_accept_certificate (GLib.TlsCertificate peer_cert, GLib.TlsCertificateFlags errors);
  3265. public unowned GLib.TlsCertificate get_certificate ();
  3266. public unowned GLib.TlsDatabase get_database ();
  3267. public unowned GLib.TlsInteraction get_interaction ();
  3268. public unowned GLib.TlsCertificate get_peer_certificate ();
  3269. public GLib.TlsCertificateFlags get_peer_certificate_errors ();
  3270. public GLib.TlsRehandshakeMode get_rehandshake_mode ();
  3271. public bool get_require_close_notify ();
  3272. public abstract bool handshake (GLib.Cancellable? cancellable = null) throws GLib.Error;
  3273. public abstract async bool handshake_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3274. public void set_certificate (GLib.TlsCertificate certificate);
  3275. public void set_database (GLib.TlsDatabase database);
  3276. public void set_interaction (GLib.TlsInteraction? interaction);
  3277. public void set_rehandshake_mode (GLib.TlsRehandshakeMode mode);
  3278. public void set_require_close_notify (bool require_close_notify);
  3279. public abstract bool shutdown (bool shutdown_read, bool shutdown_write, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3280. public abstract async bool shutdown_async (bool shutdown_read, bool shutdown_write, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3281. [NoAccessorMethod]
  3282. public abstract GLib.DatagramBased base_socket { owned get; construct; }
  3283. [ConcreteAccessor]
  3284. public abstract GLib.TlsCertificate certificate { get; set; }
  3285. [ConcreteAccessor]
  3286. public abstract GLib.TlsDatabase database { get; set; }
  3287. [ConcreteAccessor]
  3288. public abstract GLib.TlsInteraction interaction { get; set; }
  3289. [ConcreteAccessor]
  3290. public abstract GLib.TlsCertificate peer_certificate { get; }
  3291. [ConcreteAccessor]
  3292. public abstract GLib.TlsCertificateFlags peer_certificate_errors { get; }
  3293. [ConcreteAccessor]
  3294. public abstract GLib.TlsRehandshakeMode rehandshake_mode { get; set construct; }
  3295. [ConcreteAccessor]
  3296. public abstract bool require_close_notify { get; set construct; }
  3297. public virtual signal bool accept_certificate (GLib.TlsCertificate peer_cert, GLib.TlsCertificateFlags errors);
  3298. }
  3299. [CCode (cheader_filename = "gio/gio.h", type_cname = "GDtlsServerConnectionInterface", type_id = "g_dtls_server_connection_get_type ()")]
  3300. [Version (since = "2.48")]
  3301. public interface DtlsServerConnection : GLib.DatagramBased, GLib.DtlsConnection, GLib.Object {
  3302. public static GLib.DtlsServerConnection @new (GLib.DatagramBased base_socket, GLib.TlsCertificate? certificate) throws GLib.Error;
  3303. [NoAccessorMethod]
  3304. public abstract GLib.TlsAuthenticationMode authentication_mode { get; set; }
  3305. }
  3306. [CCode (cheader_filename = "gio/gio.h")]
  3307. public interface File : GLib.Object {
  3308. public abstract GLib.FileOutputStream append_to (GLib.FileCreateFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3309. public virtual async GLib.FileOutputStream append_to_async (GLib.FileCreateFlags flags, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3310. public abstract bool copy (GLib.File destination, GLib.FileCopyFlags flags, GLib.Cancellable? cancellable = null, GLib.FileProgressCallback? progress_callback = null) throws GLib.Error;
  3311. public virtual async bool copy_async (GLib.File destination, GLib.FileCopyFlags flags, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null, GLib.FileProgressCallback? progress_callback = null) throws GLib.Error;
  3312. public bool copy_attributes (GLib.File destination, GLib.FileCopyFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3313. public abstract GLib.FileOutputStream create (GLib.FileCreateFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3314. public virtual async GLib.FileOutputStream create_async (GLib.FileCreateFlags flags, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3315. [Version (since = "2.22")]
  3316. public abstract GLib.FileIOStream create_readwrite (GLib.FileCreateFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3317. [Version (since = "2.22")]
  3318. public virtual async GLib.FileIOStream create_readwrite_async (GLib.FileCreateFlags flags, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3319. [CCode (vfunc_name = "delete_file")]
  3320. public abstract bool @delete (GLib.Cancellable? cancellable = null) throws GLib.Error;
  3321. [CCode (vfunc_name = "delete_file_async")]
  3322. [Version (since = "2.34")]
  3323. public virtual async bool delete_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3324. public abstract GLib.File dup ();
  3325. [Version (deprecated = true, deprecated_since = "2.22")]
  3326. public abstract async bool eject_mountable (GLib.MountUnmountFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3327. [Version (since = "2.22")]
  3328. public abstract async bool eject_mountable_with_operation (GLib.MountUnmountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3329. public abstract GLib.FileEnumerator enumerate_children (string attributes, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3330. public virtual async GLib.FileEnumerator enumerate_children_async (string attributes, GLib.FileQueryInfoFlags flags, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3331. public abstract bool equal (GLib.File file2);
  3332. public abstract GLib.Mount find_enclosing_mount (GLib.Cancellable? cancellable = null) throws GLib.Error;
  3333. public virtual async GLib.Mount find_enclosing_mount_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3334. public abstract string? get_basename ();
  3335. public GLib.File get_child (string name);
  3336. public abstract GLib.File get_child_for_display_name (string display_name) throws GLib.Error;
  3337. public abstract GLib.File? get_parent ();
  3338. public abstract string get_parse_name ();
  3339. public abstract string? get_path ();
  3340. public abstract string? get_relative_path (GLib.File descendant);
  3341. public abstract string get_uri ();
  3342. public abstract string get_uri_scheme ();
  3343. [Version (since = "2.24")]
  3344. public bool has_parent (GLib.File? parent);
  3345. [CCode (vfunc_name = "prefix_matches")]
  3346. public abstract bool has_prefix (GLib.File file);
  3347. public abstract bool has_uri_scheme (string uri_scheme);
  3348. public abstract uint hash ();
  3349. public abstract bool is_native ();
  3350. public bool load_contents (GLib.Cancellable? cancellable, [CCode (array_length_cname = "length", array_length_pos = 2.5, array_length_type = "gsize")] out uint8[] contents, out string etag_out) throws GLib.Error;
  3351. public async bool load_contents_async (GLib.Cancellable? cancellable = null, [CCode (array_length_cname = "length", array_length_pos = 2.5, array_length_type = "gsize")] out uint8[] contents, out string etag_out) throws GLib.Error;
  3352. public async bool load_partial_contents_async (GLib.Cancellable? cancellable = null, GLib.FileReadMoreCallback read_more_callback, [CCode (array_length_cname = "length", array_length_pos = 2.5, array_length_type = "gsize")] out uint8[] contents, out string etag_out) throws GLib.Error;
  3353. public abstract bool make_directory (GLib.Cancellable? cancellable = null) throws GLib.Error;
  3354. [Version (since = "2.38")]
  3355. public virtual async bool make_directory_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3356. [Version (since = "2.18")]
  3357. public bool make_directory_with_parents (GLib.Cancellable? cancellable = null) throws GLib.Error;
  3358. public abstract bool make_symbolic_link (string symlink_value, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3359. [Version (since = "2.38")]
  3360. public virtual bool measure_disk_usage (GLib.FileMeasureFlags flags, GLib.Cancellable? cancellable, [CCode (delegate_target_pos = 3.5)] GLib.FileMeasureProgressCallback? progress_callback, out uint64 disk_usage, out uint64 num_dirs, out uint64 num_files) throws GLib.Error;
  3361. [Version (since = "2.38")]
  3362. public virtual async bool measure_disk_usage_async (GLib.FileMeasureFlags flags, int io_priority, GLib.Cancellable? cancellable, GLib.FileMeasureProgressCallback? progress_callback, out uint64 disk_usage, out uint64 num_dirs, out uint64 num_files) throws GLib.Error;
  3363. [Version (since = "2.18")]
  3364. public GLib.FileMonitor monitor (GLib.FileMonitorFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3365. [CCode (vfunc_name = "monitor_dir")]
  3366. public abstract GLib.FileMonitor monitor_directory (GLib.FileMonitorFlags flags, GLib.Cancellable? cancellable = null) throws GLib.IOError;
  3367. public abstract GLib.FileMonitor monitor_file (GLib.FileMonitorFlags flags, GLib.Cancellable? cancellable = null) throws GLib.IOError;
  3368. public abstract async bool mount_enclosing_volume (GLib.MountMountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3369. public abstract async GLib.File mount_mountable (GLib.MountMountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3370. public abstract bool move (GLib.File destination, GLib.FileCopyFlags flags, GLib.Cancellable? cancellable = null, GLib.FileProgressCallback? progress_callback = null) throws GLib.Error;
  3371. public static GLib.File new_for_commandline_arg (string arg);
  3372. [Version (since = "2.36")]
  3373. public static GLib.File new_for_commandline_arg_and_cwd (string arg, string cwd);
  3374. public static GLib.File new_for_path (string path);
  3375. public static GLib.File new_for_uri (string uri);
  3376. [Version (since = "2.32")]
  3377. public static GLib.File new_tmp (string? tmpl, out GLib.FileIOStream iostream) throws GLib.Error;
  3378. [Version (since = "2.22")]
  3379. public abstract GLib.FileIOStream open_readwrite (GLib.Cancellable? cancellable = null) throws GLib.Error;
  3380. [Version (since = "2.22")]
  3381. public virtual async GLib.FileIOStream open_readwrite_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3382. public static GLib.File parse_name (string parse_name);
  3383. [Version (since = "2.22")]
  3384. public abstract async bool poll_mountable (GLib.Cancellable? cancellable = null) throws GLib.Error;
  3385. [NoWrapper]
  3386. [Version (deprecated_since = "vala-0.16", replacement = "has_prefix")]
  3387. public abstract bool prefix_matches (GLib.File file);
  3388. public GLib.AppInfo query_default_handler (GLib.Cancellable? cancellable = null) throws GLib.Error;
  3389. public bool query_exists (GLib.Cancellable? cancellable = null);
  3390. [Version (since = "2.18")]
  3391. public GLib.FileType query_file_type (GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null);
  3392. public abstract GLib.FileInfo query_filesystem_info (string attributes, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3393. public virtual async GLib.FileInfo query_filesystem_info_async (string attributes, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3394. public abstract GLib.FileInfo query_info (string attributes, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3395. public virtual async GLib.FileInfo query_info_async (string attributes, GLib.FileQueryInfoFlags flags, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3396. public abstract GLib.FileAttributeInfoList query_settable_attributes (GLib.Cancellable? cancellable = null) throws GLib.Error;
  3397. public abstract GLib.FileAttributeInfoList query_writable_namespaces (GLib.Cancellable? cancellable = null) throws GLib.Error;
  3398. [CCode (vfunc_name = "read_fn")]
  3399. public abstract GLib.FileInputStream read (GLib.Cancellable? cancellable = null) throws GLib.Error;
  3400. public virtual async GLib.FileInputStream read_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3401. [NoWrapper]
  3402. [Version (deprecated_since = "vala-0.16", replacement = "read")]
  3403. public abstract unowned GLib.FileInputStream read_fn (GLib.Cancellable? cancellable = null) throws GLib.Error;
  3404. public abstract GLib.FileOutputStream replace (string? etag, bool make_backup, GLib.FileCreateFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3405. public virtual async GLib.FileOutputStream replace_async (string? etag, bool make_backup, GLib.FileCreateFlags flags, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3406. public bool replace_contents ([CCode (array_length_cname = "length", array_length_pos = 1.5, array_length_type = "gsize")] uint8[] contents, string? etag, bool make_backup, GLib.FileCreateFlags flags, out string new_etag, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3407. public async bool replace_contents_async ([CCode (array_length_cname = "length", array_length_pos = 1.5, array_length_type = "gsize")] uint8[] contents, string? etag, bool make_backup, GLib.FileCreateFlags flags, GLib.Cancellable? cancellable = null, out string new_etag) throws GLib.Error;
  3408. [Version (since = "2.40")]
  3409. public async void replace_contents_bytes_async (GLib.Bytes contents, string? etag, bool make_backup, GLib.FileCreateFlags flags, GLib.Cancellable? cancellable = null);
  3410. [Version (since = "2.22")]
  3411. public abstract GLib.FileIOStream replace_readwrite (string? etag, bool make_backup, GLib.FileCreateFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3412. [Version (since = "2.22")]
  3413. public virtual async GLib.FileIOStream replace_readwrite_async (string? etag, bool make_backup, GLib.FileCreateFlags flags, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3414. public abstract GLib.File resolve_relative_path (string relative_path);
  3415. public abstract bool set_attribute (string attribute, GLib.FileAttributeType type, void* value_p, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3416. public bool set_attribute_byte_string (string attribute, string value, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3417. public bool set_attribute_int32 (string attribute, int32 value, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3418. public bool set_attribute_int64 (string attribute, int64 value, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3419. public bool set_attribute_string (string attribute, string value, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3420. public bool set_attribute_uint32 (string attribute, uint32 value, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3421. public bool set_attribute_uint64 (string attribute, uint64 value, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3422. public virtual async bool set_attributes_async (GLib.FileInfo info, GLib.FileQueryInfoFlags flags, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null, out GLib.FileInfo info_out) throws GLib.Error;
  3423. public abstract bool set_attributes_from_info (GLib.FileInfo info, GLib.FileQueryInfoFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3424. public abstract GLib.File set_display_name (string display_name, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3425. public virtual async GLib.File set_display_name_async (string display_name, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3426. [Version (since = "2.22")]
  3427. public abstract async bool start_mountable (GLib.DriveStartFlags flags, GLib.MountOperation? start_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3428. [Version (since = "2.22")]
  3429. public abstract async bool stop_mountable (GLib.MountUnmountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3430. [Version (since = "2.22")]
  3431. public bool supports_thread_contexts ();
  3432. public abstract bool trash (GLib.Cancellable? cancellable = null) throws GLib.Error;
  3433. [Version (since = "2.38")]
  3434. public virtual async bool trash_async (int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3435. [Version (deprecated = true, deprecated_since = "2.22")]
  3436. public abstract async bool unmount_mountable (GLib.MountUnmountFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3437. [Version (since = "2.22")]
  3438. public abstract async bool unmount_mountable_with_operation (GLib.MountUnmountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3439. }
  3440. [CCode (cheader_filename = "gio/gio.h")]
  3441. public interface Icon : GLib.Object {
  3442. [Version (since = "2.38")]
  3443. public static GLib.Icon deserialize (GLib.Variant value);
  3444. public abstract bool equal (GLib.Icon? icon2);
  3445. [NoWrapper]
  3446. public virtual GLib.Icon? from_tokens (string[] tokens, int version) throws GLib.Error;
  3447. public abstract uint hash ();
  3448. [Version (since = "2.20")]
  3449. public static GLib.Icon? new_for_string (string str) throws GLib.Error;
  3450. [Version (since = "2.38")]
  3451. public virtual GLib.Variant serialize ();
  3452. [Version (since = "2.20")]
  3453. public string? to_string ();
  3454. [NoWrapper]
  3455. public virtual bool to_tokens (GLib.GenericArray<string> tokens, out int out_version);
  3456. }
  3457. [CCode (cheader_filename = "gio/gio.h")]
  3458. [Version (since = "2.22")]
  3459. public interface Initable : GLib.Object {
  3460. public abstract bool init (GLib.Cancellable? cancellable = null) throws GLib.Error;
  3461. public static GLib.Object @new (GLib.Type object_type, GLib.Cancellable? cancellable = null, ...) throws GLib.Error;
  3462. public static GLib.Object new_valist (GLib.Type object_type, string first_property_name, va_list var_args, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3463. public static GLib.Object newv (GLib.Type object_type, [CCode (array_length_cname = "n_parameters", array_length_pos = 1.5, array_length_type = "guint")] GLib.Parameter[] parameters, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3464. }
  3465. [CCode (cheader_filename = "gio/gio.h", type_cname = "GListModelInterface", type_id = "g_list_model_get_type ()")]
  3466. public interface ListModel : GLib.Object {
  3467. [Version (since = "2.44")]
  3468. public abstract GLib.Object? get_item (uint position);
  3469. [Version (since = "2.44")]
  3470. public abstract GLib.Type get_item_type ();
  3471. [Version (since = "2.44")]
  3472. public abstract uint get_n_items ();
  3473. [Version (since = "2.44")]
  3474. public GLib.Object? get_object (uint position);
  3475. [HasEmitter]
  3476. [Version (since = "2.44")]
  3477. public signal void items_changed (uint position, uint removed, uint added);
  3478. }
  3479. [CCode (cheader_filename = "gio/gio.h", type_id = "g_loadable_icon_get_type ()")]
  3480. public interface LoadableIcon : GLib.Icon, GLib.Object {
  3481. public abstract GLib.InputStream load (int size, out string? type, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3482. public abstract async GLib.InputStream load_async (int size, GLib.Cancellable? cancellable = null, out string? type = null) throws GLib.Error;
  3483. }
  3484. [CCode (cheader_filename = "gio/gio.h", type_id = "g_mount_get_type ()")]
  3485. public interface Mount : GLib.Object {
  3486. public abstract bool can_eject ();
  3487. public abstract bool can_unmount ();
  3488. [Version (deprecated = true, deprecated_since = "2.22")]
  3489. public abstract async bool eject (GLib.MountUnmountFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3490. [Version (since = "2.22")]
  3491. public abstract async bool eject_with_operation (GLib.MountUnmountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3492. public abstract GLib.File get_default_location ();
  3493. public abstract GLib.Drive get_drive ();
  3494. public abstract GLib.Icon get_icon ();
  3495. public abstract string get_name ();
  3496. public abstract GLib.File get_root ();
  3497. [Version (since = "2.32")]
  3498. public virtual unowned string get_sort_key ();
  3499. [Version (since = "2.34")]
  3500. public abstract GLib.Icon get_symbolic_icon ();
  3501. public abstract string get_uuid ();
  3502. public abstract GLib.Volume get_volume ();
  3503. [CCode (array_length = false, array_null_terminated = true)]
  3504. [Version (since = "2.18")]
  3505. public abstract async string[] guess_content_type (bool force_rescan, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3506. [CCode (array_length = false, array_null_terminated = true)]
  3507. [Version (since = "2.18")]
  3508. public abstract string[] guess_content_type_sync (bool force_rescan, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3509. [Version (since = "2.20")]
  3510. public bool is_shadowed ();
  3511. public abstract async bool remount (GLib.MountMountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3512. [Version (since = "2.20")]
  3513. public void shadow ();
  3514. [Version (deprecated = true, deprecated_since = "2.22")]
  3515. public abstract async bool unmount (GLib.MountUnmountFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3516. [Version (since = "2.22")]
  3517. public abstract async bool unmount_with_operation (GLib.MountUnmountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3518. [Version (since = "2.20")]
  3519. public void unshadow ();
  3520. public virtual signal void changed ();
  3521. [Version (since = "2.22")]
  3522. public virtual signal void pre_unmount ();
  3523. public virtual signal void unmounted ();
  3524. }
  3525. [CCode (cheader_filename = "gio/gio.h", type_cname = "GNetworkMonitorInterface", type_id = "g_network_monitor_get_type ()")]
  3526. [Version (since = "2.32")]
  3527. public interface NetworkMonitor : GLib.Initable, GLib.Object {
  3528. public abstract bool can_reach (GLib.SocketConnectable connectable, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3529. public abstract async bool can_reach_async (GLib.SocketConnectable connectable, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3530. [Version (since = "2.44")]
  3531. public GLib.NetworkConnectivity get_connectivity ();
  3532. public static unowned GLib.NetworkMonitor get_default ();
  3533. public bool get_network_available ();
  3534. [Version (since = "2.46")]
  3535. public bool get_network_metered ();
  3536. [ConcreteAccessor]
  3537. [Version (since = "2.44")]
  3538. public abstract GLib.NetworkConnectivity connectivity { get; }
  3539. [ConcreteAccessor]
  3540. public abstract bool network_available { get; }
  3541. [ConcreteAccessor]
  3542. [Version (since = "2.46")]
  3543. public abstract bool network_metered { get; }
  3544. public virtual signal void network_changed (bool available);
  3545. }
  3546. [CCode (cheader_filename = "gio/gio.h", type_cname = "GPollableInputStreamInterface", type_id = "g_pollable_input_stream_get_type ()")]
  3547. [Version (since = "2.28")]
  3548. public interface PollableInputStream : GLib.InputStream {
  3549. public abstract bool can_poll ();
  3550. public abstract GLib.PollableSource create_source (GLib.Cancellable? cancellable = null);
  3551. public abstract bool is_readable ();
  3552. public ssize_t read_nonblocking ([CCode (array_length_cname = "count", array_length_pos = 1.5, array_length_type = "gsize")] uint8[] buffer, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3553. [CCode (vfunc_name = "read_nonblocking")]
  3554. public abstract ssize_t read_nonblocking_fn ([CCode (array_length_cname = "count", array_length_pos = 1.1, array_length_type = "gsize")] uint8[] buffer) throws GLib.Error;
  3555. }
  3556. [CCode (cheader_filename = "gio/gio.h", type_cname = "GPollableOutputStreamInterface", type_id = "g_pollable_output_stream_get_type ()")]
  3557. [Version (since = "2.28")]
  3558. public interface PollableOutputStream : GLib.OutputStream {
  3559. public abstract bool can_poll ();
  3560. public abstract GLib.PollableSource create_source (GLib.Cancellable? cancellable = null);
  3561. public abstract bool is_writable ();
  3562. public abstract ssize_t write_nonblocking ([CCode (array_length_cname = "count", array_length_pos = 1.1, array_length_type = "gsize")] uint8[]? buffer) throws GLib.Error;
  3563. }
  3564. [CCode (cheader_filename = "gio/gio.h", type_cname = "GProxyInterface", type_id = "g_proxy_get_type ()")]
  3565. [Version (since = "2.26")]
  3566. public interface Proxy : GLib.Object {
  3567. public abstract GLib.IOStream connect (GLib.IOStream connection, GLib.ProxyAddress proxy_address, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3568. public abstract async GLib.IOStream connect_async (GLib.IOStream connection, GLib.ProxyAddress proxy_address, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3569. public static GLib.Proxy get_default_for_protocol (string protocol);
  3570. public abstract bool supports_hostname ();
  3571. }
  3572. [CCode (cheader_filename = "gio/gio.h", type_cname = "GProxyResolverInterface", type_id = "g_proxy_resolver_get_type ()")]
  3573. [Version (since = "2.26")]
  3574. public interface ProxyResolver : GLib.Object {
  3575. public static unowned GLib.ProxyResolver get_default ();
  3576. public abstract bool is_supported ();
  3577. [CCode (array_length = false, array_null_terminated = true)]
  3578. public abstract string[] lookup (string uri, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3579. [CCode (array_length = false, array_null_terminated = true)]
  3580. public abstract async string[] lookup_async (string uri, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3581. }
  3582. [CCode (cheader_filename = "gio/gio.h", type_cname = "GRemoteActionGroupInterface", type_id = "g_remote_action_group_get_type ()")]
  3583. public interface RemoteActionGroup : GLib.ActionGroup, GLib.Object {
  3584. [Version (since = "2.32")]
  3585. public abstract void activate_action_full (string action_name, GLib.Variant? parameter, GLib.Variant platform_data);
  3586. [Version (since = "2.32")]
  3587. public abstract void change_action_state_full (string action_name, GLib.Variant value, GLib.Variant platform_data);
  3588. }
  3589. [CCode (cheader_filename = "gio/gio.h", type_id = "g_seekable_get_type ()")]
  3590. public interface Seekable : GLib.Object {
  3591. public abstract bool can_seek ();
  3592. public abstract bool can_truncate ();
  3593. public abstract bool seek (int64 offset, GLib.SeekType type, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3594. public abstract int64 tell ();
  3595. [CCode (vfunc_name = "truncate_fn")]
  3596. public abstract bool truncate (int64 offset, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3597. }
  3598. [CCode (cheader_filename = "gio/gio.h", type_id = "g_socket_connectable_get_type ()")]
  3599. public interface SocketConnectable : GLib.Object {
  3600. [Version (since = "2.22")]
  3601. public abstract GLib.SocketAddressEnumerator enumerate ();
  3602. [Version (since = "2.26")]
  3603. public abstract GLib.SocketAddressEnumerator proxy_enumerate ();
  3604. [Version (since = "2.48")]
  3605. public abstract string to_string ();
  3606. }
  3607. [CCode (cheader_filename = "gio/gio.h", type_cname = "GTlsBackendInterface", type_id = "g_tls_backend_get_type ()")]
  3608. [Version (since = "2.28")]
  3609. public interface TlsBackend : GLib.Object {
  3610. public abstract GLib.Type get_certificate_type ();
  3611. public abstract GLib.Type get_client_connection_type ();
  3612. public static unowned GLib.TlsBackend get_default ();
  3613. [Version (since = "2.30")]
  3614. public abstract GLib.TlsDatabase get_default_database ();
  3615. [Version (since = "2.48")]
  3616. public GLib.Type get_dtls_client_connection_type ();
  3617. [Version (since = "2.48")]
  3618. public GLib.Type get_dtls_server_connection_type ();
  3619. [Version (since = "2.30")]
  3620. public abstract GLib.Type get_file_database_type ();
  3621. public abstract GLib.Type get_server_connection_type ();
  3622. [Version (since = "2.48")]
  3623. public abstract bool supports_dtls ();
  3624. public abstract bool supports_tls ();
  3625. }
  3626. [CCode (cheader_filename = "gio/gio.h", type_cname = "GTlsClientConnectionInterface", type_id = "g_tls_client_connection_get_type ()")]
  3627. [Version (since = "2.28")]
  3628. public interface TlsClientConnection : GLib.TlsConnection {
  3629. [Version (since = "2.46")]
  3630. public abstract void copy_session_state (GLib.TlsClientConnection source);
  3631. public GLib.List<GLib.ByteArray> get_accepted_cas ();
  3632. public unowned GLib.SocketConnectable get_server_identity ();
  3633. public bool get_use_ssl3 ();
  3634. public GLib.TlsCertificateFlags get_validation_flags ();
  3635. public static GLib.TlsClientConnection? @new (GLib.IOStream base_io_stream, GLib.SocketConnectable? server_identity) throws GLib.Error;
  3636. public void set_server_identity (GLib.SocketConnectable identity);
  3637. public void set_use_ssl3 (bool use_ssl3);
  3638. public void set_validation_flags (GLib.TlsCertificateFlags flags);
  3639. [ConcreteAccessor]
  3640. public abstract GLib.List<GLib.ByteArray> accepted_cas { owned get; }
  3641. [ConcreteAccessor]
  3642. public abstract GLib.SocketConnectable server_identity { get; set construct; }
  3643. [ConcreteAccessor]
  3644. public abstract bool use_ssl3 { get; set construct; }
  3645. [ConcreteAccessor]
  3646. public abstract GLib.TlsCertificateFlags validation_flags { get; set construct; }
  3647. }
  3648. [CCode (cheader_filename = "gio/gio.h", type_cname = "GTlsFileDatabaseInterface", type_id = "g_tls_file_database_get_type ()")]
  3649. [Version (since = "2.30")]
  3650. public interface TlsFileDatabase : GLib.TlsDatabase {
  3651. public static GLib.TlsFileDatabase? @new (string anchors) throws GLib.Error;
  3652. [NoAccessorMethod]
  3653. public abstract string anchors { owned get; set construct; }
  3654. }
  3655. [CCode (cheader_filename = "gio/gio.h", type_cname = "GTlsServerConnectionInterface", type_id = "g_tls_server_connection_get_type ()")]
  3656. [Version (since = "2.28")]
  3657. public interface TlsServerConnection : GLib.TlsConnection {
  3658. public static GLib.TlsServerConnection? @new (GLib.IOStream base_io_stream, GLib.TlsCertificate? certificate) throws GLib.Error;
  3659. [NoAccessorMethod]
  3660. public abstract GLib.TlsAuthenticationMode authentication_mode { get; set; }
  3661. }
  3662. [CCode (cheader_filename = "gio/gio.h", type_id = "g_volume_get_type ()")]
  3663. public interface Volume : GLib.Object {
  3664. public abstract bool can_eject ();
  3665. public abstract bool can_mount ();
  3666. [Version (deprecated = true, deprecated_since = "2.22")]
  3667. public abstract async bool eject (GLib.MountUnmountFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3668. [Version (since = "2.22")]
  3669. public abstract async bool eject_with_operation (GLib.MountUnmountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3670. [CCode (array_length = false, array_null_terminated = true)]
  3671. public abstract string[] enumerate_identifiers ();
  3672. [Version (since = "2.18")]
  3673. public abstract GLib.File? get_activation_root ();
  3674. public abstract GLib.Drive get_drive ();
  3675. public abstract GLib.Icon get_icon ();
  3676. public abstract string get_identifier (string kind);
  3677. public abstract GLib.Mount get_mount ();
  3678. public abstract string get_name ();
  3679. [Version (since = "2.32")]
  3680. public virtual unowned string get_sort_key ();
  3681. [Version (since = "2.34")]
  3682. public abstract GLib.Icon get_symbolic_icon ();
  3683. public abstract string get_uuid ();
  3684. [CCode (vfunc_name = "mount_fn")]
  3685. public abstract async bool mount (GLib.MountMountFlags flags, GLib.MountOperation? mount_operation, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3686. public abstract bool should_automount ();
  3687. public virtual signal void changed ();
  3688. public virtual signal void removed ();
  3689. }
  3690. [CCode (cheader_filename = "gio/gio.h")]
  3691. public struct ActionEntry {
  3692. public weak string name;
  3693. [Version (deprecated = true, deprecated_since = "vala-0.26", replacement = "activate_callback")]
  3694. public GLib.SimpleActionActivateCallback? activate;
  3695. public weak string parameter_type;
  3696. public weak string state;
  3697. [Version (deprecated_since = "vala-0.26", replacement = "change_state_callback")]
  3698. public GLib.SimpleActionChangeStateCallback? change_state;
  3699. [CCode (cname = "activate")]
  3700. public GLib.SimpleActionActivateFunc activate_callback;
  3701. [CCode (cname = "change_state")]
  3702. public GLib.SimpleActionChangeStateFunc? change_state_callback;
  3703. }
  3704. [CCode (cheader_filename = "gio/gio.h", has_type_id = false)]
  3705. [Version (since = "2.26")]
  3706. public struct DBusErrorEntry {
  3707. public int error_code;
  3708. public weak string dbus_error_name;
  3709. }
  3710. [CCode (cheader_filename = "gio/gio.h", has_type_id = false)]
  3711. [Version (since = "2.26")]
  3712. public struct DBusInterfaceVTable {
  3713. public weak GLib.DBusInterfaceMethodCallFunc method_call;
  3714. public weak GLib.DBusInterfaceGetPropertyFunc get_property;
  3715. public weak GLib.DBusInterfaceSetPropertyFunc set_property;
  3716. }
  3717. [CCode (cheader_filename = "gio/gio.h", has_type_id = false)]
  3718. [Version (since = "2.26")]
  3719. public struct DBusSubtreeVTable {
  3720. public weak GLib.DBusSubtreeEnumerateFunc enumerate;
  3721. public weak GLib.DBusSubtreeIntrospectFunc introspect;
  3722. public weak GLib.DBusSubtreeDispatchFunc dispatch;
  3723. }
  3724. [CCode (cheader_filename = "gio/gio.h", has_type_id = false)]
  3725. public struct FileAttributeInfo {
  3726. public weak string name;
  3727. public GLib.FileAttributeType type;
  3728. public GLib.FileAttributeInfoFlags flags;
  3729. }
  3730. [CCode (cheader_filename = "gio/gio.h", has_type_id = false)]
  3731. [Version (since = "2.48")]
  3732. public struct InputMessage {
  3733. public weak GLib.SocketAddress address;
  3734. [CCode (array_length = false, array_null_terminated = true)]
  3735. public weak GLib.InputVector[] vectors;
  3736. public uint num_vectors;
  3737. public size_t bytes_received;
  3738. public int flags;
  3739. [CCode (array_length = false, array_null_terminated = true)]
  3740. public weak GLib.SocketControlMessage[] control_messages;
  3741. public uint num_control_messages;
  3742. }
  3743. [CCode (cheader_filename = "gio/gio.h", has_type_id = false)]
  3744. [Version (since = "2.22")]
  3745. public struct InputVector {
  3746. public void* buffer;
  3747. public size_t size;
  3748. }
  3749. [CCode (cheader_filename = "gio/gio.h", has_type_id = false)]
  3750. [Version (since = "2.44")]
  3751. public struct OutputMessage {
  3752. public weak GLib.SocketAddress address;
  3753. public GLib.OutputVector vectors;
  3754. public uint num_vectors;
  3755. public uint bytes_sent;
  3756. [CCode (array_length = false, array_null_terminated = true)]
  3757. public weak GLib.SocketControlMessage[] control_messages;
  3758. public uint num_control_messages;
  3759. }
  3760. [CCode (cheader_filename = "gio/gio.h", has_type_id = false)]
  3761. [Version (since = "2.22")]
  3762. public struct OutputVector {
  3763. public void* buffer;
  3764. public size_t size;
  3765. }
  3766. [CCode (cheader_filename = "gio/gio.h", has_type_id = false)]
  3767. public struct StaticResource {
  3768. [Version (since = "2.32")]
  3769. public void fini ();
  3770. [Version (since = "2.32")]
  3771. public unowned GLib.Resource get_resource ();
  3772. [Version (since = "2.32")]
  3773. public void init ();
  3774. }
  3775. [CCode (cheader_filename = "gio/gio.h", cprefix = "G_APP_INFO_CREATE_", type_id = "g_app_info_create_flags_get_type ()")]
  3776. [Flags]
  3777. public enum AppInfoCreateFlags {
  3778. NONE,
  3779. NEEDS_TERMINAL,
  3780. SUPPORTS_URIS,
  3781. SUPPORTS_STARTUP_NOTIFICATION
  3782. }
  3783. [CCode (cheader_filename = "gio/gio.h", cprefix = "G_APPLICATION_", type_id = "g_application_flags_get_type ()")]
  3784. [Flags]
  3785. [Version (since = "2.28")]
  3786. public enum ApplicationFlags {
  3787. FLAGS_NONE,
  3788. IS_SERVICE,
  3789. IS_LAUNCHER,
  3790. HANDLES_OPEN,
  3791. HANDLES_COMMAND_LINE,
  3792. SEND_ENVIRONMENT,
  3793. NON_UNIQUE,
  3794. CAN_OVERRIDE_APP_ID
  3795. }
  3796. [CCode (cheader_filename = "gio/gio.h", cprefix = "G_ASK_PASSWORD_", type_id = "g_ask_password_flags_get_type ()")]
  3797. [Flags]
  3798. public enum AskPasswordFlags {
  3799. NEED_PASSWORD,
  3800. NEED_USERNAME,
  3801. NEED_DOMAIN,
  3802. SAVING_SUPPORTED,
  3803. ANONYMOUS_SUPPORTED
  3804. }
  3805. [CCode (cheader_filename = "gio/gio.h", cprefix = "G_BUS_NAME_OWNER_FLAGS_", type_id = "g_bus_name_owner_flags_get_type ()")]
  3806. [Flags]
  3807. [Version (since = "2.26")]
  3808. public enum BusNameOwnerFlags {
  3809. NONE,
  3810. ALLOW_REPLACEMENT,
  3811. REPLACE
  3812. }
  3813. [CCode (cheader_filename = "gio/gio.h", cprefix = "G_BUS_NAME_WATCHER_FLAGS_", type_id = "g_bus_name_watcher_flags_get_type ()")]
  3814. [Flags]
  3815. [Version (since = "2.26")]
  3816. public enum BusNameWatcherFlags {
  3817. NONE,
  3818. AUTO_START
  3819. }
  3820. [CCode (cheader_filename = "gio/gio.h", cprefix = "G_BUS_TYPE_", type_id = "g_bus_type_get_type ()")]
  3821. [Version (since = "2.26")]
  3822. public enum BusType {
  3823. STARTER,
  3824. NONE,
  3825. SYSTEM,
  3826. SESSION;
  3827. [CCode (cheader_filename = "gio/gio.h", cname = "g_dbus_address_get_for_bus_sync")]
  3828. public static string get_address_sync (GLib.BusType bus_type, GLib.Cancellable? cancellable = null) throws GLib.Error;
  3829. }
  3830. [CCode (cheader_filename = "gio/gio.h", cprefix = "G_CONVERTER_")]
  3831. [Flags]
  3832. [Version (since = "2.24")]
  3833. public enum ConverterFlags {
  3834. [Version (deprecated_since = "vala-0.16", replacement = "ConverterFlags.NONE")]
  3835. NO_FLAGS,
  3836. [CCode (cname = "G_CONVERTER_NO_FLAGS")]
  3837. NONE,
  3838. INPUT_AT_END,
  3839. FLUSH
  3840. }
  3841. [CCode (cheader_filename = "gio/gio.h", cprefix = "G_CONVERTER_", type_id = "g_converter_result_get_type ()")]
  3842. [Version (since = "2.24")]
  3843. public enum ConverterResult {
  3844. ERROR,
  3845. CONVERTED,
  3846. FINISHED,
  3847. FLUSHED
  3848. }
  3849. [CCode (cheader_filename = "gio/gio.h", cprefix = "G_CREDENTIALS_TYPE_", type_id = "g_credentials_type_get_type ()")]
  3850. [Version (since = "2.26")]
  3851. public enum CredentialsType {
  3852. INVALID,
  3853. LINUX_UCRED,
  3854. FREEBSD_CMSGCRED,
  3855. OPENBSD_SOCKPEERCRED,
  3856. SOLARIS_UCRED,
  3857. NETBSD_UNPCBID
  3858. }
  3859. [CCode (cheader_filename = "gio/gio.h", cprefix = "G_DBUS_CALL_FLAGS_", type_id = "g_dbus_call_flags_get_type ()")]
  3860. [Flags]
  3861. [Version (since = "2.26")]
  3862. public enum DBusCallFlags {
  3863. NONE,
  3864. NO_AUTO_START,
  3865. ALLOW_INTERACTIVE_AUTHORIZATION
  3866. }
  3867. [CCode (cheader_filename = "gio/gio.h", cprefix = "G_DBUS_CAPABILITY_FLAGS_", type_id = "g_dbus_capability_flags_get_type ()")]
  3868. [Flags]
  3869. [Version (since = "2.26")]
  3870. public enum DBusCapabilityFlags {
  3871. NONE,
  3872. UNIX_FD_PASSING
  3873. }
  3874. [CCode (cheader_filename = "gio/gio.h", cprefix = "G_DBUS_CONNECTION_FLAGS_", type_id = "g_dbus_connection_flags_get_type ()")]
  3875. [Flags]
  3876. [Version (since = "2.26")]
  3877. public enum DBusConnectionFlags {
  3878. NONE,
  3879. AUTHENTICATION_CLIENT,
  3880. AUTHENTICATION_SERVER,
  3881. AUTHENTICATION_ALLOW_ANONYMOUS,
  3882. MESSAGE_BUS_CONNECTION,
  3883. DELAY_MESSAGE_PROCESSING
  3884. }
  3885. [CCode (cheader_filename = "gio/gio.h", cprefix = "G_DBUS_INTERFACE_SKELETON_FLAGS_", type_id = "g_dbus_interface_skeleton_flags_get_type ()")]
  3886. [Flags]
  3887. [Version (since = "2.30")]
  3888. public enum DBusInterfaceSkeletonFlags {
  3889. NONE,
  3890. HANDLE_METHOD_INVOCATIONS_IN_THREAD
  3891. }
  3892. [CCode (cheader_filename = "gio/gio.h", cprefix = "G_DBUS_MESSAGE_BYTE_ORDER_", type_id = "g_dbus_message_byte_order_get_type ()")]
  3893. [Version (since = "2.26")]
  3894. public enum DBusMessageByteOrder {
  3895. BIG_ENDIAN,
  3896. LITTLE_ENDIAN
  3897. }
  3898. [CCode (cheader_filename = "gio/gio.h", cprefix = "G_DBUS_MESSAGE_FLAGS_", type_id = "g_dbus_message_flags_get_type ()")]
  3899. [Flags]
  3900. [Version (since = "2.26")]
  3901. public enum DBusMessageFlags {
  3902. NONE,
  3903. NO_REPLY_EXPECTED,
  3904. NO_AUTO_START,
  3905. ALLOW_INTERACTIVE_AUTHORIZATION
  3906. }
  3907. [CCode (cheader_filename = "gio/gio.h", cprefix = "G_DBUS_MESSAGE_HEADER_FIELD_", type_id = "g_dbus_message_header_field_get_type ()")]
  3908. [Version (since = "2.26")]
  3909. public enum DBusMessageHeaderField {
  3910. INVALID,
  3911. PATH,
  3912. INTERFACE,
  3913. MEMBER,
  3914. ERROR_NAME,
  3915. REPLY_SERIAL,
  3916. DESTINATION,
  3917. SENDER,
  3918. SIGNATURE,
  3919. NUM_UNIX_FDS
  3920. }
  3921. [CCode (cheader_filename = "gio/gio.h", cprefix = "G_DBUS_MESSAGE_TYPE_", type_id = "g_dbus_message_type_get_type ()")]
  3922. [Version (since = "2.26")]
  3923. public enum DBusMessageType {
  3924. INVALID,
  3925. METHOD_CALL,
  3926. METHOD_RETURN,
  3927. ERROR,
  3928. SIGNAL
  3929. }
  3930. [CCode (cheader_filename = "gio/gio.h", cprefix = "G_DBUS_OBJECT_MANAGER_CLIENT_FLAGS_", type_id = "g_dbus_object_manager_client_flags_get_type ()")]
  3931. [Flags]
  3932. [Version (since = "2.30")]
  3933. public enum DBusObjectManagerClientFlags {
  3934. NONE,
  3935. DO_NOT_AUTO_START
  3936. }
  3937. [CCode (cheader_filename = "gio/gio.h", cprefix = "G_DBUS_PROPERTY_INFO_FLAGS_", type_id = "g_dbus_property_info_flags_get_type ()")]
  3938. [Flags]
  3939. [Version (since = "2.26")]
  3940. public enum DBusPropertyInfoFlags {
  3941. NONE,
  3942. READABLE,
  3943. WRITABLE
  3944. }
  3945. [CCode (cheader_filename = "gio/gio.h", cprefix = "G_DBUS_PROXY_FLAGS_", type_id = "g_dbus_proxy_flags_get_type ()")]
  3946. [Flags]
  3947. [Version (since = "2.26")]
  3948. public enum DBusProxyFlags {
  3949. NONE,
  3950. DO_NOT_LOAD_PROPERTIES,
  3951. DO_NOT_CONNECT_SIGNALS,
  3952. DO_NOT_AUTO_START,
  3953. GET_INVALIDATED_PROPERTIES,
  3954. DO_NOT_AUTO_START_AT_CONSTRUCTION
  3955. }
  3956. [CCode (cheader_filename = "gio/gio.h", cprefix = "G_DBUS_SEND_MESSAGE_FLAGS_", type_id = "g_dbus_send_message_flags_get_type ()")]
  3957. [Flags]
  3958. [Version (since = "2.26")]
  3959. public enum DBusSendMessageFlags {
  3960. NONE,
  3961. PRESERVE_SERIAL
  3962. }
  3963. [CCode (cheader_filename = "gio/gio.h", cprefix = "G_DBUS_SERVER_FLAGS_", type_id = "g_dbus_server_flags_get_type ()")]
  3964. [Flags]
  3965. [Version (since = "2.26")]
  3966. public enum DBusServerFlags {
  3967. NONE,
  3968. RUN_IN_THREAD,
  3969. AUTHENTICATION_ALLOW_ANONYMOUS
  3970. }
  3971. [CCode (cheader_filename = "gio/gio.h", cprefix = "G_DBUS_SIGNAL_FLAGS_", type_id = "g_dbus_signal_flags_get_type ()")]
  3972. [Flags]
  3973. [Version (since = "2.26")]
  3974. public enum DBusSignalFlags {
  3975. NONE,
  3976. NO_MATCH_RULE,
  3977. MATCH_ARG0_NAMESPACE,
  3978. MATCH_ARG0_PATH
  3979. }
  3980. [CCode (cheader_filename = "gio/gio.h", cprefix = "G_DBUS_SUBTREE_FLAGS_", type_id = "g_dbus_subtree_flags_get_type ()")]
  3981. [Flags]
  3982. [Version (since = "2.26")]
  3983. public enum DBusSubtreeFlags {
  3984. NONE,
  3985. DISPATCH_TO_UNENUMERATED_NODES
  3986. }
  3987. [CCode (cheader_filename = "gio/gio.h", cprefix = "G_DATA_STREAM_BYTE_ORDER_", type_id = "g_data_stream_byte_order_get_type ()")]
  3988. public enum DataStreamByteOrder {
  3989. BIG_ENDIAN,
  3990. LITTLE_ENDIAN,
  3991. HOST_ENDIAN
  3992. }
  3993. [CCode (cheader_filename = "gio/gio.h", cprefix = "G_DATA_STREAM_NEWLINE_TYPE_", type_id = "g_data_stream_newline_type_get_type ()")]
  3994. public enum DataStreamNewlineType {
  3995. LF,
  3996. CR,
  3997. CR_LF,
  3998. ANY
  3999. }
  4000. [CCode (cheader_filename = "gio/gio.h", cprefix = "G_DRIVE_START_", type_id = "g_drive_start_flags_get_type ()")]
  4001. [Flags]
  4002. [Version (since = "2.22")]
  4003. public enum DriveStartFlags {
  4004. NONE
  4005. }
  4006. [CCode (cheader_filename = "gio/gio.h", cprefix = "G_DRIVE_START_STOP_TYPE_", type_id = "g_drive_start_stop_type_get_type ()")]
  4007. [Version (since = "2.22")]
  4008. public enum DriveStartStopType {
  4009. UNKNOWN,
  4010. SHUTDOWN,
  4011. NETWORK,
  4012. MULTIDISK,
  4013. PASSWORD
  4014. }
  4015. [CCode (cheader_filename = "gio/gio.h", cprefix = "G_EMBLEM_ORIGIN_", type_id = "g_emblem_origin_get_type ()")]
  4016. [Version (since = "2.18")]
  4017. public enum EmblemOrigin {
  4018. UNKNOWN,
  4019. DEVICE,
  4020. LIVEMETADATA,
  4021. TAG
  4022. }
  4023. [CCode (cheader_filename = "gio/gio.h", cprefix = "G_FILE_ATTRIBUTE_INFO_", type_id = "g_file_attribute_info_flags_get_type ()")]
  4024. [Flags]
  4025. public enum FileAttributeInfoFlags {
  4026. NONE,
  4027. COPY_WITH_FILE,
  4028. COPY_WHEN_MOVED
  4029. }
  4030. [CCode (cheader_filename = "gio/gio.h", cprefix = "G_FILE_ATTRIBUTE_STATUS_", type_id = "g_file_attribute_status_get_type ()")]
  4031. public enum FileAttributeStatus {
  4032. UNSET,
  4033. SET,
  4034. ERROR_SETTING
  4035. }
  4036. [CCode (cheader_filename = "gio/gio.h", cprefix = "G_FILE_ATTRIBUTE_TYPE_", type_id = "g_file_attribute_type_get_type ()")]
  4037. public enum FileAttributeType {
  4038. INVALID,
  4039. STRING,
  4040. BYTE_STRING,
  4041. BOOLEAN,
  4042. UINT32,
  4043. INT32,
  4044. UINT64,
  4045. INT64,
  4046. OBJECT,
  4047. STRINGV
  4048. }
  4049. [CCode (cheader_filename = "gio/gio.h", cprefix = "G_FILE_COPY_", type_id = "g_file_copy_flags_get_type ()")]
  4050. [Flags]
  4051. public enum FileCopyFlags {
  4052. NONE,
  4053. OVERWRITE,
  4054. BACKUP,
  4055. NOFOLLOW_SYMLINKS,
  4056. ALL_METADATA,
  4057. NO_FALLBACK_FOR_MOVE,
  4058. TARGET_DEFAULT_PERMS
  4059. }
  4060. [CCode (cheader_filename = "gio/gio.h", cprefix = "G_FILE_CREATE_", type_id = "g_file_create_flags_get_type ()")]
  4061. [Flags]
  4062. public enum FileCreateFlags {
  4063. NONE,
  4064. PRIVATE,
  4065. REPLACE_DESTINATION
  4066. }
  4067. [CCode (cheader_filename = "gio/gio.h", cprefix = "G_FILE_MEASURE_", type_id = "g_file_measure_flags_get_type ()")]
  4068. [Flags]
  4069. [Version (since = "2.38")]
  4070. public enum FileMeasureFlags {
  4071. NONE,
  4072. REPORT_ANY_ERROR,
  4073. APPARENT_SIZE,
  4074. NO_XDEV
  4075. }
  4076. [CCode (cheader_filename = "gio/gio.h", cprefix = "G_FILE_MONITOR_EVENT_", type_id = "g_file_monitor_event_get_type ()")]
  4077. public enum FileMonitorEvent {
  4078. CHANGED,
  4079. CHANGES_DONE_HINT,
  4080. DELETED,
  4081. CREATED,
  4082. ATTRIBUTE_CHANGED,
  4083. PRE_UNMOUNT,
  4084. UNMOUNTED,
  4085. MOVED,
  4086. RENAMED,
  4087. MOVED_IN,
  4088. MOVED_OUT
  4089. }
  4090. [CCode (cheader_filename = "gio/gio.h", cprefix = "G_FILE_MONITOR_", type_id = "g_file_monitor_flags_get_type ()")]
  4091. [Flags]
  4092. public enum FileMonitorFlags {
  4093. NONE,
  4094. WATCH_MOUNTS,
  4095. SEND_MOVED,
  4096. WATCH_HARD_LINKS,
  4097. WATCH_MOVES
  4098. }
  4099. [CCode (cheader_filename = "gio/gio.h", cprefix = "G_FILE_QUERY_INFO_", type_id = "g_file_query_info_flags_get_type ()")]
  4100. [Flags]
  4101. public enum FileQueryInfoFlags {
  4102. NONE,
  4103. NOFOLLOW_SYMLINKS
  4104. }
  4105. [CCode (cheader_filename = "gio/gio.h", cprefix = "G_FILE_TYPE_", type_id = "g_file_type_get_type ()")]
  4106. public enum FileType {
  4107. UNKNOWN,
  4108. REGULAR,
  4109. DIRECTORY,
  4110. SYMBOLIC_LINK,
  4111. SPECIAL,
  4112. SHORTCUT,
  4113. MOUNTABLE
  4114. }
  4115. [CCode (cheader_filename = "gio/gio.h", cprefix = "G_FILESYSTEM_PREVIEW_TYPE_", type_id = "g_filesystem_preview_type_get_type ()")]
  4116. public enum FilesystemPreviewType {
  4117. IF_ALWAYS,
  4118. IF_LOCAL,
  4119. NEVER
  4120. }
  4121. [CCode (cheader_filename = "gio/gio.h", cprefix = "G_IO_MODULE_SCOPE_", type_id = "g_io_module_scope_flags_get_type ()")]
  4122. [Version (since = "2.30")]
  4123. public enum IOModuleScopeFlags {
  4124. NONE,
  4125. BLOCK_DUPLICATES
  4126. }
  4127. [CCode (cheader_filename = "gio/gio.h", cprefix = "G_IO_STREAM_SPLICE_", type_id = "g_io_stream_splice_flags_get_type ()")]
  4128. [Flags]
  4129. [Version (since = "2.28")]
  4130. public enum IOStreamSpliceFlags {
  4131. NONE,
  4132. CLOSE_STREAM1,
  4133. CLOSE_STREAM2,
  4134. WAIT_FOR_BOTH
  4135. }
  4136. [CCode (cheader_filename = "gio/gio.h", cprefix = "G_MOUNT_MOUNT_", type_id = "g_mount_mount_flags_get_type ()")]
  4137. [Flags]
  4138. public enum MountMountFlags {
  4139. NONE
  4140. }
  4141. [CCode (cheader_filename = "gio/gio.h", cprefix = "G_MOUNT_OPERATION_", type_id = "g_mount_operation_result_get_type ()")]
  4142. public enum MountOperationResult {
  4143. HANDLED,
  4144. ABORTED,
  4145. UNHANDLED
  4146. }
  4147. [CCode (cheader_filename = "gio/gio.h", cprefix = "G_MOUNT_UNMOUNT_", type_id = "g_mount_unmount_flags_get_type ()")]
  4148. [Flags]
  4149. public enum MountUnmountFlags {
  4150. NONE,
  4151. FORCE
  4152. }
  4153. [CCode (cheader_filename = "gio/gio.h", cprefix = "G_NETWORK_CONNECTIVITY_", type_id = "g_network_connectivity_get_type ()")]
  4154. [Version (since = "2.44")]
  4155. public enum NetworkConnectivity {
  4156. LOCAL,
  4157. LIMITED,
  4158. PORTAL,
  4159. FULL
  4160. }
  4161. [CCode (cheader_filename = "gio/gio.h", cprefix = "G_NOTIFICATION_PRIORITY_", type_id = "g_notification_priority_get_type ()")]
  4162. [Version (since = "2.42")]
  4163. public enum NotificationPriority {
  4164. NORMAL,
  4165. LOW,
  4166. HIGH,
  4167. URGENT
  4168. }
  4169. [CCode (cheader_filename = "gio/gio.h", cprefix = "G_OUTPUT_STREAM_SPLICE_", type_id = "g_output_stream_splice_flags_get_type ()")]
  4170. [Flags]
  4171. public enum OutputStreamSpliceFlags {
  4172. NONE,
  4173. CLOSE_SOURCE,
  4174. CLOSE_TARGET
  4175. }
  4176. [CCode (cheader_filename = "gio/gio.h", cprefix = "G_PASSWORD_SAVE_", type_id = "g_password_save_get_type ()")]
  4177. public enum PasswordSave {
  4178. NEVER,
  4179. FOR_SESSION,
  4180. PERMANENTLY
  4181. }
  4182. [CCode (cheader_filename = "gio/gio.h", cprefix = "G_RESOLVER_RECORD_", type_id = "g_resolver_record_type_get_type ()")]
  4183. [Version (since = "2.34")]
  4184. public enum ResolverRecordType {
  4185. SRV,
  4186. MX,
  4187. TXT,
  4188. SOA,
  4189. NS
  4190. }
  4191. [CCode (cheader_filename = "gio/gio.h", cprefix = "G_RESOURCE_FLAGS_", type_id = "g_resource_flags_get_type ()")]
  4192. [Flags]
  4193. [Version (since = "2.32")]
  4194. public enum ResourceFlags {
  4195. NONE,
  4196. COMPRESSED
  4197. }
  4198. [CCode (cheader_filename = "gio/gio.h", cprefix = "G_RESOURCE_LOOKUP_FLAGS_", type_id = "g_resource_lookup_flags_get_type ()")]
  4199. [Flags]
  4200. [Version (since = "2.32")]
  4201. public enum ResourceLookupFlags {
  4202. NONE
  4203. }
  4204. [CCode (cheader_filename = "gio/gio.h", cprefix = "G_SETTINGS_BIND_", type_id = "g_settings_bind_flags_get_type ()")]
  4205. [Flags]
  4206. public enum SettingsBindFlags {
  4207. DEFAULT,
  4208. GET,
  4209. SET,
  4210. NO_SENSITIVITY,
  4211. GET_NO_CHANGES,
  4212. INVERT_BOOLEAN
  4213. }
  4214. [CCode (cheader_filename = "gio/gio.h", cprefix = "G_SOCKET_CLIENT_", type_id = "g_socket_client_event_get_type ()")]
  4215. [Version (since = "2.32")]
  4216. public enum SocketClientEvent {
  4217. RESOLVING,
  4218. RESOLVED,
  4219. CONNECTING,
  4220. CONNECTED,
  4221. PROXY_NEGOTIATING,
  4222. PROXY_NEGOTIATED,
  4223. TLS_HANDSHAKING,
  4224. TLS_HANDSHAKED,
  4225. COMPLETE
  4226. }
  4227. [CCode (cheader_filename = "gio/gio.h", cprefix = "G_SOCKET_FAMILY_", type_id = "g_socket_family_get_type ()")]
  4228. [Version (since = "2.22")]
  4229. public enum SocketFamily {
  4230. INVALID,
  4231. UNIX,
  4232. IPV4,
  4233. IPV6
  4234. }
  4235. [CCode (cheader_filename = "gio/gio.h", cprefix = "G_SOCKET_LISTENER_", type_id = "g_socket_listener_event_get_type ()")]
  4236. [Version (since = "2.46")]
  4237. public enum SocketListenerEvent {
  4238. BINDING,
  4239. BOUND,
  4240. LISTENING,
  4241. LISTENED
  4242. }
  4243. [CCode (cheader_filename = "gio/gio.h", cprefix = "G_SOCKET_MSG_", type_id = "g_socket_msg_flags_get_type ()")]
  4244. [Flags]
  4245. [Version (since = "2.22")]
  4246. public enum SocketMsgFlags {
  4247. NONE,
  4248. OOB,
  4249. PEEK,
  4250. DONTROUTE
  4251. }
  4252. [CCode (cheader_filename = "gio/gio.h", cprefix = "G_SOCKET_PROTOCOL_", type_id = "g_socket_protocol_get_type ()")]
  4253. [Version (since = "2.22")]
  4254. public enum SocketProtocol {
  4255. UNKNOWN,
  4256. DEFAULT,
  4257. TCP,
  4258. UDP,
  4259. SCTP
  4260. }
  4261. [CCode (cheader_filename = "gio/gio.h", cprefix = "G_SOCKET_TYPE_", type_id = "g_socket_type_get_type ()")]
  4262. [Version (since = "2.22")]
  4263. public enum SocketType {
  4264. INVALID,
  4265. STREAM,
  4266. DATAGRAM,
  4267. SEQPACKET
  4268. }
  4269. [CCode (cheader_filename = "gio/gio.h", cprefix = "G_SUBPROCESS_FLAGS_", type_id = "g_subprocess_flags_get_type ()")]
  4270. [Flags]
  4271. [Version (since = "2.40")]
  4272. public enum SubprocessFlags {
  4273. NONE,
  4274. STDIN_PIPE,
  4275. STDIN_INHERIT,
  4276. STDOUT_PIPE,
  4277. STDOUT_SILENCE,
  4278. STDERR_PIPE,
  4279. STDERR_SILENCE,
  4280. STDERR_MERGE,
  4281. INHERIT_FDS
  4282. }
  4283. [CCode (cheader_filename = "gio/gio.h", cprefix = "G_TEST_DBUS_", type_id = "g_test_dbus_flags_get_type ()")]
  4284. [Flags]
  4285. [Version (since = "2.34")]
  4286. public enum TestDBusFlags {
  4287. NONE
  4288. }
  4289. [CCode (cheader_filename = "gio/gio.h", cprefix = "G_TLS_AUTHENTICATION_", type_id = "g_tls_authentication_mode_get_type ()")]
  4290. [Version (since = "2.28")]
  4291. public enum TlsAuthenticationMode {
  4292. NONE,
  4293. REQUESTED,
  4294. REQUIRED
  4295. }
  4296. [CCode (cheader_filename = "gio/gio.h", cprefix = "G_TLS_CERTIFICATE_", type_id = "g_tls_certificate_flags_get_type ()")]
  4297. [Flags]
  4298. [Version (since = "2.28")]
  4299. public enum TlsCertificateFlags {
  4300. UNKNOWN_CA,
  4301. BAD_IDENTITY,
  4302. NOT_ACTIVATED,
  4303. EXPIRED,
  4304. REVOKED,
  4305. INSECURE,
  4306. GENERIC_ERROR,
  4307. VALIDATE_ALL
  4308. }
  4309. [CCode (cheader_filename = "gio/gio.h", cprefix = "G_TLS_CERTIFICATE_REQUEST_", type_id = "g_tls_certificate_request_flags_get_type ()")]
  4310. [Version (since = "2.40")]
  4311. public enum TlsCertificateRequestFlags {
  4312. NONE
  4313. }
  4314. [CCode (cheader_filename = "gio/gio.h", cprefix = "G_TLS_DATABASE_LOOKUP_", type_id = "g_tls_database_lookup_flags_get_type ()")]
  4315. [Version (since = "2.30")]
  4316. public enum TlsDatabaseLookupFlags {
  4317. NONE,
  4318. KEYPAIR
  4319. }
  4320. [CCode (cheader_filename = "gio/gio.h", cprefix = "G_TLS_DATABASE_VERIFY_", type_id = "g_tls_database_verify_flags_get_type ()")]
  4321. [Flags]
  4322. [Version (since = "2.30")]
  4323. public enum TlsDatabaseVerifyFlags {
  4324. NONE
  4325. }
  4326. [CCode (cheader_filename = "gio/gio.h", cprefix = "G_TLS_INTERACTION_", type_id = "g_tls_interaction_result_get_type ()")]
  4327. [Version (since = "2.30")]
  4328. public enum TlsInteractionResult {
  4329. UNHANDLED,
  4330. HANDLED,
  4331. FAILED
  4332. }
  4333. [CCode (cheader_filename = "gio/gio.h", cprefix = "G_TLS_PASSWORD_", type_id = "g_tls_password_flags_get_type ()")]
  4334. [Flags]
  4335. [Version (since = "2.30")]
  4336. public enum TlsPasswordFlags {
  4337. NONE,
  4338. RETRY,
  4339. MANY_TRIES,
  4340. FINAL_TRY
  4341. }
  4342. [CCode (cheader_filename = "gio/gio.h", cprefix = "G_TLS_REHANDSHAKE_", type_id = "g_tls_rehandshake_mode_get_type ()")]
  4343. [Version (since = "2.28")]
  4344. public enum TlsRehandshakeMode {
  4345. NEVER,
  4346. SAFELY,
  4347. UNSAFELY
  4348. }
  4349. [CCode (cheader_filename = "gio/gio.h", cprefix = "G_UNIX_SOCKET_ADDRESS_", type_id = "g_unix_socket_address_type_get_type ()")]
  4350. [Version (since = "2.26")]
  4351. public enum UnixSocketAddressType {
  4352. INVALID,
  4353. ANONYMOUS,
  4354. PATH,
  4355. ABSTRACT,
  4356. ABSTRACT_PADDED
  4357. }
  4358. [CCode (cheader_filename = "gio/gio.h", cprefix = "G_ZLIB_COMPRESSOR_FORMAT_", type_id = "g_zlib_compressor_format_get_type ()")]
  4359. [Version (since = "2.24")]
  4360. public enum ZlibCompressorFormat {
  4361. ZLIB,
  4362. GZIP,
  4363. RAW
  4364. }
  4365. [CCode (cheader_filename = "gio/gio.h", cprefix = "G_DBUS_ERROR_")]
  4366. [Version (since = "2.26")]
  4367. public errordomain DBusError {
  4368. FAILED,
  4369. NO_MEMORY,
  4370. SERVICE_UNKNOWN,
  4371. NAME_HAS_NO_OWNER,
  4372. NO_REPLY,
  4373. IO_ERROR,
  4374. BAD_ADDRESS,
  4375. NOT_SUPPORTED,
  4376. LIMITS_EXCEEDED,
  4377. ACCESS_DENIED,
  4378. AUTH_FAILED,
  4379. NO_SERVER,
  4380. TIMEOUT,
  4381. NO_NETWORK,
  4382. ADDRESS_IN_USE,
  4383. DISCONNECTED,
  4384. INVALID_ARGS,
  4385. FILE_NOT_FOUND,
  4386. FILE_EXISTS,
  4387. UNKNOWN_METHOD,
  4388. TIMED_OUT,
  4389. MATCH_RULE_NOT_FOUND,
  4390. MATCH_RULE_INVALID,
  4391. SPAWN_EXEC_FAILED,
  4392. SPAWN_FORK_FAILED,
  4393. SPAWN_CHILD_EXITED,
  4394. SPAWN_CHILD_SIGNALED,
  4395. SPAWN_FAILED,
  4396. SPAWN_SETUP_FAILED,
  4397. SPAWN_CONFIG_INVALID,
  4398. SPAWN_SERVICE_INVALID,
  4399. SPAWN_SERVICE_NOT_FOUND,
  4400. SPAWN_PERMISSIONS_INVALID,
  4401. SPAWN_FILE_INVALID,
  4402. SPAWN_NO_MEMORY,
  4403. UNIX_PROCESS_ID_UNKNOWN,
  4404. INVALID_SIGNATURE,
  4405. INVALID_FILE_CONTENT,
  4406. SELINUX_SECURITY_CONTEXT_UNKNOWN,
  4407. ADT_AUDIT_DATA_UNKNOWN,
  4408. OBJECT_PATH_IN_USE,
  4409. UNKNOWN_OBJECT,
  4410. UNKNOWN_INTERFACE,
  4411. UNKNOWN_PROPERTY,
  4412. PROPERTY_READ_ONLY;
  4413. [CCode (cheader_filename = "gio/gio.h")]
  4414. public static string encode_gerror (GLib.Error error);
  4415. [CCode (cheader_filename = "gio/gio.h")]
  4416. public static string get_remote_error (GLib.Error error);
  4417. [CCode (cheader_filename = "gio/gio.h")]
  4418. public static bool is_remote_error (GLib.Error error);
  4419. [CCode (cheader_filename = "gio/gio.h")]
  4420. public static GLib.Error new_for_dbus_error (string dbus_error_name, string dbus_error_message);
  4421. [CCode (cheader_filename = "gio/gio.h")]
  4422. public static GLib.Quark quark ();
  4423. [CCode (cheader_filename = "gio/gio.h")]
  4424. public static bool register_error (GLib.Quark error_domain, int error_code, string dbus_error_name);
  4425. [CCode (cheader_filename = "gio/gio.h")]
  4426. public static void register_error_domain (string error_domain_quark_name, size_t quark_volatile, GLib.DBusErrorEntry entries, uint num_entries);
  4427. [CCode (cheader_filename = "gio/gio.h")]
  4428. public static bool strip_remote_error (GLib.Error error);
  4429. [CCode (cheader_filename = "gio/gio.h")]
  4430. public static bool unregister_error (GLib.Quark error_domain, int error_code, string dbus_error_name);
  4431. }
  4432. [CCode (cheader_filename = "gio/gio.h", cname = "GIOErrorEnum", cprefix = "G_IO_ERROR_")]
  4433. [GIR (name = "IOErrorEnum")]
  4434. public errordomain IOError {
  4435. FAILED,
  4436. NOT_FOUND,
  4437. EXISTS,
  4438. IS_DIRECTORY,
  4439. NOT_DIRECTORY,
  4440. NOT_EMPTY,
  4441. NOT_REGULAR_FILE,
  4442. NOT_SYMBOLIC_LINK,
  4443. NOT_MOUNTABLE_FILE,
  4444. FILENAME_TOO_LONG,
  4445. INVALID_FILENAME,
  4446. TOO_MANY_LINKS,
  4447. NO_SPACE,
  4448. INVALID_ARGUMENT,
  4449. PERMISSION_DENIED,
  4450. NOT_SUPPORTED,
  4451. NOT_MOUNTED,
  4452. ALREADY_MOUNTED,
  4453. CLOSED,
  4454. CANCELLED,
  4455. PENDING,
  4456. READ_ONLY,
  4457. CANT_CREATE_BACKUP,
  4458. WRONG_ETAG,
  4459. TIMED_OUT,
  4460. WOULD_RECURSE,
  4461. BUSY,
  4462. WOULD_BLOCK,
  4463. HOST_NOT_FOUND,
  4464. WOULD_MERGE,
  4465. FAILED_HANDLED,
  4466. TOO_MANY_OPEN_FILES,
  4467. NOT_INITIALIZED,
  4468. ADDRESS_IN_USE,
  4469. PARTIAL_INPUT,
  4470. INVALID_DATA,
  4471. DBUS_ERROR,
  4472. HOST_UNREACHABLE,
  4473. NETWORK_UNREACHABLE,
  4474. CONNECTION_REFUSED,
  4475. PROXY_FAILED,
  4476. PROXY_AUTH_FAILED,
  4477. PROXY_NEED_AUTH,
  4478. PROXY_NOT_ALLOWED,
  4479. BROKEN_PIPE,
  4480. CONNECTION_CLOSED,
  4481. NOT_CONNECTED,
  4482. MESSAGE_TOO_LARGE;
  4483. [CCode (cheader_filename = "gio/gio.h")]
  4484. public static unowned GLib.IOError from_errno (int err_no);
  4485. [CCode (cheader_filename = "gio/gio.h")]
  4486. public static GLib.Quark quark ();
  4487. }
  4488. [CCode (cheader_filename = "gio/gio.h", cprefix = "G_RESOLVER_ERROR_")]
  4489. [Version (since = "2.22")]
  4490. public errordomain ResolverError {
  4491. NOT_FOUND,
  4492. TEMPORARY_FAILURE,
  4493. INTERNAL;
  4494. [CCode (cheader_filename = "gio/gio.h")]
  4495. public static GLib.Quark quark ();
  4496. }
  4497. [CCode (cheader_filename = "gio/gio.h", cprefix = "G_RESOURCE_ERROR_")]
  4498. [Version (since = "2.32")]
  4499. public errordomain ResourceError {
  4500. NOT_FOUND,
  4501. INTERNAL;
  4502. [CCode (cheader_filename = "gio/gio.h")]
  4503. public static GLib.Quark quark ();
  4504. }
  4505. [CCode (cheader_filename = "gio/gio.h", cprefix = "G_TLS_ERROR_")]
  4506. [Version (since = "2.28")]
  4507. public errordomain TlsError {
  4508. UNAVAILABLE,
  4509. MISC,
  4510. BAD_CERTIFICATE,
  4511. NOT_TLS,
  4512. HANDSHAKE,
  4513. CERTIFICATE_REQUIRED,
  4514. EOF
  4515. }
  4516. [CCode (cheader_filename = "gio/gio.h", instance_pos = 2.9)]
  4517. public delegate void AsyncReadyCallback (GLib.Object? source_object, GLib.AsyncResult res);
  4518. [CCode (cheader_filename = "gio/gio.h", instance_pos = 2.9)]
  4519. [Version (since = "2.26")]
  4520. public delegate void BusAcquiredCallback (GLib.DBusConnection connection, string name);
  4521. [CCode (cheader_filename = "gio/gio.h", instance_pos = 2.9)]
  4522. [Version (since = "2.26")]
  4523. public delegate void BusNameAcquiredCallback (GLib.DBusConnection connection, string name);
  4524. [CCode (cheader_filename = "gio/gio.h", instance_pos = 3.9)]
  4525. [Version (since = "2.26")]
  4526. public delegate void BusNameAppearedCallback (GLib.DBusConnection connection, string name, string name_owner);
  4527. [CCode (cheader_filename = "gio/gio.h", instance_pos = 2.9)]
  4528. [Version (since = "2.26")]
  4529. public delegate void BusNameLostCallback (GLib.DBusConnection connection, string name);
  4530. [CCode (cheader_filename = "gio/gio.h", instance_pos = 2.9)]
  4531. [Version (since = "2.26")]
  4532. public delegate void BusNameVanishedCallback (GLib.DBusConnection connection, string name);
  4533. [CCode (cheader_filename = "gio/gio.h", instance_pos = 1.9)]
  4534. [Version (since = "2.28")]
  4535. public delegate bool CancellableSourceFunc (GLib.Cancellable? cancellable = null);
  4536. [CCode (cheader_filename = "gio/gio.h", instance_pos = 6.9)]
  4537. public delegate GLib.Variant DBusInterfaceGetPropertyFunc (GLib.DBusConnection connection, string sender, string object_path, string interface_name, string property_name) throws GLib.Error;
  4538. [CCode (cheader_filename = "gio/gio.h", instance_pos = 7.9)]
  4539. [Version (since = "2.26")]
  4540. public delegate void DBusInterfaceMethodCallFunc (GLib.DBusConnection connection, string sender, string object_path, string interface_name, string method_name, GLib.Variant parameters, owned GLib.DBusMethodInvocation invocation);
  4541. [CCode (cheader_filename = "gio/gio.h", instance_pos = 7.9)]
  4542. public delegate bool DBusInterfaceSetPropertyFunc (GLib.DBusConnection connection, string sender, string object_path, string interface_name, string property_name, GLib.Variant value) throws GLib.Error;
  4543. [CCode (cheader_filename = "gio/gio.h", instance_pos = 3.9)]
  4544. [Version (since = "2.26")]
  4545. public delegate GLib.DBusMessage? DBusMessageFilterFunction (GLib.DBusConnection connection, owned GLib.DBusMessage message, bool incoming);
  4546. [CCode (cheader_filename = "gio/gio.h", instance_pos = 3.9)]
  4547. [Version (since = "2.30")]
  4548. public delegate GLib.Type DBusProxyTypeFunc (GLib.DBusObjectManagerClient manager, string object_path, string? interface_name);
  4549. [CCode (cheader_filename = "gio/gio.h", instance_pos = 6.9)]
  4550. [Version (since = "2.26")]
  4551. public delegate void DBusSignalCallback (GLib.DBusConnection connection, string sender_name, string object_path, string interface_name, string signal_name, GLib.Variant parameters);
  4552. [CCode (cheader_filename = "gio/gio.h", instance_pos = 6.9)]
  4553. [Version (since = "2.26")]
  4554. public delegate unowned GLib.DBusInterfaceVTable? DBusSubtreeDispatchFunc (GLib.DBusConnection connection, string sender, string object_path, string interface_name, string node, void* out_user_data);
  4555. [CCode (array_length = false, array_null_terminated = true, cheader_filename = "gio/gio.h", instance_pos = 3.9)]
  4556. [Version (since = "2.26")]
  4557. public delegate string[] DBusSubtreeEnumerateFunc (GLib.DBusConnection connection, string sender, string object_path);
  4558. [CCode (cheader_filename = "gio/gio.h", instance_pos = 4.9)]
  4559. [Version (since = "2.26")]
  4560. public delegate GLib.DBusInterfaceInfo DBusSubtreeIntrospectFunc (GLib.DBusConnection connection, string sender, string object_path, string node);
  4561. [CCode (cheader_filename = "gio/gio.h", instance_pos = 2.9)]
  4562. [Version (since = "2.48")]
  4563. public delegate bool DatagramBasedSourceFunc (GLib.DatagramBased datagram_based, GLib.IOCondition condition);
  4564. [CCode (cheader_filename = "gio/gio.h", instance_pos = 4.9)]
  4565. [Version (since = "2.38")]
  4566. public delegate void FileMeasureProgressCallback (bool reporting, uint64 current_size, uint64 num_dirs, uint64 num_files);
  4567. [CCode (cheader_filename = "gio/gio.h", instance_pos = 2.9)]
  4568. public delegate void FileProgressCallback (int64 current_num_bytes, int64 total_num_bytes);
  4569. [CCode (cheader_filename = "gio/gio.h", has_target = false)]
  4570. public delegate bool FileReadMoreCallback (string file_contents, int64 file_size, void* callback_data);
  4571. [CCode (cheader_filename = "gio/gio.h", instance_pos = 2.9)]
  4572. public delegate bool IOSchedulerJobFunc (GLib.IOSchedulerJob job, GLib.Cancellable? cancellable = null);
  4573. [CCode (cheader_filename = "gio/gio.h", instance_pos = 1.9)]
  4574. [Version (since = "2.28")]
  4575. public delegate bool PollableSourceFunc (GLib.Object pollable_stream);
  4576. [CCode (cheader_filename = "gio/gio.h", has_target = false)]
  4577. public delegate void* ReallocFunc (void* data, size_t size);
  4578. [CCode (cheader_filename = "gio/gio.h", instance_pos = 2.9)]
  4579. public delegate bool SettingsBindGetMapping (GLib.Value value, GLib.Variant variant);
  4580. [CCode (cheader_filename = "gio/gio.h", cname = "GSettingsBindGetMapping", has_target = false)]
  4581. public delegate bool SettingsBindGetMappingShared (GLib.Value value, GLib.Variant variant, void* user_data);
  4582. [CCode (cheader_filename = "gio/gio.h", instance_pos = 2.9)]
  4583. public delegate GLib.Variant SettingsBindSetMapping (GLib.Value value, GLib.VariantType expected_type);
  4584. [CCode (cheader_filename = "gio/gio.h", cname = "GSettingsBindSetMapping", has_target = false)]
  4585. public delegate GLib.Variant SettingsBindSetMappingShared (GLib.Value value, GLib.VariantType expected_type, void* user_data);
  4586. [CCode (cheader_filename = "gio/gio.h", instance_pos = 2.9)]
  4587. public delegate bool SettingsGetMapping (GLib.Variant value, out void* result);
  4588. [CCode (cheader_filename = "gio/gio.h")]
  4589. [Version (deprecated_since = "vala-0.26", replacement = "SimplActionActivateFunc")]
  4590. public delegate void SimpleActionActivateCallback (GLib.SimpleAction action, GLib.Variant? parameter);
  4591. [CCode (cheader_filename = "gio/gio.h", has_target = false)]
  4592. public delegate void SimpleActionActivateFunc (GLib.SimpleAction action, GLib.Variant? parameter, void* user_data);
  4593. [CCode (cheader_filename = "gio/gio.h")]
  4594. [Version (deprecated_since = "vala-0.26", replacement = "SimplActionChangeStateFunc")]
  4595. public delegate void SimpleActionChangeStateCallback (GLib.SimpleAction action, GLib.Variant value);
  4596. [CCode (cheader_filename = "gio/gio.h", has_target = false)]
  4597. public delegate void SimpleActionChangeStateFunc (GLib.SimpleAction action, GLib.Variant value, void* user_data);
  4598. [CCode (cheader_filename = "gio/gio.h", has_target = false)]
  4599. public delegate void SimpleAsyncThreadFunc (GLib.SimpleAsyncResult res, GLib.Object object, GLib.Cancellable? cancellable = null);
  4600. [CCode (cheader_filename = "gio/gio.h", instance_pos = 2.9)]
  4601. [Version (since = "2.22")]
  4602. public delegate bool SocketSourceFunc (GLib.Socket socket, GLib.IOCondition condition);
  4603. [CCode (cheader_filename = "gio/gio.h", has_target = false)]
  4604. [Version (since = "2.36")]
  4605. public delegate void TaskThreadFunc (GLib.Task task, GLib.Object source_object, void* task_data, GLib.Cancellable? cancellable = null);
  4606. [CCode (cheader_filename = "gio/gio.h")]
  4607. [Version (deprecated_since = "vala-0.16", replacement = "File.equal")]
  4608. public static GLib.EqualFunc file_equal;
  4609. [CCode (cheader_filename = "gio/gio.h")]
  4610. [Version (deprecated_since = "vala-0.16", replacement = "File.hash")]
  4611. public static GLib.HashFunc file_hash;
  4612. [CCode (cheader_filename = "glib.h", cname = "g_realloc")]
  4613. public static GLib.ReallocFunc g_realloc;
  4614. [CCode (cheader_filename = "gio/gio.h")]
  4615. [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.ACCESS_CAN_DELETE")]
  4616. public const string FILE_ATTRIBUTE_ACCESS_CAN_DELETE;
  4617. [CCode (cheader_filename = "gio/gio.h")]
  4618. [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.ACCESS_CAN_EXECUTE")]
  4619. public const string FILE_ATTRIBUTE_ACCESS_CAN_EXECUTE;
  4620. [CCode (cheader_filename = "gio/gio.h")]
  4621. [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.ACCESS_CAN_READ")]
  4622. public const string FILE_ATTRIBUTE_ACCESS_CAN_READ;
  4623. [CCode (cheader_filename = "gio/gio.h")]
  4624. [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.ACCESS_CAN_RENAME")]
  4625. public const string FILE_ATTRIBUTE_ACCESS_CAN_RENAME;
  4626. [CCode (cheader_filename = "gio/gio.h")]
  4627. [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.ACCESS_CAN_TRASH")]
  4628. public const string FILE_ATTRIBUTE_ACCESS_CAN_TRASH;
  4629. [CCode (cheader_filename = "gio/gio.h")]
  4630. [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.ACCESS_CAN_WRITE")]
  4631. public const string FILE_ATTRIBUTE_ACCESS_CAN_WRITE;
  4632. [CCode (cheader_filename = "gio/gio.h")]
  4633. [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.DOS_IS_ARCHIVE")]
  4634. public const string FILE_ATTRIBUTE_DOS_IS_ARCHIVE;
  4635. [CCode (cheader_filename = "gio/gio.h")]
  4636. [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.DOS_IS_SYSTEM")]
  4637. public const string FILE_ATTRIBUTE_DOS_IS_SYSTEM;
  4638. [CCode (cheader_filename = "gio/gio.h")]
  4639. [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.ETAG_VALUE")]
  4640. public const string FILE_ATTRIBUTE_ETAG_VALUE;
  4641. [CCode (cheader_filename = "gio/gio.h")]
  4642. [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.FILESYSTEM_FREE")]
  4643. public const string FILE_ATTRIBUTE_FILESYSTEM_FREE;
  4644. [CCode (cheader_filename = "gio/gio.h")]
  4645. [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.FILESYSTEM_READONLY")]
  4646. public const string FILE_ATTRIBUTE_FILESYSTEM_READONLY;
  4647. [CCode (cheader_filename = "gio/gio.h")]
  4648. [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.FILESYSTEM_SIZE")]
  4649. public const string FILE_ATTRIBUTE_FILESYSTEM_SIZE;
  4650. [CCode (cheader_filename = "gio/gio.h")]
  4651. [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.FILESYSTEM_TYPE")]
  4652. public const string FILE_ATTRIBUTE_FILESYSTEM_TYPE;
  4653. [CCode (cheader_filename = "gio/gio.h")]
  4654. [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.FILESYSTEM_USE_PREVIEW")]
  4655. public const string FILE_ATTRIBUTE_FILESYSTEM_USE_PREVIEW;
  4656. [CCode (cheader_filename = "gio/gio.h")]
  4657. [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.GVFS_BACKEND")]
  4658. public const string FILE_ATTRIBUTE_GVFS_BACKEND;
  4659. [CCode (cheader_filename = "gio/gio.h")]
  4660. [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.ID_FILE")]
  4661. public const string FILE_ATTRIBUTE_ID_FILE;
  4662. [CCode (cheader_filename = "gio/gio.h")]
  4663. [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.ID_FILESYSTEM")]
  4664. public const string FILE_ATTRIBUTE_ID_FILESYSTEM;
  4665. [CCode (cheader_filename = "gio/gio.h")]
  4666. [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.MOUNTABLE_CAN_EJECT")]
  4667. public const string FILE_ATTRIBUTE_MOUNTABLE_CAN_EJECT;
  4668. [CCode (cheader_filename = "gio/gio.h")]
  4669. [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.MOUNTABLE_CAN_MOUNT")]
  4670. public const string FILE_ATTRIBUTE_MOUNTABLE_CAN_MOUNT;
  4671. [CCode (cheader_filename = "gio/gio.h")]
  4672. [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.MOUNTABLE_CAN_POLL")]
  4673. public const string FILE_ATTRIBUTE_MOUNTABLE_CAN_POLL;
  4674. [CCode (cheader_filename = "gio/gio.h")]
  4675. [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.MOUNTABLE_CAN_START")]
  4676. public const string FILE_ATTRIBUTE_MOUNTABLE_CAN_START;
  4677. [CCode (cheader_filename = "gio/gio.h")]
  4678. [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.MOUNTABLE_CAN_START_DEGRADED")]
  4679. public const string FILE_ATTRIBUTE_MOUNTABLE_CAN_START_DEGRADED;
  4680. [CCode (cheader_filename = "gio/gio.h")]
  4681. [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.MOUNTABLE_CAN_STOP")]
  4682. public const string FILE_ATTRIBUTE_MOUNTABLE_CAN_STOP;
  4683. [CCode (cheader_filename = "gio/gio.h")]
  4684. [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.MOUNTABLE_CAN_UNMOUNT")]
  4685. public const string FILE_ATTRIBUTE_MOUNTABLE_CAN_UNMOUNT;
  4686. [CCode (cheader_filename = "gio/gio.h")]
  4687. [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.MOUNTABLE_HAL_UDI")]
  4688. public const string FILE_ATTRIBUTE_MOUNTABLE_HAL_UDI;
  4689. [CCode (cheader_filename = "gio/gio.h")]
  4690. [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.MOUNTABLE_IS_MEDIA_CHECK_AUTOMATIC")]
  4691. public const string FILE_ATTRIBUTE_MOUNTABLE_IS_MEDIA_CHECK_AUTOMATIC;
  4692. [CCode (cheader_filename = "gio/gio.h")]
  4693. [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.MOUNTABLE_START_STOP_TYPE")]
  4694. public const string FILE_ATTRIBUTE_MOUNTABLE_START_STOP_TYPE;
  4695. [CCode (cheader_filename = "gio/gio.h")]
  4696. [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.MOUNTABLE_UNIX_DEVICE")]
  4697. public const string FILE_ATTRIBUTE_MOUNTABLE_UNIX_DEVICE;
  4698. [CCode (cheader_filename = "gio/gio.h")]
  4699. [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.MOUNTABLE_UNIX_DEVICE_FILE")]
  4700. public const string FILE_ATTRIBUTE_MOUNTABLE_UNIX_DEVICE_FILE;
  4701. [CCode (cheader_filename = "gio/gio.h")]
  4702. [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.OWNER_GROUP")]
  4703. public const string FILE_ATTRIBUTE_OWNER_GROUP;
  4704. [CCode (cheader_filename = "gio/gio.h")]
  4705. [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.OWNER_USER")]
  4706. public const string FILE_ATTRIBUTE_OWNER_USER;
  4707. [CCode (cheader_filename = "gio/gio.h")]
  4708. [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.OWNER_USER_REAL")]
  4709. public const string FILE_ATTRIBUTE_OWNER_USER_REAL;
  4710. [CCode (cheader_filename = "gio/gio.h")]
  4711. [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.PREVIEW_ICON")]
  4712. public const string FILE_ATTRIBUTE_PREVIEW_ICON;
  4713. [CCode (cheader_filename = "gio/gio.h")]
  4714. [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.SELINUX_CONTEXT")]
  4715. public const string FILE_ATTRIBUTE_SELINUX_CONTEXT;
  4716. [CCode (cheader_filename = "gio/gio.h")]
  4717. [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.STANDARD_ALLOCATED_SIZE")]
  4718. public const string FILE_ATTRIBUTE_STANDARD_ALLOCATED_SIZE;
  4719. [CCode (cheader_filename = "gio/gio.h")]
  4720. [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.STANDARD_CONTENT_TYPE")]
  4721. public const string FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE;
  4722. [CCode (cheader_filename = "gio/gio.h")]
  4723. [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.STANDARD_COPY_NAME")]
  4724. public const string FILE_ATTRIBUTE_STANDARD_COPY_NAME;
  4725. [CCode (cheader_filename = "gio/gio.h")]
  4726. [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.STANDARD_DESCRIPTION")]
  4727. public const string FILE_ATTRIBUTE_STANDARD_DESCRIPTION;
  4728. [CCode (cheader_filename = "gio/gio.h")]
  4729. [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.STANDARD_DISPLAY_NAME")]
  4730. public const string FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME;
  4731. [CCode (cheader_filename = "gio/gio.h")]
  4732. [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.STANDARD_EDIT_NAME")]
  4733. public const string FILE_ATTRIBUTE_STANDARD_EDIT_NAME;
  4734. [CCode (cheader_filename = "gio/gio.h")]
  4735. [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.STANDARD_FAST_CONTENT_TYPE")]
  4736. public const string FILE_ATTRIBUTE_STANDARD_FAST_CONTENT_TYPE;
  4737. [CCode (cheader_filename = "gio/gio.h")]
  4738. [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.STANDARD_ICON")]
  4739. public const string FILE_ATTRIBUTE_STANDARD_ICON;
  4740. [CCode (cheader_filename = "gio/gio.h")]
  4741. [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.STANDARD_IS_BACKUP")]
  4742. public const string FILE_ATTRIBUTE_STANDARD_IS_BACKUP;
  4743. [CCode (cheader_filename = "gio/gio.h")]
  4744. [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.STANDARD_IS_HIDDEN")]
  4745. public const string FILE_ATTRIBUTE_STANDARD_IS_HIDDEN;
  4746. [CCode (cheader_filename = "gio/gio.h")]
  4747. [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.STANDARD_IS_SYMLINK")]
  4748. public const string FILE_ATTRIBUTE_STANDARD_IS_SYMLINK;
  4749. [CCode (cheader_filename = "gio/gio.h")]
  4750. [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.STANDARD_IS_VIRTUAL")]
  4751. public const string FILE_ATTRIBUTE_STANDARD_IS_VIRTUAL;
  4752. [CCode (cheader_filename = "gio/gio.h")]
  4753. [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.STANDARD_NAME")]
  4754. public const string FILE_ATTRIBUTE_STANDARD_NAME;
  4755. [CCode (cheader_filename = "gio/gio.h")]
  4756. [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.STANDARD_SIZE")]
  4757. public const string FILE_ATTRIBUTE_STANDARD_SIZE;
  4758. [CCode (cheader_filename = "gio/gio.h")]
  4759. [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.STANDARD_SORT_ORDER")]
  4760. public const string FILE_ATTRIBUTE_STANDARD_SORT_ORDER;
  4761. [CCode (cheader_filename = "gio/gio.h")]
  4762. [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.STANDARD_SYMLINK_TARGET")]
  4763. public const string FILE_ATTRIBUTE_STANDARD_SYMLINK_TARGET;
  4764. [CCode (cheader_filename = "gio/gio.h")]
  4765. [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.STANDARD_TARGET_URI")]
  4766. public const string FILE_ATTRIBUTE_STANDARD_TARGET_URI;
  4767. [CCode (cheader_filename = "gio/gio.h")]
  4768. [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.STANDARD_TYPE")]
  4769. public const string FILE_ATTRIBUTE_STANDARD_TYPE;
  4770. [CCode (cheader_filename = "gio/gio.h")]
  4771. [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.THUMBNAILING_FAILED")]
  4772. public const string FILE_ATTRIBUTE_THUMBNAILING_FAILED;
  4773. [CCode (cheader_filename = "gio/gio.h")]
  4774. [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.THUMBNAIL_PATH")]
  4775. public const string FILE_ATTRIBUTE_THUMBNAIL_PATH;
  4776. [CCode (cheader_filename = "gio/gio.h")]
  4777. [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.TIME_ACCESS")]
  4778. public const string FILE_ATTRIBUTE_TIME_ACCESS;
  4779. [CCode (cheader_filename = "gio/gio.h")]
  4780. [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.TIME_ACCESS_USEC")]
  4781. public const string FILE_ATTRIBUTE_TIME_ACCESS_USEC;
  4782. [CCode (cheader_filename = "gio/gio.h")]
  4783. [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.TIME_CHANGED")]
  4784. public const string FILE_ATTRIBUTE_TIME_CHANGED;
  4785. [CCode (cheader_filename = "gio/gio.h")]
  4786. [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.TIME_CHANGED_USEC")]
  4787. public const string FILE_ATTRIBUTE_TIME_CHANGED_USEC;
  4788. [CCode (cheader_filename = "gio/gio.h")]
  4789. [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.TIME_CREATED")]
  4790. public const string FILE_ATTRIBUTE_TIME_CREATED;
  4791. [CCode (cheader_filename = "gio/gio.h")]
  4792. [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.TIME_CREATED_USEC")]
  4793. public const string FILE_ATTRIBUTE_TIME_CREATED_USEC;
  4794. [CCode (cheader_filename = "gio/gio.h")]
  4795. [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.TIME_MODIFIED")]
  4796. public const string FILE_ATTRIBUTE_TIME_MODIFIED;
  4797. [CCode (cheader_filename = "gio/gio.h")]
  4798. [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.TIME_MODIFIED_USEC")]
  4799. public const string FILE_ATTRIBUTE_TIME_MODIFIED_USEC;
  4800. [CCode (cheader_filename = "gio/gio.h")]
  4801. [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.TRASH_DELETION_DATE")]
  4802. public const string FILE_ATTRIBUTE_TRASH_DELETION_DATE;
  4803. [CCode (cheader_filename = "gio/gio.h")]
  4804. [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.TRASH_ITEM_COUNT")]
  4805. public const string FILE_ATTRIBUTE_TRASH_ITEM_COUNT;
  4806. [CCode (cheader_filename = "gio/gio.h")]
  4807. [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.TRASH_ORIG_PATH")]
  4808. public const string FILE_ATTRIBUTE_TRASH_ORIG_PATH;
  4809. [CCode (cheader_filename = "gio/gio.h")]
  4810. [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.UNIX_BLOCKS")]
  4811. public const string FILE_ATTRIBUTE_UNIX_BLOCKS;
  4812. [CCode (cheader_filename = "gio/gio.h")]
  4813. [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.UNIX_BLOCK_SIZE")]
  4814. public const string FILE_ATTRIBUTE_UNIX_BLOCK_SIZE;
  4815. [CCode (cheader_filename = "gio/gio.h")]
  4816. [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.UNIX_DEVICE")]
  4817. public const string FILE_ATTRIBUTE_UNIX_DEVICE;
  4818. [CCode (cheader_filename = "gio/gio.h")]
  4819. [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.UNIX_GID")]
  4820. public const string FILE_ATTRIBUTE_UNIX_GID;
  4821. [CCode (cheader_filename = "gio/gio.h")]
  4822. [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.UNIX_INODE")]
  4823. public const string FILE_ATTRIBUTE_UNIX_INODE;
  4824. [CCode (cheader_filename = "gio/gio.h")]
  4825. [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.UNIX_IS_MOUNTPOINT")]
  4826. public const string FILE_ATTRIBUTE_UNIX_IS_MOUNTPOINT;
  4827. [CCode (cheader_filename = "gio/gio.h")]
  4828. [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.UNIX_MODE")]
  4829. public const string FILE_ATTRIBUTE_UNIX_MODE;
  4830. [CCode (cheader_filename = "gio/gio.h")]
  4831. [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.UNIX_NLINK")]
  4832. public const string FILE_ATTRIBUTE_UNIX_NLINK;
  4833. [CCode (cheader_filename = "gio/gio.h")]
  4834. [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.UNIX_RDEV")]
  4835. public const string FILE_ATTRIBUTE_UNIX_RDEV;
  4836. [CCode (cheader_filename = "gio/gio.h")]
  4837. [Version (deprecated_since = "vala-0.16", replacement = "FileAttribute.UNIX_UID")]
  4838. public const string FILE_ATTRIBUTE_UNIX_UID;
  4839. [CCode (cheader_filename = "gio/gio.h")]
  4840. [Version (deprecated_since = "vala-0.16", replacement = "Menu.ATTRIBUTE_ACTION")]
  4841. public const string MENU_ATTRIBUTE_ACTION;
  4842. [CCode (cheader_filename = "gio/gio.h")]
  4843. [Version (deprecated_since = "vala-0.16", replacement = "Menu.ATTRIBUTE_LABEL")]
  4844. public const string MENU_ATTRIBUTE_LABEL;
  4845. [CCode (cheader_filename = "gio/gio.h")]
  4846. [Version (deprecated_since = "vala-0.16", replacement = "Menu.ATTRIBUTE_TARGET")]
  4847. public const string MENU_ATTRIBUTE_TARGET;
  4848. [CCode (cheader_filename = "gio/gio.h")]
  4849. [Version (deprecated_since = "vala-0.16", replacement = "Menu.LINK_SECTION_SECTION")]
  4850. public const string MENU_LINK_SECTION;
  4851. [CCode (cheader_filename = "gio/gio.h")]
  4852. [Version (deprecated_since = "vala-0.16", replacement = "Menu.LINK_SUBMENU")]
  4853. public const string MENU_LINK_SUBMENU;
  4854. [CCode (cheader_filename = "gio/gio.h")]
  4855. [Version (deprecated_since = "vala-0.16", replacement = "IOExtensionPoint.NATIVE_VOLUME_MONITOR")]
  4856. public const string NATIVE_VOLUME_MONITOR_EXTENSION_POINT_NAME;
  4857. [CCode (cheader_filename = "gio/gio.h")]
  4858. [Version (deprecated_since = "vala-0.16", replacement = "IOExtensionPoint.NETWORK_MONITOR")]
  4859. public const string NETWORK_MONITOR_EXTENSION_POINT_NAME;
  4860. [CCode (cheader_filename = "gio/gio.h")]
  4861. [Version (deprecated_since = "vala-0.16", replacement = "IOExtensionPoint.PROXY")]
  4862. public const string PROXY_EXTENSION_POINT_NAME;
  4863. [CCode (cheader_filename = "gio/gio.h")]
  4864. [Version (deprecated_since = "vala-0.16", replacement = "IOExtensionPoint.PROXY_RESOLVER")]
  4865. public const string PROXY_RESOLVER_EXTENSION_POINT_NAME;
  4866. [CCode (cheader_filename = "gio/gio.h")]
  4867. [Version (deprecated_since = "vala-0.16", replacement = "IOExtensionPoint.TLS_BACKEND")]
  4868. public const string TLS_BACKEND_EXTENSION_POINT_NAME;
  4869. [CCode (cheader_filename = "gio/gio.h")]
  4870. [Version (deprecated_since = "vala-0.16", replacement = "TlsDatabase.PURPOSE_AUTHENTICATE_CLIENT")]
  4871. public const string TLS_DATABASE_PURPOSE_AUTHENTICATE_CLIENT;
  4872. [CCode (cheader_filename = "gio/gio.h")]
  4873. [Version (deprecated_since = "vala-0.16", replacement = "TlsDatabase.PURPOSE_AUTHENTICATE_SERVER")]
  4874. public const string TLS_DATABASE_PURPOSE_AUTHENTICATE_SERVER;
  4875. [CCode (cheader_filename = "gio/gio.h")]
  4876. [Version (deprecated_since = "vala-0.16", replacement = "IOExtensionPoint.VFS")]
  4877. public const string VFS_EXTENSION_POINT_NAME;
  4878. [CCode (cheader_filename = "gio/gio.h")]
  4879. [Version (deprecated_since = "vala-0.16", replacement = "GLib.VolumeIdentifier.HAL_UDI")]
  4880. public const string VOLUME_IDENTIFIER_KIND_HAL_UDI;
  4881. [CCode (cheader_filename = "gio/gio.h")]
  4882. [Version (deprecated_since = "vala-0.16", replacement = "GLib.VolumeIdentifier.LABEL")]
  4883. public const string VOLUME_IDENTIFIER_KIND_LABEL;
  4884. [CCode (cheader_filename = "gio/gio.h")]
  4885. [Version (deprecated_since = "vala-0.16", replacement = "GLib.VolumeIdentifier.NFS_MOUNT")]
  4886. public const string VOLUME_IDENTIFIER_KIND_NFS_MOUNT;
  4887. [CCode (cheader_filename = "gio/gio.h")]
  4888. [Version (deprecated_since = "vala-0.16", replacement = "GLib.VolumeIdentifier.UNIX_DEVICE")]
  4889. public const string VOLUME_IDENTIFIER_KIND_UNIX_DEVICE;
  4890. [CCode (cheader_filename = "gio/gio.h")]
  4891. [Version (deprecated_since = "vala-0.16", replacement = "GLib.VolumeIdentifier.UUID")]
  4892. public const string VOLUME_IDENTIFIER_KIND_UUID;
  4893. [CCode (cheader_filename = "gio/gio.h")]
  4894. [Version (deprecated_since = "vala-0.16", replacement = "IOExtensionPoint.VOLUME_MONITOR")]
  4895. public const string VOLUME_MONITOR_EXTENSION_POINT_NAME;
  4896. [CCode (cheader_filename = "gio/gio.h")]
  4897. [Version (since = "2.38")]
  4898. public static bool action_name_is_valid (string action_name);
  4899. [CCode (cheader_filename = "gio/gio.h")]
  4900. [Version (since = "2.38")]
  4901. public static bool action_parse_detailed_name (string detailed_name, out string action_name, out GLib.Variant target_value) throws GLib.Error;
  4902. [CCode (cheader_filename = "gio/gio.h")]
  4903. [Version (since = "2.38")]
  4904. public static string action_print_detailed_name (string action_name, GLib.Variant? target_value);
  4905. [CCode (cheader_filename = "gio/gio.h")]
  4906. [Version (since = "2.48")]
  4907. public static GLib.DtlsClientConnection dtls_client_connection_new (GLib.DatagramBased base_socket, GLib.SocketConnectable? server_identity) throws GLib.Error;
  4908. [CCode (cheader_filename = "gio/gio.h")]
  4909. [Version (since = "2.48")]
  4910. public static GLib.DtlsServerConnection dtls_server_connection_new (GLib.DatagramBased base_socket, GLib.TlsCertificate? certificate) throws GLib.Error;
  4911. [CCode (cheader_filename = "gio/gio.h", cname = "g_content_type_can_be_executable")]
  4912. [Version (deprecated_since = "vala-0.12", replacement = "GLib.ContentType.can_be_executable")]
  4913. public static bool g_content_type_can_be_executable (string type);
  4914. [CCode (cheader_filename = "gio/gio.h", cname = "g_content_type_equals")]
  4915. [Version (deprecated_since = "vala-0.12", replacement = "GLib.ContentType.equals")]
  4916. public static bool g_content_type_equals (string type1, string type2);
  4917. [CCode (cheader_filename = "gio/gio.h", cname = "g_content_type_from_mime_type")]
  4918. [Version (deprecated_since = "vala-0.12", replacement = "GLib.ContentType.from_mime_type")]
  4919. public static string? g_content_type_from_mime_type (string mime_type);
  4920. [CCode (cheader_filename = "gio/gio.h", cname = "g_content_type_get_description")]
  4921. [Version (deprecated_since = "vala-0.12", replacement = "GLib.ContentType.get_description")]
  4922. public static string g_content_type_get_description (string type);
  4923. [CCode (cheader_filename = "gio/gio.h", cname = "g_content_type_get_icon")]
  4924. [Version (deprecated_since = "vala-0.12", replacement = "GLib.ContentType.get_icon")]
  4925. public static GLib.Icon g_content_type_get_icon (string type);
  4926. [CCode (cheader_filename = "gio/gio.h", cname = "g_content_type_get_mime_type")]
  4927. [Version (deprecated_since = "vala-0.12", replacement = "GLib.ContentType.get_mime_type")]
  4928. public static string? g_content_type_get_mime_type (string type);
  4929. [CCode (cheader_filename = "gio/gio.h", cname = "g_content_type_guess")]
  4930. [Version (deprecated_since = "vala-0.12", replacement = "GLib.ContentType.guess")]
  4931. public static string g_content_type_guess (string filename, uchar[] data, out bool result_uncertain);
  4932. [CCode (cheader_filename = "gio/gio.h", cname = "g_content_type_guess_for_tree")]
  4933. [Version (deprecated_since = "vala-0.12", replacement = "GLib.ContentType.guess_for_tree")]
  4934. public static string g_content_type_guess_for_tree (GLib.File root);
  4935. [CCode (cheader_filename = "gio/gio.h", cname = "g_content_type_is_a")]
  4936. [Version (deprecated_since = "vala-0.12", replacement = "GLib.ContentType.is_a")]
  4937. public static bool g_content_type_is_a (string type, string supertype);
  4938. [CCode (cheader_filename = "gio/gio.h", cname = "g_content_type_is_unknown")]
  4939. [Version (deprecated_since = "vala-0.12", replacement = "GLib.ContentType.is_unknown")]
  4940. public static bool g_content_type_is_unknown (string type);
  4941. [CCode (cheader_filename = "gio/gio.h", cname = "g_content_types_get_registered")]
  4942. [Version (deprecated_since = "vala-0.16", replacement = "ContentType.list_registered")]
  4943. public static GLib.List<string> g_content_types_get_registered ();
  4944. [CCode (cheader_filename = "gio/gio.h", cname = "g_dbus_address_get_for_bus_sync")]
  4945. [Version (deprecated_since = "vala-0.16", replacement = "BusType.get_address_sync")]
  4946. public static unowned string g_dbus_address_get_for_bus_sync (GLib.BusType bus_type, GLib.Cancellable? cancellable = null) throws GLib.Error;
  4947. [CCode (cheader_filename = "gio/gio.h", cname = "g_dbus_address_get_stream")]
  4948. [Version (deprecated_since = "vala-0.16", replacement = "DBus.address_get_stream")]
  4949. public static async void g_dbus_address_get_stream (string address, GLib.Cancellable? cancellable = null);
  4950. [CCode (cheader_filename = "gio/gio.h", cname = "g_dbus_address_get_stream_finish")]
  4951. [Version (deprecated_since = "vala-0.16", replacement = "DBus.address_get_stream_finish")]
  4952. public static unowned GLib.IOStream g_dbus_address_get_stream_finish (GLib.AsyncResult res, string out_guid) throws GLib.Error;
  4953. [CCode (cheader_filename = "gio/gio.h", cname = "g_dbus_address_get_stream_sync")]
  4954. [Version (deprecated_since = "vala-0.16", replacement = "DBus.address_get_stream_sync")]
  4955. public static unowned GLib.IOStream g_dbus_address_get_stream_sync (string address, string out_guid, GLib.Cancellable? cancellable = null) throws GLib.Error;
  4956. [CCode (cheader_filename = "gio/gio.h", cname = "g_dbus_error_encode_gerror")]
  4957. [Version (deprecated_since = "vala-0.16", replacement = "DBusError.encode_gerror")]
  4958. public static unowned string g_dbus_error_encode_gerror (GLib.Error error);
  4959. [CCode (cheader_filename = "gio/gio.h", cname = "g_dbus_error_get_remote_error")]
  4960. [Version (deprecated_since = "vala-0.16", replacement = "DBusError.get_remote_error")]
  4961. public static unowned string g_dbus_error_get_remote_error (GLib.Error error);
  4962. [CCode (cheader_filename = "gio/gio.h", cname = "g_dbus_error_is_remote_error")]
  4963. [Version (deprecated_since = "vala-0.16", replacement = "DBusError.error_is_remote_error")]
  4964. public static bool g_dbus_error_is_remote_error (GLib.Error error);
  4965. [CCode (cheader_filename = "gio/gio.h", cname = "g_dbus_error_new_for_dbus_error")]
  4966. [Version (deprecated_since = "vala-0.16", replacement = "DBusError.new_for_dbus_error")]
  4967. public static unowned GLib.Error g_dbus_error_new_for_dbus_error (string dbus_error_name, string dbus_error_message);
  4968. [CCode (cheader_filename = "gio/gio.h", cname = "g_dbus_error_quark")]
  4969. [Version (deprecated_since = "vala-0.16", replacement = "DBusError.quark")]
  4970. public static GLib.Quark g_dbus_error_quark ();
  4971. [CCode (cheader_filename = "gio/gio.h", cname = "g_dbus_error_register_error")]
  4972. [Version (deprecated_since = "vala-0.16", replacement = "DBusError.register_error")]
  4973. public static bool g_dbus_error_register_error (GLib.Quark error_domain, int error_code, string dbus_error_name);
  4974. [CCode (cheader_filename = "gio/gio.h", cname = "g_dbus_error_register_error_domain")]
  4975. [Version (deprecated_since = "vala-0.16", replacement = "DBusError.register_error_domain")]
  4976. public static void g_dbus_error_register_error_domain (string error_domain_quark_name, size_t quark_volatile, GLib.DBusErrorEntry entries, uint num_entries);
  4977. [CCode (cheader_filename = "gio/gio.h", cname = "g_dbus_error_set_dbus_error")]
  4978. [Version (deprecated_since = "vala-0.16", replacement = "DBusError.set_dbus_error")]
  4979. public static void g_dbus_error_set_dbus_error (string dbus_error_name, string dbus_error_message, string format) throws GLib.Error;
  4980. [CCode (cheader_filename = "gio/gio.h", cname = "g_dbus_error_set_dbus_error_valist")]
  4981. [Version (deprecated_since = "vala-0.16", replacement = "DBusError.set_dbus_error_valist")]
  4982. public static void g_dbus_error_set_dbus_error_valist (string dbus_error_name, string dbus_error_message, string format, void* var_args) throws GLib.Error;
  4983. [CCode (cheader_filename = "gio/gio.h", cname = "g_dbus_error_strip_remote_error")]
  4984. [Version (deprecated_since = "vala-0.16", replacement = "DBusError.strip_remote_error")]
  4985. public static bool g_dbus_error_strip_remote_error (GLib.Error error);
  4986. [CCode (cheader_filename = "gio/gio.h", cname = "g_dbus_error_unregister_error")]
  4987. [Version (deprecated_since = "vala-0.16", replacement = "DBusError.unregister_error")]
  4988. public static bool g_dbus_error_unregister_error (GLib.Quark error_domain, int error_code, string dbus_error_name);
  4989. [CCode (cheader_filename = "gio/gio.h", cname = "g_dbus_generate_guid")]
  4990. [Version (deprecated_since = "vala-0.16", replacement = "DBus.generate_guid")]
  4991. public static unowned string g_dbus_generate_guid ();
  4992. [CCode (cheader_filename = "gio/gio.h", cname = "g_dbus_gvalue_to_gvariant")]
  4993. [Version (deprecated_since = "vala-0.16", replacement = "DBus.gvalue_to_gvariant")]
  4994. public static unowned GLib.Variant g_dbus_gvalue_to_gvariant (GLib.Value gvalue, GLib.VariantType type);
  4995. [CCode (cheader_filename = "gio/gio.h", cname = "g_dbus_gvariant_to_gvalue")]
  4996. [Version (deprecated_since = "vala-0.16", replacement = "DBus.gvariant_to_gvalue")]
  4997. public static void g_dbus_gvariant_to_gvalue (GLib.Variant value, GLib.Value out_gvalue);
  4998. [CCode (cheader_filename = "gio/gio.h", cname = "g_dbus_is_address")]
  4999. [Version (deprecated_since = "vala-0.16", replacement = "DBus.is_address")]
  5000. public static bool g_dbus_is_address (string str);
  5001. [CCode (cheader_filename = "gio/gio.h", cname = "g_dbus_is_guid")]
  5002. [Version (deprecated_since = "vala-0.16", replacement = "DBus.is_guid")]
  5003. public static bool g_dbus_is_guid (string str);
  5004. [CCode (cheader_filename = "gio/gio.h", cname = "g_dbus_is_interface_name")]
  5005. [Version (deprecated_since = "vala-0.16", replacement = "DBus.is_interface_name")]
  5006. public static bool g_dbus_is_interface_name (string str);
  5007. [CCode (cheader_filename = "gio/gio.h", cname = "g_dbus_is_member_name")]
  5008. [Version (deprecated_since = "vala-0.16", replacement = "DBus.is_member_name")]
  5009. public static bool g_dbus_is_member_name (string str);
  5010. [CCode (cheader_filename = "gio/gio.h", cname = "g_dbus_is_name")]
  5011. [Version (deprecated_since = "vala-0.16", replacement = "DBus.is_name")]
  5012. public static bool g_dbus_is_name (string str);
  5013. [CCode (cheader_filename = "gio/gio.h", cname = "g_dbus_is_supported_address")]
  5014. [Version (deprecated_since = "vala-0.16", replacement = "DBus.is_supported_address")]
  5015. public static bool g_dbus_is_supported_address (string str) throws GLib.Error;
  5016. [CCode (cheader_filename = "gio/gio.h", cname = "g_dbus_is_unique_name")]
  5017. [Version (deprecated_since = "vala-0.16", replacement = "DBus.is_unique_name")]
  5018. public static bool g_dbus_is_unique_name (string str);
  5019. [CCode (cheader_filename = "gio/gio.h", cname = "g_io_error_from_errno")]
  5020. [Version (deprecated_since = "vala-0.16", replacement = "IOError.from_errno")]
  5021. public static unowned GLib.IOError g_io_error_from_errno (int err_no);
  5022. [CCode (cheader_filename = "gio/gio.h", cname = "g_io_error_quark")]
  5023. [Version (deprecated_since = "vala-0.16", replacement = "IOError.quark")]
  5024. public static GLib.Quark g_io_error_quark ();
  5025. [CCode (cheader_filename = "gio/gio.h", cname = "g_io_modules_load_all_in_directory")]
  5026. [Version (deprecated_since = "vala-0.16", replacement = "IOModule.load_all_in_directory")]
  5027. public static GLib.List<weak GLib.TypeModule> g_io_modules_load_all_in_directory (string dirname);
  5028. [CCode (cheader_filename = "gio/gio.h", cname = "g_io_modules_load_all_in_directory_with_scope")]
  5029. [Version (deprecated_since = "vala-0.16", replacement = "IOModule.load_all_in_directory_with_scope")]
  5030. public static unowned GLib.List g_io_modules_load_all_in_directory_with_scope (string dirname, GLib.IOModuleScope scope);
  5031. [CCode (cheader_filename = "gio/gio.h", cname = "g_io_modules_scan_all_in_directory")]
  5032. [Version (deprecated_since = "vala-0.16", replacement = "IOModule.scan_all_in_directory")]
  5033. public static void g_io_modules_scan_all_in_directory (string dirname);
  5034. [CCode (cheader_filename = "gio/gio.h", cname = "g_io_modules_scan_all_in_directory_with_scope")]
  5035. [Version (deprecated_since = "vala-0.16", replacement = "IOModule.xscan_all_in_directory_with_scope")]
  5036. public static void g_io_modules_scan_all_in_directory_with_scope (string dirname, GLib.IOModuleScope scope);
  5037. [CCode (cheader_filename = "gio/gio.h", cname = "g_io_scheduler_cancel_all_jobs")]
  5038. [Version (deprecated_since = "vala-0.16", replacement = "IOSchedulerJob.cancel_all")]
  5039. public static void g_io_scheduler_cancel_all_jobs ();
  5040. [CCode (cheader_filename = "gio/gio.h", cname = "g_io_scheduler_push_job")]
  5041. [Version (deprecated_since = "vala-0.16", replacement = "IOSchedulerJob.push")]
  5042. public static void g_io_scheduler_push_job (owned GLib.IOSchedulerJobFunc job_func, int io_priority = GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null);
  5043. [CCode (cheader_filename = "gio/gio.h", cname = "g_pollable_source_new")]
  5044. [Version (deprecated_since = "vala-0.16", replacement = "PollableSource")]
  5045. public static unowned GLib.TimeoutSource g_pollable_source_new (GLib.Object pollable_stream);
  5046. [CCode (cheader_filename = "gio/gio.h", cname = "g_simple_async_report_error_in_idle")]
  5047. [Version (deprecated_since = "vala-0.16", replacement = "report_error_in_idle")]
  5048. public static void g_simple_async_report_error_in_idle (GLib.Object object, GLib.AsyncReadyCallback callback, GLib.Quark domain, int code, string format);
  5049. [CCode (cheader_filename = "gio/gio.h", cname = "g_simple_async_report_gerror_in_idle")]
  5050. [Version (deprecated_since = "vala-0.16", replacement = "report_gerror_in_idle")]
  5051. public static void g_simple_async_report_gerror_in_idle (GLib.Object object, GLib.AsyncReadyCallback callback, GLib.Error error);
  5052. [CCode (cheader_filename = "gio/gio.h", cname = "g_simple_async_report_take_gerror_in_idle")]
  5053. [Version (deprecated_since = "vala-0.16", replacement = "report_take_gerror_in_idle")]
  5054. public static void g_simple_async_report_take_gerror_in_idle (GLib.Object object, GLib.AsyncReadyCallback callback, GLib.Error error);
  5055. [CCode (cheader_filename = "gio/gio.h", cname = "g_tls_error_quark")]
  5056. [Version (deprecated_since = "vala-0.16", replacement = "TlsError.quark")]
  5057. public static GLib.Quark g_tls_error_quark ();
  5058. [CCode (cheader_filename = "gio/gio.h")]
  5059. [Version (since = "2.36")]
  5060. public static void networking_init ();
  5061. [CCode (cheader_filename = "gio/gio.h")]
  5062. [Version (since = "2.34")]
  5063. public static ssize_t pollable_stream_read (GLib.InputStream stream, [CCode (array_length_cname = "count", array_length_pos = 2.5, array_length_type = "gsize")] uint8[] buffer, bool blocking, GLib.Cancellable? cancellable = null) throws GLib.Error;
  5064. [CCode (cheader_filename = "gio/gio.h")]
  5065. [Version (since = "2.34")]
  5066. public static ssize_t pollable_stream_write (GLib.OutputStream stream, [CCode (array_length_cname = "count", array_length_pos = 2.5, array_length_type = "gsize")] uint8[] buffer, bool blocking, GLib.Cancellable? cancellable = null) throws GLib.Error;
  5067. [CCode (cheader_filename = "gio/gio.h")]
  5068. [Version (since = "2.34")]
  5069. public static bool pollable_stream_write_all (GLib.OutputStream stream, [CCode (array_length_cname = "count", array_length_pos = 2.5, array_length_type = "gsize")] uint8[] buffer, bool blocking, out size_t bytes_written, GLib.Cancellable? cancellable = null) throws GLib.Error;
  5070. [CCode (array_length = false, array_null_terminated = true, cheader_filename = "gio/gio.h")]
  5071. [Version (since = "2.32")]
  5072. public static string[] resources_enumerate_children (string path, GLib.ResourceLookupFlags lookup_flags) throws GLib.Error;
  5073. [CCode (cheader_filename = "gio/gio.h")]
  5074. [Version (since = "2.32")]
  5075. public static bool resources_get_info (string path, GLib.ResourceLookupFlags lookup_flags, out size_t size, out uint32 flags) throws GLib.Error;
  5076. [CCode (cheader_filename = "gio/gio.h")]
  5077. [Version (since = "2.32")]
  5078. public static GLib.Bytes resources_lookup_data (string path, GLib.ResourceLookupFlags lookup_flags) throws GLib.Error;
  5079. [CCode (cheader_filename = "gio/gio.h")]
  5080. [Version (since = "2.32")]
  5081. public static GLib.InputStream resources_open_stream (string path, GLib.ResourceLookupFlags lookup_flags) throws GLib.Error;
  5082. [CCode (cheader_filename = "gio/gio.h")]
  5083. [Version (since = "2.32")]
  5084. public static void resources_register (GLib.Resource resource);
  5085. [CCode (cheader_filename = "gio/gio.h")]
  5086. [Version (since = "2.32")]
  5087. public static void resources_unregister (GLib.Resource resource);
  5088. }