X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fceph%2Fsrc%2Fmgr%2FMgrSession.h;fp=src%2Fceph%2Fsrc%2Fmgr%2FMgrSession.h;h=c52e2e177761ac979eeea3791d9c69aa05c7f764;hb=812ff6ca9fcd3e629e49d4328905f33eee8ca3f5;hp=0000000000000000000000000000000000000000;hpb=15280273faafb77777eab341909a3f495cf248d9;p=stor4nfv.git diff --git a/src/ceph/src/mgr/MgrSession.h b/src/ceph/src/mgr/MgrSession.h new file mode 100644 index 0000000..c52e2e1 --- /dev/null +++ b/src/ceph/src/mgr/MgrSession.h @@ -0,0 +1,35 @@ +// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- +// vim: ts=8 sw=2 smarttab + +#ifndef CEPH_MGR_MGRSESSION_H +#define CEPH_MGR_MGRSESSION_H + +#include "common/RefCountedObj.h" +#include "common/entity_name.h" +#include "msg/msg_types.h" +#include "mon/MonCap.h" + + +/** + * Session state associated with the Connection. + */ +struct MgrSession : public RefCountedObject { + uint64_t global_id = 0; + EntityName entity_name; + entity_inst_t inst; + + int osd_id = -1; ///< osd id (if an osd) + + // mon caps are suitably generic for mgr + MonCap caps; + + std::set declared_types; + + MgrSession(CephContext *cct) : RefCountedObject(cct, 0) {} + ~MgrSession() override {} +}; + +typedef boost::intrusive_ptr MgrSessionRef; + + +#endif