Redesign of the server communication protocol to allow arbitrary sized
[wine] / server / async.c
1 /*
2  * Server-side support for async i/o operations
3  *
4  * Copyright (C) 1998 Alexandre Julliard
5  * Copyright (C) 2000 Mike McCormack
6  *
7  */
8
9 #include "config.h"
10
11 #include <assert.h>
12 #include <string.h>
13 #include <stdlib.h>
14 #include <unistd.h>
15
16 #include "handle.h"
17 #include "thread.h"
18 #include "request.h"
19
20
21 DECL_HANDLER(create_async)
22 {
23     struct object *obj;
24
25     if (!(obj = get_handle_obj( current->process, req->file_handle, 0, NULL)) )
26         return;
27
28     /* FIXME: check if this object is allowed to do overlapped I/O */
29
30     /* FIXME: this should be a function pointer */
31     reply->timeout = get_serial_async_timeout(obj,req->type,req->count);
32
33     release_object(obj);
34 }