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
lizhongxiao
OpenXG-RAN
Commits
f0d32a86
Commit
f0d32a86
authored
May 02, 2016
by
Cedric Roux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
smaller event selector window
parent
98c46f70
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
4 deletions
+17
-4
common/utils/T/tracer/event_selector.c
common/utils/T/tracer/event_selector.c
+3
-3
common/utils/T/tracer/textlog.c
common/utils/T/tracer/textlog.c
+1
-1
common/utils/T/tracer/utils.c
common/utils/T/tracer/utils.c
+12
-0
common/utils/T/tracer/utils.h
common/utils/T/tracer/utils.h
+1
-0
No files found.
common/utils/T/tracer/event_selector.c
View file @
f0d32a86
...
...
@@ -102,7 +102,7 @@ event_selector *setup_event_selector(gui *g, void *database, int socket,
red
=
new_color
(
g
,
"#c93535"
);
green
=
new_color
(
g
,
"#2f9e2a"
);
win
=
new_toplevel_window
(
g
,
610
,
8
00
,
"event selector"
);
win
=
new_toplevel_window
(
g
,
470
,
3
00
,
"event selector"
);
main_container
=
new_container
(
g
,
VERTICAL
);
widget_add_child
(
g
,
win
,
main_container
,
-
1
);
...
...
@@ -124,8 +124,8 @@ event_selector *setup_event_selector(gui *g, void *database, int socket,
widget_add_child
(
g
,
left
,
new_label
(
g
,
"Events"
),
-
1
);
widget_add_child
(
g
,
right
,
new_label
(
g
,
"Groups"
),
-
1
);
events
=
new_text_list
(
g
,
300
,
10
,
new_color
(
g
,
"#b3c1e1"
));
groups
=
new_text_list
(
g
,
300
,
10
,
new_color
(
g
,
"#edd6cb"
));
events
=
new_text_list
(
g
,
235
,
10
,
new_color
(
g
,
"#b3c1e1"
));
groups
=
new_text_list
(
g
,
235
,
10
,
new_color
(
g
,
"#edd6cb"
));
widget_add_child
(
g
,
left
,
events
,
-
1
);
widget_add_child
(
g
,
right
,
groups
,
-
1
);
...
...
common/utils/T/tracer/textlog.c
View file @
f0d32a86
...
...
@@ -47,7 +47,7 @@ static void _event(void *p, event e)
switch
(
l
->
f
[
i
].
type
)
{
case
INSTRING
:
PUTS
(
&
l
->
o
,
l
->
f
[
i
].
s
);
break
;
case
INT
:
PUTI
(
&
l
->
o
,
e
.
e
[
l
->
f
[
i
].
event_arg
].
i
);
break
;
case
STRING
:
PUTS
(
&
l
->
o
,
e
.
e
[
l
->
f
[
i
].
event_arg
].
s
);
break
;
case
STRING
:
PUTS
_CLEAN
(
&
l
->
o
,
e
.
e
[
l
->
f
[
i
].
event_arg
].
s
);
break
;
case
BUFFER
:
PUTS
(
&
l
->
o
,
"{buffer size:"
);
PUTI
(
&
l
->
o
,
e
.
e
[
l
->
f
[
i
].
event_arg
].
bsize
);
...
...
common/utils/T/tracer/utils.c
View file @
f0d32a86
...
...
@@ -4,6 +4,7 @@
#include <pthread.h>
#include <time.h>
#include <unistd.h>
#include <ctype.h>
void
new_thread
(
void
*
(
*
f
)(
void
*
),
void
*
data
)
{
...
...
@@ -97,6 +98,17 @@ void PUTS(OBUF *o, char *s)
while
(
*
s
)
PUTC
(
o
,
*
s
++
);
}
static
int
clean
(
char
c
)
{
if
(
!
isprint
(
c
))
c
=
' '
;
return
c
;
}
void
PUTS_CLEAN
(
OBUF
*
o
,
char
*
s
)
{
while
(
*
s
)
PUTC
(
o
,
clean
(
*
s
++
));
}
void
PUTI
(
OBUF
*
o
,
int
i
)
{
char
s
[
64
];
...
...
common/utils/T/tracer/utils.h
View file @
f0d32a86
...
...
@@ -34,6 +34,7 @@ typedef struct {
void
PUTC
(
OBUF
*
o
,
char
c
);
void
PUTS
(
OBUF
*
o
,
char
*
s
);
void
PUTS_CLEAN
(
OBUF
*
o
,
char
*
s
);
void
PUTI
(
OBUF
*
o
,
int
i
);
#endif
/* _UTILS_H_ */
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