Whitespace and comment cleanups in pen.[ch]
This commit is contained in:
@@ -45,4 +45,3 @@ ENUM_NEXT(pen_names, PEN_UNASSIGNED, PEN_RESERVED, PEN_OPENPTS,
|
||||
"Unassigned",
|
||||
"Reserved");
|
||||
ENUM_END(pen_names, PEN_RESERVED);
|
||||
|
||||
|
||||
@@ -29,6 +29,11 @@
|
||||
typedef enum pen_t pen_t;
|
||||
typedef struct pen_type_t pen_type_t;
|
||||
|
||||
/**
|
||||
* Private enterprise numbers allocated by IANA.
|
||||
*
|
||||
* http://www.iana.org/assignments/enterprise-numbers
|
||||
*/
|
||||
enum pen_t {
|
||||
PEN_IETF = 0x000000, /* 0 */
|
||||
PEN_IBM = 0x000002, /* 2 */
|
||||
@@ -48,7 +53,7 @@ enum pen_t {
|
||||
};
|
||||
|
||||
/**
|
||||
* Vendor specific type
|
||||
* Vendor specific type in vendor specific namespace.
|
||||
*/
|
||||
struct pen_type_t {
|
||||
pen_t vendor_id;
|
||||
@@ -57,10 +62,14 @@ struct pen_type_t {
|
||||
|
||||
/**
|
||||
* Create a pen_type_t struct
|
||||
*
|
||||
* @param vendor_id vendor ID to create a pen_type_t
|
||||
* @param type type to create a pen_type_t
|
||||
* @return created pen_type_t
|
||||
*/
|
||||
static inline pen_type_t pen_type_create(pen_t vendor_id, u_int32_t type)
|
||||
{
|
||||
pen_type_t pen_type = {vendor_id, type};
|
||||
pen_type_t pen_type = { vendor_id, type };
|
||||
return pen_type;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user