TYPE NewBroker IS RECORD
   BYTE     nb_Version;  ? set to NB_VERSION
   PTR_TO TEXT nb_Name
   PTR_TO TEXT     nb_Title
   PTR_TO TEXT     nb_Descr
   WORD    nb_Unique
   WORD    nb_Flags
   BYTE    nb_Pri
? new in V5
   PTR_TO MsgPort   nb_Port
   WORD     nb_ReservedChannel;  ? plans for later port sharing
ENDTYPE

? Flags for nb_Unique
CONSTANT NBU_DUPLICATE =  0
CONSTANT NBU_UNIQUE =  1   ;? will not allow duplicates
CONSTANT NBU_NOTIFY =  2   ;? sends CXM_UNIQUE to existing broker

? Flags for nb_Flags
CONSTANT   COF_SHOW_HIDE = 4

?******************************
?* Commodities Object Types   *
?******************************
CONSTANT CX_INVALID =  0     ;? not a valid object (probably null)
CONSTANT CX_FILTER = 1     ;? input event messages only
CONSTANT CX_TYPEFILTER = 2     ;? filter on message type
CONSTANT CX_SEND   = 3     ;? sends a message
CONSTANT CX_SIGNAL = 4     ;? sends a signal
CONSTANT CX_TRANSLATE = 5     ;? translates IE into chain
CONSTANT CX_BROKER = 6     ;? application representative
CONSTANT CX_DEBUG  = 7     ;? dumps kprintf to serial port
CONSTANT CX_CUSTOM = 8     ;? application provids function
CONSTANT CX_ZERO   = 9     ;? system terminator node

?****************************
? Input Expression structure
?****************************

CONSTANT IX_VERSION = 2

TYPE InputXpression IS RECORD
   BYTE   ix_Version;     ? must be set to IX_VERSION
   BYTE   ix_Class;    ? class must match exactly

   WORD   ix_Code;     ? Bits that we want

   WORD   ix_CodeMask;    ? Set bits here to indicate which bits in
                           ? ix_Code are don't care bits.

   WORD   ix_Qualifier;   ? Bits that we want

   WORD   ix_QualMask;    ? Set bits here to indicate which bits in
                           ? ix_Qualifier are don't care bits

   WORD   ix_QualSame;    ? synonyms in qualifier
ENDTYPE

? QualSame identifiers
CONSTANT IXSYM_SHIFT =  1  ;? left- and right- shift are equivalent
CONSTANT IXSYM_CAPS  =  2  ;? either shift or caps lock are equivalent
CONSTANT IXSYM_ALT   =  4  ;? left- and right- alt are equivalent
CONSTANT IX_NORMALQUALS	= 7FFF'16;? for QualMask field: avoid RELATIVEMOUSE
