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