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
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
// This file was generated by gir (89daf8f) from gir-files (71d73f0)
// DO NOT EDIT

use Error;
use File;
use Icon;
use Resource;
use ResourceLookupFlags;
use ffi;
use glib;
use glib::object::IsA;
use glib::translate::*;
use std;
use std::mem;
use std::ptr;


//pub fn bus_get<'a, 'b, P: Into<Option<&'a Cancellable>>, Q: Into<Option<&'b /*Unimplemented*/AsyncReadyCallback>>, R: Into<Option</*Unimplemented*/Fundamental: Pointer>>>(bus_type: /*Ignored*/BusType, cancellable: P, callback: Q, user_data: R) {
//    unsafe { TODO: call ffi::g_bus_get() }
//}

//pub fn bus_get_finish<P: IsA</*Ignored*/AsyncResult>>(res: &P) -> Result</*Ignored*/DBusConnection, Error> {
//    unsafe { TODO: call ffi::g_bus_get_finish() }
//}

//pub fn bus_get_sync<'a, P: Into<Option<&'a Cancellable>>>(bus_type: /*Ignored*/BusType, cancellable: P) -> Result</*Ignored*/DBusConnection, Error> {
//    unsafe { TODO: call ffi::g_bus_get_sync() }
//}

//pub fn bus_own_name<'a, 'b, 'c, 'd, P: Into<Option<&'a /*Unimplemented*/BusAcquiredCallback>>, Q: Into<Option<&'b /*Unimplemented*/BusNameAcquiredCallback>>, R: Into<Option<&'c /*Unimplemented*/BusNameLostCallback>>, S: Into<Option</*Unimplemented*/Fundamental: Pointer>>, T: Into<Option<&'d /*Ignored*/glib::DestroyNotify>>>(bus_type: /*Ignored*/BusType, name: &str, flags: /*Ignored*/BusNameOwnerFlags, bus_acquired_handler: P, name_acquired_handler: Q, name_lost_handler: R, user_data: S, user_data_free_func: T) -> u32 {
//    unsafe { TODO: call ffi::g_bus_own_name() }
//}

//pub fn bus_own_name_on_connection<'a, 'b, 'c, P: Into<Option<&'a /*Unimplemented*/BusNameAcquiredCallback>>, Q: Into<Option<&'b /*Unimplemented*/BusNameLostCallback>>, R: Into<Option</*Unimplemented*/Fundamental: Pointer>>, S: Into<Option<&'c /*Ignored*/glib::DestroyNotify>>>(connection: /*Ignored*/&DBusConnection, name: &str, flags: /*Ignored*/BusNameOwnerFlags, name_acquired_handler: P, name_lost_handler: Q, user_data: R, user_data_free_func: S) -> u32 {
//    unsafe { TODO: call ffi::g_bus_own_name_on_connection() }
//}

//pub fn bus_own_name_on_connection_with_closures<'a, 'b, P: Into<Option<&'a /*Ignored*/glib::Closure>>, Q: Into<Option<&'b /*Ignored*/glib::Closure>>>(connection: /*Ignored*/&DBusConnection, name: &str, flags: /*Ignored*/BusNameOwnerFlags, name_acquired_closure: P, name_lost_closure: Q) -> u32 {
//    unsafe { TODO: call ffi::g_bus_own_name_on_connection_with_closures() }
//}

//pub fn bus_own_name_with_closures<'a, 'b, 'c, P: Into<Option<&'a /*Ignored*/glib::Closure>>, Q: Into<Option<&'b /*Ignored*/glib::Closure>>, R: Into<Option<&'c /*Ignored*/glib::Closure>>>(bus_type: /*Ignored*/BusType, name: &str, flags: /*Ignored*/BusNameOwnerFlags, bus_acquired_closure: P, name_acquired_closure: Q, name_lost_closure: R) -> u32 {
//    unsafe { TODO: call ffi::g_bus_own_name_with_closures() }
//}

pub fn bus_unown_name(owner_id: u32) {
    unsafe {
        ffi::g_bus_unown_name(owner_id);
    }
}

pub fn bus_unwatch_name(watcher_id: u32) {
    unsafe {
        ffi::g_bus_unwatch_name(watcher_id);
    }
}

//pub fn bus_watch_name<'a, 'b, 'c, P: Into<Option<&'a /*Unimplemented*/BusNameAppearedCallback>>, Q: Into<Option<&'b /*Unimplemented*/BusNameVanishedCallback>>, R: Into<Option</*Unimplemented*/Fundamental: Pointer>>, S: Into<Option<&'c /*Ignored*/glib::DestroyNotify>>>(bus_type: /*Ignored*/BusType, name: &str, flags: /*Ignored*/BusNameWatcherFlags, name_appeared_handler: P, name_vanished_handler: Q, user_data: R, user_data_free_func: S) -> u32 {
//    unsafe { TODO: call ffi::g_bus_watch_name() }
//}

//pub fn bus_watch_name_on_connection<'a, 'b, 'c, P: Into<Option<&'a /*Unimplemented*/BusNameAppearedCallback>>, Q: Into<Option<&'b /*Unimplemented*/BusNameVanishedCallback>>, R: Into<Option</*Unimplemented*/Fundamental: Pointer>>, S: Into<Option<&'c /*Ignored*/glib::DestroyNotify>>>(connection: /*Ignored*/&DBusConnection, name: &str, flags: /*Ignored*/BusNameWatcherFlags, name_appeared_handler: P, name_vanished_handler: Q, user_data: R, user_data_free_func: S) -> u32 {
//    unsafe { TODO: call ffi::g_bus_watch_name_on_connection() }
//}

//pub fn bus_watch_name_on_connection_with_closures<'a, 'b, P: Into<Option<&'a /*Ignored*/glib::Closure>>, Q: Into<Option<&'b /*Ignored*/glib::Closure>>>(connection: /*Ignored*/&DBusConnection, name: &str, flags: /*Ignored*/BusNameWatcherFlags, name_appeared_closure: P, name_vanished_closure: Q) -> u32 {
//    unsafe { TODO: call ffi::g_bus_watch_name_on_connection_with_closures() }
//}

//pub fn bus_watch_name_with_closures<'a, 'b, P: Into<Option<&'a /*Ignored*/glib::Closure>>, Q: Into<Option<&'b /*Ignored*/glib::Closure>>>(bus_type: /*Ignored*/BusType, name: &str, flags: /*Ignored*/BusNameWatcherFlags, name_appeared_closure: P, name_vanished_closure: Q) -> u32 {
//    unsafe { TODO: call ffi::g_bus_watch_name_with_closures() }
//}

pub fn content_type_can_be_executable(type_: &str) -> bool {
    unsafe {
        from_glib(ffi::g_content_type_can_be_executable(type_.to_glib_none().0))
    }
}

pub fn content_type_equals(type1: &str, type2: &str) -> bool {
    unsafe {
        from_glib(ffi::g_content_type_equals(type1.to_glib_none().0, type2.to_glib_none().0))
    }
}

pub fn content_type_from_mime_type(mime_type: &str) -> Option<String> {
    unsafe {
        from_glib_full(ffi::g_content_type_from_mime_type(mime_type.to_glib_none().0))
    }
}

pub fn content_type_get_description(type_: &str) -> Option<String> {
    unsafe {
        from_glib_full(ffi::g_content_type_get_description(type_.to_glib_none().0))
    }
}

#[cfg(feature = "v2_34")]
pub fn content_type_get_generic_icon_name(type_: &str) -> Option<String> {
    unsafe {
        from_glib_full(ffi::g_content_type_get_generic_icon_name(type_.to_glib_none().0))
    }
}

pub fn content_type_get_icon(type_: &str) -> Option<Icon> {
    unsafe {
        from_glib_full(ffi::g_content_type_get_icon(type_.to_glib_none().0))
    }
}

pub fn content_type_get_mime_type(type_: &str) -> Option<String> {
    unsafe {
        from_glib_full(ffi::g_content_type_get_mime_type(type_.to_glib_none().0))
    }
}

#[cfg(feature = "v2_34")]
pub fn content_type_get_symbolic_icon(type_: &str) -> Option<Icon> {
    unsafe {
        from_glib_full(ffi::g_content_type_get_symbolic_icon(type_.to_glib_none().0))
    }
}

