summaryrefslogtreecommitdiffstats
path: root/libfdisk/src/fdiskP.h
diff options
context:
space:
mode:
authorKarel Zak2016-05-12 14:37:29 +0200
committerKarel Zak2016-05-12 14:37:29 +0200
commit40c9c3a6b7e6c4cda627d76edb14e92e823451c3 (patch)
tree3ef6c6087834e1ac79f3e7aa855370de4f52e147 /libfdisk/src/fdiskP.h
parentlibfdisk: move fdisk_field_...() functions to field.c (diff)
downloadkernel-qcow2-util-linux-40c9c3a6b7e6c4cda627d76edb14e92e823451c3.tar.gz
kernel-qcow2-util-linux-40c9c3a6b7e6c4cda627d76edb14e92e823451c3.tar.xz
kernel-qcow2-util-linux-40c9c3a6b7e6c4cda627d76edb14e92e823451c3.zip
libfdisk: add API for work with labelitems
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libfdisk/src/fdiskP.h')
-rw-r--r--libfdisk/src/fdiskP.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/libfdisk/src/fdiskP.h b/libfdisk/src/fdiskP.h
index 6444c3d3e..e20723e61 100644
--- a/libfdisk/src/fdiskP.h
+++ b/libfdisk/src/fdiskP.h
@@ -39,6 +39,7 @@
#define LIBFDISK_DEBUG_TAB (1 << 8)
#define LIBFDISK_DEBUG_SCRIPT (1 << 9)
#define LIBFDISK_DEBUG_WIPE (1 << 10)
+#define LIBFDISK_DEBUG_ITEM (1 << 11)
#define LIBFDISK_DEBUG_ALL 0xFFFF
UL_DEBUG_DECLARE_MASK(libfdisk);
@@ -420,9 +421,10 @@ extern int fdisk_probe_labels(struct fdisk_context *cxt);
extern void fdisk_deinit_label(struct fdisk_label *lb);
struct fdisk_labelitem {
+ int refcount; /* reference counter */
int id; /* <label>_ITEM_* */
char type; /* s = string, j = uint64 */
- const char *name;
+ const char *name; /* human readable name */
union {
char *str;