Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
oai
openairinterface5G
Commits
e6d5f22c
Commit
e6d5f22c
authored
May 01, 2016
by
Cédric Roux
Browse files
add message 1 to the T
This message sends configuration for all events.
parent
d079dadb
Changes
1
Hide whitespace changes
Inline
Side-by-side
common/utils/T/T.c
View file @
e6d5f22c
...
...
@@ -31,6 +31,7 @@ static void get_message(int s)
char
t
;
int
l
;
int
id
;
int
is_on
;
if
(
read
(
s
,
&
t
,
1
)
!=
1
)
abort
();
printf
(
"got mess %d
\n
"
,
t
);
...
...
@@ -45,6 +46,18 @@ printf("got mess %d\n", t);
l
--
;
}
break
;
case
1
:
/* set IDs as given */
/* optimize? */
if
(
read
(
s
,
&
l
,
sizeof
(
int
))
!=
sizeof
(
int
))
abort
();
id
=
0
;
while
(
l
)
{
if
(
read
(
s
,
&
is_on
,
sizeof
(
int
))
!=
sizeof
(
int
))
abort
();
T_IDs
[
id
]
=
is_on
;
id
++
;
l
--
;
}
break
;
}
}
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment