go-ceph/rbd/callback_shims_mimic.go
John Mulligan f3f2180e66 rbd: add Watch type and watch callbacks support
Add UpdateWatch function implementing rbd_update_watch.
Add Unwatch function implementing rbd_update_unwatch.
Add a higher level Watch type to encapsulate watching
the image and the watch handle.
Add basic tests to validate the callback behavior.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2020-07-23 13:19:57 -04:00

16 lines
187 B
Go

// +build !luminous
package rbd
/*
#include <rbd/librbd.h>
extern void imageWatchCallback(int index);
void callWatchCallback(int index) {
imageWatchCallback(index);
}
*/
import "C"