Loading ipc/ipdl/ipdl.py +11 −0 Original line number Diff line number Diff line Loading @@ -181,6 +181,7 @@ print >>ipc_msgtype_name, """ // CODE GENERATED by ipdl.py. Do not edit. #include <cstdint> #include "mozilla/ipc/ProtocolUtils.h" #include "IPCMessageStart.h" using std::uint32_t; Loading Loading @@ -219,6 +220,16 @@ for protocol in sorted(allmessages.keys()): return "%s::%s";""" % (protocol, msg, protocol, msg) print >>ipc_msgtype_name, """ case CHANNEL_OPENED_MESSAGE_TYPE: return "CHANNEL_OPENED_MESSAGE"; case SHMEM_DESTROYED_MESSAGE_TYPE: return "SHMEM_DESTROYED_MESSAGE"; case SHMEM_CREATED_MESSAGE_TYPE: return "SHMEM_CREATED_MESSAGE"; case GOODBYE_MESSAGE_TYPE: return "GOODBYE_MESSAGE"; case CANCEL_MESSAGE_TYPE: return "CANCEL_MESSAGE"; default: return "<unknown IPC msg name>"; } Loading Loading
ipc/ipdl/ipdl.py +11 −0 Original line number Diff line number Diff line Loading @@ -181,6 +181,7 @@ print >>ipc_msgtype_name, """ // CODE GENERATED by ipdl.py. Do not edit. #include <cstdint> #include "mozilla/ipc/ProtocolUtils.h" #include "IPCMessageStart.h" using std::uint32_t; Loading Loading @@ -219,6 +220,16 @@ for protocol in sorted(allmessages.keys()): return "%s::%s";""" % (protocol, msg, protocol, msg) print >>ipc_msgtype_name, """ case CHANNEL_OPENED_MESSAGE_TYPE: return "CHANNEL_OPENED_MESSAGE"; case SHMEM_DESTROYED_MESSAGE_TYPE: return "SHMEM_DESTROYED_MESSAGE"; case SHMEM_CREATED_MESSAGE_TYPE: return "SHMEM_CREATED_MESSAGE"; case GOODBYE_MESSAGE_TYPE: return "GOODBYE_MESSAGE"; case CANCEL_MESSAGE_TYPE: return "CANCEL_MESSAGE"; default: return "<unknown IPC msg name>"; } Loading