modules.h File Reference

Generic module functions. More...

#include <async.h>
#include <ipc/ipc.h>
#include <ipc/services.h>
#include <sys/time.h>
Include dependency graph for modules.h:
This graph shows which files directly or indirectly include this file:

Defines

#define CONVERT_SIZE(type_from, type_to, count)   ((sizeof(type_from) / sizeof(type_to)) * (count))
 Converts the data length between different types.
#define REGISTER_ME(me, phonehash)   ipc_connect_to_me(PHONE_NS, (me), 0, 0, (phonehash))
 Registers the module service at the name server.

Typedefs

typedef int connect_module_t (services_t need)
 Connect to the needed module function type definition.

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.

Detailed Description

Generic module functions.


Generated on Thu Mar 11 20:46:07 2010 for Networking and TCP/IP stack for HelenOS system by  doxygen 1.6.1