Changeset 24ab58b3 in mainline for uspace/lib/net/netif/netif_nil_bundle.c
- Timestamp:
- 2010-04-06T11:41:48Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 14f1db0
- Parents:
- 4dd8529
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/net/netif/netif_nil_bundle.c
r4dd8529 r24ab58b3 45 45 #include <netif.h> 46 46 47 /** Distributes the messages between the module parts. 48 * @param[in] callid The message identifier. 49 * @param[in] call The message parameters. 50 * @param[out] answer The message answer parameters. 51 * @param[out] answer_count The last parameter for the actual answer in the answer parameter. 52 * @returns EOK on success. 53 * @returns ENOTSUP if the message is not known. 54 * @returns Other error codes as defined for each specific module message function. 47 /** Distribute the messages between the module parts. 48 * 49 * @param[in] name Module name. 50 * @param[in] callid The message identifier. 51 * @param[in] call The message parameters. 52 * @param[out] answer The message answer parameters. 53 * @param[out] answer_count The last parameter for the actual 54 * answer in the answer parameter. 55 * 56 * @return EOK on success. 57 * @return ENOTSUP if the message is not known. 58 * @return Other error codes as defined for each specific module message function. 59 * 55 60 */ 56 int netif_nil_module_message(ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count){ 57 if(IS_NET_NIL_MESSAGE(call) || (IPC_GET_METHOD(*call) == IPC_M_CONNECT_TO_ME)){ 58 return nil_message(callid, call, answer, answer_count); 59 }else{ 60 return netif_message(callid, call, answer, answer_count); 61 } 61 int netif_nil_module_message(const char *name, ipc_callid_t callid, 62 ipc_call_t *call, ipc_call_t *answer, int *answer_count) 63 { 64 if (IS_NET_NIL_MESSAGE(call) 65 || (IPC_GET_METHOD(*call) == IPC_M_CONNECT_TO_ME)) 66 return nil_message(name, callid, call, answer, answer_count); 67 else 68 return netif_message(name, callid, call, answer, answer_count); 62 69 } 63 70
Note:
See TracChangeset
for help on using the changeset viewer.