summaryrefslogtreecommitdiff
path: root/vapi/metadata/Gio-2.0.metadata
blob: 3ee2d969dbaebde587b5a7db75b7c4bbecfa7534 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
Gio name="GLib"
* cheader_filename="gio/gio.h"
*.cancellable#parameter nullable default=null
*.*.cancellable#parameter nullable default=null
*.*.io_priority default=GLib.Priority.DEFAULT

// Needs to be in gio-unix-2.0
DesktopAppInfo* skip
DesktopAppLaunchCallback skip
FileDescriptorBased* skip
Unix* skip
UnixSocketAddressType skip=false
UnixFDList skip=false cheader_filename="gio/gunixfdlist.h"
unix_* skip
// UnixSocketAddress.abstract#property skip
DBusConnection
	.call_with_unix_fd_list*.fd_list default=null
	.call_with_unix_fd_list*.out_fd_list nullable default=null
DBusProxy
	.call_with_unix_fd*.*fd_list nullable default=null

// Move constants around
FILE_ATTRIBUTE_* parent="GLib.FileAttribute" name="FILE_ATTRIBUTE_(.*)"
*_EXTENSION_POINT_NAME parent="GLib.IOExtensionPoint" name="(.*)_EXTENSION_POINT_NAME"
TLS_DATABASE_* parent="GLib.TlsDatabase" name="TLS_DATABASE_(.*)"
VOLUME_IDENTIFIER_KIND_* parent="GLib.VolumeIdentifier" name="VOLUME_IDENTIFIER_KIND_(.*)"
MENU_* parent="GLib.Menu" name="MENU_(.*)"

content_type_* parent="GLib.ContentType" name="content_type_(.*)"

bus_* parent="GLib.Bus" name="bus_(.*)"
bus_get skip
bus_get_sync skip
bus_get_finish skip
bus_own_name_with_closures name="own_name"
  .bus_acquired_closure type="owned GLib.BusAcquiredCallback?" default=null
  .name_acquired_closure type="owned GLib.BusNameAcquiredCallback?" default=null
  .name_lost_closure type="owned GLib.BusNameLostCallback?" default=null
bus_own_name_on_connection_with_closures name="own_name_on_connection"
  .name_acquired_closure type="owned GLib.BusNameAcquiredCallback?" default=null
  .name_lost_closure type="owned GLib.BusNameLostCallback?" default=null
bus_watch_name_on_connection_with_closures name="watch_name_on_connection"
  .name_appeared_closure type="owned GLib.BusNameAppearedCallback?" default=null
  .name_vanished_closure type="owned GLib.BusNameVanishedCallback?" default=null
bus_watch_name_with_closures name="watch_name"
  .name_appeared_closure type="owned GLib.BusNameAppearedCallback?" default=null
  .name_vanished_closure type="owned GLib.BusNameVanishedCallback?" default=null

dbus_* parent="GLib.DBus" name="dbus_(.*)"
dbus_error_* parent="GLib.DBusError" name="dbus_error_(.*)"
dbus_address_get_for_bus_sync parent="GLib.BusType" name="get_address_sync"

ActionEntry
  .activate type="GLib.SimpleActionActivateCallback"
  .change_state type="GLib.SimpleActionChangeStateCallback"
ActionGroup
  .query_action#virtual_method virtual
Application.local_command_line
  .arguments ref type="unowned string[]"
  .exit_status out
Application.run.argv default=null
ApplicationCommandLine
  .get_platform_data nullable
  .print skip=false printf_format
  .printerr skip=false printf_format
BufferedInputStream
  .peek.offset default=0
Cancellable
  .connect.callback type="owned GLib.Func<GLib.Cancellable>"
  .get_current nullable
  .set_error_if_cancelled throws="GLib.IOError"
  .source_new skip=false type="GLib.CancellableSource"
Credentials
  .get_native skip=false
DataInputStream
  .read_* throws="GLib.IOError"
  .read_line* nullable
  .read_line_finish_utf8 skip
DataOutputStream
  .put_* throws="GLib.IOError"
DBusAuthObserver.authorize_authenticated_peer virtual
DBusConnection
  .*.observer#parameter default=null
  .send_message_with_reply*.out_serial default=null
  .send_message_with_reply_sync throws="GLib.IOError"
DBusInterfaceSkeleton
  .get_vtable skip=false nullable unowned=false
