mirror of
https://github.com/ceph/go-ceph
synced 2024-12-18 20:35:33 +00:00
f3f2180e66
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>
16 lines
187 B
Go
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"
|