diff options
Diffstat (limited to 'src/net/download.h')
-rw-r--r-- | src/net/download.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/net/download.h b/src/net/download.h index 26810f3f..b3501363 100644 --- a/src/net/download.h +++ b/src/net/download.h @@ -35,15 +35,13 @@ enum DownloadStatus DOWNLOAD_STATUS_COMPLETE }; -typedef int (*DownloadUpdate)(void *ptr, DownloadStatus status, - size_t total, size_t remaining); +using DownloadUpdate = int (*)(void *, DownloadStatus, size_t, size_t); // Matches what CURL expects -typedef size_t (*WriteFunction)( void *ptr, size_t size, size_t nmemb, - void *stream); +using WriteFunction = size_t (*)(void *, size_t, size_t, void *); struct SDL_Thread; -typedef void CURL; +using CURL = void; struct curl_slist; namespace Net { |