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

[*] Some fixes

parent 5dcf99b1
No related branches found
No related tags found
No related merge requests found
......@@ -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,
......
......@@ -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
*/
uint 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:
......
......@@ -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[]={
};
uint 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,
......
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