The extension's base request type.
Declare the extension's events here.
Declare the extension's requests here.
The name by which to request the extension (as in X_QueryExtension).
The name of the field encoding the extension's opcode.
Mix this in to generate sendXXX and handleXXX declarations.
Example extension: