ipc/ipdl/msgtype-components
author Igor Bukanov <igor@mir2.org>
Tue, 25 Jan 2011 00:04:29 +0100
changeset 61690 378cfa4ae4f53ad02167900355664110b9769213
parent 56503 5c176a0420cf2540cca3b89d8a88bd326bb328c2
child 96742 f4157e8c410708d76703f19e4dfb61859bfe32d8
permissions -rw-r--r--
bug 624364 - r=jorendorff

#!/usr/bin/python

import sys

msgid = int(sys.argv[1])
protocol = (msgid >> 16)
msg = (msgid - (protocol << 16))

print 'protocol', protocol, 'message', msg