Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alex037yang
OpenXG-RAN
Commits
63c4a90e
Commit
63c4a90e
authored
Jan 25, 2019
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused PROTO_AGENT code
parent
8c0ebfad
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
44 deletions
+0
-44
openair2/LAYER2/PROTO_AGENT/proto_agent_net_comm.c
openair2/LAYER2/PROTO_AGENT/proto_agent_net_comm.c
+0
-40
openair2/LAYER2/PROTO_AGENT/proto_agent_net_comm.h
openair2/LAYER2/PROTO_AGENT/proto_agent_net_comm.h
+0
-4
No files found.
openair2/LAYER2/PROTO_AGENT/proto_agent_net_comm.c
View file @
63c4a90e
...
...
@@ -41,46 +41,6 @@ proto_agent_channel_t *proto_channel[NUM_MAX_ENB][ENB_AGENT_MAX];
proto_agent_channel_instance_t
channel_instance
;
int
proto_agent_channel_id
=
0
;
int
proto_agent_msg_send
(
mod_id_t
mod_id
,
proto_agent_id_t
agent_id
,
void
*
data
,
int
size
,
int
priority
)
{
/*Check if agent id is valid*/
if
(
agent_id
>=
ENB_AGENT_MAX
||
agent_id
<
0
)
{
goto
error
;
}
proto_agent_channel_t
*
channel
;
channel
=
proto_channel
[
mod_id
][
agent_id
];
/*Check if agent has a channel registered*/
if
(
channel
==
NULL
)
{
goto
error
;
}
return
channel
->
msg_send
(
data
,
size
,
priority
,
channel
->
channel_info
);
error:
LOG_E
(
PROTO_AGENT
,
"No channel registered for agent with id %d
\n
"
,
agent_id
);
return
-
1
;
}
int
proto_agent_msg_recv
(
mod_id_t
mod_id
,
proto_agent_id_t
agent_id
,
void
**
data
,
int
*
size
,
int
*
priority
)
{
/*Check if agent id is valid*/
if
(
agent_id
>=
ENB_AGENT_MAX
||
agent_id
<
0
)
{
goto
error
;
}
proto_agent_channel_t
*
channel
;
channel
=
proto_channel
[
mod_id
][
agent_id
];
/*Check if agent has a channel registered*/
if
(
channel
==
NULL
)
{
goto
error
;
}
return
channel
->
msg_recv
(
data
,
size
,
priority
,
channel
->
channel_info
);
error:
LOG_E
(
PROTO_AGENT
,
"No channel registered for agent with id %d
\n
"
,
agent_id
);
return
-
1
;
}
int
proto_agent_register_channel
(
mod_id_t
mod_id
,
proto_agent_channel_t
*
channel
,
proto_agent_id_t
agent_id
)
{
int
i
;
...
...
openair2/LAYER2/PROTO_AGENT/proto_agent_net_comm.h
View file @
63c4a90e
...
...
@@ -59,10 +59,6 @@ typedef struct proto_agent_channel_instance_s{
RB_HEAD
(
proto_agent_channel_map
,
proto_agent_channel_s
)
proto_agent_head
;
}
proto_agent_channel_instance_t
;
/*Send and receive messages using the channel registered for a specific agent*/
int
proto_agent_msg_send
(
mod_id_t
mod_id
,
proto_agent_id_t
agent_id
,
void
*
data
,
int
size
,
int
priority
);
int
proto_agent_msg_recv
(
mod_id_t
mod_id
,
proto_agent_id_t
agent_id
,
void
**
data
,
int
*
size
,
int
*
priority
);
/*Register a channel to an agent. Use ENB_AGENT_MAX to register the
*same channel to all agents*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment