Changeset 89c57b6 in mainline for uspace/lib/net/nil/nil_remote.c


Ignore:
Timestamp:
2011-04-13T14:45:41Z (14 years ago)
Author:
Jakub Jermar <jakub@…>
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.
Message:

Merge mainline changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/net/nil/nil_remote.c

    rcefb126 r89c57b6  
    2727 */
    2828
    29 /** @addtogroup net_nil
     29/** @addtogroup libnet
    3030 * @{
    3131 */
     
    3333/** @file
    3434 * Network interface layer interface implementation for remote modules.
    35  * @see nil_interface.h
     35 * @see nil_remote.h
    3636 */
    3737
    38 #include <net_messages.h>
    39 #include <net_device.h>
    40 #include <nil_interface.h>
    41 #include <packet/packet.h>
    42 #include <packet/packet_client.h>
    43 #include <nil_messages.h>
    4438#include <nil_remote.h>
     39#include <generic.h>
     40#include <net/device.h>
     41#include <net/packet.h>
     42#include <packet_client.h>
     43#include <ipc/nil.h>
    4544
    4645/** Notify the network interface layer about the device state change.
    4746 *
    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.
     47 * @param[in] nil_phone Network interface layer phone.
     48 * @param[in] device_id Device identifier.
     49 * @param[in] state     New device state.
    5150 *
    5251 * @return EOK on success.
    53  * @return Other error codes as defined for each specific module device
    54  *         state function.
     52 * @return Other error codes as defined for each specific module
     53 *         device state function.
    5554 *
    5655 */
    57 int nil_device_state_msg_remote(int nil_phone, device_id_t device_id, int state)
     56int nil_device_state_msg(int nil_phone, device_id_t device_id, int state)
    5857{
    5958        return generic_device_state_msg_remote(nil_phone, NET_NIL_DEVICE_STATE,
     
    6665 * upper layers.
    6766 *
    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.
     67 * @param[in] nil_phone Network interface layer phone.
     68 * @param[in] device_id Source device identifier.
     69 * @param[in] packet    Received packet or the received packet queue.
     70 * @param[in] target    Target service. Ignored parameter.
    7271 *
    7372 * @return EOK on success.
     
    7675 *
    7776 */
    78 int nil_received_msg_remote(int nil_phone, device_id_t device_id,
    79     packet_t packet, services_t target)
     77int nil_received_msg(int nil_phone, device_id_t device_id,
     78    packet_t *packet, services_t target)
    8079{
    81         return generic_received_msg_remote(nil_phone, NET_NIL_RECEIVED, device_id,
    82             packet_get_id(packet), target, 0);
     80        return generic_received_msg_remote(nil_phone, NET_NIL_RECEIVED,
     81            device_id, packet_get_id(packet), target, 0);
    8382}
    8483
Note: See TracChangeset for help on using the changeset viewer.