]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
librbd: Make rbd header file uses independent enum definition
authorHaomai Wang <haomai@xsky.com>
Mon, 9 Nov 2015 14:58:32 +0000 (22:58 +0800)
committerHaomai Wang <haomai@xsky.com>
Tue, 1 Dec 2015 02:03:37 +0000 (10:03 +0800)
Signed-off-by: Haomai Wang <haomai@xsky.com>
src/include/rbd/librbd.h

index 456ed1c48f0dd95ffd44cc8ba059a1ea4fbfc211..23aa287353cabe272065dd083656c77d53fbd46c 100644 (file)
@@ -65,6 +65,15 @@ typedef struct {
 #define RBD_MAX_IMAGE_NAME_SIZE 96
 #define RBD_MAX_BLOCK_NAME_SIZE 24
 
+/**
+ * These types used to in set_image_notification to indicate the type of event
+ * socket passed in.
+ */
+enum {
+  EVENT_TYPE_PIPE = 1,
+  EVENT_TYPE_EVENTFD = 2
+};
+
 typedef struct {
   uint64_t size;
   uint64_t obj_size;