]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libfdisk: add missing comments
authorKarel Zak <kzak@redhat.com>
Tue, 25 Feb 2020 11:25:17 +0000 (12:25 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 25 Feb 2020 11:25:17 +0000 (12:25 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
libfdisk/src/partition.c

index 4af177d9b68c7a50ba18e11682d94eab19e5848f..3aa1ea67c09eab300fae9d92123f8c625c9e1456 100644 (file)
@@ -500,6 +500,13 @@ struct fdisk_parttype *fdisk_partition_get_type(struct fdisk_partition *pa)
        return pa ? pa->type : NULL;
 }
 
+/**
+ * fdisk_partition_set_name:
+ * @pa: partition
+ * @name: partition name
+ *
+ * Returns: 0 on success, <0 on error.
+ */
 int fdisk_partition_set_name(struct fdisk_partition *pa, const char *name)
 {
        if (!pa)
@@ -507,11 +514,24 @@ int fdisk_partition_set_name(struct fdisk_partition *pa, const char *name)
        return strdup_to_struct_member(pa, name, name);
 }
 
+/**
+ * fdisk_partition_get_name:
+ * @pa: partition
+ *
+ * Returns: partition name
+ */
 const char *fdisk_partition_get_name(struct fdisk_partition *pa)
 {
        return pa ? pa->name : NULL;
 }
 
+/**
+ * fdisk_partition_set_uuid:
+ * @pa: partition
+ * @uuid: UUID of the partition
+ *
+ * Returns: 0 on success, <0 on error.
+ */
 int fdisk_partition_set_uuid(struct fdisk_partition *pa, const char *uuid)
 {
        if (!pa)