Generated file

Copy as Markdown

Other Tools

//
// Automatically generated by ipdlc.
// Edit at your own risk
//
#ifndef PPKCS11Module_h
#define PPKCS11Module_h
#include "mozilla/Attributes.h"
#include "IPCMessageStart.h"
#include "mozilla/RefPtr.h"
#include "nsString.h"
#include "nsTArray.h"
#include "nsTHashtable.h"
#include "mozilla/MozPromise.h"
#include "mozilla/OperatorNewExtensions.h"
#include "mozilla/UniquePtr.h"
#include "mozilla/ipc/ByteBuf.h"
#include "mozilla/ipc/FileDescriptor.h"
#include "mozilla/ipc/IPCForwards.h"
#include "mozilla/ipc/Shmem.h"
// Headers for typedefs
#include "mozilla/ipc/IPDLStructMember.h"
//-----------------------------------------------------------------------------
// Declaration of the IPDL type |struct SlotInfo|
//
namespace mozilla {
namespace psm {
class SlotInfo final
{
private:
typedef ::nsCString nsCString;
typedef ::uint32_t uint32_t;
public:
#ifdef __clang__
# pragma clang diagnostic push
# if __has_warning("-Wdefaulted-function-deleted")
# pragma clang diagnostic ignored "-Wdefaulted-function-deleted"
# endif
#endif
SlotInfo() = default;
#ifdef __clang__
# pragma clang diagnostic pop
#endif
MOZ_IMPLICIT SlotInfo(
const nsCString& _name,
const nsCString& _desc,
const nsCString& _manID,
const nsCString& _hwVersion,
const nsCString& _fwVersion,
const uint32_t& _status,
const nsCString& _tokenName) :
name_(_name),
desc_(_desc),
manID_(_manID),
hwVersion_(_hwVersion),
fwVersion_(_fwVersion),
tokenName_(_tokenName),
status_(_status)
{
}
MOZ_IMPLICIT SlotInfo(
nsCString&& _name,
nsCString&& _desc,
nsCString&& _manID,
nsCString&& _hwVersion,
nsCString&& _fwVersion,
uint32_t&& _status,
nsCString&& _tokenName) :
name_(std::move(_name)),
desc_(std::move(_desc)),
manID_(std::move(_manID)),
hwVersion_(std::move(_hwVersion)),
fwVersion_(std::move(_fwVersion)),
tokenName_(std::move(_tokenName)),
status_(std::move(_status))
{
}
nsCString&
name()
{
return name_;
}
const nsCString&
name() const
{
return name_;
}
nsCString&
desc()
{
return desc_;
}
const nsCString&
desc() const
{
return desc_;
}
nsCString&
manID()
{
return manID_;
}
const nsCString&
manID() const
{
return manID_;
}
nsCString&
hwVersion()
{
return hwVersion_;
}
const nsCString&
hwVersion() const
{
return hwVersion_;
}
nsCString&
fwVersion()
{
return fwVersion_;
}
const nsCString&
fwVersion() const
{
return fwVersion_;
}
uint32_t&
status()
{
return status_;
}
const uint32_t&
status() const
{
return status_;
}
nsCString&
tokenName()
{
return tokenName_;
}
const nsCString&
tokenName() const
{
return tokenName_;
}
private:
::mozilla::ipc::IPDLStructMember<nsCString> name_;
::mozilla::ipc::IPDLStructMember<nsCString> desc_;
::mozilla::ipc::IPDLStructMember<nsCString> manID_;
::mozilla::ipc::IPDLStructMember<nsCString> hwVersion_;
::mozilla::ipc::IPDLStructMember<nsCString> fwVersion_;
::mozilla::ipc::IPDLStructMember<nsCString> tokenName_;
::mozilla::ipc::IPDLStructMember<uint32_t> status_;
};
} // namespace psm
} // namespace mozilla
namespace IPC {
template<>
struct ParamTraits <::mozilla::psm::SlotInfo>
{
typedef ::mozilla::psm::SlotInfo paramType;
static void
Write(
IPC::MessageWriter* aWriter,
const paramType& aVar);
static IPC::ReadResult<paramType>
Read(IPC::MessageReader* aReader);
};
} // namespace IPC
//-----------------------------------------------------------------------------
// Declaration of the IPDL type |struct ModuleInfo|
//
namespace mozilla {
namespace psm {
class ModuleInfo final
{
private:
typedef ::nsCString nsCString;
typedef ::mozilla::psm::SlotInfo SlotInfo;
public:
#ifdef __clang__
# pragma clang diagnostic push
# if __has_warning("-Wdefaulted-function-deleted")
# pragma clang diagnostic ignored "-Wdefaulted-function-deleted"
# endif
#endif
ModuleInfo() = default;
#ifdef __clang__
# pragma clang diagnostic pop
#endif
MOZ_IMPLICIT ModuleInfo(
const nsCString& _name,
const nsCString& _libName,
const nsTArray<SlotInfo>& _slots) :
name_(_name),
libName_(_libName),
slots_(_slots)
{
}
MOZ_IMPLICIT ModuleInfo(
nsCString&& _name,
nsCString&& _libName,
nsTArray<SlotInfo>&& _slots) :
name_(std::move(_name)),
libName_(std::move(_libName)),
slots_(std::move(_slots))
{
}
nsCString&
name()
{
return name_;
}
const nsCString&
name() const
{
return name_;
}
nsCString&
libName()
{
return libName_;
}
const nsCString&
libName() const
{
return libName_;
}
nsTArray<SlotInfo>&
slots()
{
return slots_;
}
const nsTArray<SlotInfo>&
slots() const
{
return slots_;
}
private:
::mozilla::ipc::IPDLStructMember<nsCString> name_;
::mozilla::ipc::IPDLStructMember<nsCString> libName_;
::mozilla::ipc::IPDLStructMember<CopyableTArray<SlotInfo>> slots_;
};
} // namespace psm
} // namespace mozilla
namespace IPC {
template<>
struct ParamTraits <::mozilla::psm::ModuleInfo>
{
typedef ::mozilla::psm::ModuleInfo paramType;
static void
Write(
IPC::MessageWriter* aWriter,
const paramType& aVar);
static IPC::ReadResult<paramType>
Read(IPC::MessageReader* aReader);
};
} // namespace IPC
namespace mozilla {
namespace psm {
class PPKCS11ModuleParent;
} // namespace psm
} // namespace mozilla
namespace mozilla {
namespace psm {
class PPKCS11ModuleChild;
} // namespace psm
} // namespace mozilla
//-----------------------------------------------------------------------------
// Code common to PPKCS11ModuleChild and PPKCS11ModuleParent
//
namespace mozilla {
namespace psm {
namespace PPKCS11Module {
nsresult
CreateEndpoints(
mozilla::ipc::EndpointProcInfo aParentDestInfo,
mozilla::ipc::EndpointProcInfo aChildDestInfo,
mozilla::ipc::Endpoint<::mozilla::psm::PPKCS11ModuleParent>* aParent,
mozilla::ipc::Endpoint<::mozilla::psm::PPKCS11ModuleChild>* aChild);
nsresult
CreateEndpoints(
mozilla::ipc::Endpoint<::mozilla::psm::PPKCS11ModuleParent>* aParent,
mozilla::ipc::Endpoint<::mozilla::psm::PPKCS11ModuleChild>* aChild);
enum MessageType {
PPKCS11ModuleStart = PPKCS11ModuleMsgStart << 16,
Msg_AddModule__ID,
Reply_AddModule__ID,
Msg_DeleteModule__ID,
Reply_DeleteModule__ID,
Msg_ListModules__ID,
Reply_ListModules__ID,
PPKCS11ModuleEnd
};
mozilla::UniquePtr<IPC::Message>
Msg_AddModule(IPC::Message::routeid_t routingId);
mozilla::UniquePtr<IPC::Message>
Reply_AddModule(IPC::Message::routeid_t routingId);
mozilla::UniquePtr<IPC::Message>
Msg_DeleteModule(IPC::Message::routeid_t routingId);
mozilla::UniquePtr<IPC::Message>
Reply_DeleteModule(IPC::Message::routeid_t routingId);
mozilla::UniquePtr<IPC::Message>
Msg_ListModules(IPC::Message::routeid_t routingId);
mozilla::UniquePtr<IPC::Message>
Reply_ListModules(IPC::Message::routeid_t routingId);
} // namespace PPKCS11Module
} // namespace psm
} // namespace mozilla
#endif // ifndef PPKCS11Module_h