Network kit: use off_t for download and upload size
This change only applies in libnetservices.a. The implementation in libbnetapi.so will use the original definitions. Change-Id: I0aaa5a40af5fbcafaf233c32206cb4af862f8141 Reviewed-on: https://review.haiku-os.org/c/haiku/+/2465 Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
This commit is contained in:
parent
9984ca59f6
commit
626466daa4
@ -54,10 +54,19 @@ public:
|
|||||||
virtual void DataReceived(BUrlRequest* caller,
|
virtual void DataReceived(BUrlRequest* caller,
|
||||||
const char* data, off_t position,
|
const char* data, off_t position,
|
||||||
ssize_t size);
|
ssize_t size);
|
||||||
|
|
||||||
|
#ifdef LIBNETAPI_DEPRECATED
|
||||||
virtual void DownloadProgress(BUrlRequest* caller,
|
virtual void DownloadProgress(BUrlRequest* caller,
|
||||||
ssize_t bytesReceived, ssize_t bytesTotal);
|
ssize_t bytesReceived, ssize_t bytesTotal);
|
||||||
virtual void UploadProgress(BUrlRequest* caller,
|
virtual void UploadProgress(BUrlRequest* caller,
|
||||||
ssize_t bytesSent, ssize_t bytesTotal);
|
ssize_t bytesSent, ssize_t bytesTotal);
|
||||||
|
#else
|
||||||
|
virtual void DownloadProgress(BUrlRequest* caller,
|
||||||
|
off_t bytesReceived, off_t bytesTotal);
|
||||||
|
virtual void UploadProgress(BUrlRequest* caller,
|
||||||
|
off_t bytesSent, off_t bytesTotal);
|
||||||
|
#endif
|
||||||
|
|
||||||
virtual void RequestCompleted(BUrlRequest* caller,
|
virtual void RequestCompleted(BUrlRequest* caller,
|
||||||
bool success);
|
bool success);
|
||||||
virtual void DebugMessage(BUrlRequest* caller,
|
virtual void DebugMessage(BUrlRequest* caller,
|
||||||
|
@ -44,10 +44,19 @@ public:
|
|||||||
virtual void DataReceived(BUrlRequest* caller,
|
virtual void DataReceived(BUrlRequest* caller,
|
||||||
const char* data, off_t position,
|
const char* data, off_t position,
|
||||||
ssize_t size);
|
ssize_t size);
|
||||||
|
|
||||||
|
#ifdef LIBNETAPI_DEPRECATED
|
||||||
virtual void DownloadProgress(BUrlRequest* caller,
|
virtual void DownloadProgress(BUrlRequest* caller,
|
||||||
ssize_t bytesReceived, ssize_t bytesTotal);
|
ssize_t bytesReceived, ssize_t bytesTotal);
|
||||||
virtual void UploadProgress(BUrlRequest* caller,
|
virtual void UploadProgress(BUrlRequest* caller,
|
||||||
ssize_t bytesSent, ssize_t bytesTotal);
|
ssize_t bytesSent, ssize_t bytesTotal);
|
||||||
|
#else
|
||||||
|
virtual void DownloadProgress(BUrlRequest* caller,
|
||||||
|
off_t bytesReceived, off_t bytesTotal);
|
||||||
|
virtual void UploadProgress(BUrlRequest* caller,
|
||||||
|
off_t bytesSent, off_t bytesTotal);
|
||||||
|
#endif
|
||||||
|
|
||||||
virtual void RequestCompleted(BUrlRequest* caller,
|
virtual void RequestCompleted(BUrlRequest* caller,
|
||||||
bool success);
|
bool success);
|
||||||
virtual void DebugMessage(BUrlRequest* caller,
|
virtual void DebugMessage(BUrlRequest* caller,
|
||||||
|
@ -69,12 +69,12 @@ public:
|
|||||||
fDownloadIO->Write(data, size);
|
fDownloadIO->Write(data, size);
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void DownloadProgress(BUrlRequest* caller, ssize_t bytesReceived,
|
virtual void DownloadProgress(BUrlRequest* caller, off_t bytesReceived,
|
||||||
ssize_t bytesTotal)
|
ssize_t bytesTotal)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void UploadProgress(BUrlRequest* caller, ssize_t bytesSent,
|
virtual void UploadProgress(BUrlRequest* caller, off_t bytesSent,
|
||||||
ssize_t bytesTotal)
|
ssize_t bytesTotal)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -31,9 +31,9 @@ public:
|
|||||||
const char* data, off_t position,
|
const char* data, off_t position,
|
||||||
ssize_t size);
|
ssize_t size);
|
||||||
void DownloadProgress(BUrlRequest* caller,
|
void DownloadProgress(BUrlRequest* caller,
|
||||||
ssize_t bytesReceived, ssize_t bytesTotal);
|
off_t bytesReceived, ssize_t bytesTotal);
|
||||||
void UploadProgress(BUrlRequest* caller,
|
void UploadProgress(BUrlRequest* caller,
|
||||||
ssize_t bytesSent, ssize_t bytesTotal);
|
off_t bytesSent, ssize_t bytesTotal);
|
||||||
void RequestCompleted(BUrlRequest* caller,
|
void RequestCompleted(BUrlRequest* caller,
|
||||||
bool success);
|
bool success);
|
||||||
void DebugMessage(BUrlRequest* caller,
|
void DebugMessage(BUrlRequest* caller,
|
||||||
|
Loading…
Reference in New Issue
Block a user