1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
#ifndef __GSMSP_ID_LIST_H__ #define __GSMSP_ID_LIST_H__ 1 #ifdef __cplusplus extern "C" { #endif struct _id_list { int id; const char *string; }; const char *id_list_get(struct _id_list *id_list, int id); #ifdef __cplusplus } #endif #endif /* !__GSMSP_COMMON_H__ */