14 #ifndef OPENOCD_HELPER_FILEIO_H
15 #define OPENOCD_HELPER_FILEIO_H
19 #define FILEIO_MAX_ERROR_STRING (128)
48 size_t size,
const void *
buffer,
size_t *size_written);
54 #define ERROR_FILEIO_LOCATION_UNKNOWN (-1200)
55 #define ERROR_FILEIO_NOT_FOUND (-1201)
56 #define ERROR_FILEIO_OPERATION_FAILED (-1202)
57 #define ERROR_FILEIO_ACCESS_NOT_SUPPORTED (-1203)
58 #define ERROR_FILEIO_RESOURCE_TYPE_UNKNOWN (-1204)
59 #define ERROR_FILEIO_OPERATION_NOT_SUPPORTED (-1205)
int fileio_write(struct fileio *fileio, size_t size, const void *buffer, size_t *size_written)
int fileio_seek(struct fileio *fileio, size_t position)
int fileio_write_u32(struct fileio *fileio, uint32_t data)
int fileio_read(struct fileio *fileio, size_t size, void *buffer, size_t *size_read)
int fileio_read_u32(struct fileio *fileio, uint32_t *data)
int fileio_close(struct fileio *fileio)
int fileio_size(struct fileio *fileio, size_t *size)
FIX!!!!
int fileio_fgets(struct fileio *fileio, size_t size, void *buffer)
int fileio_feof(struct fileio *fileio)
int fileio_open(struct fileio **fileio, const char *url, enum fileio_access access_type, enum fileio_type type)
size_t size
Size of the control block search area.