diff options
Diffstat (limited to 'src/core/downloader.c')
-rw-r--r-- | src/core/downloader.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/core/downloader.c b/src/core/downloader.c index 82cb4b1..d745f36 100644 --- a/src/core/downloader.c +++ b/src/core/downloader.c @@ -153,9 +153,23 @@ static int downloader_xfer_deliver ( struct downloader *downloader, return rc; } +/** + * Get underlying data transfer buffer + * + * @v downloader Downloader + * @ret xferbuf Data transfer buffer, or NULL on error + */ +static struct xfer_buffer * +downloader_xfer_buffer ( struct downloader *downloader ) { + + /* Provide direct access to underlying data transfer buffer */ + return &downloader->buffer; +} + /** Downloader data transfer interface operations */ static struct interface_operation downloader_xfer_operations[] = { INTF_OP ( xfer_deliver, struct downloader *, downloader_xfer_deliver ), + INTF_OP ( xfer_buffer, struct downloader *, downloader_xfer_buffer ), INTF_OP ( intf_close, struct downloader *, downloader_finished ), }; |