Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Robotlab
firefly
Commits
e9f5d8bc
Commit
e9f5d8bc
authored
Mar 31, 2014
by
Tommy Olofsson
Browse files
Added more debug prints. There is a problem registering proto types.
parent
1d721c3a
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/protocol/firefly_protocol.c
View file @
e9f5d8bc
...
...
@@ -40,34 +40,46 @@ void reg_proto_sigs(struct labcomm_encoder *enc,
struct
labcomm_decoder
*
dec
,
struct
firefly_connection
*
conn
)
{
struct
firefly_transport_connection
*
orig_transport
=
conn
->
transport
;
struct
firefly_transport_connection
*
orig_transport
;
printf
(
"in %s
\n
"
,
__func__
);
orig_transport
=
conn
->
transport
;
conn
->
transport
=
&
sig_transport
;
printf
(
"reg decoders
\n
"
);
printf
(
"reg ds
\n
"
);
labcomm_decoder_register_firefly_protocol_data_sample
(
dec
,
handle_data_sample
,
conn
);
printf
(
"reg chan req
\n
"
);
labcomm_decoder_register_firefly_protocol_channel_request
(
dec
,
handle_channel_request
,
conn
);
printf
(
"reg chan resp
\n
"
);
labcomm_decoder_register_firefly_protocol_channel_response
(
dec
,
handle_channel_response
,
conn
);
printf
(
"reg chan ack
\n
"
);
labcomm_decoder_register_firefly_protocol_channel_ack
(
dec
,
handle_channel_ack
,
conn
);
printf
(
"reg chan cl
\n
"
);
labcomm_decoder_register_firefly_protocol_channel_close
(
dec
,
handle_channel_close
,
conn
);
printf
(
"reg ack
\n
"
);
labcomm_decoder_register_firefly_protocol_ack
(
dec
,
handle_ack
,
conn
);
printf
(
"reg restr req
\n
"
);
labcomm_decoder_register_firefly_protocol_channel_restrict_request
(
dec
,
handle_channel_restrict_request
,
conn
);
printf
(
"reg resrt ack
\n
"
);
labcomm_decoder_register_firefly_protocol_channel_restrict_ack
(
dec
,
handle_channel_restrict_ack
,
conn
);
printf
(
"reg encoders
\n
"
);
labcomm_encoder_register_firefly_protocol_data_sample
(
enc
);
labcomm_encoder_register_firefly_protocol_channel_request
(
enc
);
labcomm_encoder_register_firefly_protocol_channel_response
(
enc
);
...
...
@@ -77,6 +89,7 @@ void reg_proto_sigs(struct labcomm_encoder *enc,
labcomm_encoder_register_firefly_protocol_channel_restrict_request
(
enc
);
labcomm_encoder_register_firefly_protocol_channel_restrict_ack
(
enc
);
printf
(
"reg done"
);
conn
->
transport
=
orig_transport
;
}
...
...
src/protocol/firefly_protocol_connection.c
View file @
e9f5d8bc
...
...
@@ -118,6 +118,7 @@ int firefly_connection_open(
{
struct
firefly_connection
*
conn
;
conn
=
firefly_connection_new
(
actions
,
memory_replacements
,
event_queue
,
tc
);
return
conn
!=
NULL
?
conn
->
event_queue
->
offer_event_cb
(
conn
->
event_queue
,
FIREFLY_PRIORITY_HIGH
,
firefly_connection_open_event
,
...
...
tools/labComm.jar
View file @
e9f5d8bc
No preview for this file type
Write
Preview
Supports
Markdown
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