summaryrefslogtreecommitdiffstats
path: root/libfdisk/src/label.c
diff options
context:
space:
mode:
authorKarel Zak2014-08-14 13:28:37 +0200
committerKarel Zak2014-08-14 13:28:37 +0200
commita745611d695016ede822380bce0aa92350fc80a3 (patch)
treefa3c4b47e1290a4224996fdfc6ea1a0a69b271d1 /libfdisk/src/label.c
parentlibfdisk: move get_parttypes to label API (diff)
downloadkernel-qcow2-util-linux-a745611d695016ede822380bce0aa92350fc80a3.tar.gz
kernel-qcow2-util-linux-a745611d695016ede822380bce0aa92350fc80a3.tar.xz
kernel-qcow2-util-linux-a745611d695016ede822380bce0aa92350fc80a3.zip
libfdisk: final parttype API cleanup
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libfdisk/src/label.c')
-rw-r--r--libfdisk/src/label.c37
1 files changed, 0 insertions, 37 deletions
diff --git a/libfdisk/src/label.c b/libfdisk/src/label.c
index 7cd48d66a..c8691b6db 100644
--- a/libfdisk/src/label.c
+++ b/libfdisk/src/label.c
@@ -54,43 +54,6 @@ const char *fdisk_label_get_name(struct fdisk_label *lb)
}
/**
- * fdisk_label_get_parttypes:
- * @lb: label
- * @types: returns array with supported partition types
- * @ntypes: returns number of types
- *
- * Returns: 0 on success, <0 on error.
- */
-int fdisk_label_get_parttypes(struct fdisk_label *lb,
- struct fdisk_parttype **types,
- size_t *ntypes)
-{
- if (!lb)
- return -EINVAL;
- if (types)
- *types = lb->parttypes;
- if (ntypes)
- *ntypes = lb->nparttypes;
- return 0;
-}
-
-/**
- * fdisk_label_is_parttype_string:
- * @lb: label
- *
- * Returns: 1 if the label uses strings as partition type
- * identifiers (e.g. GPT UUIDS) or 0.
- */
-int fdisk_label_is_parttype_string(struct fdisk_label *lb)
-{
- assert(lb);
-
- if (lb->parttypes && lb->parttypes[0].typestr)
- return 1;
- return 0;
-}
-
-/**
* fdisk_label_require_geometry:
* @lb: label
*