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",
|
"Unassigned",
|
||||||
"Reserved");
|
"Reserved");
|
||||||
ENUM_END(pen_names, PEN_RESERVED);
|
ENUM_END(pen_names, PEN_RESERVED);
|
||||||
|
|
||||||
|
|||||||
@@ -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,6 +62,10 @@ 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)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user