libnl
3.2.20
|
Data Structures | |
struct | nl_object |
struct | nl_object_ops |
Object Operations. More... |
Macros | |
#define | NLHDR_COMMON |
Common Object Header. | |
#define | AVAILABLE(A, B, ATTR) (((A)->ce_mask & (B)->ce_mask) & (ATTR)) |
Return true if attribute is available in both objects. | |
#define | AVAILABLE_MISMATCH(A, B, ATTR) (((A)->ce_mask ^ (B)->ce_mask) & (ATTR)) |
Return true if attribute is available in only one of both objects. | |
#define | ATTR_MISMATCH(A, B, ATTR, EXPR) |
Return true if attributes mismatch. | |
#define | ATTR_DIFF(LIST, ATTR, A, B, EXPR) |
Return attribute bit if attribute does not match. |
#define NLHDR_COMMON |
Common Object Header.
This macro must be included as first member in every object definition to allow objects to be cached.
Definition at line 184 of file object-api.h.
#define AVAILABLE | ( | A, | |
B, | |||
ATTR | |||
) | (((A)->ce_mask & (B)->ce_mask) & (ATTR)) |
Return true if attribute is available in both objects.
A | an object |
B | another object |
ATTR | attribute bit |
Definition at line 207 of file object-api.h.
#define AVAILABLE_MISMATCH | ( | A, | |
B, | |||
ATTR | |||
) | (((A)->ce_mask ^ (B)->ce_mask) & (ATTR)) |
Return true if attribute is available in only one of both objects.
A | an object |
B | another object |
ATTR | attribute bit |
Definition at line 218 of file object-api.h.
#define ATTR_MISMATCH | ( | A, | |
B, | |||
ATTR, | |||
EXPR | |||
) |
Return true if attributes mismatch.
A | an object |
B | another object |
ATTR | attribute bit |
EXPR | Comparison expression |
This function will check if the attribute in question is available in both objects, if not this will count as a mismatch.
If available the function will execute the expression which must return true if the attributes mismatch.
Definition at line 235 of file object-api.h.
#define ATTR_DIFF | ( | LIST, | |
ATTR, | |||
A, | |||
B, | |||
EXPR | |||
) |
Return attribute bit if attribute does not match.
LIST | list of attributes to be compared |
ATTR | attribute bit |
A | an object |
B | another object |
EXPR | Comparison expression |
This function will check if the attribute in question is available in both objects, if not this will count as a mismatch.
If available the function will execute the expression which must return true if the attributes mismatch.
In case the attributes mismatch, the attribute is returned, otherwise 0 is returned.
Definition at line 259 of file object-api.h.