diff options
author | Karel Zak | 2014-02-25 12:47:22 +0100 |
---|---|---|
committer | Karel Zak | 2014-03-11 11:35:14 +0100 |
commit | 7aa0d52963cf19039504e44b5a867098d847d179 (patch) | |
tree | bab1883ce455891fb3929a03133609b857bf6839 /libfdisk/src/context.c | |
parent | cfdisk: consolidate menu move code (diff) | |
download | kernel-qcow2-util-linux-7aa0d52963cf19039504e44b5a867098d847d179.tar.gz kernel-qcow2-util-linux-7aa0d52963cf19039504e44b5a867098d847d179.tar.xz kernel-qcow2-util-linux-7aa0d52963cf19039504e44b5a867098d847d179.zip |
cfdisk: add create lebel UI
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libfdisk/src/context.c')
-rw-r--r-- | libfdisk/src/context.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libfdisk/src/context.c b/libfdisk/src/context.c index c4054034e..1a702901a 100644 --- a/libfdisk/src/context.c +++ b/libfdisk/src/context.c @@ -132,6 +132,11 @@ int fdisk_context_next_label(struct fdisk_context *cxt, struct fdisk_label **lb) return res ? 0 : 1; } +size_t fdisk_context_get_nlabels(struct fdisk_context *cxt) +{ + return cxt ? cxt->nlabels : 0; +} + int __fdisk_context_switch_label(struct fdisk_context *cxt, struct fdisk_label *lb) { |