From 0105691d541ea2be766b681b437f3082e78dd664 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Wed, 21 Aug 2013 14:37:55 +0200 Subject: libmount: add reference counting to libmnt_cache Signed-off-by: Karel Zak --- libmount/src/libmount.h.in | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libmount/src/libmount.h.in') diff --git a/libmount/src/libmount.h.in b/libmount/src/libmount.h.in index 29659628d..f4efd9804 100644 --- a/libmount/src/libmount.h.in +++ b/libmount/src/libmount.h.in @@ -216,6 +216,9 @@ extern struct libmnt_cache *mnt_new_cache(void) __ul_attribute__((warn_unused_result)); extern void mnt_free_cache(struct libmnt_cache *cache); +extern void mnt_ref_cache(struct libmnt_cache *cache); +extern void mnt_unref_cache(struct libmnt_cache *cache); + extern int mnt_cache_read_tags(struct libmnt_cache *cache, const char *devname); extern int mnt_cache_device_has_tag(struct libmnt_cache *cache, -- cgit v1.2.3-55-g7522