summaryrefslogtreecommitdiffstats
path: root/libfdisk/src/libfdisk.h
diff options
context:
space:
mode:
authorKarel Zak2014-11-26 11:55:45 +0100
committerKarel Zak2014-11-26 11:55:45 +0100
commita78dba34a4a19250b53707377ba99a7a7fa7cfcd (patch)
treeadcabbc3bd35fd774431b5adb0a14e947605d8e5 /libfdisk/src/libfdisk.h
parentlibfdisk: add docs for SGI functions (diff)
downloadkernel-qcow2-util-linux-a78dba34a4a19250b53707377ba99a7a7fa7cfcd.tar.gz
kernel-qcow2-util-linux-a78dba34a4a19250b53707377ba99a7a7fa7cfcd.tar.xz
kernel-qcow2-util-linux-a78dba34a4a19250b53707377ba99a7a7fa7cfcd.zip
libfdisk: add comments to header file
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libfdisk/src/libfdisk.h')
-rw-r--r--libfdisk/src/libfdisk.h74
1 files changed, 70 insertions, 4 deletions
diff --git a/libfdisk/src/libfdisk.h b/libfdisk/src/libfdisk.h
index 96be12805..1c5d2ebcd 100644
--- a/libfdisk/src/libfdisk.h
+++ b/libfdisk/src/libfdisk.h
@@ -29,19 +29,75 @@ extern "C" {
#include <stdarg.h>
#include <stdint.h>
+/**
+ * fdisk_context:
+ *
+ * Basic library handler.
+ */
struct fdisk_context;
+
+/**
+ * fdisk_label:
+ *
+ * Disk label specific driver and setting.
+ */
struct fdisk_label;
+
+/**
+ * fdisk_parttype:
+ *
+ * Partition type.
+ */
struct fdisk_parttype;
+
+/**
+ * fdisk_partition:
+ *
+ * Partition abstraction (and template).
+ */
struct fdisk_partition;
+
+/**
+ * fdisk_ask:
+ *
+ * Ask API handler for dialogs with users.
+ */
struct fdisk_ask;
+
+/**
+ * fdisk_iter:
+ *
+ * Unified iterator.
+ */
struct fdisk_iter;
+
+/**
+ * fdisk_table:
+ *
+ * Container for fdisk_partition objects
+ */
struct fdisk_table;
+
+/**
+ * fdisk_field
+ *
+ * Output field description.
+ */
struct fdisk_field;
+
+/**
+ * fdisk_script
+ *
+ * libraru handler for sfdisk compatible scripts
+ */
struct fdisk_script;
+/* TODO: use uint64, the name is too generic */
typedef unsigned long long sector_t;
-/*
+/**
+ * fdisk_labeltype:
+ *
* Supported partition table types (labels)
*/
enum fdisk_labeltype {
@@ -52,7 +108,12 @@ enum fdisk_labeltype {
FDISK_DISKLABEL_GPT = (1 << 5)
};
-enum {
+/**
+ * fdisk_asktype:
+ *
+ * Ask API dialog types
+ */
+enum fdisk_asktype {
FDISK_ASKTYPE_NONE = 0,
FDISK_ASKTYPE_NUMBER,
FDISK_ASKTYPE_OFFSET,
@@ -72,7 +133,6 @@ extern void fdisk_init_debug(int mask);
#define FDISK_PLURAL 0
#define FDISK_SINGULAR 1
-
struct fdisk_context *fdisk_new_context(void);
struct fdisk_context *fdisk_new_nested_context(struct fdisk_context *parent, const char *name);
void fdisk_unref_context(struct fdisk_context *cxt);
@@ -158,7 +218,13 @@ const char *fdisk_parttype_get_name(const struct fdisk_parttype *t);
int fdisk_parttype_is_unknown(const struct fdisk_parttype *t);
/* label.c */
-enum {
+
+/**
+ * fdisk_fieldtype
+ *
+ * Types of fdisk_field
+ */
+enum fdisk_fieldtype {
FDISK_FIELD_NONE = 0,
/* generic */