From c0e77f643930499966554cd849a40580e4ff68f9 Mon Sep 17 00:00:00 2001 From: Soumya Koduri Date: Fri, 22 Sep 2017 16:43:39 +0530 Subject: 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 --- api/src/glfs-handleops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'api/src/glfs-handleops.c') 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; -- cgit