typedef struct { CTL_STATUS_t (*__read)(CTL_STREAM_t , void *, size_t); CTL_STATUS_t (*__write)(CTL_STREAM_t , const void *, size_t); CTL_STATUS_t (*__flush)(CTL_STREAM_t); CTL_STATUS_t (*__close)(CTL_STREAM_t); } CTL_STREAM_DRIVER_t;
CTL_STREAM_DRIVER_t defines the methods that implement I/O to a stream.