Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/net/net.c

    rfb04cba8 raaa3f33a  
    8888 *
    8989 */
    90 int add_configuration(measured_strings_ref configuration, const char *name,
     90int add_configuration(measured_strings_t *configuration, const char *name,
    9191    const char *value)
    9292{
    9393        int rc;
    9494       
    95         measured_string_ref setting =
     95        measured_string_t *setting =
    9696            measured_string_create_bulk(value, 0);
    9797        if (!setting)
     
    117117}
    118118
    119 static int parse_line(measured_strings_ref configuration, char *line)
     119static int parse_line(measured_strings_t *configuration, char *line)
    120120{
    121121        int rc;
     
    163163       
    164164        /* Create a bulk measured string till the end */
    165         measured_string_ref setting =
     165        measured_string_t *setting =
    166166            measured_string_create_bulk(value, 0);
    167167        if (!setting)
     
    179179
    180180static int read_configuration_file(const char *directory, const char *filename,
    181     measured_strings_ref configuration)
     181    measured_strings_t *configuration)
    182182{
    183183        printf("%s: Reading configuration file %s/%s\n", NAME, directory, filename);
     
    356356 *
    357357 */
    358 static int net_get_conf(measured_strings_ref netif_conf,
    359     measured_string_ref configuration, size_t count, char **data)
     358static int net_get_conf(measured_strings_t *netif_conf,
     359    measured_string_t *configuration, size_t count, char **data)
    360360{
    361361        if (data)
     
    364364        size_t index;
    365365        for (index = 0; index < count; index++) {
    366                 measured_string_ref setting =
     366                measured_string_t *setting =
    367367                    measured_strings_find(netif_conf, configuration[index].value, 0);
    368368                if (!setting)
     
    382382}
    383383
    384 int net_get_conf_req(int net_phone, measured_string_ref *configuration,
     384int net_get_conf_req(int net_phone, measured_string_t **configuration,
    385385    size_t count, char **data)
    386386{
     
    392392
    393393int 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)
    395395{
    396396        if ((!configuration) || (count == 0))
     
    404404}
    405405
    406 void net_free_settings(measured_string_ref settings, char *data)
     406void net_free_settings(measured_string_t *settings, char *data)
    407407{
    408408}
     
    429429       
    430430        /* Mandatory netif */
    431         measured_string_ref setting =
     431        measured_string_t *setting =
    432432            measured_strings_find(&netif->configuration, CONF_NETIF, 0);
    433433       
     
    550550               
    551551                /* Mandatory name */
    552                 measured_string_ref setting =
     552                measured_string_t *setting =
    553553                    measured_strings_find(&netif->configuration, CONF_NAME, 0);
    554554                if (!setting) {
     
    620620    int *answer_count)
    621621{
    622         measured_string_ref strings;
     622        measured_string_t *strings;
    623623        char *data;
    624624        int rc;
Note: See TracChangeset for help on using the changeset viewer.