Changeset f4f866c in mainline for uspace/lib/net/nil/nil_remote.c
- Timestamp:
- 2010-04-23T21:42:26Z (15 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 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/net/nil/nil_remote.c
r38aaacc2 rf4f866c 28 28 29 29 /** @addtogroup net_nil 30 * 30 * @{ 31 31 */ 32 32 33 33 /** @file 34 * Network interface layer interface implementation for standaloneremote modules.35 * 34 * Network interface layer interface implementation for remote modules. 35 * @see nil_interface.h 36 36 */ 37 37 … … 42 42 #include <packet/packet_client.h> 43 43 #include <nil_messages.h> 44 #include <nil_remote.h> 44 45 45 int nil_device_state_msg(int nil_phone, device_id_t device_id, int state){ 46 return generic_device_state_msg(nil_phone, NET_NIL_DEVICE_STATE, device_id, state, 0); 46 /** Notify the network interface layer about the device state change. 47 * 48 * @param[in] nil_phone The network interface layer phone. 49 * @param[in] device_id The device identifier. 50 * @param[in] state The new device state. 51 * 52 * @return EOK on success. 53 * @return Other error codes as defined for each specific module device 54 * state function. 55 * 56 */ 57 int nil_device_state_msg_remote(int nil_phone, device_id_t device_id, int state) 58 { 59 return generic_device_state_msg_remote(nil_phone, NET_NIL_DEVICE_STATE, 60 device_id, state, 0); 47 61 } 48 62 49 int nil_received_msg(int nil_phone, device_id_t device_id, packet_t packet, services_t target){ 50 return generic_received_msg(nil_phone, NET_NIL_RECEIVED, device_id, packet_get_id(packet), target, 0); 63 /** Pass the packet queue to the network interface layer. 64 * 65 * Process and redistribute the received packet queue to the registered 66 * upper layers. 67 * 68 * @param[in] nil_phone The network interface layer phone. 69 * @param[in] device_id The source device identifier. 70 * @param[in] packet The received packet or the received packet queue. 71 * @param target The target service. Ignored parameter. 72 * 73 * @return EOK on success. 74 * @return Other error codes as defined for each specific module 75 * received function. 76 * 77 */ 78 int nil_received_msg_remote(int nil_phone, device_id_t device_id, 79 packet_t packet, services_t target) 80 { 81 return generic_received_msg_remote(nil_phone, NET_NIL_RECEIVED, device_id, 82 packet_get_id(packet), target, 0); 51 83 } 52 84
Note:
See TracChangeset
for help on using the changeset viewer.