Rev 1472 | Rev 1500 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 1472 | Rev 1490 | ||
|---|---|---|---|
| Line 33... | Line 33... | ||
| 33 | #include <psthread.h> |
33 | #include <psthread.h> |
| 34 | #include <sys/time.h> |
34 | #include <sys/time.h> |
| 35 | #include <atomic.h> |
35 | #include <atomic.h> |
| 36 | 36 | ||
| 37 | typedef ipc_callid_t aid_t; |
37 | typedef ipc_callid_t aid_t; |
| - | 38 | typedef void (*async_client_conn_t)(ipc_callid_t callid, ipc_call_t *call); |
|
| 38 | 39 | ||
| 39 | int async_manager(void); |
40 | int async_manager(void); |
| 40 | ipc_callid_t async_get_call(ipc_call_t *data); |
41 | ipc_callid_t async_get_call(ipc_call_t *data); |
| 41 | 42 | ||
| 42 | 43 | ||
| Line 70... | Line 71... | ||
| 70 | ipc_call_t *call, |
71 | ipc_call_t *call, |
| 71 | void (*cthread)(ipc_callid_t,ipc_call_t *)); |
72 | void (*cthread)(ipc_callid_t,ipc_call_t *)); |
| 72 | void async_usleep(suseconds_t timeout); |
73 | void async_usleep(suseconds_t timeout); |
| 73 | void async_create_manager(void); |
74 | void async_create_manager(void); |
| 74 | void async_destroy_manager(void); |
75 | void async_destroy_manager(void); |
| - | 76 | void async_set_client_connection(async_client_conn_t conn); |
|
| 75 | int _async_init(void); |
77 | int _async_init(void); |
| 76 | 78 | ||
| 77 | /* Should be defined by application */ |
79 | /* Should be defined by application */ |
| 78 | void client_connection(ipc_callid_t callid, ipc_call_t *call) __attribute__((weak)); |
- | |
| 79 | void interrupt_received(ipc_call_t *call) __attribute__((weak)); |
80 | void interrupt_received(ipc_call_t *call) __attribute__((weak)); |
| 80 | 81 | ||
| 81 | 82 | ||
| 82 | extern atomic_t async_futex; |
83 | extern atomic_t async_futex; |
| 83 | 84 | ||