Generated file

Copy as Markdown

Other Tools

//
// Automatically generated by ipdlc.
// Edit at your own risk
//
#include "mozilla/dom/ModelContextTypes.h"
#include "ipc/IPCMessageUtils.h"
#include "ipc/IPCMessageUtilsSpecializations.h"
#include "nsIFile.h"
#include "mozilla/ipc/Endpoint.h"
#include "mozilla/ipc/ProtocolMessageUtils.h"
#include "mozilla/ipc/ProtocolUtils.h"
#include "mozilla/ipc/ShmemMessageUtils.h"
#include "mozilla/ipc/TaintingIPCUtils.h"
//-----------------------------------------------------------------------------
// Method definitions for the IPDL type |struct IPCToolAnnotations|
//
namespace mozilla {
namespace dom {
} // namespace dom
} // namespace mozilla
namespace IPC {
auto ParamTraits<::mozilla::dom::IPCToolAnnotations>::Write(
IPC::MessageWriter* aWriter,
const paramType& aVar) -> void
{
IPC::WriteParam(aWriter, (aVar).readOnlyHint());
// Sentinel = 'readOnlyHint'
(aWriter)->WriteSentinel(521340114);
}
auto ParamTraits<::mozilla::dom::IPCToolAnnotations>::Read(IPC::MessageReader* aReader) -> IPC::ReadResult<paramType>
{
auto maybe___readOnlyHint = IPC::ReadParam<mozilla::Maybe<bool>>(aReader);
if (!maybe___readOnlyHint) {
aReader->FatalError("Error deserializing 'readOnlyHint' (bool?) member of 'IPCToolAnnotations'");
return {};
}
auto& _readOnlyHint = *maybe___readOnlyHint;
// Sentinel = 'readOnlyHint'
if ((!((aReader)->ReadSentinel(521340114)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'readOnlyHint' (bool?) member of 'IPCToolAnnotations'");
return {};
}
IPC::ReadResult<paramType> result__{
std::in_place,
std::move(_readOnlyHint)};
return result__;
}
} // namespace IPC
//-----------------------------------------------------------------------------
// Method definitions for the IPDL type |struct IPCModelContextToolDefinition|
//
namespace mozilla {
namespace dom {
} // namespace dom
} // namespace mozilla
namespace IPC {
auto ParamTraits<::mozilla::dom::IPCModelContextToolDefinition>::Write(
IPC::MessageWriter* aWriter,
const paramType& aVar) -> void
{
IPC::WriteParam(aWriter, (aVar).name());
// Sentinel = 'name'
(aWriter)->WriteSentinel(69075362);
IPC::WriteParam(aWriter, (aVar).description());
// Sentinel = 'description'
(aWriter)->WriteSentinel(461833381);
IPC::WriteParam(aWriter, (aVar).inputSchema());
// Sentinel = 'inputSchema'
(aWriter)->WriteSentinel(461964418);
IPC::WriteParam(aWriter, (aVar).annotations());
// Sentinel = 'annotations'
(aWriter)->WriteSentinel(466486447);
}
auto ParamTraits<::mozilla::dom::IPCModelContextToolDefinition>::Read(IPC::MessageReader* aReader) -> IPC::ReadResult<paramType>
{
auto maybe___name = IPC::ReadParam<::nsCString>(aReader);
if (!maybe___name) {
aReader->FatalError("Error deserializing 'name' (nsCString) member of 'IPCModelContextToolDefinition'");
return {};
}
auto& _name = *maybe___name;
// Sentinel = 'name'
if ((!((aReader)->ReadSentinel(69075362)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'name' (nsCString) member of 'IPCModelContextToolDefinition'");
return {};
}
auto maybe___description = IPC::ReadParam<::nsCString>(aReader);
if (!maybe___description) {
aReader->FatalError("Error deserializing 'description' (nsCString) member of 'IPCModelContextToolDefinition'");
return {};
}
auto& _description = *maybe___description;
// Sentinel = 'description'
if ((!((aReader)->ReadSentinel(461833381)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'description' (nsCString) member of 'IPCModelContextToolDefinition'");
return {};
}
auto maybe___inputSchema = IPC::ReadParam<mozilla::Maybe<::nsCString>>(aReader);
if (!maybe___inputSchema) {
aReader->FatalError("Error deserializing 'inputSchema' (nsCString?) member of 'IPCModelContextToolDefinition'");
return {};
}
auto& _inputSchema = *maybe___inputSchema;
// Sentinel = 'inputSchema'
if ((!((aReader)->ReadSentinel(461964418)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'inputSchema' (nsCString?) member of 'IPCModelContextToolDefinition'");
return {};
}
auto maybe___annotations = IPC::ReadParam<mozilla::Maybe<::mozilla::dom::IPCToolAnnotations>>(aReader);
if (!maybe___annotations) {
aReader->FatalError("Error deserializing 'annotations' (IPCToolAnnotations?) member of 'IPCModelContextToolDefinition'");
return {};
}
auto& _annotations = *maybe___annotations;
// Sentinel = 'annotations'
if ((!((aReader)->ReadSentinel(466486447)))) {
mozilla::ipc::SentinelReadError("Error deserializing 'annotations' (IPCToolAnnotations?) member of 'IPCModelContextToolDefinition'");
return {};
}
IPC::ReadResult<paramType> result__{
std::in_place,
std::move(_name),
std::move(_description),
std::move(_inputSchema),
std::move(_annotations)};
return result__;
}
} // namespace IPC