Changeset f87ec535 in mainline


Ignore:
Timestamp:
2010-10-15T18:48:08Z (14 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.

Location:
uspace
Files:
2 edited
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/*@}*/
  • uspace/lib/net/il/arp_remote.c

    rc89eefb rf87ec535  
    3737
    3838#include <arp_interface.h>
    39 #include <arp_messages.h>
    4039#include <generic.h>
    4140
     
    4443#include <ipc/ipc.h>
    4544#include <ipc/services.h>
     45#include <ipc/arp.h>
    4646
    4747#include <net/modules.h>
  • uspace/srv/net/il/arp/arp.c

    rc89eefb rf87ec535  
    4646#include <ipc/services.h>
    4747#include <ipc/net.h>
     48#include <ipc/arp.h>
    4849#include <byteorder.h>
    4950#include <err.h>
     
    6162#include <il_interface.h>
    6263#include <il_local.h>
    63 #include <arp_messages.h>
    6464
    6565#include "arp.h"
Note: See TracChangeset for help on using the changeset viewer.