X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fceph%2Fsrc%2Fcls%2Flog%2Fcls_log_types.h;fp=src%2Fceph%2Fsrc%2Fcls%2Flog%2Fcls_log_types.h;h=0000000000000000000000000000000000000000;hb=7da45d65be36d36b880cc55c5036e96c24b53f00;hp=7d9679488ddcd398a453e6e934583679de72912a;hpb=691462d09d0987b47e112d6ee8740375df3c51b2;p=stor4nfv.git diff --git a/src/ceph/src/cls/log/cls_log_types.h b/src/ceph/src/cls/log/cls_log_types.h deleted file mode 100644 index 7d96794..0000000 --- a/src/ceph/src/cls/log/cls_log_types.h +++ /dev/null @@ -1,67 +0,0 @@ -#ifndef CEPH_CLS_LOG_TYPES_H -#define CEPH_CLS_LOG_TYPES_H - -#include "include/encoding.h" -#include "include/types.h" - -#include "include/utime.h" - -class JSONObj; - - -struct cls_log_entry { - string id; - string section; - string name; - utime_t timestamp; - bufferlist data; - - cls_log_entry() {} - - void encode(bufferlist& bl) const { - ENCODE_START(2, 1, bl); - ::encode(section, bl); - ::encode(name, bl); - ::encode(timestamp, bl); - ::encode(data, bl); - ::encode(id, bl); - ENCODE_FINISH(bl); - } - - void decode(bufferlist::iterator& bl) { - DECODE_START(2, bl); - ::decode(section, bl); - ::decode(name, bl); - ::decode(timestamp, bl); - ::decode(data, bl); - if (struct_v >= 2) - ::decode(id, bl); - DECODE_FINISH(bl); - } -}; -WRITE_CLASS_ENCODER(cls_log_entry) - -struct cls_log_header { - string max_marker; - utime_t max_time; - - void encode(bufferlist& bl) const { - ENCODE_START(1, 1, bl); - ::encode(max_marker, bl); - ::encode(max_time, bl); - ENCODE_FINISH(bl); - } - - void decode(bufferlist::iterator& bl) { - DECODE_START(1, bl); - ::decode(max_marker, bl); - ::decode(max_time, bl); - DECODE_FINISH(bl); - } -}; -WRITE_CLASS_ENCODER(cls_log_header) - - -#endif - -