1
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2
// vim: ts=8 sw=2 smarttab
4
* Ceph - scalable distributed file system
6
* Copyright (C) 2004-2006 Sage Weil <sage@newdream.net>
8
* This is free software; you can redistribute it and/or
9
* modify it under the terms of the GNU Lesser General Public
10
* License version 2.1, as published by the Free Software
11
* Foundation. See file COPYING.
15
#ifndef __MMONSUBSCRIBEACK_H
16
#define __MMONSUBSCRIBEACK_H
18
#include "msg/Message.h"
20
struct MMonSubscribeAck : public Message {
24
MMonSubscribeAck() : Message(CEPH_MSG_MON_SUBSCRIBE_ACK),
26
memset(&fsid, 0, sizeof(fsid));
28
MMonSubscribeAck(ceph_fsid& f, int i) : Message(CEPH_MSG_MON_SUBSCRIBE_ACK),
29
interval(i), fsid(f) { }
32
const char *get_type_name() { return "mon_subscribe_ack"; }
33
void print(ostream& o) {
34
o << "mon_subscribe_ack(" << interval << "s)";
37
void decode_payload() {
38
bufferlist::iterator p = payload.begin();
39
::decode(interval, p);
42
void encode_payload() {
43
::encode(interval, payload);
44
::encode(fsid, payload);