diff options
author | Soumya Koduri <skoduri@redhat.com> | 2017-09-22 16:43:39 +0530 |
---|---|---|
committer | Amar Tumballi <amarts@redhat.com> | 2017-10-31 07:53:50 +0000 |
commit | c0e77f643930499966554cd849a40580e4ff68f9 (patch) | |
tree | 5baf2c5b33da77b4567fd23a77d526ca890519b0 /api/src/glfs-handleops.c | |
parent | 4216869c724cf19c12d63c0580de88e9427e6467 (diff) |
gfapi: Register/Unregister Upcall events' callback
Polling continuously for upcall events is not optimal.
Hence new APIs have been added to allow applications to
register and unregister upcall events it is interested in
along with callback function to be invoked in case of any
such upcalls sent by backend server.
@TODO: Make changes in upcall xlator so that events are
sent to only those clients which either registered callbacks
or started polling. Shall be addressed in separate patch.
Updates: #315
Change-Id: I40473fd5cf689172ff2d7bb2869756b7fd5bc761
Signed-off-by: Soumya Koduri <skoduri@redhat.com>
Diffstat (limited to 'api/src/glfs-handleops.c')
-rw-r--r-- | api/src/glfs-handleops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/src/glfs-handleops.c b/api/src/glfs-handleops.c index 65b2b6a467c..2693c2de306 100644 --- a/api/src/glfs-handleops.c +++ b/api/src/glfs-handleops.c @@ -1987,7 +1987,7 @@ out: return ret; } -static void glfs_release_upcall (void *ptr) +void glfs_release_upcall (void *ptr) { struct glfs_upcall *to_free = ptr; |