2 #ifndef DEF_ENCODING_ATTR
3 #define DEF_ENCODING_ATTR
13 unsigned short attr; /* attribute code */
14 unsigned int size; /* expected data size */
15 bool (*encode)(struct attr *at, unsigned char ports); /* encode function */
16 bool (*decode)(struct attr *at, unsigned char ports); /* decode function */
20 const struct attr_handler* getAttrHandler (unsigned short attrcode);