DBusMessage
  .get_header_fields type="uchar[]"
  .print.indent default=0
DBus*Info
  .*#field unowned=false
DBusInterface
  .get_object skip=false
DBusMethodInvocation
  .get_user_data skip=false
  .return_error skip=false
  .return_error_valist skip=false
  .return_error_valist.var_args type="va_list"
  .take_error skip=false
  .take_error.error owned
DBusObjectManagerClient
  .get_name_owner nullable
  .name_owner nullable
DBusServer
  .new_sync.observer default=null
Drive
  .get_sort_key#virtual_method virtual
File
  .load_contents.cancellable#parameter default=()
  .monitor_dir* throws="GLib.IOError"
  .monitor_file throws="GLib.IOError"
FileInfo
  .list_attributes nullable
FileEnumerator
  .next_file nullable
IOStream
  .close* skip
  .input_stream abstract
  .output_stream abstract
  .closed skip=false
InetAddress
  .to_bytes type="unowned uint8[]" skip=false
InputStream
  .close skip
  .close_finish throws="GLib.IOError"
  .close_fn skip
  .read skip
  .read_all throws="GLib.IOError"
  .read_fn skip
  .read_finish throws="GLib.IOError"
  .skip throws="GLib.IOError"
  .skip_finish throws="GLib.IOError"
MemoryOutputStream
  .get_data type="unowned uint8[]"
  .steal_data type="uint8[]"
  .destroy_function skip=false type="GLib.DestroyNotify?"
  .realloc_function skip=false type="GLib.ReallocFunc?"
MenuItem
  .set_action_and_target skip=false
  .set_attribute skip=false
MenuModel
  .get_item_attribute skip=false
  .get_item_attributes.attributes out type="GLib.HashTable<string,GLib.Variant>?"
Mount
  .get_sort_key#virtual_method virtual
OutputStream
  .close skip
  .close_finish throws="GLib.IOError"
  .close_fn skip
  .splice throws="GLib.IOError"
  .splice_finish throws="GLib.IOError"
  .write skip
  .write_finish throws="GLib.IOError"
  .write_fn skip
  .write_all throws="GLib.IOError"
PropertyAction
  .name skip
  .parameter_type skip
  .state_type skip
Resolver
  .lookup_service_async skip
  .lookup_service#virtual_method skip=false name="lookup_service_fn" type="GLib.List<GLib.SrvTarget>"
  .lookup_service_finish skip
Settings
  .change_event skip
  .get skip=false sentinel=""
  .set skip=false sentinel=""
SettingsSchemaSource
  .lookup nullable
SimpleAction
  .enabled skip
  .name skip
  .parameter_type skip
  .state skip
  .state_type skip
SimpleAsyncResult
  .get_source_tag skip=false
  .run_in_thread skip=false
  .set_error skip=false printf_format
  .set_error_va skip=false
  .take_error skip=false
  .new skip
  .new_error skip
  .new_from_error skip
Socket
  .condition_wait throws="GLib.IOError"
  .create_source skip=false type="GLib.SocketSource"
SocketControlMessage
  .serialize.data type="uint8[]"
SocketListener
  .accept*.source_object#parameter default=null
srv_target_list_sort type_arguments="GLib.SrvTarget" skip=false
srv_target_list_sort.targets type_arguments="GLib.SrvTarget" owned
StaticResource
  .next type="StaticResource*"
TlsDatabase
  .create_certificate_handle nullable
TlsPassword
  .get_value type="unowned uint8[]" array_length_idx=0
  .set_value skip=false
  .set_value.value type="uint8[]" array_length_idx=1
  .set_value_full skip // Because the "owned" part in the value argument doesn't work
  // .set_value_full.value type="owned uint8[]" array_length_idx=1
  // .set_value_full.destroy default=GLib.free
  .set_value#virtual_method skip
Vfs
  // TODO: should probably be a simple generic
  .local_file_add_info.extra_data default=null
  .local_file_add_info.free_extra_data nullable default=null
Volume
  .get_activation_root nullable
  .get_sort_key#virtual_method virtual
ZlibCompressor
  .new.level default=-1
Converter
  .convert.outbuf type="uint8[]" array_length_idx=3
