Change capabilities to uint64_t
- Since the capabilities are a bitmask, it is better if an unsigned integral type is used. - Since the function is part of an ABI, it is better if an explicit size is used. - 64-bits so that there also is room for independent filter capabilities.
This commit is contained in:
@ -82,7 +82,7 @@ typedef struct router_object
|
||||
DCB* backend_dcb,
|
||||
error_action_t action,
|
||||
bool* succp);
|
||||
int (*getCapabilities)();
|
||||
uint64_t (*getCapabilities)();
|
||||
} ROUTER_OBJECT;
|
||||
|
||||
/**
|
||||
@ -90,7 +90,7 @@ typedef struct router_object
|
||||
* must update these versions numbers in accordance with the rules in
|
||||
* modinfo.h.
|
||||
*/
|
||||
#define ROUTER_VERSION { 1, 0, 0 }
|
||||
#define ROUTER_VERSION { 2, 0, 0 }
|
||||
|
||||
/**
|
||||
* Router capability type. Indicates what kind of input router accepts.
|
||||
|
Reference in New Issue
Block a user