Changes in uspace/lib/net/include/net_interface.h [4eca056:14f1db0] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/net/include/net_interface.h
r4eca056 r14f1db0 27 27 */ 28 28 29 /** @addtogroup libnet29 /** @addtogroup net 30 30 * @{ 31 31 */ 32 32 33 #ifndef LIBNET_NET_INTERFACE_H_34 #define LIBNET_NET_INTERFACE_H_33 #ifndef __NET_NET_INTERFACE_H__ 34 #define __NET_NET_INTERFACE_H__ 35 35 36 36 #include <ipc/services.h> 37 37 38 #include <net /device.h>38 #include <net_device.h> 39 39 #include <adt/measured_strings.h> 40 40 41 41 /** @name Networking module interface 42 * This interface is used by other modules.42 * This interface is used by other modules. 43 43 */ 44 44 /*@{*/ 45 45 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 */ 60 extern 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 */ 74 extern 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 */ 82 extern 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 */ 89 extern int net_connect_module(services_t service); 51 90 52 91 /*@}*/
Note:
See TracChangeset
for help on using the changeset viewer.