diff options
author | Karel Zak | 2014-08-14 13:28:37 +0200 |
---|---|---|
committer | Karel Zak | 2014-08-14 13:28:37 +0200 |
commit | a745611d695016ede822380bce0aa92350fc80a3 (patch) | |
tree | fa3c4b47e1290a4224996fdfc6ea1a0a69b271d1 /libfdisk/src/label.c | |
parent | libfdisk: move get_parttypes to label API (diff) | |
download | kernel-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.c | 37 |
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 * |