MXS-1539: Assign capability bits for all module types

All modules now have an 8-bit range for capability flags. Currently only
the client side authenticator and protocol capability bits are loaded due
to the fact that backend versions of these modules don't relate to a
particular service.
This commit is contained in:
Markus Mäkelä
2018-01-02 13:44:16 +02:00
parent 9689271a34
commit 6036c1cdca
8 changed files with 61 additions and 8 deletions

View File

@ -78,4 +78,17 @@ typedef struct mxs_protocol
*/
#define MXS_PROTOCOL_VERSION {1, 1, 0}
/**
* Specifies capabilities specific for protocol.
*
* @see enum routing_capability
*
* @note The values of the capabilities here *must* be between 0x010000000000
* and 0x800000000000, that is, bits 40 to 47.
*/
typedef enum protocol_capability
{
PCAP_TYPE_NONE = 0x0 // TODO: remove once protocol capabilities are defined
} protocol_capability_t;
MXS_END_DECLS