Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
...@@ -216,7 +216,7 @@ free_encoder: ...@@ -216,7 +216,7 @@ free_encoder:
#endif #endif
int labcomm_internal_encoder_register( static int labcomm_internal_encoder_reg_type(
struct labcomm_encoder *e, struct labcomm_encoder *e,
struct labcomm_signature *signature, struct labcomm_signature *signature,
labcomm_encoder_function encode) labcomm_encoder_function encode)
...@@ -257,6 +257,18 @@ out: ...@@ -257,6 +257,18 @@ out:
return result; 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( int labcomm_internal_encode(
struct labcomm_encoder *e, struct labcomm_encoder *e,
struct labcomm_signature *signature, struct labcomm_signature *signature,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment