Skip to content
Snippets Groups Projects
Select Git revision
  • fb8d093502cc62e6ffcac3350bcf3656fc54ce2d
  • master default
  • labcomm2006
  • typedefs
  • anders.blomdell
  • typeref
  • pragma
  • compiler-refactoring
  • labcomm2013
  • v2014.4
  • v2006.0
  • v2014.3
  • v2014.2
  • v2014.1
  • v2014.0
  • v2013.0
16 results

test_simple.c

Blame
  • Forked from Anders Blomdell / LabComm
    586 commits behind the upstream repository.
    user avatar
    Anders Nilsson authored
    b3a45cd4
    History
    test_simple.c 414 B
    #include <labcomm.h>
    #include <labcomm_fd_reader_writer.h>
    #include "gen/simple.h"
    
    void simple_an_int_handler(simple_an_int *v,
    		      void *context)
    {
      struct labcomm_encoder *e = context;
    
      labcomm_encode_simple_an_int(e, v);
    }
    
    int main(int argc, char *argv[]) {
      struct labcomm_decoder *d;
      struct labcomm_encoder *e;
    
      labcomm_decoder_register_simple_an_int(d, simple_an_int_handler, e);
      return 0;
    }