From 0369cb5dc2e5dae4acdb0753c3b309ef874c96ae Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 20 May 2014 13:18:47 +0300 Subject: Move downloadstatus into separate file. --- src/net/download.h | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'src/net/download.h') diff --git a/src/net/download.h b/src/net/download.h index bc12a8f7c..0d2997b22 100644 --- a/src/net/download.h +++ b/src/net/download.h @@ -19,26 +19,17 @@ * along with this program. If not, see . */ - #ifndef NET_DOWNLOAD_H #define NET_DOWNLOAD_H +#include "net/downloadstatus.h" + #include #include #include "localconsts.h" -enum DownloadStatus -{ - DOWNLOAD_STATUS_CANCELLED = -3, - DOWNLOAD_STATUS_THREAD_ERROR = -2, - DOWNLOAD_STATUS_ERROR = -1, - DOWNLOAD_STATUS_STARTING = 0, - DOWNLOAD_STATUS_IDLE, - DOWNLOAD_STATUS_COMPLETE -}; - -typedef int (*DownloadUpdate)(void *ptr, DownloadStatus status, +typedef int (*DownloadUpdate)(void *ptr, DownloadStatus::Type status, size_t total, size_t remaining); // Matches what CURL expects -- cgit v1.2.3-60-g2f50