//pub fn content_type_guess<'a, P: Into<Option<&'a str>>>(filename: P, data: /*Unimplemented*/Option<&CArray TypeId { ns_id: 0, id: 3 }>) -> (String, bool) {
//    unsafe { TODO: call ffi::g_content_type_guess() }
//}

pub fn content_type_guess_for_tree<P: IsA<File>>(root: &P) -> Vec<String> {
    unsafe {
        FromGlibPtrContainer::from_glib_full(ffi::g_content_type_guess_for_tree(root.to_glib_none().0))
    }
}

pub fn content_type_is_a(type_: &str, supertype: &str) -> bool {
    unsafe {
        from_glib(ffi::g_content_type_is_a(type_.to_glib_none().0, supertype.to_glib_none().0))
    }
}

pub fn content_type_is_unknown(type_: &str) -> bool {
    unsafe {
        from_glib(ffi::g_content_type_is_unknown(type_.to_glib_none().0))
    }
}

pub fn content_types_get_registered() -> Vec<String> {
    unsafe {
        FromGlibPtrContainer::from_glib_full(ffi::g_content_types_get_registered())
    }
}

#[cfg(feature = "v2_36")]
pub fn dbus_address_escape_value(string: &str) -> Option<String> {
    unsafe {
        from_glib_full(ffi::g_dbus_address_escape_value(string.to_glib_none().0))
    }
}

//pub fn dbus_address_get_for_bus_sync<'a, P: Into<Option<&'a Cancellable>>>(bus_type: /*Ignored*/BusType, cancellable: P) -> Result<String, Error> {
//    unsafe { TODO: call ffi::g_dbus_address_get_for_bus_sync() }
//}

//pub fn dbus_address_get_stream<'a, 'b, P: Into<Option<&'a Cancellable>>, Q: Into<Option<&'b /*Unimplemented*/AsyncReadyCallback>>, R: Into<Option</*Unimplemented*/Fundamental: Pointer>>>(address: &str, cancellable: P, callback: Q, user_data: R) {
//    unsafe { TODO: call ffi::g_dbus_address_get_stream() }
//}

//pub fn dbus_address_get_stream_finish<P: IsA</*Ignored*/AsyncResult>>(res: &P) -> Result<(/*Ignored*/IOStream, String), Error> {
//    unsafe { TODO: call ffi::g_dbus_address_get_stream_finish() }
//}

//pub fn dbus_address_get_stream_sync<'a, P: Into<Option<&'a Cancellable>>>(address: &str, cancellable: P) -> Result<(/*Ignored*/IOStream, String), Error> {
//    unsafe { TODO: call ffi::g_dbus_address_get_stream_sync() }
//}

pub fn dbus_generate_guid() -> Option<String> {
    unsafe {
        from_glib_full(ffi::g_dbus_generate_guid())
    }
}

//pub fn dbus_gvalue_to_gvariant(gvalue: /*Ignored*/&glib::Value, type_: &glib::VariantTy) -> Option<glib::Variant> {
//    unsafe { TODO: call ffi::g_dbus_gvalue_to_gvariant() }
//}

//pub fn dbus_gvariant_to_gvalue(value: &glib::Variant, out_gvalue: /*Ignored*/glib::Value) {
//    unsafe { TODO: call ffi::g_dbus_gvariant_to_gvalue() }
//}

pub fn dbus_is_address(string: &str) -> bool {
    unsafe {
        from_glib(ffi::g_dbus_is_address(string.to_glib_none().0))
    }
}

pub fn dbus_is_guid(string: &str) -> bool {
    unsafe {
        from_glib(ffi::g_dbus_is_guid(string.to_glib_none().0))
    }
}

pub fn dbus_is_interface_name(string: &str) -> bool {
    unsafe {
        from_glib(ffi::g_dbus_is_interface_name(string.to_glib_none().0))
    }
}

pub fn dbus_is_member_name(string: &str) -> bool {
    unsafe {
        from_glib(ffi::g_dbus_is_member_name(string.to_glib_none().0))
    }
}

pub fn dbus_is_name(string: &str) -> bool {
    unsafe {
        from_glib(ffi::g_dbus_is_name(string.to_glib_none().0))
    }
}

