summaryrefslogtreecommitdiffstats
path: root/libmount/src/libmount.h.in
diff options
context:
space:
mode:
authorKarel Zak2013-08-21 16:07:25 +0200
committerKarel Zak2013-08-21 16:07:25 +0200
commitc9f1585e67717068e82ba22bc498aabf2954c113 (patch)
tree01f996b217aef1f2efbf235667a16f7de5a5c96e /libmount/src/libmount.h.in
parentmisc: use libmnt_cache reference counting (diff)
downloadkernel-qcow2-util-linux-c9f1585e67717068e82ba22bc498aabf2954c113.tar.gz
kernel-qcow2-util-linux-c9f1585e67717068e82ba22bc498aabf2954c113.tar.xz
kernel-qcow2-util-linux-c9f1585e67717068e82ba22bc498aabf2954c113.zip
libmount: add reference counter to libmnt_table
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount/src/libmount.h.in')
-rw-r--r--libmount/src/libmount.h.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/libmount/src/libmount.h.in b/libmount/src/libmount.h.in
index f4efd9804..b95b08bce 100644
--- a/libmount/src/libmount.h.in
+++ b/libmount/src/libmount.h.in
@@ -415,6 +415,9 @@ extern struct libmnt_table *mnt_new_table(void)
__ul_attribute__((warn_unused_result));
extern void mnt_free_table(struct libmnt_table *tb);
+extern void mnt_ref_table(struct libmnt_table *table);
+extern void mnt_unref_table(struct libmnt_table *table);
+
extern int mnt_reset_table(struct libmnt_table *tb);
extern int mnt_table_get_nents(struct libmnt_table *tb);
extern int mnt_table_is_empty(struct libmnt_table *tb);