while'd version of u8vector-append replaced back with tail recursion version
[mot-flash.git] / iface_type.h
blob31b87c0d4380fd730929ae914bcacda482cec5b3
1 #ifndef IFACE_TYPE_H
2 #define IFACE_TYPE_H
4 #define EXTRACT_IFACE(smob) ((struct flash_iface*)SCM_SMOB_DATA(smob))
6 extern scm_t_bits flash_iface_tag;
8 struct flash_iface {
9 void *handle;
11 int (*iface_close)(void*);
12 int (*iface_write)(void*, uint8_t*, int, const char**);
13 int (*iface_read)(void*, uint8_t*, int, const char**);
16 void init_flash_iface_type(void);
18 #endif // IFACE_TYPE_H