|
libnl
1.1.4
|
Data Structures | |
| struct | nl_object_ops |
| Object Operations. More... | |
Macros | |
| #define | NLHDR_COMMON |
| Common Object Header. More... | |
| #define | AVAILABLE(A, B, ATTR) (((A)->ce_mask & (B)->ce_mask) & (ATTR)) |
| Return true if attribute is available in both objects. More... | |
| #define | ATTR_MISMATCH(A, B, ATTR, EXPR) (!AVAILABLE(A, B, ATTR) || (EXPR)) |
| Return true if attributes mismatch. More... | |
| #define | ATTR_DIFF(LIST, ATTR, A, B, EXPR) |
| Return attribute bit if attribute does not match. More... | |
| #define NLHDR_COMMON |
This macro must be included as first member in every object definition to allow objects to be cached.
Definition at line 188 of file object-api.h.
| #define AVAILABLE | ( | A, | |
| B, | |||
| ATTR | |||
| ) | (((A)->ce_mask & (B)->ce_mask) & (ATTR)) |
| A | an object |
| B | another object |
| ATTR | attribute bit |
Definition at line 205 of file object-api.h.
| #define ATTR_MISMATCH | ( | A, | |
| B, | |||
| ATTR, | |||
| EXPR | |||
| ) | (!AVAILABLE(A, B, ATTR) || (EXPR)) |
| 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 222 of file object-api.h.
| #define ATTR_DIFF | ( | LIST, | |
| ATTR, | |||
| A, | |||
| B, | |||
| EXPR | |||
| ) |
| 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 245 of file object-api.h.
1.8.5