summaryrefslogtreecommitdiffstats
path: root/utils/lru.h
diff options
context:
space:
mode:
Diffstat (limited to 'utils/lru.h')
-rw-r--r--utils/lru.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/utils/lru.h b/utils/lru.h
new file mode 100644
index 0000000..e9af217
--- /dev/null
+++ b/utils/lru.h
@@ -0,0 +1,31 @@
+/*
+ Copyright (c) 2017 Red Hat, Inc. <http://www.redhat.com>
+ This file is part of gluster-block.
+
+ This file is licensed to you under your choice of the GNU Lesser
+ General Public License, version 3 or any later version (LGPLv3 or
+ later), or the GNU General Public License, version 2 (GPLv2), in all
+ cases as published by the Free Software Foundation.
+*/
+
+
+# ifndef _LRU_H
+# define _LRU_H 1
+
+# include <api/glfs.h>
+
+# include "common.h"
+# include "list.h"
+
+
+void
+initCache(void);
+
+glfs_t *
+queryCache(const char *volname);
+
+int
+appendNewEntry(const char *volname, glfs_t *glfs);
+
+
+# endif /* _LRU_H */