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