Whitespace and comment cleanups in pen.[ch]

This commit is contained in:
Martin Willi
2013-02-14 17:17:07 +01:00
parent f838f457a8
commit 9db54bbcd4
2 changed files with 28 additions and 20 deletions
-1
View File
@@ -45,4 +45,3 @@ ENUM_NEXT(pen_names, PEN_UNASSIGNED, PEN_RESERVED, PEN_OPENPTS,
"Unassigned", "Unassigned",
"Reserved"); "Reserved");
ENUM_END(pen_names, PEN_RESERVED); ENUM_END(pen_names, PEN_RESERVED);
+11 -2
View File
@@ -29,6 +29,11 @@
typedef enum pen_t pen_t; typedef enum pen_t pen_t;
typedef struct pen_type_t pen_type_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 { enum pen_t {
PEN_IETF = 0x000000, /* 0 */ PEN_IETF = 0x000000, /* 0 */
PEN_IBM = 0x000002, /* 2 */ 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 { struct pen_type_t {
pen_t vendor_id; pen_t vendor_id;
@@ -57,10 +62,14 @@ struct pen_type_t {
/** /**
* Create a pen_type_t struct * 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) 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; return pen_type;
} }