summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2007-03-07 18:17:00 +0100
committerJim Meyering <jim@meyering.net>2007-03-07 18:17:00 +0100
commitcb77063c26281dae2dbce6079819c4aad4e15b15 (patch)
tree461ede82b075712b64a71d5f908139d9ccacd234 /include
parentb906fb597e84c5ff7ca3c54343b6c2de216d2471 (diff)
downloadparted-cb77063c26281dae2dbce6079819c4aad4e15b15.tar.gz
Add "const" to parameters in these public interfaces.
* libparted/disk.c (ped_disk_check): (ped_disk_get_primary_partition_count): (ped_disk_get_last_partition_num, ped_partition_print): (ped_disk_print): (ped_partition_print): Also declare to be "static". This is ok, since the function is referenced only from this file. * include/parted/disk.h: Update their prototypes.
Diffstat (limited to 'include')
-rw-r--r--include/parted/disk.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/parted/disk.h b/include/parted/disk.h
index 06ecfbb..6771809 100644
--- a/include/parted/disk.h
+++ b/include/parted/disk.h
@@ -257,11 +257,11 @@ extern void ped_disk_destroy (PedDisk* disk);
extern int ped_disk_commit (PedDisk* disk);
extern int ped_disk_commit_to_dev (PedDisk* disk);
extern int ped_disk_commit_to_os (PedDisk* disk);
-extern int ped_disk_check (PedDisk* disk);
-extern void ped_disk_print (PedDisk* disk);
+extern int ped_disk_check (const PedDisk* disk);
+extern void ped_disk_print (const PedDisk* disk);
-extern int ped_disk_get_primary_partition_count (PedDisk* disk);
-extern int ped_disk_get_last_partition_num (PedDisk* disk);
+extern int ped_disk_get_primary_partition_count (const PedDisk* disk);
+extern int ped_disk_get_last_partition_num (const PedDisk* disk);
extern int ped_disk_get_max_primary_partition_count (const PedDisk* disk);
/** @} */