1 2 /*-------------------------------------------------------------*/ 3 /* Name : netwib_buf_append_decodetype 4 Description : 5 Append the description text of an decodetype. 6 Input parameter(s) : 7 decodetype : netwib_decodetype to append 8 Input/output parameter(s) : 9 *pbuf : buffer where text is appended 10 Output parameter(s) : 11 Normal return values : 12 NETWIB_ERR_OK : ok 13 */ 14 netwib_err netwib_buf_append_decodetype(netwib_decodetype decodetype, 15 netwib_buf *pbuf); 16 17 /*-------------------------------------------------------------*/ 18 /* Name : netwib_decodetype_init_kbd 19 Description : 20 Initialize a netwib_decodetype with data entered through keyboard. 21 Input parameter(s) : 22 *pmessage : message to print before 23 defaultdecodetype : default decodetype to use if user enters nothing 24 (if 0xFFFFFFFFu, means no default) 25 Input/output parameter(s) : 26 Output parameter(s) : 27 *pdecodetype : netwib_decodetype initialized 28 Normal return values : 29 NETWIB_ERR_OK : ok 30 */ 31 netwib_err netwib_decodetype_init_kbd(netwib_constbuf *pmessage, 32 netwib_decodetype defaultdecodetype, 33 netwib_decodetype *pdecodetype); 34 #define NETWIB_DECODETYPE_INIT_KBD_NODEF (netwib_decodetype)0xFFFFFFFFu 35