Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libdap-stream-ch-chain-net
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
Commits
439c11e9
Commit
439c11e9
authored
6 years ago
by
Dmitriy A. Gerasimov
Browse files
Options
Downloads
Patches
Plain Diff
[*] Callbakcs for stream channel
parent
d5551733
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.c
+63
-2
63 additions, 2 deletions
dap_stream_ch_chain_net.c
with
63 additions
and
2 deletions
dap_stream_ch_chain_net.c
+
63
−
2
View file @
439c11e9
...
...
@@ -26,12 +26,24 @@
#include
<errno.h>
#include
<string.h>
#include
"dap_common.h"
#include
"dap_stream.h"
#include
"dap_stream_ch.h"
#include
"dap_stream_ch_chain_net.h"
#include
"dap_stream_ch_proc.h"
#define LOG_TAG "stream_ch_chain_net"
#define LOG_TAG "
dap_
stream_ch_chain_net"
typedef
struct
dap_stream_ch_chain_net
{
pthread_mutex_t
mutex
;
}
dap_stream_ch_chain_net_t
;
#define DAP_STREAM_CH_CHAIN_NET(a) ((dap_stream_ch_chain_net_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
...
...
@@ -40,9 +52,58 @@
int
dap_stream_ch_chain_net_init
()
{
log_it
(
L_NOTICE
,
"Chain network channel initialized"
);
dap_stream_ch_proc_add
(
'N'
,
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_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_t
);
dap_stream_ch_chain_net_t
*
l_ch_chain_net
=
DAP_STREAM_CH_CHAIN_NET
(
a_ch
);
pthread_mutex_init
(
&
l_ch_chain_net
->
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