1 /* gdu.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "Gdu", lower_case_cprefix = "gdu_")]
5 [CCode (cheader_filename = "gdu/gdu.h")]
6 public class Adapter : GLib.Object {
7 public unowned string get_driver ();
8 public unowned string get_fabric ();
9 public unowned string get_model ();
10 public unowned string get_native_path ();
11 public uint get_num_ports ();
12 public unowned string get_object_path ();
13 public unowned Gdu.Pool get_pool ();
14 public unowned string get_vendor ();
15 public virtual signal void changed ();
16 public virtual signal void removed ();
18 [CCode (cheader_filename = "gdu/gdu.h")]
19 public class Device : GLib.Object {
20 public void* drive_ata_smart_get_blob (size_t out_size);
21 public bool drive_ata_smart_get_is_available ();
22 public unowned string drive_ata_smart_get_status ();
23 public uint64 drive_ata_smart_get_time_collected ();
24 public void drive_ata_smart_refresh_data (Gdu.DeviceDriveAtaSmartRefreshDataCompletedFunc callback);
25 public unowned string drive_get_adapter ();
26 public bool drive_get_can_detach ();
27 public bool drive_get_can_spindown ();
28 public unowned string drive_get_connection_interface ();
29 public uint64 drive_get_connection_speed ();
30 public bool drive_get_is_media_ejectable ();
31 public bool drive_get_is_rotational ();
32 public unowned string drive_get_media ();
33 public unowned string drive_get_media_compatibility ();
34 public unowned string drive_get_model ();
35 public unowned string drive_get_ports ();
36 public bool drive_get_requires_eject ();
37 public unowned string drive_get_revision ();
38 public uint drive_get_rotation_rate ();
39 public unowned string drive_get_serial ();
40 public unowned string drive_get_similar_devices ();
41 public unowned string drive_get_vendor ();
42 public unowned string drive_get_write_cache ();
43 public unowned string drive_get_wwn ();
44 public void filesystem_list_open_files (Gdu.DeviceFilesystemListOpenFilesCompletedFunc callback);
45 public unowned GLib.List filesystem_list_open_files_sync () throws GLib.Error;
46 public unowned Gdu.Device find_parent ();
47 public uint64 get_block_size ();
48 public uint64 get_detection_time ();
49 public ulong get_dev ();
50 public unowned string get_device_file ();
51 public unowned string get_device_file_presentation ();
52 public uint64 get_media_detection_time ();
53 public unowned string get_mount_path ();
54 public unowned string get_mount_paths ();
55 public ulong get_mounted_by_uid ();
56 public unowned string get_object_path ();
57 public unowned Gdu.Pool get_pool ();
58 public bool get_presentation_hide ();
59 public unowned string get_presentation_icon_name ();
60 public unowned string get_presentation_name ();
61 public bool get_presentation_nopolicy ();
62 public uint64 get_size ();
63 public unowned string id_get_label ();
64 public unowned string id_get_type ();
65 public unowned string id_get_usage ();
66 public unowned string id_get_uuid ();
67 public unowned string id_get_version ();
68 public bool is_drive ();
69 public bool is_linux_dmmp ();
70 public bool is_linux_dmmp_component ();
71 public bool is_linux_loop ();
72 public bool is_linux_lvm2_lv ();
73 public bool is_linux_lvm2_pv ();
74 public bool is_linux_md ();
75 public bool is_linux_md_component ();
76 public bool is_luks ();
77 public bool is_luks_cleartext ();
78 public bool is_media_available ();
79 public bool is_media_change_detected ();
80 public bool is_media_change_detection_inhibitable ();
81 public bool is_media_change_detection_inhibited ();
82 public bool is_media_change_detection_polling ();
83 public bool is_mounted ();
84 public bool is_optical_disc ();
85 public bool is_partition ();
86 public bool is_partition_table ();
87 public bool is_read_only ();
88 public bool is_removable ();
89 public bool is_system_internal ();
90 public unowned string job_get_id ();
91 public ulong job_get_initiated_by_uid ();
92 public double job_get_percentage ();
93 public bool job_in_progress ();
94 public bool job_is_cancellable ();
95 public unowned string linux_dmmp_component_get_holder ();
96 public unowned string linux_dmmp_get_name ();
97 public unowned string linux_dmmp_get_parameters ();
98 public unowned string linux_dmmp_get_slaves ();
99 public unowned string linux_loop_get_filename ();
100 public unowned string linux_lvm2_lv_get_group_name ();
101 public unowned string linux_lvm2_lv_get_group_uuid ();
102 public unowned string linux_lvm2_lv_get_name ();
103 public unowned string linux_lvm2_lv_get_uuid ();
104 public uint64 linux_lvm2_pv_get_group_extent_size ();
105 public unowned string linux_lvm2_pv_get_group_logical_volumes ();
106 public unowned string linux_lvm2_pv_get_group_name ();
107 public unowned string linux_lvm2_pv_get_group_physical_volumes ();
108 public uint64 linux_lvm2_pv_get_group_sequence_number ();
109 public uint64 linux_lvm2_pv_get_group_size ();
110 public uint64 linux_lvm2_pv_get_group_unallocated_size ();
111 public unowned string linux_lvm2_pv_get_group_uuid ();
112 public uint linux_lvm2_pv_get_num_metadata_areas ();
113 public unowned string linux_lvm2_pv_get_uuid ();
114 public unowned string linux_md_component_get_holder ();
115 public unowned string linux_md_component_get_home_host ();
116 public unowned string linux_md_component_get_level ();
117 public unowned string linux_md_component_get_name ();
118 public int linux_md_component_get_num_raid_devices ();
119 public int linux_md_component_get_position ();
120 public unowned string linux_md_component_get_state ();
121 public unowned string linux_md_component_get_uuid ();
122 public unowned string linux_md_component_get_version ();
123 public unowned string linux_md_get_home_host ();
124 public unowned string linux_md_get_level ();
125 public unowned string linux_md_get_name ();
126 public int linux_md_get_num_raid_devices ();
127 public unowned string linux_md_get_slaves ();
128 public unowned string linux_md_get_state ();
129 public unowned string linux_md_get_sync_action ();
130 public double linux_md_get_sync_percentage ();
131 public uint64 linux_md_get_sync_speed ();
132 public unowned string linux_md_get_uuid ();
133 public unowned string linux_md_get_version ();
134 public bool linux_md_is_degraded ();
135 public unowned string luks_cleartext_get_slave ();
136 public ulong luks_cleartext_unlocked_by_uid ();
137 public unowned string luks_get_holder ();
138 public void op_cancel_job (Gdu.DeviceCancelJobCompletedFunc callback);
139 public void op_drive_ata_smart_initiate_selftest (string test, Gdu.DeviceDriveAtaSmartInitiateSelftestCompletedFunc callback);
140 public void op_drive_benchmark (bool do_write_benchmark, string options, Gdu.DeviceDriveBenchmarkCompletedFunc callback);
141 public void op_drive_detach (Gdu.DeviceDriveDetachCompletedFunc callback);
142 public void op_drive_eject (Gdu.DeviceDriveEjectCompletedFunc callback);
143 public void op_drive_poll_media (Gdu.DeviceDrivePollMediaCompletedFunc callback);
144 public void op_filesystem_check (Gdu.DeviceFilesystemCheckCompletedFunc callback);
145 public void op_filesystem_create (string fstype, string fslabel, string encrypt_passphrase, bool fs_take_ownership, Gdu.DeviceFilesystemCreateCompletedFunc callback);
146 public void op_filesystem_mount (string options, Gdu.DeviceFilesystemMountCompletedFunc callback);
147 public void op_filesystem_set_label (string new_label, Gdu.DeviceFilesystemSetLabelCompletedFunc callback);
148 public void op_filesystem_unmount (Gdu.DeviceFilesystemUnmountCompletedFunc callback);
149 public void op_linux_lvm2_lv_stop (Gdu.DeviceLinuxLvm2LVStopCompletedFunc callback);
150 public void op_linux_md_add_spare (string component_objpath, Gdu.DeviceLinuxMdAddSpareCompletedFunc callback);
151 public void op_linux_md_check (string options, Gdu.DeviceLinuxMdCheckCompletedFunc callback);
152 public void op_linux_md_expand (GLib.PtrArray component_objpaths, Gdu.DeviceLinuxMdExpandCompletedFunc callback);
153 public void op_linux_md_remove_component (string component_objpath, Gdu.DeviceLinuxMdRemoveComponentCompletedFunc callback);
154 public void op_linux_md_stop (Gdu.DeviceLinuxMdStopCompletedFunc callback);
155 public void op_luks_change_passphrase (string old_secret, string new_secret, Gdu.DeviceLuksChangePassphraseCompletedFunc callback);
156 public void op_luks_lock (Gdu.DeviceLuksLockCompletedFunc callback);
157 public void op_luks_unlock (string secret, Gdu.DeviceLuksUnlockCompletedFunc callback);
158 public void op_partition_create (uint64 offset, uint64 size, string type, string label, out unowned string flags, string fstype, string fslabel, string encrypt_passphrase, bool fs_take_ownership, Gdu.DevicePartitionCreateCompletedFunc callback);
159 public void op_partition_delete (Gdu.DevicePartitionDeleteCompletedFunc callback);
160 public void op_partition_modify (string type, string label, out unowned string flags, Gdu.DevicePartitionModifyCompletedFunc callback);
161 public void op_partition_table_create (string scheme, Gdu.DevicePartitionTableCreateCompletedFunc callback);
162 public bool optical_disc_get_is_appendable ();
163 public bool optical_disc_get_is_blank ();
164 public bool optical_disc_get_is_closed ();
165 public uint optical_disc_get_num_audio_tracks ();
166 public uint optical_disc_get_num_sessions ();
167 public uint optical_disc_get_num_tracks ();
168 public uint64 partition_get_alignment_offset ();
169 public unowned string partition_get_flags ();
170 public unowned string partition_get_label ();
171 public int partition_get_number ();
172 public uint64 partition_get_offset ();
173 public unowned string partition_get_scheme ();
174 public uint64 partition_get_size ();
175 public unowned string partition_get_slave ();
176 public unowned string partition_get_type ();
177 public unowned string partition_get_uuid ();
178 public int partition_table_get_count ();
179 public unowned string partition_table_get_scheme ();
180 public bool should_ignore ();
181 public virtual signal void changed ();
182 public virtual signal void job_changed ();
183 public virtual signal void removed ();
185 [CCode (cheader_filename = "gdu/gdu.h")]
186 public class Drive : GLib.Object, Gdu.Presentable {
187 public virtual void activate (Gdu.DriveActivateFunc callback);
188 public virtual bool can_activate (bool out_degraded);
189 public virtual bool can_create_volume (bool out_is_uninitialized, uint64 out_largest_contiguous_free_segment, uint64 out_total_free, out unowned Gdu.Presentable out_presentable);
190 public virtual bool can_deactivate ();
191 public bool count_mbr_partitions (uint out_num_primary_partitions, bool out_has_extended_partition);
192 public virtual void create_volume (uint64 size, string name, Gdu.CreateVolumeFlags flags, GLib.AsyncReadyCallback callback);
193 public virtual unowned Gdu.Volume create_volume_finish (GLib.AsyncResult res) throws GLib.Error;
194 public virtual void deactivate (Gdu.DriveDeactivateFunc callback);
195 public unowned GLib.List get_volumes ();
196 public virtual bool is_activatable ();
197 public virtual bool is_active ();
199 [CCode (cheader_filename = "gdu/gdu.h")]
200 public class Expander : GLib.Object {
201 public unowned string get_adapter ();
202 public unowned string get_model ();
203 public unowned string get_native_path ();
204 public uint get_num_ports ();
205 public unowned string get_object_path ();
206 public unowned Gdu.Pool get_pool ();
207 public unowned string get_revision ();
208 public unowned string get_upstream_ports ();
209 public unowned string get_vendor ();
210 public virtual signal void changed ();
211 public virtual signal void removed ();
213 [CCode (cheader_filename = "gdu/gdu.h")]
214 public class Hub : GLib.Object, Gdu.Presentable {
215 public unowned Gdu.Adapter get_adapter ();
216 public unowned Gdu.Expander get_expander ();
217 public Gdu.HubUsage get_usage ();
219 [CCode (cheader_filename = "gdu/gdu.h")]
220 public class KnownFilesystem : GLib.Object {
221 public bool get_can_create ();
222 public bool get_can_mount ();
223 public unowned string get_id ();
224 public uint get_max_label_len ();
225 public unowned string get_name ();
226 public bool get_supports_fsck ();
227 public bool get_supports_label_rename ();
228 public bool get_supports_online_fsck ();
229 public bool get_supports_online_label_rename ();
230 public bool get_supports_online_resize_enlarge ();
231 public bool get_supports_online_resize_shrink ();
232 public bool get_supports_resize_enlarge ();
233 public bool get_supports_resize_shrink ();
234 public bool get_supports_unix_owners ();
236 [CCode (cheader_filename = "gdu/gdu.h")]
237 public class LinuxLvm2Volume : Gdu.Volume, Gdu.Presentable {
238 public unowned string get_group_uuid ();
239 public unowned string get_uuid ();
241 [CCode (cheader_filename = "gdu/gdu.h")]
242 public class LinuxLvm2VolumeGroup : Gdu.Drive, Gdu.Presentable {
243 public unowned string get_compute_new_lv_name ();
244 public bool get_lv_info (string lv_uuid, uint out_position, string out_name, uint64 out_size);
245 public uint get_num_lvs ();
246 public unowned Gdu.Device get_pv_device ();
247 public bool get_pv_info (string pv_uuid, uint out_position, uint64 out_size, uint64 out_allocated_size);
248 public Gdu.LinuxLvm2VolumeGroupState get_state ();
249 public unowned string get_uuid ();
251 [CCode (cheader_filename = "gdu/gdu.h")]
252 public class LinuxLvm2VolumeHole : Gdu.VolumeHole, Gdu.Presentable {
254 [CCode (cheader_filename = "gdu/gdu.h")]
255 public class LinuxMdDrive : Gdu.Drive, Gdu.Presentable {
256 public Gdu.LinuxMdDriveSlaveFlags get_slave_flags (Gdu.Device slave);
257 public unowned string get_slave_state_markup (Gdu.Device slave);
258 public unowned GLib.List get_slaves ();
259 public unowned string get_uuid ();
260 public bool has_slave (Gdu.Device device);
262 [CCode (cheader_filename = "gdu/gdu.h")]
263 public class Machine : GLib.Object, Gdu.Presentable {
265 [CCode (cheader_filename = "gdu/gdu.h")]
266 public class Pool : GLib.Object {
267 [CCode (has_construct_function = false)]
269 [CCode (has_construct_function = false)]
270 public Pool.for_address (string ssh_user_name, string ssh_address) throws GLib.Error;
271 public unowned Gdu.Adapter get_adapter_by_object_path (string object_path);
272 public unowned GLib.List get_adapters ();
273 public unowned Gdu.Device get_by_device_file (string device_file);
274 public unowned Gdu.Device get_by_object_path (string object_path);
275 public unowned string get_daemon_version ();
276 public unowned GLib.List get_devices ();
277 public unowned Gdu.Presentable get_drive_by_device (Gdu.Device device);
278 public unowned GLib.List get_enclosed_presentables (Gdu.Presentable presentable);
279 public unowned Gdu.Expander get_expander_by_object_path (string object_path);
280 public unowned GLib.List get_expanders ();
281 public unowned Gdu.Presentable get_hub_by_object_path (string object_path);
282 public unowned Gdu.KnownFilesystem get_known_filesystem_by_id (string id);
283 public unowned GLib.List get_known_filesystems ();
284 public unowned Gdu.LinuxMdDrive get_linux_md_drive_by_uuid (string uuid);
285 public unowned Gdu.Port get_port_by_object_path (string object_path);
286 public unowned GLib.List get_ports ();
287 public unowned Gdu.Presentable get_presentable_by_id (string id);
288 public unowned GLib.List get_presentables ();
289 public unowned string get_ssh_address ();
290 public unowned string get_ssh_user_name ();
291 public unowned Gdu.Presentable get_volume_by_device (Gdu.Device device);
292 public bool has_presentable (Gdu.Presentable presentable);
293 public bool is_daemon_inhibited ();
294 public void op_linux_lvm2_lv_create (string group_uuid, string name, uint64 size, uint num_stripes, uint64 stripe_size, uint num_mirrors, string fstype, string fslabel, string encrypt_passphrase, bool fs_take_ownership, Gdu.PoolLinuxLvm2LVCreateCompletedFunc callback);
295 public void op_linux_lvm2_lv_remove (string group_uuid, string uuid, Gdu.PoolLinuxLvm2LVRemoveCompletedFunc callback);
296 public void op_linux_lvm2_lv_set_name (string group_uuid, string uuid, string new_name, Gdu.PoolLinuxLvm2LVSetNameCompletedFunc callback);
297 public void op_linux_lvm2_lv_start (string group_uuid, string uuid, Gdu.PoolLinuxLvm2VGStartCompletedFunc callback);
298 public void op_linux_lvm2_vg_add_pv (string uuid, string physical_volume_object_path, Gdu.PoolLinuxLvm2VGAddPVCompletedFunc callback);
299 public void op_linux_lvm2_vg_remove_pv (string vg_uuid, string pv_uuid, Gdu.PoolLinuxLvm2VGRemovePVCompletedFunc callback);
300 public void op_linux_lvm2_vg_set_name (string uuid, string new_name, Gdu.PoolLinuxLvm2VGSetNameCompletedFunc callback);
301 public void op_linux_lvm2_vg_start (string uuid, Gdu.PoolLinuxLvm2VGStartCompletedFunc callback);
302 public void op_linux_lvm2_vg_stop (string uuid, Gdu.PoolLinuxLvm2VGStopCompletedFunc callback);
303 public void op_linux_md_create (GLib.PtrArray component_objpaths, string level, uint64 stripe_size, string name, Gdu.PoolLinuxMdCreateCompletedFunc callback);
304 public void op_linux_md_start (GLib.PtrArray component_objpaths, Gdu.PoolLinuxMdStartCompletedFunc callback);
305 public bool supports_luks_devices ();
306 public virtual signal void adapter_added (Gdu.Adapter adapter);
307 public virtual signal void adapter_changed (Gdu.Adapter adapter);
308 public virtual signal void adapter_removed (Gdu.Adapter adapter);
309 public virtual signal void device_added (Gdu.Device device);
310 public virtual signal void device_changed (Gdu.Device device);
311 public virtual signal void device_job_changed (Gdu.Device device);
312 public virtual signal void device_removed (Gdu.Device device);
313 public virtual signal void disconnected ();
314 public virtual signal void expander_added (Gdu.Expander expander);
315 public virtual signal void expander_changed (Gdu.Expander expander);
316 public virtual signal void expander_removed (Gdu.Expander expander);
317 public virtual signal void port_added (Gdu.Port port);
318 public virtual signal void port_changed (Gdu.Port port);
319 public virtual signal void port_removed (Gdu.Port port);
320 public virtual signal void presentable_added (Gdu.Presentable presentable);
321 public virtual signal void presentable_changed (Gdu.Presentable presentable);
322 public virtual signal void presentable_job_changed (Gdu.Presentable presentable);
323 public virtual signal void presentable_removed (Gdu.Presentable presentable);
325 [CCode (cheader_filename = "gdu/gdu.h")]
326 public class Port : GLib.Object {
327 public unowned string get_adapter ();
328 public unowned string get_connector_type ();
329 public unowned string get_native_path ();
330 public int get_number ();
331 public unowned string get_object_path ();
332 public unowned string get_parent ();
333 public unowned Gdu.Pool get_pool ();
334 public virtual signal void changed ();
335 public virtual signal void removed ();
337 [CCode (cheader_filename = "gdu/gdu.h")]
338 public class Process : GLib.Object {
339 public unowned GLib.AppInfo get_app_info ();
340 public unowned string get_command_line ();
341 public int get_id ();
342 public ulong get_owner ();
344 [CCode (cheader_filename = "gdu/gdu.h")]
345 public class Volume : GLib.Object, Gdu.Presentable {
346 public unowned Gdu.Drive get_drive ();
347 public virtual Gdu.VolumeFlags get_flags ();
348 public virtual bool is_allocated ();
349 public virtual bool is_recognized ();
351 [CCode (cheader_filename = "gdu/gdu.h")]
352 public class VolumeHole : GLib.Object, Gdu.Presentable {
354 [CCode (cheader_filename = "gdu/gdu.h")]
355 public interface Presentable : GLib.Object {
356 public int compare (Gdu.Presentable b);
357 public bool encloses (Gdu.Presentable b);
358 public bool equals (Gdu.Presentable b);
359 public abstract unowned string get_description ();
360 public abstract unowned Gdu.Device get_device ();
361 public unowned GLib.List get_enclosed ();
362 public abstract unowned Gdu.Presentable get_enclosing_presentable ();
363 public abstract unowned GLib.Icon get_icon ();
364 public abstract unowned string get_id ();
365 public abstract unowned string get_name ();
366 public abstract uint64 get_offset ();
367 public abstract unowned Gdu.Pool get_pool ();
368 public abstract uint64 get_size ();
369 public unowned Gdu.Presentable get_toplevel ();
370 public abstract unowned string get_vpd_name ();
372 public abstract bool is_allocated ();
373 public abstract bool is_recognized ();
374 public signal void changed ();
375 public signal void job_changed ();
376 public signal void removed ();
378 [CCode (cprefix = "GDU_CREATE_VOLUME_FLAGS_", has_type_id = false, cheader_filename = "gdu/gdu.h")]
379 public enum CreateVolumeFlags {
384 [CCode (cprefix = "GDU_ERROR_", has_type_id = false, cheader_filename = "gdu/gdu.h")]
392 ATA_SMART_WOULD_WAKEUP,
394 FILESYSTEM_DRIVER_MISSING,
395 FILESYSTEM_TOOLS_MISSING
397 [CCode (cprefix = "GDU_HUB_USAGE_", has_type_id = false, cheader_filename = "gdu/gdu.h")]
398 public enum HubUsage {
404 [CCode (cprefix = "GDU_LINUX_LVM2_VOLUME_GROUP_STATE_", has_type_id = false, cheader_filename = "gdu/gdu.h")]
405 public enum LinuxLvm2VolumeGroupState {
410 [CCode (cprefix = "GDU_LINUX_MD_DRIVE_SLAVE_FLAGS_", has_type_id = false, cheader_filename = "gdu/gdu.h")]
411 public enum LinuxMdDriveSlaveFlags {
420 [CCode (cprefix = "GDU_VOLUME_FLAGS_", has_type_id = false, cheader_filename = "gdu/gdu.h")]
421 public enum VolumeFlags {
424 PARTITION_MBR_LOGICAL,
425 PARTITION_MBR_EXTENDED
427 [CCode (cheader_filename = "gdu/gdu.h")]
428 public delegate void DeviceCancelJobCompletedFunc (Gdu.Device device, GLib.Error error);
429 [CCode (cheader_filename = "gdu/gdu.h")]
430 public delegate void DeviceDriveAtaSmartInitiateSelftestCompletedFunc (Gdu.Device device, GLib.Error error);
431 [CCode (cheader_filename = "gdu/gdu.h")]
432 public delegate void DeviceDriveAtaSmartRefreshDataCompletedFunc (Gdu.Device device, GLib.Error error);
433 [CCode (cheader_filename = "gdu/gdu.h")]
434 public delegate void DeviceDriveBenchmarkCompletedFunc (Gdu.Device device, GLib.PtrArray read_transfer_rate_results, GLib.PtrArray write_transfer_rate_results, GLib.PtrArray access_time_results, GLib.Error error);
435 [CCode (cheader_filename = "gdu/gdu.h")]
436 public delegate void DeviceDriveDetachCompletedFunc (Gdu.Device device, GLib.Error error);
437 [CCode (cheader_filename = "gdu/gdu.h")]
438 public delegate void DeviceDriveEjectCompletedFunc (Gdu.Device device, GLib.Error error);
439 [CCode (cheader_filename = "gdu/gdu.h")]
440 public delegate void DeviceDrivePollMediaCompletedFunc (Gdu.Device device, GLib.Error error);
441 [CCode (cheader_filename = "gdu/gdu.h")]
442 public delegate void DeviceFilesystemCheckCompletedFunc (Gdu.Device device, bool is_clean, GLib.Error error);
443 [CCode (cheader_filename = "gdu/gdu.h")]
444 public delegate void DeviceFilesystemCreateCompletedFunc (Gdu.Device device, GLib.Error error);
445 [CCode (cheader_filename = "gdu/gdu.h")]
446 public delegate void DeviceFilesystemListOpenFilesCompletedFunc (Gdu.Device device, GLib.List processes, GLib.Error error);
447 [CCode (cheader_filename = "gdu/gdu.h")]
448 public delegate void DeviceFilesystemMountCompletedFunc (Gdu.Device device, string mount_point, GLib.Error error);
449 [CCode (cheader_filename = "gdu/gdu.h")]
450 public delegate void DeviceFilesystemSetLabelCompletedFunc (Gdu.Device device, GLib.Error error);
451 [CCode (cheader_filename = "gdu/gdu.h")]
452 public delegate void DeviceFilesystemUnmountCompletedFunc (Gdu.Device device, GLib.Error error);
453 [CCode (cheader_filename = "gdu/gdu.h")]
454 public delegate void DeviceLinuxLvm2LVStopCompletedFunc (Gdu.Device device, GLib.Error error);
455 [CCode (cheader_filename = "gdu/gdu.h")]
456 public delegate void DeviceLinuxMdAddSpareCompletedFunc (Gdu.Device device, GLib.Error error);
457 [CCode (cheader_filename = "gdu/gdu.h")]
458 public delegate void DeviceLinuxMdCheckCompletedFunc (Gdu.Device device, uint num_errors, GLib.Error error);
459 [CCode (cheader_filename = "gdu/gdu.h")]
460 public delegate void DeviceLinuxMdExpandCompletedFunc (Gdu.Device device, GLib.Error error);
461 [CCode (cheader_filename = "gdu/gdu.h")]
462 public delegate void DeviceLinuxMdRemoveComponentCompletedFunc (Gdu.Device device, GLib.Error error);
463 [CCode (cheader_filename = "gdu/gdu.h")]
464 public delegate void DeviceLinuxMdStopCompletedFunc (Gdu.Device device, GLib.Error error);
465 [CCode (cheader_filename = "gdu/gdu.h")]
466 public delegate void DeviceLuksChangePassphraseCompletedFunc (Gdu.Device device, GLib.Error error);
467 [CCode (cheader_filename = "gdu/gdu.h")]
468 public delegate void DeviceLuksLockCompletedFunc (Gdu.Device device, GLib.Error error);
469 [CCode (cheader_filename = "gdu/gdu.h")]
470 public delegate void DeviceLuksUnlockCompletedFunc (Gdu.Device device, string object_path_of_cleartext_device, GLib.Error error);
471 [CCode (cheader_filename = "gdu/gdu.h")]
472 public delegate void DevicePartitionCreateCompletedFunc (Gdu.Device device, string created_device_object_path, GLib.Error error);
473 [CCode (cheader_filename = "gdu/gdu.h")]
474 public delegate void DevicePartitionDeleteCompletedFunc (Gdu.Device device, GLib.Error error);
475 [CCode (cheader_filename = "gdu/gdu.h")]
476 public delegate void DevicePartitionModifyCompletedFunc (Gdu.Device device, GLib.Error error);
477 [CCode (cheader_filename = "gdu/gdu.h")]
478 public delegate void DevicePartitionTableCreateCompletedFunc (Gdu.Device device, GLib.Error error);
479 [CCode (cheader_filename = "gdu/gdu.h")]
480 public delegate void DriveActivateFunc (Gdu.Drive drive, string assembled_drive_object_path, GLib.Error error);
481 [CCode (cheader_filename = "gdu/gdu.h")]
482 public delegate void DriveDeactivateFunc (Gdu.Drive drive, GLib.Error error);
483 [CCode (cheader_filename = "gdu/gdu.h")]
484 public delegate void PoolLinuxLvm2LVCreateCompletedFunc (Gdu.Pool pool, string create_logical_volume_object_path, GLib.Error error);
485 [CCode (cheader_filename = "gdu/gdu.h")]
486 public delegate void PoolLinuxLvm2LVRemoveCompletedFunc (Gdu.Pool pool, GLib.Error error);
487 [CCode (cheader_filename = "gdu/gdu.h")]
488 public delegate void PoolLinuxLvm2LVSetNameCompletedFunc (Gdu.Pool pool, GLib.Error error);
489 [CCode (cheader_filename = "gdu/gdu.h")]
490 public delegate void PoolLinuxLvm2LVStartCompletedFunc (Gdu.Pool pool, GLib.Error error);
491 [CCode (cheader_filename = "gdu/gdu.h")]
492 public delegate void PoolLinuxLvm2VGAddPVCompletedFunc (Gdu.Pool pool, GLib.Error error);
493 [CCode (cheader_filename = "gdu/gdu.h")]
494 public delegate void PoolLinuxLvm2VGRemovePVCompletedFunc (Gdu.Pool pool, GLib.Error error);
495 [CCode (cheader_filename = "gdu/gdu.h")]
496 public delegate void PoolLinuxLvm2VGSetNameCompletedFunc (Gdu.Pool pool, GLib.Error error);
497 [CCode (cheader_filename = "gdu/gdu.h")]
498 public delegate void PoolLinuxLvm2VGStartCompletedFunc (Gdu.Pool pool, GLib.Error error);
499 [CCode (cheader_filename = "gdu/gdu.h")]
500 public delegate void PoolLinuxLvm2VGStopCompletedFunc (Gdu.Pool pool, GLib.Error error);
501 [CCode (cheader_filename = "gdu/gdu.h")]
502 public delegate void PoolLinuxMdCreateCompletedFunc (Gdu.Pool pool, string array_object_path, GLib.Error error);
503 [CCode (cheader_filename = "gdu/gdu.h")]
504 public delegate void PoolLinuxMdStartCompletedFunc (Gdu.Pool pool, string assembled_array_object_path, GLib.Error error);
505 [CCode (cheader_filename = "gdu/gdu.h")]
506 public delegate void UtilPartTypeForeachFunc (string scheme, string type, string name);
507 [CCode (cheader_filename = "gdu/gdu.h")]
508 public static GLib.Quark error_quark ();
509 [CCode (cheader_filename = "gdu/gdu.h")]
510 public static unowned string get_job_description (string job_id);
511 [CCode (cheader_filename = "gdu/gdu.h")]
512 public static unowned string linux_md_get_raid_level_description (string linux_md_raid_level);
513 [CCode (cheader_filename = "gdu/gdu.h")]
514 public static unowned string linux_md_get_raid_level_for_display (string linux_md_raid_level, bool long_string);
515 [CCode (cheader_filename = "gdu/gdu.h")]
516 public static unowned string util_ata_smart_status_to_desc (string status, bool out_highlight, string out_action_text, out unowned GLib.Icon out_icon);
517 [CCode (cheader_filename = "gdu/gdu.h")]
518 public static bool util_delete_secret (Gdu.Device device);
519 [CCode (cheader_filename = "gdu/gdu.h")]
520 public static unowned string util_fstype_get_description (string fstype);
521 [CCode (cheader_filename = "gdu/gdu.h")]
522 public static unowned string util_get_connection_for_display (string connection_interface, uint64 connection_speed);
523 [CCode (cheader_filename = "gdu/gdu.h")]
524 public static unowned string util_get_default_part_type_for_scheme_and_fstype (string scheme, string fstype, uint64 size);
525 [CCode (cheader_filename = "gdu/gdu.h")]
526 public static unowned string util_get_desc_for_part_type (string part_scheme, string part_type);
527 [CCode (cheader_filename = "gdu/gdu.h")]
528 public static unowned GLib.Icon util_get_emblemed_icon (string name, string emblem_name);
529 [CCode (cheader_filename = "gdu/gdu.h")]
530 public static unowned string util_get_fstype_for_display (string fstype, string fsversion, bool long_string);
531 [CCode (cheader_filename = "gdu/gdu.h")]
532 public static unowned string util_get_secret (Gdu.Device device);
533 [CCode (cheader_filename = "gdu/gdu.h")]
534 public static unowned string util_get_size_for_display (uint64 size, bool use_pow2, bool long_string);
535 [CCode (cheader_filename = "gdu/gdu.h")]
536 public static unowned string util_get_speed_for_display (uint64 size);
537 [CCode (cheader_filename = "gdu/gdu.h")]
538 public static bool util_have_secret (Gdu.Device device);
539 [CCode (cheader_filename = "gdu/gdu.h")]
540 public static unowned string util_part_table_type_get_description (string part_type);
541 [CCode (cheader_filename = "gdu/gdu.h")]
542 public static void util_part_type_foreach (Gdu.UtilPartTypeForeachFunc callback);
543 [CCode (cheader_filename = "gdu/gdu.h")]
544 public static bool util_save_secret (Gdu.Device device, string secret, bool save_in_keyring_session);