1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2 // vim: ts=8 sw=2 smarttab
4 #ifndef CEPH_CLS_TIMEINDEX_TYPES_H
5 #define CEPH_CLS_TIMEINDEX_TYPES_H
7 #include "include/encoding.h"
8 #include "include/types.h"
10 #include "include/utime.h"
14 struct cls_timeindex_entry {
15 /* Mandatory timestamp. Will be part of the key. */
17 /* Not mandatory. The name_ext field, if not empty, will form second
20 /* Become value of OMAP-based mapping. */
23 cls_timeindex_entry() {}
25 void encode(bufferlist& bl) const {
26 ENCODE_START(1, 1, bl);
28 ::encode(key_ext, bl);
33 void decode(bufferlist::iterator& bl) {
36 ::decode(key_ext, bl);
41 WRITE_CLASS_ENCODER(cls_timeindex_entry)
43 #endif /* CEPH_CLS_TIMEINDEX_TYPES_H */