diff options
author | Karel Zak | 2013-12-13 19:56:21 +0100 |
---|---|---|
committer | Karel Zak | 2014-03-11 11:35:12 +0100 |
commit | b48cdebcb45f75ff20cdab68f706de803532ceaf (patch) | |
tree | 3df943502e30b95b97bba3c5aebe719c004427c9 /libfdisk/src/libfdisk.h | |
parent | libfdisk: add reference counting to fdisk_partition (diff) | |
download | kernel-qcow2-util-linux-b48cdebcb45f75ff20cdab68f706de803532ceaf.tar.gz kernel-qcow2-util-linux-b48cdebcb45f75ff20cdab68f706de803532ceaf.tar.xz kernel-qcow2-util-linux-b48cdebcb45f75ff20cdab68f706de803532ceaf.zip |
libfdisk: add table container
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libfdisk/src/libfdisk.h')
-rw-r--r-- | libfdisk/src/libfdisk.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libfdisk/src/libfdisk.h b/libfdisk/src/libfdisk.h index ef9b1a129..0d30df8d6 100644 --- a/libfdisk/src/libfdisk.h +++ b/libfdisk/src/libfdisk.h @@ -207,6 +207,16 @@ extern int fdisk_partition_to_string(struct fdisk_partition *pa, int id, char ** extern int fdisk_partition_next_partno( struct fdisk_context *cxt, struct fdisk_partition *pa, size_t *n); +/* table.c */ +extern struct fdisk_table *fdisk_new_table(void); +extern int fdisk_reset_table(struct fdisk_table *tb); +extern void fdisk_ref_table(struct fdisk_table *tb); +extern void fdisk_unref_table(struct fdisk_table *tb); +extern int fdisk_table_is_empty(struct fdisk_table *tb); +extern int fdisk_table_add_partition(struct fdisk_table *tb, struct fdisk_partition *pa); +extern int fdisk_table_remove_partition(struct fdisk_table *tb, struct fdisk_partition *pa); + + /* alignment.c */ extern int fdisk_reset_alignment(struct fdisk_context *cxt); extern int fdisk_reset_device_properties(struct fdisk_context *cxt); |