vcpe/srcs/service/dhcpd/include/db_interface.h

21 lines
576 B
C
Raw Normal View History

//
// Created by HuangXin on 2023/4/24.
//
#ifndef VCPE_DB_INTERFACE_H
#define VCPE_DB_INTERFACE_H
#ifdef __cplusplus
extern "C" {
#endif
int lease_db_add_pre_assign(PDHCP_REQ pReq, U32 ip, PPOOL_CTX pPool);
int lease_init_database();
int lease_get_pre_assign(U32 uid, const char *mac, const char *hostname, U32 *preAssign);
int lease_ip_is_pre_assign(U32 uid, U32 ip);
2023-04-27 09:04:43 +00:00
int lease_get_assign_info(PDHCP_REQ pReq, PPOOL_CTX pAssign, U64 *pCtx);
int lease_clearup_timeout_pre_assign();
int lease_lock_pre_assign_ip();
#ifdef __cplusplus
}
#endif
#endif //VCPE_DB_INTERFACE_H