Line data Source code
1 : //
2 : // Automatically generated by ipdlc.
3 : // Edit at your own risk
4 : //
5 :
6 :
7 : #include "mozilla/ipc/ProtocolTypes.h"
8 :
9 :
10 : //-----------------------------------------------------------------------------
11 : // Method definitions for the IPDL type |struct ProtocolFdMapping|
12 : //
13 : namespace mozilla {
14 : namespace ipc {
15 0 : MOZ_IMPLICIT ProtocolFdMapping::ProtocolFdMapping() :
16 0 : protocolId_()
17 : {
18 0 : Init();
19 0 : }
20 :
21 0 : ProtocolFdMapping::~ProtocolFdMapping()
22 : {
23 0 : }
24 :
25 0 : auto ProtocolFdMapping::operator==(const ProtocolFdMapping& _o) const -> bool
26 : {
27 0 : if ((!((protocolId()) == ((_o).protocolId())))) {
28 0 : return false;
29 : }
30 0 : if ((!((fd()) == ((_o).fd())))) {
31 0 : return false;
32 : }
33 0 : return true;
34 : }
35 :
36 0 : auto ProtocolFdMapping::operator!=(const ProtocolFdMapping& _o) const -> bool
37 : {
38 0 : return (!(operator==(_o)));
39 : }
40 :
41 0 : auto ProtocolFdMapping::Init() -> void
42 : {
43 0 : }
44 :
45 0 : auto ProtocolFdMapping::Assign(
46 : const uint32_t& _protocolId,
47 : const FileDescriptor& _fd) -> void
48 : {
49 0 : protocolId_ = _protocolId;
50 0 : fd_ = _fd;
51 0 : }
52 :
53 : } // namespace ipc
54 : } // namespace mozilla
|