Skip to content
Snippets Groups Projects
Commit 1341b775 authored by Dmitriy A. Gerasimov's avatar Dmitriy A. Gerasimov
Browse files

[*] Renames und fixes

parent 0ab8f358
No related branches found
No related tags found
No related merge requests found
...@@ -10,10 +10,10 @@ if(BUILD_DAP_CORE_SERVER_TESTS) ...@@ -10,10 +10,10 @@ if(BUILD_DAP_CORE_SERVER_TESTS)
add_subdirectory(test) add_subdirectory(test)
endif() endif()
file(GLOB SOURCES *.c) file(GLOB CORE_SERVER_SOURCES *.c)
file(GLOB HEADERS *.h) file(GLOB CORE_SERVER_HEADERS *.h)
add_library(${PROJECT_NAME} STATIC ${SOURCES} ${HEADERS}) add_library(${PROJECT_NAME} STATIC ${CORE_SERVER_SOURCES} ${CORE_SERVER_HEADERS})
target_link_libraries(${PROJECT_NAME} pthread ev dap_crypto) target_link_libraries(${PROJECT_NAME} pthread ev dap_crypto)
target_include_directories(${PROJECT_NAME} INTERFACE .) target_include_directories(${PROJECT_NAME} INTERFACE .)
...@@ -98,7 +98,7 @@ int dap_server_init(size_t count_threads) ...@@ -98,7 +98,7 @@ int dap_server_init(size_t count_threads)
pthread_mutex_init(&mutex_on_cnt_connections, NULL); pthread_mutex_init(&mutex_on_cnt_connections, NULL);
log_it(L_NOTICE,"Initialized socket server module"); log_it(L_NOTICE,"Initialized socket server module");
dap_server_client_init();
return 0; return 0;
} }
...@@ -107,6 +107,7 @@ int dap_server_init(size_t count_threads) ...@@ -107,6 +107,7 @@ int dap_server_init(size_t count_threads)
*/ */
void dap_server_deinit() void dap_server_deinit()
{ {
dap_server_client_deinit();
for(size_t i = 0; i < _count_threads; i++) for(size_t i = 0; i < _count_threads; i++)
free (async_watchers[i].data); free (async_watchers[i].data);
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
* @brief dap_client_init Init clients module * @brief dap_client_init Init clients module
* @return Zero if ok others if no * @return Zero if ok others if no
*/ */
int dap_client_remote_init() int dap_server_client_init()
{ {
log_it(L_NOTICE,"Initialized socket client module"); log_it(L_NOTICE,"Initialized socket client module");
return 0; return 0;
...@@ -45,7 +45,7 @@ int dap_client_remote_init() ...@@ -45,7 +45,7 @@ int dap_client_remote_init()
/** /**
* @brief dap_client_deinit Deinit clients module * @brief dap_client_deinit Deinit clients module
*/ */
void dap_client_remote_deinit() void dap_server_client_deinit()
{ {
} }
......
...@@ -82,8 +82,8 @@ typedef struct dap_server_client{ ...@@ -82,8 +82,8 @@ typedef struct dap_server_client{
int dap_client_remote_init(void); // Init clients module int dap_server_client_init(void); // Init clients module
void dap_client_remote_deinit(void); // Deinit clients module void dap_server_client_deinit(void); // Deinit clients module
dap_server_client_t * dap_client_create(struct dap_server * sh, int s, ev_io* w_client); // Create new client and add it to the list dap_server_client_t * dap_client_create(struct dap_server * sh, int s, ev_io* w_client); // Create new client and add it to the list
dap_server_client_t * dap_client_find(int sock, struct dap_server * sh); // Find client by socket dap_server_client_t * dap_client_find(int sock, struct dap_server * sh); // Find client by socket
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment