Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
celllframe-node
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dmitry Puzyrkov
celllframe-node
Commits
408ec2e6
Commit
408ec2e6
authored
4 years ago
by
alexander.lysikov
Browse files
Options
Downloads
Patches
Plain Diff
added news URL support
parent
a5a0dc82
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+1
-1
1 addition, 1 deletion
CMakeLists.txt
sources/main.c
+7
-0
7 additions, 0 deletions
sources/main.c
with
8 additions
and
1 deletion
CMakeLists.txt
+
1
−
1
View file @
408ec2e6
...
...
@@ -8,7 +8,7 @@ set(CMAKE_C_STANDARD 11)
SET
(
CPACK_PACKAGE_NAME
"
${
PROJECT_NAME
}
"
)
SET
(
CPACK_PACKAGE_VERSION_MAJOR 3
)
SET
(
CPACK_PACKAGE_VERSION_MINOR 2
)
SET
(
CPACK_PACKAGE_VERSION_PATCH 1
0
)
SET
(
CPACK_PACKAGE_VERSION_PATCH 1
1
)
# init CellFrame SDK
add_definitions
(
"-DDAP_VERSION=
\"
${
CPACK_PACKAGE_VERSION_MAJOR
}
\"
"
)
...
...
This diff is collapsed.
Click to expand it.
sources/main.c
+
7
−
0
View file @
408ec2e6
...
...
@@ -80,6 +80,7 @@
#include
"dap_chain_net_srv_app_db.h"
#include
"dap_chain_net_srv_datum.h"
#include
"dap_chain_net_bugreport.h"
#include
"dap_chain_net_news.h"
#ifdef DAP_OS_LINUX
#include
"dap_chain_net_srv_vpn.h"
...
...
@@ -408,6 +409,12 @@ int main( int argc, const char **argv )
dap_chain_net_bugreport_add_proc
(
DAP_HTTP
(
l_server
));
}
// News URLs
bool
l_news_url_enabled
=
dap_config_get_item_bool_default
(
g_config
,
"server"
,
"l_news_url_enabled"
,
false
);
if
(
l_news_url_enabled
)
{
dap_chain_net_news_add_proc
(
DAP_HTTP
(
l_server
));
}
const
char
*
str_start_mempool
=
dap_config_get_item_str
(
g_config
,
"mempool"
,
"accept"
);
if
(
str_start_mempool
&&
!
strcmp
(
str_start_mempool
,
"true"
))
{
dap_chain_mempool_add_proc
(
DAP_HTTP
(
l_server
),
MEMPOOL_URL
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment