Changeset f87ec535 in mainline for uspace/lib/c/include/ipc/arp.h


Ignore:
Timestamp:
2010-10-15T18:48:08Z (13 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
522253c1
Parents:
c89eefb
Message:

Move ARP module messages definitions to standard library.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/ipc/arp.h

    rc89eefb rf87ec535  
    2727 */
    2828
    29 /** @addtogroup arp
    30  *  @{
     29/** @addtogroup libc
     30 * @{
    3131 */
    3232
    3333/** @file
    34  *  ARP module messages.
    35  *  @see arp_interface.h
     34 * ARP module messages.
     35 * @see arp_interface.h
    3636 */
    3737
    38 #ifndef __NET_ARP_MESSAGES__
    39 #define __NET_ARP_MESSAGES__
     38#ifndef LIBC_ARP_MESSAGES_
     39#define LIBC_ARP_MESSAGES_
    4040
    4141#include <ipc/ipc.h>
    4242#include <ipc/net.h>
    4343
    44 /** ARP module messages.
    45  */
    46 typedef enum{
     44/** ARP module messages. */
     45typedef enum {
    4746        /** Clean cache message.
    48          *  @see arp_clean_cache()
     47         * @see arp_clean_cache()
    4948         */
    5049        NET_ARP_CLEAN_CACHE = NET_ARP_FIRST,
    5150        /** Clear address cache message.
    52          *  @see arp_clear_address_msg()
     51         * @see arp_clear_address_msg()
    5352         */
    5453        NET_ARP_CLEAR_ADDRESS,
    5554        /** Clear device cache message.
    56          *  @see arp_clear_device_req()
     55         * @see arp_clear_device_req()
    5756         */
    5857        NET_ARP_CLEAR_DEVICE,
    5958        /** New device message.
    60          *  @see arp_device_req()
     59         * @see arp_device_req()
    6160         */
    6261        NET_ARP_DEVICE,
    6362        /** Address translation message.
    64          *  @see arp_translate_req()
     63         * @see arp_translate_req()
    6564         */
    6665        NET_ARP_TRANSLATE
    6766} arp_messages;
    6867
    69 /** @name ARP specific message parameters definitions
    70  */
     68/** @name ARP specific message parameters definitions */
    7169/*@{*/
    7270
    7371/** Returns the protocol service message parameter.
    74  *  @param[in] call The message call structure.
     72 * @param[in] call The message call structure.
    7573 */
    7674#define ARP_GET_NETIF(call) \
    77         ({services_t service = (services_t) IPC_GET_ARG2(*call); service;})
     75        ({ \
     76                services_t service = (services_t) IPC_GET_ARG2(*call); \
     77                service; \
     78        })
    7879
    7980/*@}*/
Note: See TracChangeset for help on using the changeset viewer.