Commit e9f5d8bc authored by Tommy Olofsson's avatar Tommy Olofsson
Browse files

Added more debug prints. There is a problem registering proto types.

parent 1d721c3a
......@@ -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;
}
......
......@@ -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,
......
No preview for this file type
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment