Changes in uspace/srv/net/net/net.c [fb04cba8:aaa3f33a] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/net/net.c
rfb04cba8 raaa3f33a 88 88 * 89 89 */ 90 int add_configuration(measured_strings_ refconfiguration, const char *name,90 int add_configuration(measured_strings_t *configuration, const char *name, 91 91 const char *value) 92 92 { 93 93 int rc; 94 94 95 measured_string_ refsetting =95 measured_string_t *setting = 96 96 measured_string_create_bulk(value, 0); 97 97 if (!setting) … … 117 117 } 118 118 119 static int parse_line(measured_strings_ refconfiguration, char *line)119 static int parse_line(measured_strings_t *configuration, char *line) 120 120 { 121 121 int rc; … … 163 163 164 164 /* Create a bulk measured string till the end */ 165 measured_string_ refsetting =165 measured_string_t *setting = 166 166 measured_string_create_bulk(value, 0); 167 167 if (!setting) … … 179 179 180 180 static int read_configuration_file(const char *directory, const char *filename, 181 measured_strings_ refconfiguration)181 measured_strings_t *configuration) 182 182 { 183 183 printf("%s: Reading configuration file %s/%s\n", NAME, directory, filename); … … 356 356 * 357 357 */ 358 static int net_get_conf(measured_strings_ refnetif_conf,359 measured_string_ refconfiguration, size_t count, char **data)358 static int net_get_conf(measured_strings_t *netif_conf, 359 measured_string_t *configuration, size_t count, char **data) 360 360 { 361 361 if (data) … … 364 364 size_t index; 365 365 for (index = 0; index < count; index++) { 366 measured_string_ refsetting =366 measured_string_t *setting = 367 367 measured_strings_find(netif_conf, configuration[index].value, 0); 368 368 if (!setting) … … 382 382 } 383 383 384 int net_get_conf_req(int net_phone, measured_string_ ref*configuration,384 int net_get_conf_req(int net_phone, measured_string_t **configuration, 385 385 size_t count, char **data) 386 386 { … … 392 392 393 393 int net_get_device_conf_req(int net_phone, device_id_t device_id, 394 measured_string_ ref*configuration, size_t count, char **data)394 measured_string_t **configuration, size_t count, char **data) 395 395 { 396 396 if ((!configuration) || (count == 0)) … … 404 404 } 405 405 406 void net_free_settings(measured_string_ refsettings, char *data)406 void net_free_settings(measured_string_t *settings, char *data) 407 407 { 408 408 } … … 429 429 430 430 /* Mandatory netif */ 431 measured_string_ refsetting =431 measured_string_t *setting = 432 432 measured_strings_find(&netif->configuration, CONF_NETIF, 0); 433 433 … … 550 550 551 551 /* Mandatory name */ 552 measured_string_ refsetting =552 measured_string_t *setting = 553 553 measured_strings_find(&netif->configuration, CONF_NAME, 0); 554 554 if (!setting) { … … 620 620 int *answer_count) 621 621 { 622 measured_string_ refstrings;622 measured_string_t *strings; 623 623 char *data; 624 624 int rc;
Note:
See TracChangeset
for help on using the changeset viewer.