// // Created by xajhuang on 2023/3/23. // #ifndef VCPE_USER_MGR_H #define VCPE_USER_MGR_H #include #include #include "ip_pool.h" #ifdef __cplusplus extern "C" { #endif typedef struct { U32 ip; UT_hash_handle hh; } LOCK_IP, *PLOCK_IP; typedef struct { U32 uid; ///< 用户ID PPOOL_CTX pUserPool; ///< 用户地址池 PLOCK_IP plockIp; UT_hash_handle hh; } DHCP_USER, *PDHCP_USER; //int user_add_ip_pool(U32 uId, PIPPOOL_INFO pPool); int dhcp_user_mgr_init(); PDHCP_USER dhcp_user_create(U32 uId); #ifdef HTTPSERVER_ON int user_init_httpd(); #endif #ifdef __cplusplus } #endif #endif //VCPE_USER_MGR_H