Ignore:
File:
1 edited

Legend:

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

    r849ed54 r14f1db0  
    2828
    2929/** @addtogroup net_nil
    30  *  @{
     30 * @{
    3131 */
    3232
    3333/** @file
    34  *  Network interface layer interface implementation for standalone remote modules.
    35  *  @see nil_interface.h
     34 * Network interface layer interface implementation for remote modules.
     35 * @see nil_interface.h
    3636 */
    3737
     
    4242#include <packet/packet_client.h>
    4343#include <nil_messages.h>
     44#include <nil_remote.h>
    4445
    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 */
     57int 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);
    4761}
    4862
    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 */
     78int 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);
    5183}
    5284
Note: See TracChangeset for help on using the changeset viewer.