Inital commit
FossilOrigin-Name: 4d05711e13a86889589703e53fcf8f055c2ff9676f356c77657f686a6e67c802
This commit is contained in:
parent
e82dead1ac
commit
ccc06d09da
26
src/capwap/strlist.h
Normal file
26
src/capwap/strlist.h
Normal file
@ -0,0 +1,26 @@
|
||||
#ifndef __STRLIST_H
|
||||
#define __STRLIST_H
|
||||
|
||||
/**
|
||||
* @file
|
||||
* @Header file for strlist functions.
|
||||
*/
|
||||
|
||||
|
||||
#include "stdio.h"
|
||||
|
||||
/** Key/String pair, used for string tables. */
|
||||
struct cw_str {
|
||||
int id;
|
||||
const char *str;
|
||||
};
|
||||
|
||||
/** Stopper, indicates the laste element in a strlist */
|
||||
#define CW_STR_STOP 0xffffffff
|
||||
|
||||
|
||||
extern const char *cw_strlist_get_str(struct cw_str *s, int id);
|
||||
extern int cw_strlist_get_id(struct cw_str *s, const char *str);
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user