Changeset f4f866c in mainline for uspace/lib/net/include/nil_local.h
- Timestamp:
- 2010-04-23T21:42:26Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6c39a907
- Parents:
- 38aaacc2 (diff), 80badbe (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/net/include/nil_local.h
r38aaacc2 rf4f866c 32 32 33 33 /** @file 34 * 35 * 34 * Network interface layer modules common skeleton. 35 * All network interface layer modules have to implement this interface. 36 36 */ 37 37 38 #ifndef __NET_NIL_ MODULE_H__39 #define __NET_NIL_ MODULE_H__38 #ifndef __NET_NIL_LOCAL_H__ 39 #define __NET_NIL_LOCAL_H__ 40 40 41 41 #include <ipc/ipc.h> 42 42 43 43 /** Module initialization. 44 * Is called by the module_start() function. 45 * @param[in] net_phone The networking moduel phone. 46 * @returns EOK on success. 47 * @returns Other error codes as defined for each specific module initialize function. 44 * 45 * Is called by the module_start() function. 46 * 47 * @param[in] net_phone The networking moduel phone. 48 * 49 * @return EOK on success. 50 * @return Other error codes as defined for each specific module initialize function. 51 * 48 52 */ 49 extern int nil_initialize(int net_phone); 53 extern int nil_initialize(int); 54 55 extern int nil_device_state_msg_local(int, device_id_t, int); 56 extern int nil_received_msg_local(int, device_id_t, packet_t, services_t); 50 57 51 58 /** Message processing function. 52 * @param[in] callid The message identifier. 53 * @param[in] call The message parameters. 54 * @param[out] answer The message answer parameters. 55 * @param[out] answer_count The last parameter for the actual answer in the answer parameter. 56 * @returns EOK on success. 57 * @returns ENOTSUP if the message is not known. 58 * @returns Other error codes as defined for each specific module message function. 59 * @see nil_interface.h 60 * @see IS_NET_NIL_MESSAGE() 59 * 60 * @param[in] name Module name. 61 * @param[in] callid The message identifier. 62 * @param[in] call The message parameters. 63 * @param[out] answer The message answer parameters. 64 * @param[out] answer_count The last parameter for the actual answer 65 * in the answer parameter. 66 * 67 * @return EOK on success. 68 * @return ENOTSUP if the message is not known. 69 * @return Other error codes as defined for each specific 70 * module message function. 71 * 72 * @see nil_interface.h 73 * @see IS_NET_NIL_MESSAGE() 74 * 61 75 */ 62 extern int nil_message(ipc_callid_t callid, ipc_call_t * call, ipc_call_t * answer, int * answer_count); 76 extern int nil_message_standalone(const char *, ipc_callid_t, ipc_call_t *, ipc_call_t *, 77 int *); 78 79 extern int nil_module_message_standalone(const char *, ipc_callid_t, 80 ipc_call_t *, ipc_call_t *, int *); 81 extern int nil_module_start_standalone(async_client_conn_t); 63 82 64 83 #endif
Note:
See TracChangeset
for help on using the changeset viewer.