renamed capwap directory to cw.

FossilOrigin-Name: 8a43dd9d05a4cb73210243ddd8df2a26f16c7ef2c4d4e36ab446de1f65d88223
This commit is contained in:
7u83@mail.ru
2016-03-03 19:46:20 +00:00
parent 4d242d1b44
commit f4ebe841a5
309 changed files with 116 additions and 116 deletions

32
src/cw/strlist.h Normal file
View File

@ -0,0 +1,32 @@
#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