X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fceph%2Fsrc%2Fcls%2Frefcount%2Fcls_refcount_ops.h;fp=src%2Fceph%2Fsrc%2Fcls%2Frefcount%2Fcls_refcount_ops.h;h=0000000000000000000000000000000000000000;hb=7da45d65be36d36b880cc55c5036e96c24b53f00;hp=5cbfe3b8b655944960d0f84b8bf38acfd0a19130;hpb=691462d09d0987b47e112d6ee8740375df3c51b2;p=stor4nfv.git diff --git a/src/ceph/src/cls/refcount/cls_refcount_ops.h b/src/ceph/src/cls/refcount/cls_refcount_ops.h deleted file mode 100644 index 5cbfe3b..0000000 --- a/src/ceph/src/cls/refcount/cls_refcount_ops.h +++ /dev/null @@ -1,129 +0,0 @@ -// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- -// vim: ts=8 sw=2 smarttab - -#ifndef CEPH_CLS_REFCOUNT_OPS_H -#define CEPH_CLS_REFCOUNT_OPS_H - -#include "include/types.h" - -class Formatter; - -struct cls_refcount_get_op { - string tag; - bool implicit_ref; - - cls_refcount_get_op() : implicit_ref(false) {} - - void encode(bufferlist& bl) const { - ENCODE_START(1, 1, bl); - ::encode(tag, bl); - ::encode(implicit_ref, bl); - ENCODE_FINISH(bl); - } - - void decode(bufferlist::iterator& bl) { - DECODE_START(1, bl); - ::decode(tag, bl); - ::decode(implicit_ref, bl); - DECODE_FINISH(bl); - } - void dump(ceph::Formatter *f) const; - static void generate_test_instances(list& ls); -}; -WRITE_CLASS_ENCODER(cls_refcount_get_op) - -struct cls_refcount_put_op { - string tag; - bool implicit_ref; // assume wildcard reference for - // objects without a set ref - - cls_refcount_put_op() : implicit_ref(false) {} - - void encode(bufferlist& bl) const { - ENCODE_START(1, 1, bl); - ::encode(tag, bl); - ::encode(implicit_ref, bl); - ENCODE_FINISH(bl); - } - - void decode(bufferlist::iterator& bl) { - DECODE_START(1, bl); - ::decode(tag, bl); - ::decode(implicit_ref, bl); - DECODE_FINISH(bl); - } - - void dump(ceph::Formatter *f) const; - static void generate_test_instances(list& ls); -}; -WRITE_CLASS_ENCODER(cls_refcount_put_op) - -struct cls_refcount_set_op { - list refs; - - cls_refcount_set_op() {} - - void encode(bufferlist& bl) const { - ENCODE_START(1, 1, bl); - ::encode(refs, bl); - ENCODE_FINISH(bl); - } - - void decode(bufferlist::iterator& bl) { - DECODE_START(1, bl); - ::decode(refs, bl); - DECODE_FINISH(bl); - } - - void dump(ceph::Formatter *f) const; - static void generate_test_instances(list& ls); -}; -WRITE_CLASS_ENCODER(cls_refcount_set_op) - -struct cls_refcount_read_op { - bool implicit_ref; // assume wildcard reference for - // objects without a set ref - - cls_refcount_read_op() : implicit_ref(false) {} - - void encode(bufferlist& bl) const { - ENCODE_START(1, 1, bl); - ::encode(implicit_ref, bl); - ENCODE_FINISH(bl); - } - - void decode(bufferlist::iterator& bl) { - DECODE_START(1, bl); - ::decode(implicit_ref, bl); - DECODE_FINISH(bl); - } - - void dump(ceph::Formatter *f) const; - static void generate_test_instances(list& ls); -}; -WRITE_CLASS_ENCODER(cls_refcount_read_op) - -struct cls_refcount_read_ret { - list refs; - - cls_refcount_read_ret() {} - - void encode(bufferlist& bl) const { - ENCODE_START(1, 1, bl); - ::encode(refs, bl); - ENCODE_FINISH(bl); - } - - void decode(bufferlist::iterator& bl) { - DECODE_START(1, bl); - ::decode(refs, bl); - DECODE_FINISH(bl); - } - - void dump(ceph::Formatter *f) const; - static void generate_test_instances(list& ls); -}; -WRITE_CLASS_ENCODER(cls_refcount_read_ret) - - -#endif