wininet: Get rid of WORKREQ* types.
This commit is contained in:
parent
302fd67e61
commit
f824e20010
@ -1248,9 +1248,9 @@ static void FTP_ReceiveRequestData(ftp_file_t *file, BOOL first_notif)
|
|||||||
sizeof(INTERNET_ASYNC_RESULT));
|
sizeof(INTERNET_ASYNC_RESULT));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void FTPFILE_AsyncQueryDataAvailableProc(WORKREQUEST *workRequest)
|
static void FTPFILE_AsyncQueryDataAvailableProc(task_header_t *task)
|
||||||
{
|
{
|
||||||
ftp_file_t *file = (ftp_file_t*)workRequest->hdr;
|
ftp_file_t *file = (ftp_file_t*)task->hdr;
|
||||||
|
|
||||||
FTP_ReceiveRequestData(file, FALSE);
|
FTP_ReceiveRequestData(file, FALSE);
|
||||||
}
|
}
|
||||||
|
@ -2993,9 +2993,9 @@ static DWORD HTTPREQ_WriteFile(object_header_t *hdr, const void *buffer, DWORD s
|
|||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void AsyncQueryDataAvailableProc(WORKREQUEST *workRequest)
|
static void AsyncQueryDataAvailableProc(task_header_t *task)
|
||||||
{
|
{
|
||||||
http_request_t *req = (http_request_t*)workRequest->hdr;
|
http_request_t *req = (http_request_t*)task->hdr;
|
||||||
|
|
||||||
HTTP_ReceiveRequestData(req, FALSE);
|
HTTP_ReceiveRequestData(req, FALSE);
|
||||||
}
|
}
|
||||||
|
@ -3715,16 +3715,16 @@ void *alloc_async_task(object_header_t *hdr, async_task_proc_t proc, size_t size
|
|||||||
* RETURNS
|
* RETURNS
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
DWORD INTERNET_AsyncCall(LPWORKREQUEST lpWorkRequest)
|
DWORD INTERNET_AsyncCall(task_header_t *task)
|
||||||
{
|
{
|
||||||
BOOL bSuccess;
|
BOOL bSuccess;
|
||||||
|
|
||||||
TRACE("\n");
|
TRACE("\n");
|
||||||
|
|
||||||
bSuccess = QueueUserWorkItem(INTERNET_WorkerThreadFunc, lpWorkRequest, WT_EXECUTELONGFUNCTION);
|
bSuccess = QueueUserWorkItem(INTERNET_WorkerThreadFunc, task, WT_EXECUTELONGFUNCTION);
|
||||||
if (!bSuccess)
|
if (!bSuccess)
|
||||||
{
|
{
|
||||||
heap_free(lpWorkRequest);
|
heap_free(task);
|
||||||
return ERROR_INTERNET_ASYNC_THREAD_FAILED;
|
return ERROR_INTERNET_ASYNC_THREAD_FAILED;
|
||||||
}
|
}
|
||||||
return ERROR_SUCCESS;
|
return ERROR_SUCCESS;
|
||||||
|
@ -354,14 +354,14 @@ typedef struct
|
|||||||
netconn_stream_t netconn_stream;
|
netconn_stream_t netconn_stream;
|
||||||
} http_request_t;
|
} http_request_t;
|
||||||
|
|
||||||
typedef struct WORKREQ task_header_t;
|
typedef struct task_header_t task_header_t;
|
||||||
typedef void (*async_task_proc_t)(task_header_t*);
|
typedef void (*async_task_proc_t)(task_header_t*);
|
||||||
|
|
||||||
typedef struct WORKREQ
|
struct task_header_t
|
||||||
{
|
{
|
||||||
async_task_proc_t proc;
|
async_task_proc_t proc;
|
||||||
object_header_t *hdr;
|
object_header_t *hdr;
|
||||||
} WORKREQUEST, *LPWORKREQUEST;
|
};
|
||||||
|
|
||||||
void *alloc_async_task(object_header_t*,async_task_proc_t,size_t) DECLSPEC_HIDDEN;
|
void *alloc_async_task(object_header_t*,async_task_proc_t,size_t) DECLSPEC_HIDDEN;
|
||||||
|
|
||||||
@ -393,7 +393,7 @@ BOOL set_cookie(const WCHAR*,const WCHAR*,const WCHAR*,const WCHAR*) DECLSPEC_HI
|
|||||||
|
|
||||||
void INTERNET_SetLastError(DWORD dwError) DECLSPEC_HIDDEN;
|
void INTERNET_SetLastError(DWORD dwError) DECLSPEC_HIDDEN;
|
||||||
DWORD INTERNET_GetLastError(void) DECLSPEC_HIDDEN;
|
DWORD INTERNET_GetLastError(void) DECLSPEC_HIDDEN;
|
||||||
DWORD INTERNET_AsyncCall(LPWORKREQUEST lpWorkRequest) DECLSPEC_HIDDEN;
|
DWORD INTERNET_AsyncCall(task_header_t*) DECLSPEC_HIDDEN;
|
||||||
LPSTR INTERNET_GetResponseBuffer(void) DECLSPEC_HIDDEN;
|
LPSTR INTERNET_GetResponseBuffer(void) DECLSPEC_HIDDEN;
|
||||||
LPSTR INTERNET_GetNextLine(INT nSocket, LPDWORD dwLen) DECLSPEC_HIDDEN;
|
LPSTR INTERNET_GetNextLine(INT nSocket, LPDWORD dwLen) DECLSPEC_HIDDEN;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user