Rev 3912 | Rev 4350 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 3912 | Rev 4307 | ||
|---|---|---|---|
| Line 31... | Line 31... | ||
| 31 | */ |
31 | */ |
| 32 | 32 | ||
| 33 | /** @file |
33 | /** @file |
| 34 | */ |
34 | */ |
| 35 | 35 | ||
| - | 36 | #ifndef __NET_MODULES_H__ |
|
| - | 37 | #define __NET_MODULES_H__ |
|
| - | 38 | ||
| 36 | #include <async.h> |
39 | #include <async.h> |
| 37 | 40 | ||
| 38 | #include <ipc/ipc.h> |
41 | #include <ipc/ipc.h> |
| 39 | #include <ipc/services.h> |
42 | #include <ipc/services.h> |
| 40 | 43 | ||
| Line 45... | Line 48... | ||
| 45 | */ |
48 | */ |
| 46 | #define CONVERT_SIZE( type_from, type_to, count ) (( sizeof( type_from ) / sizeof( type_to )) * ( count )) |
49 | #define CONVERT_SIZE( type_from, type_to, count ) (( sizeof( type_from ) / sizeof( type_to )) * ( count )) |
| 47 | 50 | ||
| 48 | #define REGISTER_ME( me, phonehash ) ipc_connect_to_me( PHONE_NS, ( me ), 0, 0, ( phonehash )) |
51 | #define REGISTER_ME( me, phonehash ) ipc_connect_to_me( PHONE_NS, ( me ), 0, 0, ( phonehash )) |
| 49 | 52 | ||
| 50 | int connect_to_service( services_t need ); |
53 | typedef int connect_module_t( services_t need ); |
| - | 54 | ||
| - | 55 | connect_module_t connect_to_service; |
|
| 51 | int bind_service( services_t need, ipcarg_t arg1, ipcarg_t arg2, ipcarg_t arg3, async_client_conn_t client_receiver ); |
56 | int bind_service( services_t need, ipcarg_t arg1, ipcarg_t arg2, ipcarg_t arg3, async_client_conn_t client_receiver ); |
| 52 | 57 | ||
| - | 58 | #endif |
|
| - | 59 | ||
| 53 | /** @} |
60 | /** @} |
| 54 | */ |
61 | */ |