gw_get_drives_list
Gets the list of all drives in the system.
GList * gw_get_drives_list ( GList *drives_list);
This function gets the list of all drives in the system. Search all mount points for Unix-like system or all logical drives for Win32 system.
Parameters
drives_list | the list to store the list. |
Result: the list of drives. Returns NULL when an error occured..
gw_drive_eject
Ejects the drive.
gboolean gw_drive_eject ( const gchar *drive_path);
This function ejects the drive. Warning : eject only CD-ROM drive. On Unix-like system the drive path is the mount point. On Win32 system the drive path is the drive letter, use "[A-Z]:".
Parameters
drive_path | the access path of drive. |
Result: Returns TRUE if it's done. Returns FALSE when an error occured..
gw_drive_mount
Tries to mount the drive.
gint gw_drive_mount ( const gchar *drive_path);
This function tries to mount the drive. Warning : only for Unix-like system with super-user rights. On Unix-like system the drive path is the mount point.
Parameters
drive_path | the access path of drive. |
Result: Returns O if it's done. Returns 1 if it is already mounted. Returns -1 when an error occured..
gw_drive_umount
Tries to unmount the drive.
gboolean gw_drive_umount ( const gchar *drive_path);
This function tries to unmount the drive. Warning : only for Unix-like system with super-user rights. On Unix-like system the drive path is the mount point.
Parameters
drive_path | the access path of drive. |
Result: Returns TRUE if it's done. Returns FALSE when an error occured..
gw_drive_get_device_type
Gets the type of the device.
gchar * gw_drive_get_device_type ( const gchar *drive_path);
This function gets the type of the device. Warning : only for Unix-like system. On Unix-like system the drive path is the mount point.
Parameters
drive_path | the access path of drive. |
Result: Device type. Returns NULL when an error occured..
gw_drive_get_device_name
Gets the name of the device.
gchar * gw_drive_get_device_name ( const gchar *drive_path);
This function gets the name of the device. Warning : only for Unix-like system. On Unix-like system the drive path is the mount point.
Parameters
drive_path | the access path of drive. |
Result: Device name. Returns NULL when an error occured..
gw_drive_is_mounted
Checks if the drive is mounted.
gboolean gw_drive_is_mounted ( const gchar *drive_path);
This function checks if the drive is mounted. Warning : only for Unix-like system. On Unix-like system the drive path is the mount point.
Parameters
drive_path | the access path of drive. |
Result: Returns TRUE if the drive is mounted. Returns FALSE if the drive is not mounted or when an error occured..
gw_drive_is_mountable
Checks if the drive is mountable.
gboolean gw_drive_is_mountable ( const gchar *drive_path);
This function checks if the drive is mountable. Warning : deprecated function!! Warning : only for Unix-like system. On Unix-like system the drive path is the mount point.
Parameters
drive_path | the access path of drive. |
Result: Returns TRUE if the drive is mountable. Returns FALSE if the drive is not mountable or when an error occured..
gw_drive_get_capacity
Gets the capacity of the drive.
gulong gw_drive_get_capacity ( const gchar *drive_path);
This function gets the capacity of the drive.. Warning : deprecated function!! Warning : under win32 the size is inKbytes. On Unix-like system the drive path is the mount point.
Parameters
drive_path | the access path of drive. |
Result: the capacity of the drive. Returns 0 when an error occured..
gw_drive_get_free_space
Gets the free space of the drive.
gulong gw_drive_get_free_space ( const gchar *drive_path);
This function gets the free space of the drive.. Warning : deprecated function!! Warning : under win32 the size is in Kbytes. On Unix-like system the drive path is the mount point.
Parameters
drive_path | the access path of drive. |
Result: the free space of the drive. Returns 0 when an error occured..
|