summaryrefslogtreecommitdiffstats
path: root/api/src/glfs-handles.h
diff options
context:
space:
mode:
authorSoumya Koduri <skoduri@redhat.com>2018-01-10 15:01:59 +0530
committerShyamsundar Ranganathan <srangana@redhat.com>2018-02-01 11:39:52 +0000
commit14555df7c6bc74622eb2283ded1c1f10980180ce (patch)
treec7f10acf3c9ed614273c9234bfc75a33bb8b6032 /api/src/glfs-handles.h
parenta32ff73c06e1e14589817b1701c1c8d0f05aaa04 (diff)
gfapi : New APIs have been added to use lease feature in gluster
Following APIs glfs_h_lease(), glfs_lease() added, so that gfapi applications can set and get lease which enables more efficient client side caching. Updates: #350 Change-Id: Iede85be9af1d4df969b890d0937ed0afa4ca6596 Signed-off-by: Poornima G <pgurusid@redhat.com> Signed-off-by: Soumya Koduri <skoduri@redhat.com> Signed-off-by: Jiffin Tony Thottan <jthottan@redhat.com>
Diffstat (limited to 'api/src/glfs-handles.h')
-rw-r--r--api/src/glfs-handles.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/api/src/glfs-handles.h b/api/src/glfs-handles.h
index 211595933fc..97c058a11c7 100644
--- a/api/src/glfs-handles.h
+++ b/api/src/glfs-handles.h
@@ -328,6 +328,10 @@ struct glfs_object*
glfs_object_copy (struct glfs_object *src);
GFAPI_PUBLIC(glfs_object_copy, 3.11.0);
+int glfs_h_lease (struct glfs *fs, struct glfs_object *object,
+ struct glfs_lease *lease) __THROW
+ GFAPI_PUBLIC(glfs_h_lease, 4.0.0);
+
__END_DECLS
#endif /* !_GLFS_HANDLES_H */