OCT 添加DNS服务代码
This commit is contained in:
parent
e6a0f3546a
commit
189f61d953
|
@ -0,0 +1,13 @@
|
|||
SET(DHCPD_PROJECT_TARGET dualserverd)
|
||||
|
||||
PROJECT(${DHCPD_PROJECT_TARGET} CXX)
|
||||
|
||||
INCLUDE_DIRECTORIES(../libs/include ./)
|
||||
|
||||
FILE(GLOB DHCPD_HEADS ./*.h)
|
||||
|
||||
ADD_DEFINITIONS(-Wno-format-overflow -std=c++11)
|
||||
#ADD_EXECUTABLE(${PROJECT_TARGET} opendhcpd.cpp ${DHCPD_HEADS})
|
||||
ADD_LIBRARY(${DHCPD_PROJECT_TARGET} dualserverd.cpp ${DHCPD_HEADS})
|
||||
|
||||
#TARGET_LINK_LIBRARIES(${PROJECT_TARGET} -lpthread)
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,18 @@
|
|||
//
|
||||
// Created by xajhuang on 2022/10/26.
|
||||
//
|
||||
|
||||
#ifndef VCPE_PROJECT_DUALSVR_H
|
||||
#define VCPE_PROJECT_DUALSVR_H
|
||||
#define API_PUBLIC __attribute__((visibility("default")))
|
||||
#define API_EXPORT API_PUBLIC
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
API_EXPORT int dual_server_main(int argc, char **argv);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif//VCPE_PROJECT_DUALSVR_H
|
Loading…
Reference in New Issue