Commit dcbea31a authored by Sven Gestegård Robertz's avatar Sven Gestegård Robertz
Browse files

put back more pragma stuff, c encoder working as before

parent d6c8fa44
......@@ -216,7 +216,7 @@ free_encoder:
#endif
int labcomm_internal_encoder_register(
static int labcomm_internal_encoder_reg_type(
struct labcomm_encoder *e,
struct labcomm_signature *signature,
labcomm_encoder_function encode)
......@@ -257,6 +257,18 @@ out:
return result;
}
int labcomm_internal_encoder_register(
struct labcomm_encoder *e,
struct labcomm_signature *signature,
labcomm_encoder_function encode)
{
if(e->context_type == LABCOMM_PRAGMA && e->context){
e=((struct pragma_packet_builder *)e->context)->parent;
}
return labcomm_internal_encoder_reg_type(
e, signature, encode);
}
int labcomm_internal_encode(
struct labcomm_encoder *e,
struct labcomm_signature *signature,
......
Markdown is supported
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