pub fn dbus_is_supported_address(string: &str) -> Result<(), Error> {
    unsafe {
        let mut error = ptr::null_mut();
        let _ = ffi::g_dbus_is_supported_address(string.to_glib_none().0, &mut error);
        if error.is_null() { Ok(()) } else { Err(from_glib_full(error)) }
    }
}

pub fn dbus_is_unique_name(string: &str) -> bool {
    unsafe {
        from_glib(ffi::g_dbus_is_unique_name(string.to_glib_none().0))
    }
}

//pub fn io_error_from_errno(err_no: i32) -> /*Ignored*/IOErrorEnum {
//    unsafe { TODO: call ffi::g_io_error_from_errno() }
//}

//pub fn io_error_quark() -> /*Ignored*/glib::Quark {
//    unsafe { TODO: call ffi::g_io_error_quark() }
//}

//pub fn io_modules_load_all_in_directory<P: AsRef<std::path::Path>>(dirname: P) -> /*Ignored*/Vec<IOModule> {
//    unsafe { TODO: call ffi::g_io_modules_load_all_in_directory() }
//}

//pub fn io_modules_load_all_in_directory_with_scope<P: AsRef<std::path::Path>>(dirname: P, scope: /*Ignored*/&mut IOModuleScope) -> /*Ignored*/Vec<IOModule> {
//    unsafe { TODO: call ffi::g_io_modules_load_all_in_directory_with_scope() }
//}

pub fn io_modules_scan_all_in_directory<P: AsRef<std::path::Path>>(dirname: P) {
    unsafe {
        ffi::g_io_modules_scan_all_in_directory(dirname.as_ref().to_glib_none().0);
    }
}

//pub fn io_modules_scan_all_in_directory_with_scope<P: AsRef<std::path::Path>>(dirname: P, scope: /*Ignored*/&mut IOModuleScope) {
//    unsafe { TODO: call ffi::g_io_modules_scan_all_in_directory_with_scope() }
//}

pub fn io_scheduler_cancel_all_jobs() {
    unsafe {
        ffi::g_io_scheduler_cancel_all_jobs();
    }
}

//pub fn io_scheduler_push_job<'a, 'b, P: Into<Option</*Unimplemented*/Fundamental: Pointer>>, Q: Into<Option<&'a /*Ignored*/glib::DestroyNotify>>, R: Into<Option<&'b Cancellable>>>(job_func: /*Unknown conversion*//*Unimplemented*/IOSchedulerJobFunc, user_data: P, notify: Q, io_priority: i32, cancellable: R) {
//    unsafe { TODO: call ffi::g_io_scheduler_push_job() }
//}

#[cfg(feature = "v2_36")]
pub fn networking_init() {
    unsafe {
        ffi::g_networking_init();
    }
}

//pub fn pollable_source_new<P: IsA<glib::Object>>(pollable_stream: &P) -> /*Ignored*/Option<glib::Source> {
//    unsafe { TODO: call ffi::g_pollable_source_new() }
//}

//#[cfg(feature = "v2_34")]
//pub fn pollable_source_new_full<'a, 'b, P: IsA<glib::Object>, Q: Into<Option<&'a /*Ignored*/glib::Source>>, R: Into<Option<&'b Cancellable>>>(pollable_stream: &P, child_source: Q, cancellable: R) -> /*Ignored*/Option<glib::Source> {
//    unsafe { TODO: call ffi::g_pollable_source_new_full() }
//}

//#[cfg(feature = "v2_34")]
//pub fn pollable_stream_read<'a, P: IsA</*Ignored*/InputStream>, Q: Into<Option<&'a Cancellable>>>(stream: &P, buffer: /*Unimplemented*/&CArray TypeId { ns_id: 0, id: 3 }, blocking: bool, cancellable: Q) -> Result<isize, Error> {
//    unsafe { TODO: call ffi::g_pollable_stream_read() }
//}

//#[cfg(feature = "v2_34")]
//pub fn pollable_stream_write<'a, P: IsA</*Ignored*/OutputStream>, Q: Into<Option<&'a Cancellable>>>(stream: &P, buffer: /*Unimplemented*/&CArray TypeId { ns_id: 0, id: 3 }, blocking: bool, cancellable: Q) -> Result<isize, Error> {
//    unsafe { TODO: call ffi::g_pollable_stream_write() }
//}

//#[cfg(feature = "v2_34")]
//pub fn pollable_stream_write_all<'a, P: IsA</*Ignored*/OutputStream>, Q: Into<Option<&'a Cancellable>>>(stream: &P, buffer: /*Unimplemented*/&CArray TypeId { ns_id: 0, id: 3 }, blocking: bool, cancellable: Q) -> Result<usize, Error> {
//    unsafe { TODO: call ffi::g_pollable_stream_write_all() }
//}

pub fn resources_enumerate_children(path: &str, lookup_flags: ResourceLookupFlags) -> Result<Vec<String>, Error> {
    unsafe {
        let mut error = ptr::null_mut();
        let ret = ffi::g_resources_enumerate_children(path.to_glib_none().0, lookup_flags.to_glib(), &mut error);
        if error.is_null() { Ok(FromGlibPtrContainer::from_glib_full(ret)) } else { Err(from_glib_full(error)) }
    }
}

pub fn resources_get_info(path: &str, lookup_flags: ResourceLookupFlags) -> Result<(usize, u32), Error> {
    unsafe {
        let mut size = mem::uninitialized();
        let mut flags = mem::uninitialized();
        let mut error = ptr::null_mut();
        let _ = ffi::g_resources_get_info(path.to_glib_none().0, lookup_flags.to_glib(), &mut size, &mut flags, &mut error);
        if error.is_null() { Ok((size, flags)) } else { Err(from_glib_full(error)) }
    }
}

pub fn resources_lookup_data(path: &str, lookup_flags: ResourceLookupFlags) -> Result<glib::Bytes, Error> {
    unsafe {
        let mut error = ptr::null_mut();
        let ret = ffi::g_resources_lookup_data(path.to_glib_none().0, lookup_flags.to_glib(), &mut error);
        if error.is_null() { Ok(from_glib_full(ret)) } else { Err(from_glib_full(error)) }
    }
}

//pub fn resources_open_stream(path: &str, lookup_flags: ResourceLookupFlags) -> Result</*Ignored*/InputStream, Error> {
//    unsafe { TODO: call ffi::g_resources_open_stream() }
//}

pub fn resources_register(resource: &Resource) {
    unsafe {
        ffi::g_resources_register(resource.to_glib_none().0);
    }
}

pub fn resources_unregister(resource: &Resource) {
    unsafe {
        ffi::g_resources_unregister(resource.to_glib_none().0);
    }
}

//pub fn simple_async_report_error_in_idle<'a, 'b, P: IsA<glib::Object> + 'a, Q: Into<Option<&'a P>>, R: Into<Option<&'b /*Unimplemented*/AsyncReadyCallback>>, S: Into<Option</*Unimplemented*/Fundamental: Pointer>>>(object: Q, callback: R, user_data: S, domain: /*Ignored*/glib::Quark, code: i32, format: &str, : /*Unknown conversion*//*Unimplemented*/Fundamental: VarArgs) {
//    unsafe { TODO: call ffi::g_simple_async_report_error_in_idle() }
//}

//pub fn simple_async_report_gerror_in_idle<'a, 'b, P: IsA<glib::Object> + 'a, Q: Into<Option<&'a P>>, R: Into<Option<&'b /*Unimplemented*/AsyncReadyCallback>>, S: Into<Option</*Unimplemented*/Fundamental: Pointer>>>(object: Q, callback: R, user_data: S, error: &Error) {
//    unsafe { TODO: call ffi::g_simple_async_report_gerror_in_idle() }
//}

//pub fn simple_async_report_take_gerror_in_idle<'a, 'b, P: IsA<glib::Object> + 'a, Q: Into<Option<&'a P>>, R: Into<Option<&'b /*Unimplemented*/AsyncReadyCallback>>, S: Into<Option</*Unimplemented*/Fundamental: Pointer>>>(object: Q, callback: R, user_data: S, error: &mut Error) {
//    unsafe { TODO: call ffi::g_simple_async_report_take_gerror_in_idle() }
//}

#[cfg(unix)]
pub fn unix_is_mount_path_system_internal<P: AsRef<std::path::Path>>(mount_path: P) -> bool {
    unsafe {
        from_glib(ffi::g_unix_is_mount_path_system_internal(mount_path.as_ref().to_glib_none().0))
    }
}

//#[cfg(unix)]
//pub fn unix_mount_at(mount_path: &str) -> (/*Ignored*/UnixMountEntry, u64) {
//    unsafe { TODO: call ffi::g_unix_mount_at() }
//}

//#[cfg(unix)]
//pub fn unix_mount_compare(mount1: /*Ignored*/&mut UnixMountEntry, mount2: /*Ignored*/&mut UnixMountEntry) -> i32 {
//    unsafe { TODO: call ffi::g_unix_mount_compare() }
//}

//#[cfg(unix)]
//pub fn unix_mount_free(mount_entry: /*Ignored*/&mut UnixMountEntry) {
//    unsafe { TODO: call ffi::g_unix_mount_free() }
//}

//#[cfg(unix)]
//pub fn unix_mount_get_device_path(mount_entry: /*Ignored*/&mut UnixMountEntry) -> Option<std::path::PathBuf> {
//    unsafe { TODO: call ffi::g_unix_mount_get_device_path() }
//}

//#[cfg(unix)]
//pub fn unix_mount_get_fs_type(mount_entry: /*Ignored*/&mut UnixMountEntry) -> Option<String> {
//    unsafe { TODO: call ffi::g_unix_mount_get_fs_type() }
//}

//#[cfg(unix)]
//pub fn unix_mount_get_mount_path(mount_entry: /*Ignored*/&mut UnixMountEntry) -> Option<std::path::PathBuf> {
//    unsafe { TODO: call ffi::g_unix_mount_get_mount_path() }
//}

//#[cfg(unix)]
//pub fn unix_mount_guess_can_eject(mount_entry: /*Ignored*/&mut UnixMountEntry) -> bool {
//    unsafe { TODO: call ffi::g_unix_mount_guess_can_eject() }
//}

//#[cfg(unix)]
//pub fn unix_mount_guess_icon(mount_entry: /*Ignored*/&mut UnixMountEntry) -> Option<Icon> {
//    unsafe { TODO: call ffi::g_unix_mount_guess_icon() }
//}

//#[cfg(unix)]
//pub fn unix_mount_guess_name(mount_entry: /*Ignored*/&mut UnixMountEntry) -> Option<String> {
//    unsafe { TODO: call ffi::g_unix_mount_guess_name() }
//}

//#[cfg(unix)]
//pub fn unix_mount_guess_should_display(mount_entry: /*Ignored*/&mut UnixMountEntry) -> bool {
//    unsafe { TODO: call ffi::g_unix_mount_guess_should_display() }
//}

//#[cfg(unix)]
//#[cfg(feature = "v2_34")]
//pub fn unix_mount_guess_symbolic_icon(mount_entry: /*Ignored*/&mut UnixMountEntry) -> Option<Icon> {
//    unsafe { TODO: call ffi::g_unix_mount_guess_symbolic_icon() }
//}

//#[cfg(unix)]
//pub fn unix_mount_is_readonly(mount_entry: /*Ignored*/&mut UnixMountEntry) -> bool {
//    unsafe { TODO: call ffi::g_unix_mount_is_readonly() }
//}

//#[cfg(unix)]
//pub fn unix_mount_is_system_internal(mount_entry: /*Ignored*/&mut UnixMountEntry) -> bool {
//    unsafe { TODO: call ffi::g_unix_mount_is_system_internal() }
//}

#[cfg(unix)]
pub fn unix_mount_points_changed_since(time: u64) -> bool {
    unsafe {
        from_glib(ffi::g_unix_mount_points_changed_since(time))
    }
}

//#[cfg(unix)]
//pub fn unix_mount_points_get() -> (/*Ignored*/Vec<UnixMountPoint>, u64) {
//    unsafe { TODO: call ffi::g_unix_mount_points_get() }
//}

#[cfg(unix)]
pub fn unix_mounts_changed_since(time: u64) -> bool {
    unsafe {
        from_glib(ffi::g_unix_mounts_changed_since(time))
    }
}

//#[cfg(unix)]
//pub fn unix_mounts_get() -> (/*Ignored*/Vec<UnixMountEntry>, u64) {
//    unsafe { TODO: call ffi::g_unix_mounts_get() }
//}