Archived
1
0
This repository has been archived on 2024-10-17. You can view files and clone it, but cannot push or open issues or pull requests.
winamp/Src/Plugins/Input/in_flv/BackgroundDownloader.h
2024-09-24 14:54:57 +02:00

19 lines
340 B
C++

#pragma once
#include <bfc/platform/types.h>
class api_httpreceiver;
class Downloader
{
public:
class DownloadCallback
{
public:
virtual int OnConnect(api_httpreceiver *http)=0;
virtual int OnData(void *buffer, size_t bufferSize)=0;
};
bool Download(const char *url, DownloadCallback *callback, uint64_t startPosition = 0);
};