Files
actube/src/capwap/strlist.h
7u83@mail.ru 7aaae9f98a Added cw_strlist_t.
FossilOrigin-Name: ea730256fe5186061b2cc41ff6ec71589663b5bcc238203367d5a1f9308af767
2015-10-18 08:44:40 +00:00

33 lines
612 B
C

#ifndef __STRLIST_H
#define __STRLIST_H
/**
* @file
* @Header file for strlist functions.
*/
/**
*Key/String pair, used for string tables,
*to display message element names and so on...
*/
struct cw_strlist_elem {
/** ID, an integer value */
int id;
/** a pointer to the string */
const char *str;
};
typedef struct cw_strlist_elem* cw_strlist_t;
/** Stopper, indicates the last element in a strlist */
#define CW_STR_STOP 0xffffffff
extern const char *cw_strlist_get_str(struct cw_strlist_elem *s, int id);
extern int cw_strlist_get_id(struct cw_strlist_elem *s, const char *str);
#endif