File
  .copy_async skip=false
  .copy*.progress_callback default=null
  .get_basename nullable
  .get_parent nullable
  .get_path nullable
  .get_relative_path nullable
  .load_partial_contents_async skip=false
  .move.progress_callback default=null
Icon
  .new_for_string nullable
  .to_string nullable
  .to_tokens skip
Initable
  .new_valist skip=false
  .newv type="GLib.Object"
PollableInputStream
  .create_source type="GLib.PollableSource"
  .read_nonblocking.buffer type="uint8[]" array_length_idx=1
  .read_nonblocking#virtual_method name="read_nonblocking_fn"
PollableOutputStream
  .create_source type="GLib.PollableSource"
TlsClientConnection
  .new nullable
  .accepted_cas type="GLib.List<GLib.ByteArray>"
TlsFileDatabase
  .new nullable
TlsServerConnection
  .new nullable
DBusError errordomain
DBusSubtreeEnumerateFunc unowned=false skip=false
ReallocFunc skip=false
pollable_source_new_full skip
pollable_stream_read
  .buffer type="uint8[]" array_length_idx=2


content_types_get_registered parent="GLib.ContentType" name="list_registered"
io_modules_* parent="GLib.IOModule" name="io_modules_(.*)"
io_scheduler_cancel_all_jobs parent="GLib.IOSchedulerJob" name="cancel_all"
io_scheduler_push_job parent="GLib.IOSchedulerJob" name="push"
pollable_source_new skip
network_monitor_get_default skip
proxy_get_default_for_protocol skip
proxy_resolver_get_default skip
simple_async_report_gerror_in_idle parent="GLib.SimpleAsyncResult" name="report_gerror_in_idle"
tls_* skip

// Bug #659886: Async constuctors don't work
DBusConnection
  .new skip
  .new_finish skip
  .new_for_address skip
  .new_for_address_finish skip
DBusObjectManagerClient
  .new skip
  .new_finish skip
  .new_for_bus skip
  .new_for_bus_finish skip
DBusProxy
  .new skip
  .new_finish skip
  .new_for_bus skip
  .new_for_bus_finish skip
AsyncInitable
  .new* skip
  .init_async#virtual_method virtual

// Bug #666797: No support for generic methods in GIR parser
DBusConnection
  .register_object skip

// Bug #: Construct methods not detected as such
DBusMessage
  .new_method_* skip

// Bug #: Reparenting instance method breaks arguments
Socket
  .connection_factory_create_connection skip // parent="GLib.SocketConnection" name="factory_create_connection"

// Bug #: out + allow-none parameters missing ? in vapi
LoadableIcon
  .load.type nullable

// Bug #666798: GIR parser should detect delegate types which throw errors
DBusInterfaceGetPropertyFunc skip
DBusInterfaceSetPropertyFunc skip

// Bug #666799: symbols with moved-to annotations should be deprecated at the old locations
app_info*#function skip
async_initable_newv_async skip
file_* skip
icon_* skip
initable_* skip

// Structs incorrectly returned by value
FileAttributeInfoList
  .lookup nullable

// Bug #561619: fields
StaticResource
  .resource unowned=false

// Bug #: virtual vs. abstract
Icon
  .serialize#virtual_method virtual

// Need to ask about this... annotated as out, but that seems wrong
DBus*Info.generate_xml.string_builder out=false

// out_serial must not be out in the async function
DBusConnection
  .send_message_with_reply skip
  .send_message_with_reply_finish skip

// Back compat
TlsCertificate abstract=false
DataInputStream
  .read_line type="string?"
  .read_line_finish type="string?"
  .read_line_finish.length default=null
  .read_line.length default=null

// Forward upstream
content_type_from_mime_type nullable
content_type_get_mime_type nullable
ActionGroup
  .get_action* nullable
  .get_action_enabled nullable=false
  .get_action_state_type unowned
AsyncReadyCallback.source_object nullable
DBusMessage
  .get_body unowned
DBusSubtreeVTable.enumerate skip=false
FileAttributeInfoList
  .infos array array_length_field="n_infos" unowned=false
LoadableIcon
  .load_finish.type out nullable unowned=false default=null
StaticResource
  .data array array_length_field="data_len"
  .padding skip
Task
  .get_source_object type="GLib.Object"
TlsBackend
  .get_certificate_type abstract
  .get_client_connection_type abstract
  .get_file_database_type abstract
  .get_server_connection_type abstract