#ifndef GMIO_TRANSFER_H #define GMIO_TRANSFER_H #include "global.h" #include "stream.h" #include "task_control.h" /*! Defines data required for any transfer(read/write) operation */ struct gmio_transfer { /*! The stream to be used for I/O */ gmio_stream_t stream; /*! The optional control object used to handle progress of the transfer */ gmio_task_control_t task_control; /*! Pointer on a user memory area used by the transfer as a buffer for stream optimization */ void* buffer; /*! Size (in bytes) of the memory buffer */ size_t buffer_size; }; typedef struct gmio_transfer gmio_transfer_t; #endif /* GMIO_TRANSFER_H */