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
promise
OpenXG-RAN
Commits
32302fc2
Commit
32302fc2
authored
May 25, 2016
by
Cedric Roux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add legacy logs to enb.c
parent
0feda7fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
common/utils/T/tracer/enb.c
common/utils/T/tracer/enb.c
+19
-0
No files found.
common/utils/T/tracer/enb.c
View file @
32302fc2
...
...
@@ -16,6 +16,7 @@
typedef
struct
{
view
*
rrcview
;
view
*
legacy
;
}
enb_gui
;
#define DEFAULT_REMOTE_PORT 2021
...
...
@@ -173,6 +174,13 @@ static void enb_main_gui(enb_gui *e, gui *g, event_handler *h, void *database)
container_set_child_growable
(
g
,
col
,
text
,
1
);
textview
=
new_view_textlist
(
10000
,
10
,
g
,
text
);
e
->
rrcview
=
textview
;
/* legacy logs (LOG_I, LOG_D, ...) */
widget_add_child
(
g
,
top_container
,
new_label
(
g
,
"LEGACY"
),
-
1
);
text
=
new_textlist
(
g
,
100
,
10
,
new_color
(
g
,
"#eeb"
));
widget_add_child
(
g
,
top_container
,
text
,
-
1
);
container_set_child_growable
(
g
,
top_container
,
text
,
1
);
e
->
legacy
=
new_view_textlist
(
10000
,
10
,
g
,
text
);
}
void
view_add_log
(
view
*
v
,
char
*
log
,
event_handler
*
h
,
void
*
database
,
...
...
@@ -251,6 +259,17 @@ int main(int n, char **v)
enb_main_gui
(
&
eg
,
g
,
h
,
database
);
for
(
i
=
0
;
i
<
number_of_events
;
i
++
)
{
logger
*
textlog
;
char
*
name
,
*
desc
;
database_get_generic_description
(
database
,
i
,
&
name
,
&
desc
);
if
(
strncmp
(
name
,
"LEGACY_"
,
7
)
!=
0
)
continue
;
textlog
=
new_textlog
(
h
,
database
,
name
,
desc
);
logger_add_view
(
textlog
,
eg
.
legacy
);
free
(
name
);
free
(
desc
);
}
on_off
(
database
,
"ENB_INPUT_SIGNAL"
,
is_on
,
1
);
on_off
(
database
,
"ENB_UL_TICK"
,
is_on
,
1
);
on_off
(
database
,
"ENB_DL_TICK"
,
is_on
,
1
);
...
...
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