ev3duder  0.3.0
EV3 Downloader/Uploader
ev3_io.h
Go to the documentation of this file.
1 #ifndef EV3DUDER_EV3_IO_H
2 #define EV3DUDER_EV3_IO_H
3 #undef EXTERN
5 #ifdef MAIN
6 #define EXTERN
7 #else
8 #define EXTERN extern
9 #endif
10 
11 #include "defs.h"
12 // simple wrapper
13 EXTERN int (*ev3_write)(void *, const u8*, size_t);
14 EXTERN int (*ev3_read_timeout)(void *, u8*, size_t, int milliseconds);
15 EXTERN const wchar_t* (*ev3_error)(void *);
16 EXTERN void(*ev3_close)(void*);
17 EXTERN void *handle;
18 #endif
19 
EXTERN void * handle
Definition: ev3_io.h:17
EXTERN void(* ev3_close)(void *)
Definition: ev3_io.h:16
EXTERN int(* ev3_read_timeout)(void *, u8 *, size_t, int milliseconds)
Definition: ev3_io.h:14
uint8_t u8
Definition: defs.h:9
#define EXTERN
For avoiding the need to separately define and declare stuff.
Definition: ev3_io.h:8
EXTERN int(* ev3_write)(void *, const u8 *, size_t)
Definition: ev3_io.h:13