@gtkx/ffi 0.8.0 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (319) hide show
  1. package/dist/cairo/cairo.js +1 -1
  2. package/dist/codegen/ffi-generator.js +37 -12
  3. package/dist/generated/adw/index.d.ts +0 -1
  4. package/dist/generated/adw/index.js +0 -1
  5. package/dist/generated/adw/preferences-group.d.ts +0 -11
  6. package/dist/generated/adw/preferences-group.js +0 -36
  7. package/dist/generated/atspi/device.d.ts +0 -15
  8. package/dist/generated/atspi/device.js +0 -65
  9. package/dist/generated/atspi/functions.d.ts +4 -14
  10. package/dist/generated/atspi/functions.js +0 -48
  11. package/dist/generated/atspi/index.d.ts +0 -2
  12. package/dist/generated/atspi/index.js +0 -2
  13. package/dist/generated/gdk/cursor.d.ts +1 -12
  14. package/dist/generated/gdk/cursor.js +22 -55
  15. package/dist/generated/gdk/functions.d.ts +0 -26
  16. package/dist/generated/gdk/functions.js +0 -74
  17. package/dist/generated/gdk/texture.d.ts +0 -10
  18. package/dist/generated/gdk/texture.js +0 -36
  19. package/dist/generated/gdkpixbuf/pixbuf.d.ts +0 -49
  20. package/dist/generated/gdkpixbuf/pixbuf.js +0 -166
  21. package/dist/generated/gio/app-info.d.ts +0 -15
  22. package/dist/generated/gio/app-info.js +0 -50
  23. package/dist/generated/gio/async-initable.d.ts +0 -44
  24. package/dist/generated/gio/async-initable.js +0 -69
  25. package/dist/generated/gio/buffered-input-stream.d.ts +0 -14
  26. package/dist/generated/gio/buffered-input-stream.js +0 -44
  27. package/dist/generated/gio/bytes-icon.d.ts +0 -10
  28. package/dist/generated/gio/bytes-icon.js +0 -36
  29. package/dist/generated/gio/cancellable.d.ts +0 -41
  30. package/dist/generated/gio/cancellable.js +0 -62
  31. package/dist/generated/gio/data-input-stream.d.ts +0 -59
  32. package/dist/generated/gio/data-input-stream.js +0 -149
  33. package/dist/generated/gio/dbus-connection.d.ts +1 -374
  34. package/dist/generated/gio/dbus-connection.js +0 -761
  35. package/dist/generated/gio/dbus-object-manager-client.d.ts +1 -120
  36. package/dist/generated/gio/dbus-object-manager-client.js +0 -354
  37. package/dist/generated/gio/dbus-proxy.d.ts +0 -163
  38. package/dist/generated/gio/dbus-proxy.js +0 -379
  39. package/dist/generated/gio/drive.d.ts +1 -62
  40. package/dist/generated/gio/drive.js +0 -200
  41. package/dist/generated/gio/dtls-connection.d.ts +0 -29
  42. package/dist/generated/gio/dtls-connection.js +0 -115
  43. package/dist/generated/gio/file-enumerator.d.ts +0 -85
  44. package/dist/generated/gio/file-enumerator.js +0 -141
  45. package/dist/generated/gio/file-icon.d.ts +0 -10
  46. package/dist/generated/gio/file-icon.js +0 -36
  47. package/dist/generated/gio/file-input-stream.d.ts +0 -19
  48. package/dist/generated/gio/file-input-stream.js +0 -49
  49. package/dist/generated/gio/file-iostream.d.ts +0 -14
  50. package/dist/generated/gio/file-iostream.js +0 -44
  51. package/dist/generated/gio/file-output-stream.d.ts +0 -14
  52. package/dist/generated/gio/file-output-stream.js +0 -44
  53. package/dist/generated/gio/file.d.ts +1 -661
  54. package/dist/generated/gio/file.js +58 -1899
  55. package/dist/generated/gio/functions.d.ts +0 -261
  56. package/dist/generated/gio/functions.js +0 -666
  57. package/dist/generated/gio/index.d.ts +0 -2
  58. package/dist/generated/gio/index.js +0 -2
  59. package/dist/generated/gio/input-stream.d.ts +0 -127
  60. package/dist/generated/gio/input-stream.js +0 -293
  61. package/dist/generated/gio/iostream.d.ts +0 -34
  62. package/dist/generated/gio/iostream.js +0 -93
  63. package/dist/generated/gio/list-store.d.ts +0 -46
  64. package/dist/generated/gio/list-store.js +0 -139
  65. package/dist/generated/gio/loadable-icon.d.ts +0 -10
  66. package/dist/generated/gio/loadable-icon.js +0 -36
  67. package/dist/generated/gio/mount.d.ts +0 -74
  68. package/dist/generated/gio/mount.js +0 -243
  69. package/dist/generated/gio/network-monitor.d.ts +0 -16
  70. package/dist/generated/gio/network-monitor.js +0 -42
  71. package/dist/generated/gio/output-stream.d.ts +0 -200
  72. package/dist/generated/gio/output-stream.js +0 -469
  73. package/dist/generated/gio/permission.d.ts +0 -20
  74. package/dist/generated/gio/permission.js +0 -64
  75. package/dist/generated/gio/proxy-resolver.d.ts +0 -9
  76. package/dist/generated/gio/proxy-resolver.js +0 -35
  77. package/dist/generated/gio/proxy.d.ts +0 -9
  78. package/dist/generated/gio/proxy.js +0 -39
  79. package/dist/generated/gio/resolver.d.ts +0 -59
  80. package/dist/generated/gio/resolver.js +0 -205
  81. package/dist/generated/gio/settings.d.ts +0 -33
  82. package/dist/generated/gio/settings.js +0 -53
  83. package/dist/generated/gio/simple-proxy-resolver.d.ts +0 -9
  84. package/dist/generated/gio/simple-proxy-resolver.js +0 -35
  85. package/dist/generated/gio/socket-address-enumerator.d.ts +0 -10
  86. package/dist/generated/gio/socket-address-enumerator.js +0 -32
  87. package/dist/generated/gio/socket-client.d.ts +0 -57
  88. package/dist/generated/gio/socket-client.js +0 -173
  89. package/dist/generated/gio/socket-connection.d.ts +0 -17
  90. package/dist/generated/gio/socket-connection.js +0 -43
  91. package/dist/generated/gio/socket-listener.d.ts +0 -22
  92. package/dist/generated/gio/socket-listener.js +0 -66
  93. package/dist/generated/gio/subprocess.d.ts +0 -36
  94. package/dist/generated/gio/subprocess.js +0 -139
  95. package/dist/generated/gio/tls-connection.d.ts +0 -9
  96. package/dist/generated/gio/tls-connection.js +0 -35
  97. package/dist/generated/gio/tls-database.d.ts +0 -51
  98. package/dist/generated/gio/tls-database.js +0 -205
  99. package/dist/generated/gio/tls-interaction.d.ts +0 -38
  100. package/dist/generated/gio/tls-interaction.js +0 -94
  101. package/dist/generated/gio/unix-connection.d.ts +0 -26
  102. package/dist/generated/gio/unix-connection.js +0 -70
  103. package/dist/generated/gio/vfs.d.ts +0 -30
  104. package/dist/generated/gio/vfs.js +0 -71
  105. package/dist/generated/gio/volume.d.ts +0 -32
  106. package/dist/generated/gio/volume.js +0 -117
  107. package/dist/generated/giounix/desktop-app-info.d.ts +0 -58
  108. package/dist/generated/giounix/desktop-app-info.js +0 -226
  109. package/dist/generated/glib/byte-array.d.ts +0 -23
  110. package/dist/generated/glib/byte-array.js +0 -62
  111. package/dist/generated/glib/error.d.ts +0 -36
  112. package/dist/generated/glib/error.js +0 -82
  113. package/dist/generated/glib/functions.d.ts +1 -811
  114. package/dist/generated/glib/functions.js +55 -1787
  115. package/dist/generated/glib/hash-table.d.ts +0 -64
  116. package/dist/generated/glib/hash-table.js +0 -148
  117. package/dist/generated/glib/main-context.d.ts +0 -17
  118. package/dist/generated/glib/main-context.js +0 -37
  119. package/dist/generated/glib/option-group.d.ts +0 -12
  120. package/dist/generated/glib/option-group.js +0 -39
  121. package/dist/generated/glib/regex.d.ts +0 -54
  122. package/dist/generated/glib/regex.js +0 -107
  123. package/dist/generated/glib/source.d.ts +0 -27
  124. package/dist/generated/glib/source.js +0 -43
  125. package/dist/generated/glib/thread.d.ts +2 -46
  126. package/dist/generated/glib/thread.js +5 -50
  127. package/dist/generated/glib/tree.d.ts +2 -74
  128. package/dist/generated/glib/tree.js +4 -192
  129. package/dist/generated/glibunix/functions.d.ts +0 -2
  130. package/dist/generated/glibunix/functions.js +0 -45
  131. package/dist/generated/gobject/binding-group.d.ts +0 -17
  132. package/dist/generated/gobject/binding-group.js +0 -59
  133. package/dist/generated/gobject/functions.d.ts +0 -40
  134. package/dist/generated/gobject/functions.js +0 -95
  135. package/dist/generated/gobject/object.d.ts +0 -33
  136. package/dist/generated/gobject/object.js +0 -77
  137. package/dist/generated/gobject/signal-group.d.ts +0 -23
  138. package/dist/generated/gobject/signal-group.js +0 -70
  139. package/dist/generated/gobject/value-array.d.ts +0 -19
  140. package/dist/generated/gobject/value-array.js +0 -70
  141. package/dist/generated/gsk/path.d.ts +1 -41
  142. package/dist/generated/gsk/path.js +0 -96
  143. package/dist/generated/gsk/render-node.d.ts +0 -9
  144. package/dist/generated/gsk/render-node.js +0 -32
  145. package/dist/generated/gst/buffer-list.d.ts +0 -10
  146. package/dist/generated/gst/buffer-list.js +0 -31
  147. package/dist/generated/gst/buffer.d.ts +0 -10
  148. package/dist/generated/gst/buffer.js +0 -31
  149. package/dist/generated/gst/bus.d.ts +0 -43
  150. package/dist/generated/gst/bus.js +0 -88
  151. package/dist/generated/gst/caps.d.ts +0 -26
  152. package/dist/generated/gst/caps.js +0 -89
  153. package/dist/generated/gst/clock.d.ts +0 -15
  154. package/dist/generated/gst/clock.js +0 -35
  155. package/dist/generated/gst/element.d.ts +0 -49
  156. package/dist/generated/gst/element.js +0 -117
  157. package/dist/generated/gst/functions.d.ts +1 -80
  158. package/dist/generated/gst/functions.js +0 -234
  159. package/dist/generated/gst/index.d.ts +0 -1
  160. package/dist/generated/gst/index.js +0 -1
  161. package/dist/generated/gst/iterator.d.ts +0 -56
  162. package/dist/generated/gst/iterator.js +0 -168
  163. package/dist/generated/gst/pad.d.ts +1 -145
  164. package/dist/generated/gst/pad.js +0 -440
  165. package/dist/generated/gst/plugin.d.ts +0 -41
  166. package/dist/generated/gst/plugin.js +0 -132
  167. package/dist/generated/gst/promise.d.ts +0 -9
  168. package/dist/generated/gst/promise.js +1 -27
  169. package/dist/generated/gst/registry.d.ts +0 -21
  170. package/dist/generated/gst/registry.js +0 -73
  171. package/dist/generated/gst/structure.d.ts +0 -52
  172. package/dist/generated/gst/structure.js +0 -178
  173. package/dist/generated/gst/tag-list.d.ts +0 -7
  174. package/dist/generated/gst/tag-list.js +0 -28
  175. package/dist/generated/gst/task-pool.d.ts +0 -6
  176. package/dist/generated/gst/task-pool.js +0 -38
  177. package/dist/generated/gst/type-find.d.ts +0 -15
  178. package/dist/generated/gst/type-find.js +0 -58
  179. package/dist/generated/gstbase/collect-pads.d.ts +0 -108
  180. package/dist/generated/gstbase/collect-pads.js +0 -243
  181. package/dist/generated/gstbase/functions.d.ts +0 -45
  182. package/dist/generated/gstbase/functions.js +0 -132
  183. package/dist/generated/gtk/assistant.d.ts +0 -13
  184. package/dist/generated/gtk/assistant.js +0 -34
  185. package/dist/generated/gtk/builder-cscope.d.ts +0 -13
  186. package/dist/generated/gtk/builder-cscope.js +0 -28
  187. package/dist/generated/gtk/cell-area.d.ts +0 -31
  188. package/dist/generated/gtk/cell-area.js +0 -114
  189. package/dist/generated/gtk/cell-layout.d.ts +0 -14
  190. package/dist/generated/gtk/cell-layout.js +0 -39
  191. package/dist/generated/gtk/cell-view.d.ts +0 -14
  192. package/dist/generated/gtk/cell-view.js +0 -39
  193. package/dist/generated/gtk/combo-box.d.ts +0 -25
  194. package/dist/generated/gtk/combo-box.js +0 -72
  195. package/dist/generated/gtk/drawing-area.d.ts +2 -1
  196. package/dist/generated/gtk/drawing-area.js +6 -1
  197. package/dist/generated/gtk/entry-completion.d.ts +0 -24
  198. package/dist/generated/gtk/entry-completion.js +0 -69
  199. package/dist/generated/gtk/expression.d.ts +0 -14
  200. package/dist/generated/gtk/expression.js +0 -45
  201. package/dist/generated/gtk/flow-box.d.ts +0 -68
  202. package/dist/generated/gtk/flow-box.js +0 -150
  203. package/dist/generated/gtk/font-button.d.ts +0 -8
  204. package/dist/generated/gtk/font-button.js +0 -29
  205. package/dist/generated/gtk/font-chooser-dialog.d.ts +0 -8
  206. package/dist/generated/gtk/font-chooser-dialog.js +0 -29
  207. package/dist/generated/gtk/font-chooser-widget.d.ts +0 -8
  208. package/dist/generated/gtk/font-chooser-widget.js +0 -29
  209. package/dist/generated/gtk/font-chooser.d.ts +0 -8
  210. package/dist/generated/gtk/font-chooser.js +0 -29
  211. package/dist/generated/gtk/functions.d.ts +0 -23
  212. package/dist/generated/gtk/functions.js +0 -69
  213. package/dist/generated/gtk/icon-view.d.ts +0 -21
  214. package/dist/generated/gtk/icon-view.js +0 -62
  215. package/dist/generated/gtk/index.d.ts +0 -7
  216. package/dist/generated/gtk/index.js +0 -7
  217. package/dist/generated/gtk/list-box.d.ts +0 -99
  218. package/dist/generated/gtk/list-box.js +0 -203
  219. package/dist/generated/gtk/list-store.d.ts +0 -33
  220. package/dist/generated/gtk/list-store.js +0 -95
  221. package/dist/generated/gtk/menu-button.d.ts +0 -18
  222. package/dist/generated/gtk/menu-button.js +0 -40
  223. package/dist/generated/gtk/print-job.d.ts +0 -7
  224. package/dist/generated/gtk/print-job.js +0 -27
  225. package/dist/generated/gtk/print-settings.d.ts +0 -6
  226. package/dist/generated/gtk/print-settings.js +0 -22
  227. package/dist/generated/gtk/scale.d.ts +0 -14
  228. package/dist/generated/gtk/scale.js +0 -36
  229. package/dist/generated/gtk/text-buffer.d.ts +0 -19
  230. package/dist/generated/gtk/text-buffer.js +0 -42
  231. package/dist/generated/gtk/text-iter.d.ts +0 -19
  232. package/dist/generated/gtk/text-iter.js +0 -81
  233. package/dist/generated/gtk/text-tag-table.d.ts +0 -9
  234. package/dist/generated/gtk/text-tag-table.js +0 -25
  235. package/dist/generated/gtk/tree-model-filter.d.ts +0 -68
  236. package/dist/generated/gtk/tree-model-filter.js +0 -137
  237. package/dist/generated/gtk/tree-model-sort.d.ts +0 -33
  238. package/dist/generated/gtk/tree-model-sort.js +0 -95
  239. package/dist/generated/gtk/tree-model.d.ts +0 -9
  240. package/dist/generated/gtk/tree-model.js +0 -25
  241. package/dist/generated/gtk/tree-selection.d.ts +0 -20
  242. package/dist/generated/gtk/tree-selection.js +0 -57
  243. package/dist/generated/gtk/tree-sortable.d.ts +0 -24
  244. package/dist/generated/gtk/tree-sortable.js +0 -70
  245. package/dist/generated/gtk/tree-store.d.ts +0 -33
  246. package/dist/generated/gtk/tree-store.js +0 -95
  247. package/dist/generated/gtk/tree-view-column.d.ts +0 -14
  248. package/dist/generated/gtk/tree-view-column.js +0 -39
  249. package/dist/generated/gtk/tree-view.d.ts +0 -54
  250. package/dist/generated/gtk/tree-view.js +0 -167
  251. package/dist/generated/gtk/widget.d.ts +0 -32
  252. package/dist/generated/gtk/widget.js +0 -50
  253. package/dist/generated/gtksource/functions.d.ts +0 -21
  254. package/dist/generated/gtksource/functions.js +0 -49
  255. package/dist/generated/harfbuzz/functions.d.ts +0 -448
  256. package/dist/generated/harfbuzz/functions.js +3736 -5611
  257. package/dist/generated/javascriptcore/class.d.ts +0 -94
  258. package/dist/generated/javascriptcore/class.js +0 -272
  259. package/dist/generated/javascriptcore/context.d.ts +0 -13
  260. package/dist/generated/javascriptcore/context.js +0 -34
  261. package/dist/generated/javascriptcore/functions.d.ts +0 -7
  262. package/dist/generated/javascriptcore/functions.js +0 -19
  263. package/dist/generated/javascriptcore/value.d.ts +0 -72
  264. package/dist/generated/javascriptcore/value.js +0 -202
  265. package/dist/generated/json/array.d.ts +0 -11
  266. package/dist/generated/json/array.js +0 -32
  267. package/dist/generated/json/object.d.ts +0 -14
  268. package/dist/generated/json/object.js +0 -35
  269. package/dist/generated/pango/attr-list.d.ts +0 -8
  270. package/dist/generated/pango/attr-list.js +0 -37
  271. package/dist/generated/pango/fontset.d.ts +0 -9
  272. package/dist/generated/pango/fontset.js +0 -25
  273. package/dist/generated/pango/functions.d.ts +0 -13
  274. package/dist/generated/pango/functions.js +0 -55
  275. package/dist/generated/pangocairo/functions.d.ts +0 -11
  276. package/dist/generated/pangocairo/functions.js +0 -33
  277. package/dist/generated/soup/auth-domain-basic.d.ts +0 -17
  278. package/dist/generated/soup/auth-domain-basic.js +0 -37
  279. package/dist/generated/soup/auth-domain-digest.d.ts +0 -17
  280. package/dist/generated/soup/auth-domain-digest.js +0 -37
  281. package/dist/generated/soup/auth-domain.d.ts +0 -44
  282. package/dist/generated/soup/auth-domain.js +0 -84
  283. package/dist/generated/soup/logger.d.ts +0 -32
  284. package/dist/generated/soup/logger.js +0 -92
  285. package/dist/generated/soup/message-headers.d.ts +0 -17
  286. package/dist/generated/soup/message-headers.js +0 -38
  287. package/dist/generated/soup/server.d.ts +0 -99
  288. package/dist/generated/soup/server.js +0 -184
  289. package/dist/generated/vte/terminal.d.ts +0 -168
  290. package/dist/generated/vte/terminal.js +0 -483
  291. package/dist/generated/webkit/web-context.d.ts +0 -44
  292. package/dist/generated/webkit/web-context.js +0 -68
  293. package/package.json +3 -3
  294. package/dist/generated/adw/callback-animation-target.d.ts +0 -19
  295. package/dist/generated/adw/callback-animation-target.js +0 -64
  296. package/dist/generated/atspi/device-listener.d.ts +0 -26
  297. package/dist/generated/atspi/device-listener.js +0 -104
  298. package/dist/generated/atspi/event-listener.d.ts +0 -155
  299. package/dist/generated/atspi/event-listener.js +0 -496
  300. package/dist/generated/gio/simple-async-result.d.ts +0 -328
  301. package/dist/generated/gio/simple-async-result.js +0 -588
  302. package/dist/generated/gio/task.d.ts +0 -936
  303. package/dist/generated/gio/task.js +0 -1460
  304. package/dist/generated/gst/task.d.ts +0 -128
  305. package/dist/generated/gst/task.js +0 -363
  306. package/dist/generated/gtk/callback-action.d.ts +0 -16
  307. package/dist/generated/gtk/callback-action.js +0 -61
  308. package/dist/generated/gtk/cclosure-expression.d.ts +0 -20
  309. package/dist/generated/gtk/cclosure-expression.js +0 -68
  310. package/dist/generated/gtk/custom-filter.d.ts +0 -35
  311. package/dist/generated/gtk/custom-filter.js +0 -119
  312. package/dist/generated/gtk/custom-layout.d.ts +0 -26
  313. package/dist/generated/gtk/custom-layout.js +0 -71
  314. package/dist/generated/gtk/custom-sorter.d.ts +0 -34
  315. package/dist/generated/gtk/custom-sorter.js +0 -114
  316. package/dist/generated/gtk/map-list-model.d.ts +0 -173
  317. package/dist/generated/gtk/map-list-model.js +0 -361
  318. package/dist/generated/gtk/tree-list-model.d.ts +0 -145
  319. package/dist/generated/gtk/tree-list-model.js +0 -310
@@ -94,44 +94,6 @@ export class Drive {
94
94
  },
95
95
  ], { type: "boolean" });
96
96
  }
97
- /**
98
- * Asynchronously ejects a drive.
99
- *
100
- * When the operation is finished, `callback` will be called.
101
- * You can then call g_drive_eject_finish() to obtain the
102
- * result of the operation.
103
- * @param flags - flags affecting the unmount if required for eject
104
- * @param cancellable - optional #GCancellable object, %NULL to ignore.
105
- * @param callback - a #GAsyncReadyCallback, or %NULL.
106
- * @param userData - user data to pass to @callback
107
- */
108
- eject(flags, cancellable, callback, userData) {
109
- call("libgio-2.0.so.0", "g_drive_eject", [
110
- {
111
- type: { type: "gobject" },
112
- value: this.id,
113
- },
114
- {
115
- type: { type: "int", size: 32, unsigned: false },
116
- value: flags,
117
- },
118
- {
119
- type: { type: "gobject", borrowed: true },
120
- value: cancellable?.id ?? cancellable,
121
- optional: true,
122
- },
123
- {
124
- type: { type: "callback" },
125
- value: callback,
126
- optional: true,
127
- },
128
- {
129
- type: { type: "int", size: 64, unsigned: true },
130
- value: userData,
131
- optional: true,
132
- },
133
- ], { type: "undefined" });
134
- }
135
97
  /**
136
98
  * Finishes ejecting a drive.
137
99
  * @param result - a #GAsyncResult.
@@ -164,47 +126,6 @@ export class Drive {
164
126
  }
165
127
  return _result;
166
128
  }
167
- /**
168
- * Ejects a drive. This is an asynchronous operation, and is
169
- * finished by calling g_drive_eject_with_operation_finish() with the `drive` and #GAsyncResult data returned in the @callback.
170
- * @param flags - flags affecting the unmount if required for eject
171
- * @param mountOperation - a #GMountOperation or %NULL to avoid
172
- * @param cancellable - optional #GCancellable object, %NULL to ignore.
173
- * @param callback - a #GAsyncReadyCallback, or %NULL.
174
- * @param userData - user data passed to @callback.
175
- */
176
- ejectWithOperation(flags, mountOperation, cancellable, callback, userData) {
177
- call("libgio-2.0.so.0", "g_drive_eject_with_operation", [
178
- {
179
- type: { type: "gobject" },
180
- value: this.id,
181
- },
182
- {
183
- type: { type: "int", size: 32, unsigned: false },
184
- value: flags,
185
- },
186
- {
187
- type: { type: "gobject", borrowed: true },
188
- value: mountOperation?.id ?? mountOperation,
189
- optional: true,
190
- },
191
- {
192
- type: { type: "gobject", borrowed: true },
193
- value: cancellable?.id ?? cancellable,
194
- optional: true,
195
- },
196
- {
197
- type: { type: "callback" },
198
- value: callback,
199
- optional: true,
200
- },
201
- {
202
- type: { type: "int", size: 64, unsigned: true },
203
- value: userData,
204
- optional: true,
205
- },
206
- ], { type: "undefined" });
207
- }
208
129
  /**
209
130
  * Finishes ejecting a drive. If any errors occurred during the operation,
210
131
  * `error` will be set to contain the errors and %FALSE will be returned.
@@ -404,39 +325,6 @@ export class Drive {
404
325
  },
405
326
  ], { type: "boolean" });
406
327
  }
407
- /**
408
- * Asynchronously polls `drive` to see if media has been inserted or removed.
409
- *
410
- * When the operation is finished, `callback` will be called.
411
- * You can then call g_drive_poll_for_media_finish() to obtain the
412
- * result of the operation.
413
- * @param cancellable - optional #GCancellable object, %NULL to ignore.
414
- * @param callback - a #GAsyncReadyCallback, or %NULL.
415
- * @param userData - user data to pass to @callback
416
- */
417
- pollForMedia(cancellable, callback, userData) {
418
- call("libgio-2.0.so.0", "g_drive_poll_for_media", [
419
- {
420
- type: { type: "gobject" },
421
- value: this.id,
422
- },
423
- {
424
- type: { type: "gobject", borrowed: true },
425
- value: cancellable?.id ?? cancellable,
426
- optional: true,
427
- },
428
- {
429
- type: { type: "callback" },
430
- value: callback,
431
- optional: true,
432
- },
433
- {
434
- type: { type: "int", size: 64, unsigned: true },
435
- value: userData,
436
- optional: true,
437
- },
438
- ], { type: "undefined" });
439
- }
440
328
  /**
441
329
  * Finishes an operation started with g_drive_poll_for_media() on a drive.
442
330
  * @param result - a #GAsyncResult.
@@ -469,50 +357,6 @@ export class Drive {
469
357
  }
470
358
  return _result;
471
359
  }
472
- /**
473
- * Asynchronously starts a drive.
474
- *
475
- * When the operation is finished, `callback` will be called.
476
- * You can then call g_drive_start_finish() to obtain the
477
- * result of the operation.
478
- * @param flags - flags affecting the start operation.
479
- * @param mountOperation - a #GMountOperation or %NULL to avoid
480
- * @param cancellable - optional #GCancellable object, %NULL to ignore.
481
- * @param callback - a #GAsyncReadyCallback, or %NULL.
482
- * @param userData - user data to pass to @callback
483
- */
484
- start(flags, mountOperation, cancellable, callback, userData) {
485
- call("libgio-2.0.so.0", "g_drive_start", [
486
- {
487
- type: { type: "gobject" },
488
- value: this.id,
489
- },
490
- {
491
- type: { type: "int", size: 32, unsigned: false },
492
- value: flags,
493
- },
494
- {
495
- type: { type: "gobject", borrowed: true },
496
- value: mountOperation?.id ?? mountOperation,
497
- optional: true,
498
- },
499
- {
500
- type: { type: "gobject", borrowed: true },
501
- value: cancellable?.id ?? cancellable,
502
- optional: true,
503
- },
504
- {
505
- type: { type: "callback" },
506
- value: callback,
507
- optional: true,
508
- },
509
- {
510
- type: { type: "int", size: 64, unsigned: true },
511
- value: userData,
512
- optional: true,
513
- },
514
- ], { type: "undefined" });
515
- }
516
360
  /**
517
361
  * Finishes starting a drive.
518
362
  * @param result - a #GAsyncResult.
@@ -545,50 +389,6 @@ export class Drive {
545
389
  }
546
390
  return _result;
547
391
  }
548
- /**
549
- * Asynchronously stops a drive.
550
- *
551
- * When the operation is finished, `callback` will be called.
552
- * You can then call g_drive_stop_finish() to obtain the
553
- * result of the operation.
554
- * @param flags - flags affecting the unmount if required for stopping.
555
- * @param mountOperation - a #GMountOperation or %NULL to avoid
556
- * @param cancellable - optional #GCancellable object, %NULL to ignore.
557
- * @param callback - a #GAsyncReadyCallback, or %NULL.
558
- * @param userData - user data to pass to @callback
559
- */
560
- stop(flags, mountOperation, cancellable, callback, userData) {
561
- call("libgio-2.0.so.0", "g_drive_stop", [
562
- {
563
- type: { type: "gobject" },
564
- value: this.id,
565
- },
566
- {
567
- type: { type: "int", size: 32, unsigned: false },
568
- value: flags,
569
- },
570
- {
571
- type: { type: "gobject", borrowed: true },
572
- value: mountOperation?.id ?? mountOperation,
573
- optional: true,
574
- },
575
- {
576
- type: { type: "gobject", borrowed: true },
577
- value: cancellable?.id ?? cancellable,
578
- optional: true,
579
- },
580
- {
581
- type: { type: "callback" },
582
- value: callback,
583
- optional: true,
584
- },
585
- {
586
- type: { type: "int", size: 64, unsigned: true },
587
- value: userData,
588
- optional: true,
589
- },
590
- ], { type: "undefined" });
591
- }
592
392
  /**
593
393
  * Finishes stopping a drive.
594
394
  * @param result - a #GAsyncResult.
@@ -56,15 +56,6 @@ export declare class DtlsConnection {
56
56
  * @param cancellable - a #GCancellable, or %NULL
57
57
  */
58
58
  close(cancellable?: Cancellable | null): boolean;
59
- /**
60
- * Asynchronously close the DTLS connection. See g_dtls_connection_close() for
61
- * more information.
62
- * @param ioPriority - the I/O priority of the request
63
- * @param cancellable - a #GCancellable, or %NULL
64
- * @param callback - callback to call when the close operation is complete
65
- * @param userData - the data to pass to the callback function
66
- */
67
- closeAsync(ioPriority: number, cancellable?: Cancellable | null, callback?: (...args: unknown[]) => unknown | null, userData?: number | null): void;
68
59
  /**
69
60
  * Finish an asynchronous TLS close operation. See g_dtls_connection_close()
70
61
  * for more information.
@@ -191,15 +182,6 @@ export declare class DtlsConnection {
191
182
  * @param cancellable - a #GCancellable, or %NULL
192
183
  */
193
184
  handshake(cancellable?: Cancellable | null): boolean;
194
- /**
195
- * Asynchronously performs a TLS handshake on @conn. See
196
- * g_dtls_connection_handshake() for more information.
197
- * @param ioPriority - the I/O priority of the request
198
- * @param cancellable - a #GCancellable, or %NULL
199
- * @param callback - callback to call when the handshake is complete
200
- * @param userData - the data to pass to the callback function
201
- */
202
- handshakeAsync(ioPriority: number, cancellable?: Cancellable | null, callback?: (...args: unknown[]) => unknown | null, userData?: number | null): void;
203
185
  /**
204
186
  * Finish an asynchronous TLS handshake operation. See
205
187
  * g_dtls_connection_handshake() for more information.
@@ -325,17 +307,6 @@ export declare class DtlsConnection {
325
307
  * @param cancellable - a #GCancellable, or %NULL
326
308
  */
327
309
  shutdown(shutdownRead: boolean, shutdownWrite: boolean, cancellable?: Cancellable | null): boolean;
328
- /**
329
- * Asynchronously shut down part or all of the DTLS connection. See
330
- * g_dtls_connection_shutdown() for more information.
331
- * @param shutdownRead - %TRUE to stop reception of incoming datagrams
332
- * @param shutdownWrite - %TRUE to stop sending outgoing datagrams
333
- * @param ioPriority - the I/O priority of the request
334
- * @param cancellable - a #GCancellable, or %NULL
335
- * @param callback - callback to call when the shutdown operation is complete
336
- * @param userData - the data to pass to the callback function
337
- */
338
- shutdownAsync(shutdownRead: boolean, shutdownWrite: boolean, ioPriority: number, cancellable?: Cancellable | null, callback?: (...args: unknown[]) => unknown | null, userData?: number | null): void;
339
310
  /**
340
311
  * Finish an asynchronous TLS shutdown operation. See
341
312
  * g_dtls_connection_shutdown() for more information.
@@ -84,41 +84,6 @@ export class DtlsConnection {
84
84
  }
85
85
  return result;
86
86
  }
87
- /**
88
- * Asynchronously close the DTLS connection. See g_dtls_connection_close() for
89
- * more information.
90
- * @param ioPriority - the I/O priority of the request
91
- * @param cancellable - a #GCancellable, or %NULL
92
- * @param callback - callback to call when the close operation is complete
93
- * @param userData - the data to pass to the callback function
94
- */
95
- closeAsync(ioPriority, cancellable, callback, userData) {
96
- call("libgio-2.0.so.0", "g_dtls_connection_close_async", [
97
- {
98
- type: { type: "gobject" },
99
- value: this.id,
100
- },
101
- {
102
- type: { type: "int", size: 32, unsigned: false },
103
- value: ioPriority,
104
- },
105
- {
106
- type: { type: "gobject", borrowed: true },
107
- value: cancellable?.id ?? cancellable,
108
- optional: true,
109
- },
110
- {
111
- type: { type: "callback" },
112
- value: callback,
113
- optional: true,
114
- },
115
- {
116
- type: { type: "int", size: 64, unsigned: true },
117
- value: userData,
118
- optional: true,
119
- },
120
- ], { type: "undefined" });
121
- }
122
87
  /**
123
88
  * Finish an asynchronous TLS close operation. See g_dtls_connection_close()
124
89
  * for more information.
@@ -434,41 +399,6 @@ export class DtlsConnection {
434
399
  }
435
400
  return result;
436
401
  }
437
- /**
438
- * Asynchronously performs a TLS handshake on @conn. See
439
- * g_dtls_connection_handshake() for more information.
440
- * @param ioPriority - the I/O priority of the request
441
- * @param cancellable - a #GCancellable, or %NULL
442
- * @param callback - callback to call when the handshake is complete
443
- * @param userData - the data to pass to the callback function
444
- */
445
- handshakeAsync(ioPriority, cancellable, callback, userData) {
446
- call("libgio-2.0.so.0", "g_dtls_connection_handshake_async", [
447
- {
448
- type: { type: "gobject" },
449
- value: this.id,
450
- },
451
- {
452
- type: { type: "int", size: 32, unsigned: false },
453
- value: ioPriority,
454
- },
455
- {
456
- type: { type: "gobject", borrowed: true },
457
- value: cancellable?.id ?? cancellable,
458
- optional: true,
459
- },
460
- {
461
- type: { type: "callback" },
462
- value: callback,
463
- optional: true,
464
- },
465
- {
466
- type: { type: "int", size: 64, unsigned: true },
467
- value: userData,
468
- optional: true,
469
- },
470
- ], { type: "undefined" });
471
- }
472
402
  /**
473
403
  * Finish an asynchronous TLS handshake operation. See
474
404
  * g_dtls_connection_handshake() for more information.
@@ -726,51 +656,6 @@ export class DtlsConnection {
726
656
  }
727
657
  return result;
728
658
  }
729
- /**
730
- * Asynchronously shut down part or all of the DTLS connection. See
731
- * g_dtls_connection_shutdown() for more information.
732
- * @param shutdownRead - %TRUE to stop reception of incoming datagrams
733
- * @param shutdownWrite - %TRUE to stop sending outgoing datagrams
734
- * @param ioPriority - the I/O priority of the request
735
- * @param cancellable - a #GCancellable, or %NULL
736
- * @param callback - callback to call when the shutdown operation is complete
737
- * @param userData - the data to pass to the callback function
738
- */
739
- shutdownAsync(shutdownRead, shutdownWrite, ioPriority, cancellable, callback, userData) {
740
- call("libgio-2.0.so.0", "g_dtls_connection_shutdown_async", [
741
- {
742
- type: { type: "gobject" },
743
- value: this.id,
744
- },
745
- {
746
- type: { type: "boolean" },
747
- value: shutdownRead,
748
- },
749
- {
750
- type: { type: "boolean" },
751
- value: shutdownWrite,
752
- },
753
- {
754
- type: { type: "int", size: 32, unsigned: false },
755
- value: ioPriority,
756
- },
757
- {
758
- type: { type: "gobject", borrowed: true },
759
- value: cancellable?.id ?? cancellable,
760
- optional: true,
761
- },
762
- {
763
- type: { type: "callback" },
764
- value: callback,
765
- optional: true,
766
- },
767
- {
768
- type: { type: "int", size: 64, unsigned: true },
769
- value: userData,
770
- optional: true,
771
- },
772
- ], { type: "undefined" });
773
- }
774
659
  /**
775
660
  * Finish an asynchronous TLS shutdown operation. See
776
661
  * g_dtls_connection_shutdown() for more information.
@@ -45,19 +45,6 @@ export declare class FileEnumerator extends GObject.GObject {
45
45
  * @param cancellable - optional #GCancellable object, %NULL to ignore.
46
46
  */
47
47
  close(cancellable?: Cancellable | null): boolean;
48
- /**
49
- * Asynchronously closes the file enumerator.
50
- *
51
- * If `cancellable` is not %NULL, then the operation can be cancelled by
52
- * triggering the cancellable object from another thread. If the operation
53
- * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned in
54
- * g_file_enumerator_close_finish().
55
- * @param ioPriority - the I/O priority of the request
56
- * @param cancellable - optional #GCancellable object, %NULL to ignore.
57
- * @param callback - a #GAsyncReadyCallback
58
- * @param userData - the data to pass to callback function
59
- */
60
- closeAsync(ioPriority: number, cancellable?: Cancellable | null, callback?: (...args: unknown[]) => unknown | null, userData?: number | null): void;
61
48
  /**
62
49
  * Finishes closing a file enumerator, started from g_file_enumerator_close_async().
63
50
  *
@@ -159,78 +146,6 @@ export declare class FileEnumerator extends GObject.GObject {
159
146
  * @param cancellable - optional #GCancellable object, %NULL to ignore.
160
147
  */
161
148
  nextFile(cancellable?: Cancellable | null): FileInfo | null;
162
- /**
163
- * Request information for a number of files from the enumerator asynchronously.
164
- * When all I/O for the operation is finished the `callback` will be called with
165
- * the requested information.
166
- *
167
- * See the documentation of #GFileEnumerator for information about the
168
- * order of returned files.
169
- *
170
- * Once the end of the enumerator is reached, or if an error occurs, the
171
- * `callback` will be called with an empty list. In this case, the previous call
172
- * to g_file_enumerator_next_files_async() will typically have returned fewer
173
- * than `num_files` items.
174
- *
175
- * If a request is cancelled the callback will be called with
176
- * %G_IO_ERROR_CANCELLED.
177
- *
178
- * This leads to the following pseudo-code usage:
179
- * |[
180
- * g_autoptr(GFile) dir = get_directory ();
181
- * g_autoptr(GFileEnumerator) enumerator = NULL;
182
- * g_autolist(GFileInfo) files = NULL;
183
- * g_autoptr(GError) local_error = NULL;
184
- *
185
- * enumerator = yield g_file_enumerate_children_async (dir,
186
- * G_FILE_ATTRIBUTE_STANDARD_NAME ","
187
- * G_FILE_ATTRIBUTE_STANDARD_TYPE,
188
- * G_FILE_QUERY_INFO_NONE,
189
- * G_PRIORITY_DEFAULT,
190
- * cancellable,
191
- * …,
192
- * &local_error);
193
- * if (enumerator == NULL)
194
- * g_error ("Error enumerating: %s", local_error->message);
195
- *
196
- * // Loop until no files are returned, either because the end of the enumerator
197
- * // has been reached, or an error was returned.
198
- * do
199
- * {
200
- * files = yield g_file_enumerator_next_files_async (enumerator,
201
- * 5, // number of files to request
202
- * G_PRIORITY_DEFAULT,
203
- * cancellable,
204
- * …,
205
- * &local_error);
206
- *
207
- * // Process the returned files, but don’t assume that exactly 5 were returned.
208
- * for (GList *l = files; l != NULL; l = l->next)
209
- * {
210
- * GFileInfo *info = l->data;
211
- * handle_file_info (info);
212
- * }
213
- * }
214
- * while (files != NULL);
215
- *
216
- * if (local_error != NULL &&
217
- * !g_error_matches (local_error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
218
- * g_error ("Error while enumerating: %s", local_error->message);
219
- * ]|
220
- *
221
- * During an async request no other sync and async calls are allowed, and will
222
- * result in %G_IO_ERROR_PENDING errors.
223
- *
224
- * Any outstanding I/O request with higher priority (lower numerical value) will
225
- * be executed before an outstanding request with lower priority. Default
226
- * priority is %G_PRIORITY_DEFAULT.
227
- * @param numFiles - the number of file info objects to request
228
- * @param ioPriority - the I/O priority of the request
229
- * @param cancellable - optional #GCancellable object, %NULL to ignore.
230
- * @param callback - a #GAsyncReadyCallback
231
- * @param userData - the data to pass to callback function
232
- */
233
- nextFilesAsync(numFiles: number, ioPriority: number, cancellable?: Cancellable | null, callback?: (...args: unknown[]) => unknown | null, userData?: number | null): void;
234
149
  /**
235
150
  * Finishes the asynchronous operation started with g_file_enumerator_next_files_async().
236
151
  * @param result - a #GAsyncResult.
@@ -93,45 +93,6 @@ export class FileEnumerator extends GObject.GObject {
93
93
  }
94
94
  return result;
95
95
  }
96
- /**
97
- * Asynchronously closes the file enumerator.
98
- *
99
- * If `cancellable` is not %NULL, then the operation can be cancelled by
100
- * triggering the cancellable object from another thread. If the operation
101
- * was cancelled, the error %G_IO_ERROR_CANCELLED will be returned in
102
- * g_file_enumerator_close_finish().
103
- * @param ioPriority - the I/O priority of the request
104
- * @param cancellable - optional #GCancellable object, %NULL to ignore.
105
- * @param callback - a #GAsyncReadyCallback
106
- * @param userData - the data to pass to callback function
107
- */
108
- closeAsync(ioPriority, cancellable, callback, userData) {
109
- call("libgio-2.0.so.0", "g_file_enumerator_close_async", [
110
- {
111
- type: { type: "gobject" },
112
- value: this.id,
113
- },
114
- {
115
- type: { type: "int", size: 32, unsigned: false },
116
- value: ioPriority,
117
- },
118
- {
119
- type: { type: "gobject", borrowed: true },
120
- value: cancellable?.id ?? cancellable,
121
- optional: true,
122
- },
123
- {
124
- type: { type: "callback" },
125
- value: callback,
126
- optional: true,
127
- },
128
- {
129
- type: { type: "int", size: 64, unsigned: true },
130
- value: userData,
131
- optional: true,
132
- },
133
- ], { type: "undefined" });
134
- }
135
96
  /**
136
97
  * Finishes closing a file enumerator, started from g_file_enumerator_close_async().
137
98
  *
@@ -366,108 +327,6 @@ export class FileEnumerator extends GObject.GObject {
366
327
  return null;
367
328
  return getObject(ptr);
368
329
  }
369
- /**
370
- * Request information for a number of files from the enumerator asynchronously.
371
- * When all I/O for the operation is finished the `callback` will be called with
372
- * the requested information.
373
- *
374
- * See the documentation of #GFileEnumerator for information about the
375
- * order of returned files.
376
- *
377
- * Once the end of the enumerator is reached, or if an error occurs, the
378
- * `callback` will be called with an empty list. In this case, the previous call
379
- * to g_file_enumerator_next_files_async() will typically have returned fewer
380
- * than `num_files` items.
381
- *
382
- * If a request is cancelled the callback will be called with
383
- * %G_IO_ERROR_CANCELLED.
384
- *
385
- * This leads to the following pseudo-code usage:
386
- * |[
387
- * g_autoptr(GFile) dir = get_directory ();
388
- * g_autoptr(GFileEnumerator) enumerator = NULL;
389
- * g_autolist(GFileInfo) files = NULL;
390
- * g_autoptr(GError) local_error = NULL;
391
- *
392
- * enumerator = yield g_file_enumerate_children_async (dir,
393
- * G_FILE_ATTRIBUTE_STANDARD_NAME ","
394
- * G_FILE_ATTRIBUTE_STANDARD_TYPE,
395
- * G_FILE_QUERY_INFO_NONE,
396
- * G_PRIORITY_DEFAULT,
397
- * cancellable,
398
- * …,
399
- * &local_error);
400
- * if (enumerator == NULL)
401
- * g_error ("Error enumerating: %s", local_error->message);
402
- *
403
- * // Loop until no files are returned, either because the end of the enumerator
404
- * // has been reached, or an error was returned.
405
- * do
406
- * {
407
- * files = yield g_file_enumerator_next_files_async (enumerator,
408
- * 5, // number of files to request
409
- * G_PRIORITY_DEFAULT,
410
- * cancellable,
411
- * …,
412
- * &local_error);
413
- *
414
- * // Process the returned files, but don’t assume that exactly 5 were returned.
415
- * for (GList *l = files; l != NULL; l = l->next)
416
- * {
417
- * GFileInfo *info = l->data;
418
- * handle_file_info (info);
419
- * }
420
- * }
421
- * while (files != NULL);
422
- *
423
- * if (local_error != NULL &&
424
- * !g_error_matches (local_error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
425
- * g_error ("Error while enumerating: %s", local_error->message);
426
- * ]|
427
- *
428
- * During an async request no other sync and async calls are allowed, and will
429
- * result in %G_IO_ERROR_PENDING errors.
430
- *
431
- * Any outstanding I/O request with higher priority (lower numerical value) will
432
- * be executed before an outstanding request with lower priority. Default
433
- * priority is %G_PRIORITY_DEFAULT.
434
- * @param numFiles - the number of file info objects to request
435
- * @param ioPriority - the I/O priority of the request
436
- * @param cancellable - optional #GCancellable object, %NULL to ignore.
437
- * @param callback - a #GAsyncReadyCallback
438
- * @param userData - the data to pass to callback function
439
- */
440
- nextFilesAsync(numFiles, ioPriority, cancellable, callback, userData) {
441
- call("libgio-2.0.so.0", "g_file_enumerator_next_files_async", [
442
- {
443
- type: { type: "gobject" },
444
- value: this.id,
445
- },
446
- {
447
- type: { type: "int", size: 32, unsigned: false },
448
- value: numFiles,
449
- },
450
- {
451
- type: { type: "int", size: 32, unsigned: false },
452
- value: ioPriority,
453
- },
454
- {
455
- type: { type: "gobject", borrowed: true },
456
- value: cancellable?.id ?? cancellable,
457
- optional: true,
458
- },
459
- {
460
- type: { type: "callback" },
461
- value: callback,
462
- optional: true,
463
- },
464
- {
465
- type: { type: "int", size: 64, unsigned: true },
466
- value: userData,
467
- optional: true,
468
- },
469
- ], { type: "undefined" });
470
- }
471
330
  /**
472
331
  * Finishes the asynchronous operation started with g_file_enumerator_next_files_async().
473
332
  * @param result - a #GAsyncResult.
@@ -67,16 +67,6 @@ export declare class FileIcon extends GObject.GObject {
67
67
  * @param cancellable - optional #GCancellable object, %NULL to
68
68
  */
69
69
  load(size: number, type?: Ref<string> | null, cancellable?: Cancellable | null): InputStream;
70
- /**
71
- * Loads an icon asynchronously. To finish this function, see
72
- * g_loadable_icon_load_finish(). For the synchronous, blocking
73
- * version of this function, see g_loadable_icon_load().
74
- * @param size - an integer.
75
- * @param cancellable - optional #GCancellable object, %NULL to ignore.
76
- * @param callback - a #GAsyncReadyCallback
77
- * @param userData - the data to pass to callback function
78
- */
79
- loadAsync(size: number, cancellable?: Cancellable | null, callback?: (...args: unknown[]) => unknown | null, userData?: number | null): void;
80
70
  /**
81
71
  * Finishes an asynchronous icon load started in g_loadable_icon_load_async().
82
72
  * @param res - a #GAsyncResult.