From dfebb21afbdae504a290b14eba77d175c4efb10f Mon Sep 17 00:00:00 2001 From: "Dmitriy A. Gerasimov" <dmitriy.gerasimov@demlabs.net> Date: Sun, 9 Sep 2018 23:17:10 +0700 Subject: [PATCH] [+] Init/deinit template --- CMakeLists.txt | 2 ++ dap_chain_net_srv_datum_pool.c | 38 ++++++++++++++++++++++++++++++++++ dap_chain_net_srv_datum_pool.h | 26 +++++++++++++++++++++++ 3 files changed, 66 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index e716999337..d1fceae04b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,6 +13,8 @@ add_library(${PROJECT_NAME} STATIC ${DAP_CHAIN_NET_SRV_DATUM_POOL_SRCS} ${DAP_CH target_link_libraries(dap_chain_net_srv_datum_pool dap_core dap_crypto dap_chain dap_chain_crypto dap_chain_net dap_chain_net_srv dap_chain_net_srv_datum ) +target_include_directories(dap_chain_net_srv_datum_pool INTERFACE .) + set(${PROJECT_NAME}_DEFINITIONS CACHE INTERNAL "${PROJECT_NAME}: Definitions" FORCE) diff --git a/dap_chain_net_srv_datum_pool.c b/dap_chain_net_srv_datum_pool.c index e69de29bb2..8d9a39cf1d 100644 --- a/dap_chain_net_srv_datum_pool.c +++ b/dap_chain_net_srv_datum_pool.c @@ -0,0 +1,38 @@ +/* + * Authors: + * Dmitriy A. Gearasimov <gerasimov.dmitriy@demlabs.net> + * DeM Labs Inc. https://demlabs.net + * Kelvin Project https://github.com/kelvinblockchain + * Copyright (c) 2017-2018 + * All rights reserved. + + This file is part of DAP (Deus Applications Prototypes) the open source project + + DAP (Deus Applicaions Prototypes) is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + DAP is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with any DAP based project. If not, see <http://www.gnu.org/licenses/>. +*/ + +#include "dap_common.h" +#include "dap_chain_net_srv_datum_pool.h" + +#define LOG_TAG "chain_net_srv_datum_pool" + +int dap_chain_net_srv_datum_pool_init() +{ + return 0; +} + +void dap_chain_net_srv_datum_pool_deinit() +{ + +} diff --git a/dap_chain_net_srv_datum_pool.h b/dap_chain_net_srv_datum_pool.h index e69de29bb2..2bc2191194 100644 --- a/dap_chain_net_srv_datum_pool.h +++ b/dap_chain_net_srv_datum_pool.h @@ -0,0 +1,26 @@ +/* + * Authors: + * Dmitriy A. Gearasimov <gerasimov.dmitriy@demlabs.net> + * DeM Labs Inc. https://demlabs.net + * Kelvin Project https://github.com/kelvinblockchain + * Copyright (c) 2017-2018 + * All rights reserved. + + This file is part of DAP (Deus Applications Prototypes) the open source project + + DAP (Deus Applicaions Prototypes) is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + DAP is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with any DAP based project. If not, see <http://www.gnu.org/licenses/>. +*/ +#pragma once +int dap_chain_net_srv_datum_pool_init(); +void dap_chain_net_srv_datum_pool_deinit(); -- GitLab