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


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 moved

Legend:

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

    rcefb126 r89c57b6  
    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
    41 #include <ipc/ipc.h>
     41#include <ipc/net.h>
    4242
    43 #include <net_messages.h>
    44 
    45 /** ARP module messages.
    46  */
    47 typedef enum{
     43/** ARP module messages. */
     44typedef enum {
    4845        /** Clean cache message.
    49          *  @see arp_clean_cache()
     46         * @see arp_clean_cache()
    5047         */
    5148        NET_ARP_CLEAN_CACHE = NET_ARP_FIRST,
    5249        /** Clear address cache message.
    53          *  @see arp_clear_address_msg()
     50         * @see arp_clear_address_msg()
    5451         */
    5552        NET_ARP_CLEAR_ADDRESS,
    5653        /** Clear device cache message.
    57          *  @see arp_clear_device_req()
     54         * @see arp_clear_device_req()
    5855         */
    5956        NET_ARP_CLEAR_DEVICE,
    6057        /** New device message.
    61          *  @see arp_device_req()
     58         * @see arp_device_req()
    6259         */
    6360        NET_ARP_DEVICE,
    6461        /** Address translation message.
    65          *  @see arp_translate_req()
     62         * @see arp_translate_req()
    6663         */
    6764        NET_ARP_TRANSLATE
    6865} arp_messages;
    6966
    70 /** @name ARP specific message parameters definitions
    71  */
     67/** @name ARP specific message parameters definitions */
    7268/*@{*/
    7369
    74 /** Returns the protocol service message parameter.
    75  *  @param[in] call The message call structure.
     70/** Return the protocol service message parameter.
     71 *
     72 * @param[in] call Message call structure.
     73 *
    7674 */
    77 #define ARP_GET_NETIF(call) \
    78         ({services_t service = (services_t) IPC_GET_ARG2(*call); service;})
     75#define ARP_GET_NETIF(call) ((services_t) IPC_GET_ARG2(call))
    7976
    8077/*@}*/
Note: See TracChangeset for help on using the changeset viewer.