]>
git.proxmox.com Git - ceph.git/blob - ceph/src/cls/statelog/cls_statelog_types.h
1 #ifndef CEPH_CLS_STATELOG_TYPES_H
2 #define CEPH_CLS_STATELOG_TYPES_H
4 #include "include/encoding.h"
5 #include "include/types.h"
7 #include "include/utime.h"
11 struct cls_statelog_entry
{
17 uint32_t state
; /* user defined state */
19 cls_statelog_entry() : state(0) {}
21 void encode(bufferlist
& bl
) const {
22 ENCODE_START(1, 1, bl
);
23 ::encode(client_id
, bl
);
26 ::encode(timestamp
, bl
);
32 void decode(bufferlist::iterator
& bl
) {
34 ::decode(client_id
, bl
);
37 ::decode(timestamp
, bl
);
43 void dump(Formatter
*f
) const;
44 void decode_json(JSONObj
*obj
);
46 WRITE_CLASS_ENCODER(cls_statelog_entry
)