Rev 4723 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 4723 | Rev 4756 | ||
|---|---|---|---|
| Line 53... | Line 53... | ||
| 53 | 53 | ||
| 54 | /** Returns the device specific configuration. |
54 | /** Returns the device specific configuration. |
| 55 | * Returns the global configuration if the device specific is not found. |
55 | * Returns the global configuration if the device specific is not found. |
| 56 | * The configuration names are read and the appropriate settings are set instead. |
56 | * The configuration names are read and the appropriate settings are set instead. |
| 57 | * Call net_free_settings() function to release the returned configuration. |
57 | * Call net_free_settings() function to release the returned configuration. |
| 58 | * @param net_phone The networking module phone. Input parameter. |
58 | * @param[in] net_phone The networking module phone. |
| 59 | * @param device_id The device identifier. Input parameter. |
59 | * @param[in] device_id The device identifier. |
| 60 | * @param configuration The requested device configuration. The names are read and the appropriate settings are set instead. Input/output parameter. |
60 | * @param[in,out] configuration The requested device configuration. The names are read and the appropriate settings are set instead. |
| 61 | * @param count The configuration entries count. Input parameter. |
61 | * @param[in] count The configuration entries count. |
| 62 | * @param data The configuration and settings data. Input/output parameter. |
62 | * @param[in,out] data The configuration and settings data. |
| 63 | * @returns EOK on success. |
63 | * @returns EOK on success. |
| 64 | * @returns EINVAL if the configuration is NULL. |
64 | * @returns EINVAL if the configuration is NULL. |
| 65 | * @returns EINVAL if the count is zero (0). |
65 | * @returns EINVAL if the count is zero (0). |
| 66 | * @returns Other error codes as defined for the generic_translate_req() function. |
66 | * @returns Other error codes as defined for the generic_translate_req() function. |
| 67 | */ |
67 | */ |
| 68 | int net_get_device_conf_req( int net_phone, device_id_t device_id, measured_string_ref * configuration, size_t count, char ** data ); |
68 | int net_get_device_conf_req( int net_phone, device_id_t device_id, measured_string_ref * configuration, size_t count, char ** data ); |
| 69 | 69 | ||
| 70 | /** Returns the global configuration. |
70 | /** Returns the global configuration. |
| 71 | * The configuration names are read and the appropriate settings are set instead. |
71 | * The configuration names are read and the appropriate settings are set instead. |
| 72 | * Call net_free_settings() function to release the returned configuration. |
72 | * Call net_free_settings() function to release the returned configuration. |
| 73 | * @param net_phone The networking module phone. Input parameter. |
73 | * @param[in] net_phone The networking module phone. |
| 74 | * @param configuration The requested configuration. The names are read and the appropriate settings are set instead. Input/output parameter. |
74 | * @param[in,out] configuration The requested configuration. The names are read and the appropriate settings are set instead. |
| 75 | * @param count The configuration entries count. Input parameter. |
75 | * @param[in] count The configuration entries count. |
| 76 | * @param data The configuration and settings data. Input/output parameter. |
76 | * @param[in,out] data The configuration and settings data. |
| 77 | * @returns EOK on success. |
77 | * @returns EOK on success. |
| 78 | * @returns EINVAL if the configuration is NULL. |
78 | * @returns EINVAL if the configuration is NULL. |
| 79 | * @returns EINVAL if the count is zero (0). |
79 | * @returns EINVAL if the count is zero (0). |
| 80 | * @returns Other error codes as defined for the generic_translate_req() function. |
80 | * @returns Other error codes as defined for the generic_translate_req() function. |
| 81 | */ |
81 | */ |
| 82 | int net_get_conf_req( int net_phone, measured_string_ref * configuration, size_t count, char ** data ); |
82 | int net_get_conf_req( int net_phone, measured_string_ref * configuration, size_t count, char ** data ); |
| 83 | 83 | ||
| 84 | /** Frees the received settings. |
84 | /** Frees the received settings. |
| 85 | * @param settings The received settings. Input parameter. |
85 | * @param[in] settings The received settings. |
| 86 | * @param data The received settings data. Input parameter. |
86 | * @param[in] data The received settings data. |
| 87 | * @see net_get_device_conf_req() |
87 | * @see net_get_device_conf_req() |
| 88 | * @see net_get_conf_req() |
88 | * @see net_get_conf_req() |
| 89 | */ |
89 | */ |
| 90 | void net_free_settings( measured_string_ref settings, char * data ); |
90 | void net_free_settings( measured_string_ref settings, char * data ); |
| 91 | 91 | ||