X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fceph%2Fsrc%2Fcls%2Fstatelog%2Fcls_statelog_types.h;fp=src%2Fceph%2Fsrc%2Fcls%2Fstatelog%2Fcls_statelog_types.h;h=0000000000000000000000000000000000000000;hb=7da45d65be36d36b880cc55c5036e96c24b53f00;hp=72147de0e9d12b2b52d4f803bf48c738f4690034;hpb=691462d09d0987b47e112d6ee8740375df3c51b2;p=stor4nfv.git diff --git a/src/ceph/src/cls/statelog/cls_statelog_types.h b/src/ceph/src/cls/statelog/cls_statelog_types.h deleted file mode 100644 index 72147de..0000000 --- a/src/ceph/src/cls/statelog/cls_statelog_types.h +++ /dev/null @@ -1,51 +0,0 @@ -#ifndef CEPH_CLS_STATELOG_TYPES_H -#define CEPH_CLS_STATELOG_TYPES_H - -#include "include/encoding.h" -#include "include/types.h" - -#include "include/utime.h" - -class JSONObj; - -struct cls_statelog_entry { - string client_id; - string op_id; - string object; - utime_t timestamp; - bufferlist data; - uint32_t state; /* user defined state */ - - cls_statelog_entry() : state(0) {} - - void encode(bufferlist& bl) const { - ENCODE_START(1, 1, bl); - ::encode(client_id, bl); - ::encode(op_id, bl); - ::encode(object, bl); - ::encode(timestamp, bl); - ::encode(data, bl); - ::encode(state, bl); - ENCODE_FINISH(bl); - } - - void decode(bufferlist::iterator& bl) { - DECODE_START(1, bl); - ::decode(client_id, bl); - ::decode(op_id, bl); - ::decode(object, bl); - ::decode(timestamp, bl); - ::decode(data, bl); - ::decode(state, bl); - DECODE_FINISH(bl); - } - - void dump(Formatter *f) const; - void decode_json(JSONObj *obj); -}; -WRITE_CLASS_ENCODER(cls_statelog_entry) - - -#endif - -