void utime_t::dump(ceph::Formatter *f) const
{
- f->open_object_section("utime");
f->dump_int("seconds", tv.tv_sec);
f->dump_int("nanoseconds", tv.tv_nsec);
- f->close_section();
}
void utime_t::generate_test_instances(std::list<utime_t*>& o)
void uuid_d::dump(ceph::Formatter *f) const
{
- f->open_object_section("uuid_d");
- {
- f->dump_stream("uuid") << to_string();
- }
- f->close_section();
+ f->dump_stream("uuid") << to_string();
}
void uuid_d::generate_test_instances(std::list<uuid_d*>& o)
}
DECODE_FINISH(bl);
}
- void dump_bare(ceph::Formatter *f) const {
+ void dump(ceph::Formatter *f) const {
f->dump_stream("watcher") << name;
f->dump_int("cookie", cookie);
f->dump_int("timeout", timeout_seconds);
addr.dump(f);
f->close_section();
}
- void dump(ceph::Formatter *f) const {
- f->open_object_section("watch_item_t");
- dump_bare(f);
- f->close_section();
- }
static void generate_test_instances(std::list<watch_item_t*>& o) {
entity_addr_t ea;
ea.set_type(entity_addr_t::TYPE_LEGACY);
f->open_array_section("entries");
for (std::list<watch_item_t>::const_iterator p = entries.begin(); p != entries.end(); ++p) {
f->open_object_section("watch");
- p->dump_bare(f);
+ p->dump(f);
f->close_section();
}
f->close_section();