Changeset 89c57b6 in mainline for uspace/lib/net/include/nil_skel.h
- Timestamp:
- 2011-04-13T14:45:41Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 88634420
- Parents:
- cefb126 (diff), 17279ead (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_skel.h
rcefb126 r89c57b6 27 27 */ 28 28 29 /** @addtogroup net_nil30 * 29 /** @addtogroup libnet 30 * @{ 31 31 */ 32 32 … … 36 36 */ 37 37 38 #ifndef __NET_NIL_LOCAL_H__39 #define __NET_NIL_LOCAL_H__38 #ifndef LIBNET_NIL_SKEL_H_ 39 #define LIBNET_NIL_SKEL_H_ 40 40 41 #include <ipc/ipc.h> 41 #include <async.h> 42 #include <fibril_synch.h> 43 #include <ipc/services.h> 44 45 #include <adt/measured_strings.h> 46 #include <net/device.h> 47 #include <net/packet.h> 42 48 43 49 /** Module initialization. 44 50 * 45 * Is called by the module_start() function.51 * This has to be implemented in user code. 46 52 * 47 * @param[in] net_phone The networking moduelphone.53 * @param[in] net_phone Networking module phone. 48 54 * 49 55 * @return EOK on success. 50 * @return Other error codes as defined for each specific module initialize function. 56 * @return Other error codes as defined for each specific module 57 * initialize function. 51 58 * 52 59 */ 53 extern int nil_initialize(int );60 extern int nil_initialize(int net_phone); 54 61 62 /** Notify the network interface layer about the device state change. 63 * 64 * This has to be implemented in user code. 65 * 66 * @param[in] nil_phone Network interface layer phone. 67 * @param[in] device_id Device identifier. 68 * @param[in] state New device state. 69 * 70 * @return EOK on success. 71 * @return Other error codes as defined for each specific module 72 * device state function. 73 * 74 */ 55 75 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); 76 77 /** Pass the packet queue to the network interface layer. 78 * 79 * Process and redistribute the received packet queue to the registered 80 * upper layers. 81 * 82 * This has to be implemented in user code. 83 * 84 * @param[in] nil_phone Network interface layer phone. 85 * @param[in] device_id Source device identifier. 86 * @param[in] packet Received packet or the received packet queue. 87 * @param[in] target Target service. Ignored parameter. 88 * 89 * @return EOK on success. 90 * @return Other error codes as defined for each specific module 91 * received function. 92 * 93 */ 94 extern int nil_received_msg_local(int, device_id_t, packet_t *, services_t); 57 95 58 96 /** Message processing function. 59 97 * 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. 98 * This has to be implemented in user code. 99 * 100 * @param[in] name Module name. 101 * @param[in] callid Message identifier. 102 * @param[in] call Message parameters. 103 * @param[out] answer Message answer parameters. 104 * @param[out] count Message answer arguments. 66 105 * 67 106 * @return EOK on success. 68 107 * @return ENOTSUP if the message is not known. 69 * @return Other error codes as defined for each specific 70 * m odule message function.108 * @return Other error codes as defined for each specific module 109 * message function. 71 110 * 72 * @see nil_interface.h73 111 * @see IS_NET_NIL_MESSAGE() 74 112 * 75 113 */ 76 extern int nil_m essage_standalone(const char *,ipc_callid_t, ipc_call_t *, ipc_call_t *,77 int *);114 extern int nil_module_message(ipc_callid_t, ipc_call_t *, ipc_call_t *, 115 size_t *); 78 116 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); 117 extern int nil_module_start(int); 82 118 83 119 #endif
Note:
See TracChangeset
for help on using the changeset viewer.