Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/net/include/net_interface.h

    r4eca056 r14f1db0  
    2727 */
    2828
    29 /** @addtogroup libnet
     29/** @addtogroup net
    3030 *  @{
    3131 */
    3232
    33 #ifndef LIBNET_NET_INTERFACE_H_
    34 #define LIBNET_NET_INTERFACE_H_
     33#ifndef __NET_NET_INTERFACE_H__
     34#define __NET_NET_INTERFACE_H__
    3535
    3636#include <ipc/services.h>
    3737
    38 #include <net/device.h>
     38#include <net_device.h>
    3939#include <adt/measured_strings.h>
    4040
    4141/** @name Networking module interface
    42  * This interface is used by other modules.
     42 *  This interface is used by other modules.
    4343 */
    4444/*@{*/
    4545
    46 extern int net_get_device_conf_req(int, device_id_t, measured_string_t **,
    47     size_t, char **);
    48 extern int net_get_conf_req(int, measured_string_t **, size_t, char **);
    49 extern void net_free_settings(measured_string_t *, char *);
    50 extern int net_connect_module(void);
     46/** Returns the device specific configuration.
     47 *  Returns the global configuration if the device specific is not found.
     48 *  The configuration names are read and the appropriate settings are set instead.
     49 *  Call net_free_settings() function to release the returned configuration.
     50 *  @param[in] net_phone The networking module phone.
     51 *  @param[in] device_id The device identifier.
     52 *  @param[in,out] configuration The requested device configuration. The names are read and the appropriate settings are set instead.
     53 *  @param[in] count The configuration entries count.
     54 *  @param[in,out] data The configuration and settings data.
     55 *  @returns EOK on success.
     56 *  @returns EINVAL if the configuration is NULL.
     57 *  @returns EINVAL if the count is zero (0).
     58 *  @returns Other error codes as defined for the generic_translate_req() function.
     59 */
     60extern int net_get_device_conf_req(int net_phone, device_id_t device_id, measured_string_ref * configuration, size_t count, char ** data);
     61
     62/** Returns the global configuration.
     63 *  The configuration names are read and the appropriate settings are set instead.
     64 *  Call net_free_settings() function to release the returned configuration.
     65 *  @param[in] net_phone The networking module phone.
     66 *  @param[in,out] configuration The requested configuration. The names are read and the appropriate settings are set instead.
     67 *  @param[in] count The configuration entries count.
     68 *  @param[in,out] data The configuration and settings data.
     69 *  @returns EOK on success.
     70 *  @returns EINVAL if the configuration is NULL.
     71 *  @returns EINVAL if the count is zero (0).
     72 *  @returns Other error codes as defined for the generic_translate_req() function.
     73 */
     74extern int net_get_conf_req(int net_phone, measured_string_ref * configuration, size_t count, char ** data);
     75
     76/** Frees the received settings.
     77 *  @param[in] settings The received settings.
     78 *  @param[in] data The received settings data.
     79 *  @see net_get_device_conf_req()
     80 *  @see net_get_conf_req()
     81 */
     82extern void net_free_settings(measured_string_ref settings, char * data);
     83
     84/** Connects to the networking module.
     85 *  @param service The networking module service. Ignored parameter.
     86 *  @returns The networking module phone on success.
     87 *  @returns 0 if called by the bundle module.
     88 */
     89extern int net_connect_module(services_t service);
    5190
    5291/*@}*/
Note: See TracChangeset for help on using the changeset viewer.