summaryrefslogtreecommitdiffstats
path: root/libfdisk/src/table.c
diff options
context:
space:
mode:
authorKarel Zak2014-11-26 19:13:57 +0100
committerKarel Zak2014-11-26 19:13:57 +0100
commit705854f30773e463cd61796bc896f0c0053aa36d (patch)
treed18873c270c080064419baf496f62b2aea5aaf94 /libfdisk/src/table.c
parentlibfdisk: rename and move function (diff)
downloadkernel-qcow2-util-linux-705854f30773e463cd61796bc896f0c0053aa36d.tar.gz
kernel-qcow2-util-linux-705854f30773e463cd61796bc896f0c0053aa36d.tar.xz
kernel-qcow2-util-linux-705854f30773e463cd61796bc896f0c0053aa36d.zip
libfdisk: add API docs
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libfdisk/src/table.c')
-rw-r--r--libfdisk/src/table.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/libfdisk/src/table.c b/libfdisk/src/table.c
index 3a78e9e02..8adbd7f36 100644
--- a/libfdisk/src/table.c
+++ b/libfdisk/src/table.c
@@ -3,7 +3,7 @@
/**
* SECTION: table
- * @title: table
+ * @title: Table
* @short_description: container for fdisk partitions
*
* The fdisk_table is simple container for fdisk_partitions. The table is no
@@ -272,7 +272,7 @@ int fdisk_table_remove_partition(struct fdisk_table *tb, struct fdisk_partition
* This function adds partitions from disklabel to @table, it allocates a new
* table if if @table points to NULL.
*
- * Returns 0 on success, otherwise, a corresponding error.
+ * Returns: 0 on success, otherwise, a corresponding error.
*/
int fdisk_get_partitions(struct fdisk_context *cxt, struct fdisk_table **tb)
{
@@ -319,6 +319,8 @@ static int cmp_parts_wrapper(struct list_head *a, struct list_head *b, void *dat
* @cmp: compare function
*
* Sort partition in the table.
+ *
+ * Returns: 0 on success, <0 on error.
*/
int fdisk_table_sort_partitions(struct fdisk_table *tb,
int (*cmp)(struct fdisk_partition *,
@@ -475,7 +477,7 @@ done:
*
* Note that free space smaller than grain (see fdisk_get_grain()) is ignored.
- * Returns 0 on success, otherwise, a corresponding error.
+ * Returns: 0 on success, otherwise, a corresponding error.
*/
int fdisk_get_freespaces(struct fdisk_context *cxt, struct fdisk_table **tb)
{