// // Created by xajhuang on 2022/5/11. // #ifndef VCPE_PROJECT_USER_INFO_H #define VCPE_PROJECT_USER_INFO_H #ifdef __cplusplus extern "C" { #endif #include typedef struct { unsigned short qinq_tag1; unsigned short qinq_tag2; unsigned char mac_addr[6]; const char *pppoe_user; const char *pppoe_passwd; } USER_INFO, *PUSER_INFO; typedef struct { unsigned int userid; USER_INFO user_info; UT_hash_handle hh; } USER_INFO_LIST, *PUSER_INFO_LIST; void user_info_init(); int user_info_add(unsigned int userid, PUSER_INFO pInfo); void user_info_remove(unsigned int userid); PUSER_INFO user_info_get_by_userid(unsigned int userid); PUSER_INFO_LIST user_info_getall(); #ifdef __cplusplus } #endif #endif//VCPE_PROJECT_USER_INFO_H