Allow applications based on libcephfs to register callbacks, like we
do for ceph-fuse.
Signed-off-by: Jeff Layton <jlayton@redhat.com>
(cherry picked from commit
adcf12d6c329a3bd534e089bc0c8b42dfd3e4515)
*/
void ceph_finish_reclaim(struct ceph_mount_info *cmount);
+/**
+ * Register a set of callbacks to be used with this cmount
+ * @param cmount the ceph mount handle on which the cb's should be registerd
+ * @param args callback arguments to register with the cmount
+ *
+ * Any fields set to NULL will be ignored. There currently is no way to
+ * unregister these callbacks, so this is a one-way change.
+ */
+void ceph_ll_register_callbacks(struct ceph_mount_info *cmount,
+ struct ceph_client_callback_args *args);
#ifdef __cplusplus
}
#endif
{
cmount->get_client()->finish_reclaim();
}
+
+extern "C" void ceph_ll_register_callbacks(class ceph_mount_info *cmount,
+ struct ceph_client_callback_args *args)
+{
+ cmount->get_client()->ll_register_callbacks(args);
+}