Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libdap-stream-ch-chain
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
cellframe
libdap-stream-ch-chain
Commits
7dcfe38b
Commit
7dcfe38b
authored
5 years ago
by
Dmitriy A. Gerasimov
Browse files
Options
Downloads
Patches
Plain Diff
[*] Some fixes
parent
5dcf99b1
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
dap_stream_ch_chain.h
+0
-6
0 additions, 6 deletions
dap_stream_ch_chain.h
dap_stream_ch_chain_pkt.c
+1
-2
1 addition, 2 deletions
dap_stream_ch_chain_pkt.c
dap_stream_ch_chain_pkt.h
+7
-1
7 additions, 1 deletion
dap_stream_ch_chain_pkt.h
with
8 additions
and
9 deletions
dap_stream_ch_chain.h
+
0
−
6
View file @
7dcfe38b
...
...
@@ -32,12 +32,6 @@
#include
"dap_stream_ch_chain_pkt.h"
#include
"uthash.h"
typedef
enum
dap_stream_ch_chain_state
{
CHAIN_STATE_IDLE
=
0
,
CHAIN_STATE_SYNC_CHAINS
,
CHAIN_STATE_SYNC_GLOBAL_DB
,
CHAIN_STATE_SYNC_ALL
,
}
dap_stream_ch_chain_state_t
;
typedef
struct
dap_stream_ch_chain
dap_stream_ch_chain_t
;
typedef
void
(
*
dap_stream_ch_chain_callback_packet_t
)(
dap_stream_ch_chain_t
*
,
uint8_t
a_pkt_type
,
...
...
This diff is collapsed.
Click to expand it.
dap_stream_ch_chain_pkt.c
+
1
−
2
View file @
7dcfe38b
...
...
@@ -21,7 +21,6 @@
#include
"dap_stream_ch.h"
#include
"dap_stream_ch_pkt.h"
#include
"dap_stream_ch_chain.h"
#include
"dap_stream_ch_chain_pkt.h"
#include
"dap_chain.h"
...
...
@@ -33,7 +32,7 @@
* @param a_state
* @return
*/
uin
t
dap_stream_ch_chain_pkt_type_to_dap_stream_ch_chain_state
(
uint
a_state
)
dap_stream_ch_chain_state_
t
dap_stream_ch_chain_pkt_type_to_dap_stream_ch_chain_state
(
char
a_state
)
{
switch
(
a_state
)
{
case
DAP_STREAM_CH_CHAIN_PKT_TYPE_SYNCED_ALL
:
...
...
This diff is collapsed.
Click to expand it.
dap_stream_ch_chain_pkt.h
+
7
−
1
View file @
7dcfe38b
...
...
@@ -49,6 +49,12 @@
#define DAP_STREAM_CH_CHAIN_PKT_TYPE_SYNCED_ALL 0x23
#define DAP_STREAM_CH_CHAIN_PKT_TYPE_ERROR 0xff
typedef
enum
dap_stream_ch_chain_state
{
CHAIN_STATE_IDLE
=
0
,
CHAIN_STATE_SYNC_CHAINS
,
CHAIN_STATE_SYNC_GLOBAL_DB
,
CHAIN_STATE_SYNC_ALL
,
}
dap_stream_ch_chain_state_t
;
typedef
struct
dap_stream_ch_chain_sync_request
{
dap_chain_node_addr_t
node_addr
;
// Requesting node's address
...
...
@@ -85,7 +91,7 @@ static const char* c_dap_stream_ch_chain_pkt_type_str[]={
};
uin
t
dap_stream_ch_chain_pkt_type_to_dap_stream_ch_chain_state
(
uint
a_state
);
dap_stream_ch_chain_state_
t
dap_stream_ch_chain_pkt_type_to_dap_stream_ch_chain_state
(
char
a_state
);
size_t
dap_stream_ch_chain_pkt_write
(
dap_stream_ch_t
*
a_ch
,
uint8_t
a_type
,
dap_chain_net_id_t
a_net_id
,
dap_chain_id_t
a_chain_id
,
dap_chain_cell_id_t
a_cell_id
,
...
...
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