// // 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 #include "pppoe_info.h" void user_info_init(); int user_info_add(unsigned int userid, PUSER_PARAMS pInfo); void user_info_remove(unsigned int userid); void user_info_delete(unsigned int userid); PUSER_INFO user_info_get_by_userid(unsigned int userid); void user_info_change_status(PUSER_INFO_CONTEXT pInfo, USER_STATUS status); PUSER_INFO_CONTEXT get_all_user(); uv_rwlock_t* get_user_lock(); #ifdef __cplusplus } #endif #endif//VCPE_PROJECT_USER_INFO_H