actube/src/capwap/strlist.h
7u83@mail.ru 4d8664a2eb Removed som old code, more comments ...
FossilOrigin-Name: f7e91399da51dadbbb2565554a03af2d1b4623b79319a247f5a1f16de47d13c6
2015-05-01 18:34:50 +00:00

30 lines
496 B
C

#ifndef __STRLIST_H
#define __STRLIST_H
/**
* @file
* @Header file for strlist functions.
*/
#include "stdio.h"
/**
*Key/String pair, used for string tables,
*to display message element names and so on...
*/
struct cw_str {
int id;
const char *str;
};
/** Stopper, indicates the last 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