mirror of
https://github.com/strongswan/strongswan.git
synced 2025-12-12 00:00:57 -05:00
Add a comparison function for pen_type_t
This commit is contained in:
parent
9db54bbcd4
commit
d03b338487
@ -73,6 +73,18 @@ static inline pen_type_t pen_type_create(pen_t vendor_id, u_int32_t type)
|
|||||||
return pen_type;
|
return pen_type;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Check two pen_type_t for equality.
|
||||||
|
*
|
||||||
|
* @param a first pen_type_t to compare
|
||||||
|
* @param b second pen_type_t to compare
|
||||||
|
* @return TRUE if a == b
|
||||||
|
*/
|
||||||
|
static inline bool pen_type_equals(pen_type_t a, pen_type_t b)
|
||||||
|
{
|
||||||
|
return a.vendor_id == b.vendor_id && a.type == b.type;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* enum names for pen_t.
|
* enum names for pen_t.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user