Generic module functions implementation. More...
#include <async.h>#include <malloc.h>#include <ipc/ipc.h>#include <ipc/services.h>#include <sys/time.h>#include "err.h"#include "modules.h"
Defines | |
| #define | MODULE_WAIT_TIME (10 * 1000) |
| The time between connect requests in microseconds. | |
Functions | |
| void | answer_call (ipc_callid_t callid, int result, ipc_call_t *answer, int answer_count) |
| Answers the call. | |
| int | bind_service (services_t need, ipcarg_t arg1, ipcarg_t arg2, ipcarg_t arg3, async_client_conn_t client_receiver) |
| Creates bidirectional connection with the needed module service and registers the message receiver. | |
| int | bind_service_timeout (services_t need, ipcarg_t arg1, ipcarg_t arg2, ipcarg_t arg3, async_client_conn_t client_receiver, suseconds_t timeout) |
| Creates bidirectional connection with the needed module service and registers the message receiver. | |
| int | connect_to_service (services_t need) |
| Connects to the needed module. | |
| int | connect_to_service_timeout (services_t need, suseconds_t timeout) |
| Connects to the needed module. | |
| int | data_receive (void **data, size_t *length) |
| Receives data from the other party. | |
| int | data_reply (void *data, size_t data_length) |
| Replies the data to the other party. | |
| void | refresh_answer (ipc_call_t *answer, int *answer_count) |
| Refreshes answer structure and parameters count. | |
Generic module functions implementation.
1.6.1