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
zzha zzha
OpenXG-RAN
Commits
7241aa6a
Commit
7241aa6a
authored
Dec 23, 2015
by
Xenofon Foukas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added support for parameters in handlers
parent
4f618d61
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
9 deletions
+10
-9
openair2/ENB_APP/enb_agent_common.c
openair2/ENB_APP/enb_agent_common.c
+3
-3
openair2/ENB_APP/enb_agent_common.h
openair2/ENB_APP/enb_agent_common.h
+4
-3
openair2/ENB_APP/enb_agent_handler.c
openair2/ENB_APP/enb_agent_handler.c
+1
-1
openair2/ENB_APP/enb_agent_mac.c
openair2/ENB_APP/enb_agent_mac.c
+1
-1
openair2/ENB_APP/enb_agent_mac.h
openair2/ENB_APP/enb_agent_mac.h
+1
-1
No files found.
openair2/ENB_APP/enb_agent_common.c
View file @
7241aa6a
...
...
@@ -98,7 +98,7 @@ int prp_create_header(uint32_t xid, Protocol__PrpType type, Protocol__PrpHeader
}
int
enb_agent_hello
(
uint32_t
xid
,
Protocol__ProgranMessage
**
msg
)
{
int
enb_agent_hello
(
uint32_t
xid
,
const
void
*
params
,
Protocol__ProgranMessage
**
msg
)
{
Protocol__PrpHeader
*
header
;
if
(
prp_create_header
(
xid
,
PROTOCOL__PRP_TYPE__PRPT_HELLO
,
&
header
)
!=
0
)
...
...
@@ -150,7 +150,7 @@ int enb_agent_destroy_hello_message(Protocol__ProgranMessage *msg) {
}
int
enb_agent_echo_request
(
uint32_t
xid
,
Protocol__ProgranMessage
**
msg
)
{
int
enb_agent_echo_request
(
uint32_t
xid
,
const
void
*
params
,
Protocol__ProgranMessage
**
msg
)
{
Protocol__PrpHeader
*
header
;
if
(
prp_create_header
(
xid
,
PROTOCOL__PRP_TYPE__PRPT_ECHO_REQUEST
,
&
header
)
!=
0
)
goto
error
;
...
...
@@ -199,7 +199,7 @@ int enb_agent_destroy_echo_request(Protocol__ProgranMessage *msg) {
int
enb_agent_echo_reply
(
uint32_t
xid
,
Protocol__ProgranMessage
**
msg
)
{
int
enb_agent_echo_reply
(
uint32_t
xid
,
const
void
*
params
,
Protocol__ProgranMessage
**
msg
)
{
Protocol__PrpHeader
*
header
;
if
(
prp_create_header
(
xid
,
PROTOCOL__PRP_TYPE__PRPT_ECHO_REPLY
,
&
header
)
!=
0
)
goto
error
;
...
...
openair2/ENB_APP/enb_agent_common.h
View file @
7241aa6a
...
...
@@ -49,6 +49,7 @@
typedef
int
(
*
enb_agent_message_decoded_callback
)(
uint32_t
xid
,
const
void
*
params
,
Protocol__ProgranMessage
**
msg
);
...
...
@@ -59,13 +60,13 @@ int enb_agent_deserialize_message(void *data, int size, Protocol__ProgranMessage
int
prp_create_header
(
uint32_t
xid
,
Protocol__PrpType
type
,
Protocol__PrpHeader
**
header
);
int
enb_agent_hello
(
uint32_t
xid
,
Protocol__ProgranMessage
**
msg
);
int
enb_agent_hello
(
uint32_t
xid
,
const
void
*
params
,
Protocol__ProgranMessage
**
msg
);
int
enb_agent_destroy_hello
(
Protocol__ProgranMessage
*
msg
);
int
enb_agent_echo_request
(
uint32_t
xid
,
Protocol__ProgranMessage
**
msg
);
int
enb_agent_echo_request
(
uint32_t
xid
,
const
void
*
params
,
Protocol__ProgranMessage
**
msg
);
int
enb_agent_destroy_echo_request
(
Protocol__ProgranMessage
*
msg
);
int
enb_agent_echo_reply
(
uint32_t
xid
,
Protocol__ProgranMessage
**
msg
);
int
enb_agent_echo_reply
(
uint32_t
xid
,
const
void
*
params
,
Protocol__ProgranMessage
**
msg
);
int
enb_agent_destroy_echo_reply
(
Protocol__ProgranMessage
*
msg
);
...
...
openair2/ENB_APP/enb_agent_handler.c
View file @
7241aa6a
...
...
@@ -83,7 +83,7 @@ Protocol__ProgranMessage* enb_agent_handle_message (uint32_t xid,
}
err_code
=
((
*
messages_callback
[
decoded_message
->
msg_case
-
1
][
decoded_message
->
msg_dir
-
1
])(
xid
,
&
reply_message
));
err_code
=
((
*
messages_callback
[
decoded_message
->
msg_case
-
1
][
decoded_message
->
msg_dir
-
1
])(
xid
,
(
void
*
)
decoded_message
,
&
reply_message
));
if
(
err_code
<
0
){
goto
error
;
}
...
...
openair2/ENB_APP/enb_agent_mac.c
View file @
7241aa6a
...
...
@@ -40,7 +40,7 @@
#include "LAYER2/RLC/rlc.h"
#include "log.h"
int
enb_agent_mac_reply
(
uint32_t
xid
,
Protocol__ProgranMessage
**
msg
){
int
enb_agent_mac_reply
(
uint32_t
xid
,
const
void
*
params
,
Protocol__ProgranMessage
**
msg
){
void
*
buffer
;
int
size
;
...
...
openair2/ENB_APP/enb_agent_mac.h
View file @
7241aa6a
...
...
@@ -68,7 +68,7 @@ typedef struct {
}
report_config_t
;
int
enb_agent_mac_reply
(
uint32_t
xid
,
Protocol__ProgranMessage
**
msg
);
int
enb_agent_mac_reply
(
uint32_t
xid
,
const
void
*
params
,
Protocol__ProgranMessage
**
msg
);
int
enb_agent_mac_stats_reply
(
uint32_t
xid
,
const
report_config_t
*
report_config
,
Protocol__ProgranMessage
**
msg
);
...
...
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