Skip to content
Snippets Groups Projects
Select Git revision
  • 113ec3bc0efd2c411ccd433af491e57bbf40ff42
  • master default protected
  • julia1
  • furuta
  • v0.2.0
  • v0.1.0
6 results

README.md

Blame
  • jg.h 1008 B
    /* LabComm declarations:
    sample struct {
      double b;
      int c;
      int d;
      string e;
      boolean f;
      short g;
      long h;
      float i;
    } foo;
    */
    
    
    #ifndef __LABCOMM_jg_H__
    #define __LABCOMM_jg_H__
    
    #include <stdint.h>
    #include "labcomm.h"
    
    #ifndef PREDEFINED_jg_foo
    typedef struct {
      double b;
      int32_t c;
      int32_t d;
      char* e;
      uint8_t f;
      int16_t g;
      int64_t h;
      float i;
    } jg_foo;
    #endif
    int labcomm_decoder_register_jg_foo(
      struct labcomm_decoder *d,
      void (*handler)(
        jg_foo *v,
        void *context
      ),
      void *context
    );
    int labcomm_decoder_ioctl_jg_foo(
      struct labcomm_decoder *d,
      int ioctl_action,
      ...
    );
    int labcomm_encoder_register_jg_foo(
      struct labcomm_encoder *e);
    int labcomm_encode_jg_foo(
      struct labcomm_encoder *e,
      jg_foo *v
    );
    int labcomm_encoder_ioctl_jg_foo(
      struct labcomm_encoder *e,
      int ioctl_action,
      ...
    );
    extern int labcomm_sizeof_jg_foo(jg_foo *v);
    
    void init_jg__signatures(void);
    #define LABCOMM_FORALL_SAMPLES_jg(func, sep) \
      func(foo, jg_foo)
    #endif