Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/net/generic/net_remote.c

    r614d065 r514ee46  
    2727 */
    2828
    29 /** @addtogroup libnet
    30  * @{
     29/** @addtogroup net
     30 *  @{
    3131 */
    3232
    3333/** @file
    34  * Networking interface implementation for remote modules.
    35  * @see net_interface.h
     34 *  Networking interface implementation for remote modules.
     35 *  @see net_interface.h
    3636 */
    3737
    3838#include <ipc/services.h>
    39 #include <ipc/net_net.h>
    4039
    4140#include <malloc.h>
     
    4645#include <net_interface.h>
    4746#include <adt/measured_strings.h>
     47#include <net_net_messages.h>
    4848
    49 /** Connects to the networking module.
    50  *
    51  * @returns             The networking module phone on success.
    52  */
    53 int net_connect_module(void)
     49int net_connect_module(services_t service)
    5450{
    5551        return connect_to_service(SERVICE_NETWORKING);
    5652}
    5753
    58 /** Frees the received settings.
    59  *
    60  * @param[in] settings  The received settings.
    61  * @param[in] data      The received settings data.
    62  * @see net_get_device_conf_req()
    63  * @see net_get_conf_req()
    64  */
    65 void net_free_settings(measured_string_ref settings, char *data)
     54void net_free_settings(measured_string_ref settings, char * data)
    6655{
    6756        if (settings)
    6857                free(settings);
     58
    6959        if (data)
    7060                free(data);
    7161}
    7262
    73 /** Returns the global configuration.
    74  *
    75  * The configuration names are read and the appropriate settings are set
    76  * instead. Call net_free_settings() function to release the returned
    77  * configuration.
    78  *
    79  * @param[in] net_phone The networking module phone.
    80  * @param[in,out] configuration The requested configuration. The names are read
    81  * and the appropriate settings are set instead.
    82  *
    83  * @param[in] count     The configuration entries count.
    84  * @param[in,out] data  The configuration and settings data.
    85  * @returns             EOK on success.
    86  * @returns             EINVAL if the configuration is NULL.
    87  * @returns             EINVAL if the count is zero.
    88  * @returns             Other error codes as defined for the
    89  *                      generic_translate_req() function.
    90  */
    9163int
    92 net_get_conf_req(int net_phone, measured_string_ref *configuration,
    93     size_t count, char **data)
     64net_get_conf_req(int net_phone, measured_string_ref * configuration,
     65    size_t count, char ** data)
    9466{
    9567        return generic_translate_req(net_phone, NET_NET_GET_DEVICE_CONF, 0, 0,
     
    9769}
    9870
    99 /** Returns the device specific configuration.
    100  *
    101  * Returns the global configuration if the device specific is not found.
    102  * The configuration names are read and the appropriate settings are set
    103  * instead. Call net_free_settings() function to release the returned
    104  * configuration.
    105  *
    106  * @param[in] net_phone The networking module phone.
    107  * @param[in] device_id The device identifier.
    108  * @param[in,out] configuration The requested device configuration. The names
    109  *                      are read and the appropriate settings are set instead.
    110  * @param[in] count     The configuration entries count.
    111  * @param[in,out] data  The configuration and settings data.
    112  * @returns             EOK on success.
    113  * @returns             EINVAL if the configuration is NULL.
    114  * @returns             EINVAL if the count is zero.
    115  * @returns             Other error codes as defined for the
    116  *                      generic_translate_req() function.
    117  */
    11871int
    11972net_get_device_conf_req(int net_phone, device_id_t device_id,
    120     measured_string_ref *configuration, size_t count, char **data)
     73    measured_string_ref * configuration, size_t count, char ** data)
    12174{
    12275        return generic_translate_req(net_phone, NET_NET_GET_DEVICE_CONF,
Note: See TracChangeset for help on using the changeset viewer.