1 #ifndef CEPH_CLS_LOG_TYPES_H
2 #define CEPH_CLS_LOG_TYPES_H
4 #include "include/encoding.h"
5 #include "include/types.h"
7 #include "include/utime.h"
12 struct cls_log_entry {
21 void encode(bufferlist& bl) const {
22 ENCODE_START(2, 1, bl);
23 ::encode(section, bl);
25 ::encode(timestamp, bl);
31 void decode(bufferlist::iterator& bl) {
33 ::decode(section, bl);
35 ::decode(timestamp, bl);
42 WRITE_CLASS_ENCODER(cls_log_entry)
44 struct cls_log_header {
48 void encode(bufferlist& bl) const {
49 ENCODE_START(1, 1, bl);
50 ::encode(max_marker, bl);
51 ::encode(max_time, bl);
55 void decode(bufferlist::iterator& bl) {
57 ::decode(max_marker, bl);
58 ::decode(max_time, bl);
62 WRITE_CLASS_ENCODER(cls_log_header)