Changes in uspace/srv/net/modules.h [1a0fb3f8:aadf01e] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/modules.h
r1a0fb3f8 raadf01e 50 50 * @param[in] count The number units of the source type size. 51 51 */ 52 #define CONVERT_SIZE( type_from, type_to, count ) (( sizeof( type_from ) / sizeof( type_to )) * ( count))52 #define CONVERT_SIZE(type_from, type_to, count) ((sizeof(type_from) / sizeof(type_to)) * (count)) 53 53 54 54 /** Registers the module service at the name server. … … 56 56 * @param[out] phonehash The created phone hash. 57 57 */ 58 #define REGISTER_ME( me, phonehash ) ipc_connect_to_me( PHONE_NS, ( me ), 0, 0, ( phonehash))58 #define REGISTER_ME(me, phonehash) ipc_connect_to_me(PHONE_NS, (me), 0, 0, (phonehash)) 59 59 60 60 /** Connect to the needed module function type definition. … … 62 62 * @returns The phone of the needed service. 63 63 */ 64 typedef int connect_module_t( services_t need);64 typedef int connect_module_t(services_t need); 65 65 66 /** Connects to the needed module. 67 * @param[in] need The needed module service. 68 * @returns The phone of the needed service. 66 /** Answers the call. 67 * @param[in] callid The call identifier. 68 * @param[in] result The message processing result. 69 * @param[in] answer The message processing answer. 70 * @param[in] answer_count The number of answer parameters. 69 71 */ 70 int connect_to_service( services_t need ); 71 72 /** Connects to the needed module. 73 * @param[in] need The needed module service. 74 * @param[in] timeout The connection timeout in microseconds. No timeout if set to zero (0). 75 * @returns The phone of the needed service. 76 * @returns ETIMEOUT if the connection timeouted. 77 */ 78 int connect_to_service_timeout( services_t need, suseconds_t timeout ); 72 void answer_call(ipc_callid_t callid, int result, ipc_call_t * answer, int answer_count); 79 73 80 74 /** Creates bidirectional connection with the needed module service and registers the message receiver. … … 87 81 * @returns Other error codes as defined for the ipc_connect_to_me() function. 88 82 */ 89 int bind_service( services_t need, ipcarg_t arg1, ipcarg_t arg2, ipcarg_t arg3, async_client_conn_t client_receiver);83 int bind_service(services_t need, ipcarg_t arg1, ipcarg_t arg2, ipcarg_t arg3, async_client_conn_t client_receiver); 90 84 91 85 /** Creates bidirectional connection with the needed module service and registers the message receiver. … … 100 94 * @returns Other error codes as defined for the ipc_connect_to_me() function. 101 95 */ 102 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);96 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); 103 97 104 /** Answers the call. 105 * @param[in] callid The call identifier. 106 * @param[in] result The message processing result. 107 * @param[in] answer The message processing answer. 108 * @param[in] answer_count The number of answer parameters. 98 /** Connects to the needed module. 99 * @param[in] need The needed module service. 100 * @returns The phone of the needed service. 109 101 */ 110 void answer_call( ipc_callid_t callid, int result, ipc_call_t * answer, int answer_count);102 int connect_to_service(services_t need); 111 103 112 /** Refreshes answer structure and parameters count. 113 * Erases all attributes. 114 * @param[in,out] answer The message processing answer structure. 115 * @param[in,out] answer_count The number of answer parameters. 104 /** Connects to the needed module. 105 * @param[in] need The needed module service. 106 * @param[in] timeout The connection timeout in microseconds. No timeout if set to zero (0). 107 * @returns The phone of the needed service. 108 * @returns ETIMEOUT if the connection timeouted. 116 109 */ 117 void refresh_answer( ipc_call_t * answer, int * answer_count);110 int connect_to_service_timeout(services_t need, suseconds_t timeout); 118 111 119 112 /** Receives data from the other party. … … 127 120 * @returns Other error codes as defined for the async_data_write_finalize() function. 128 121 */ 129 int data_receive( void ** data, size_t * length);122 int data_receive(void ** data, size_t * length); 130 123 131 124 /** Replies the data to the other party. … … 137 130 * @returns Other error codes as defined for the async_data_read_finalize() function. 138 131 */ 139 int data_reply( void * data, size_t data_length ); 132 int data_reply(void * data, size_t data_length); 133 134 /** Refreshes answer structure and parameters count. 135 * Erases all attributes. 136 * @param[in,out] answer The message processing answer structure. 137 * @param[in,out] answer_count The number of answer parameters. 138 */ 139 void refresh_answer(ipc_call_t * answer, int * answer_count); 140 140 141 141 #endif
Note:
See TracChangeset
for help on using the changeset viewer.