Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libdap-stream-ch-chain-net-srv
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-net-srv
Commits
3914086f
Commit
3914086f
authored
6 years ago
by
Dmitriy A. Gerasimov
Browse files
Options
Downloads
Patches
Plain Diff
[*] Callbakcs for stream channel
parent
d50cfc06
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dap_stream_ch_chain_net_srv.c
+66
-2
66 additions, 2 deletions
dap_stream_ch_chain_net_srv.c
with
66 additions
and
2 deletions
dap_stream_ch_chain_net_srv.c
+
66
−
2
View file @
3914086f
...
...
@@ -23,19 +23,83 @@
*/
#include
"dap_common.h"
#include
"dap_stream.h"
#include
"dap_stream_ch.h"
#include
"dap_stream_ch_chain_net_srv.h"
#include
"dap_stream_ch_proc.h"
#define LOG_TAG "dap_stream_ch_chain_net_srv"
typedef
struct
dap_stream_ch_chain_net_srv
{
pthread_mutex_t
mutex
;
}
dap_stream_ch_chain_net_srv_t
;
#define
LOG_TAG "stream_ch_chain_net_srv"
#define
DAP_STREAM_CH_CHAIN_NET_SRV(a) ((dap_stream_ch_chain_net_srv_t *) ((a)->internal) )
static
void
s_stream_ch_new
(
dap_stream_ch_t
*
ch
,
void
*
arg
);
static
void
s_stream_ch_delete
(
dap_stream_ch_t
*
ch
,
void
*
arg
);
static
void
s_stream_ch_packet_in
(
dap_stream_ch_t
*
ch
,
void
*
arg
);
static
void
s_stream_ch_packet_out
(
dap_stream_ch_t
*
ch
,
void
*
arg
);
/**
* @brief dap_stream_ch_chain_net_init
* @return
*/
int
dap_stream_ch_chain_net_srv_init
()
{
log_it
(
L_NOTICE
,
"Chain network services channel initialized"
);
dap_stream_ch_proc_add
(
'S'
,
s_stream_ch_new
,
s_stream_ch_delete
,
s_stream_ch_packet_in
,
s_stream_ch_packet_out
);
return
0
;
}
/**
* @brief dap_stream_ch_chain_deinit
*/
void
dap_stream_ch_chain_net_srv_deinit
()
{
}
/**
* @brief s_stream_ch_new
* @param a_ch
* @param arg
*/
void
s_stream_ch_new
(
dap_stream_ch_t
*
a_ch
,
void
*
arg
)
{
a_ch
->
internal
=
DAP_NEW_Z
(
dap_stream_ch_chain_net_srv_t
);
dap_stream_ch_chain_net_srv_t
*
l_ch_chain_net_srv
=
DAP_STREAM_CH_CHAIN_NET_SRV
(
a_ch
);
pthread_mutex_init
(
&
l_ch_chain_net_srv
->
mutex
,
NULL
);
}
/**
* @brief s_stream_ch_delete
* @param ch
* @param arg
*/
void
s_stream_ch_delete
(
dap_stream_ch_t
*
ch
,
void
*
arg
)
{
}
/**
* @brief s_stream_ch_packet_in
* @param ch
* @param arg
*/
void
s_stream_ch_packet_in
(
dap_stream_ch_t
*
ch
,
void
*
arg
)
{
}
/**
* @brief s_stream_ch_packet_out
* @param ch
* @param arg
*/
void
s_stream_ch_packet_out
(
dap_stream_ch_t
*
ch
,
void
*
arg
)
{
}
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