Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 4eca056 in mainline


Ignore:
Timestamp:
2010-11-18T23:36:04Z (11 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master
Children:
aaa3f33a
Parents:
88a1bb9
Message:

Remove xxx_ref typedefs (part 4).

Location:
uspace
Files:
28 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/adt/char_map.c

    r88a1bb9 r4eca056  
    6565 */
    6666static int
    67 char_map_add_item(char_map_ref map, const char *identifier, size_t length,
     67char_map_add_item(char_map_t *map, const char *identifier, size_t length,
    6868    const int value)
    6969{
    7070        if (map->next == (map->size - 1)) {
    71                 char_map_ref *tmp;
    72 
    73                 tmp = (char_map_ref *) realloc(map->items,
    74                     sizeof(char_map_ref) * 2 * map->size);
     71                char_map_t **tmp;
     72
     73                tmp = (char_map_t **) realloc(map->items,
     74                    sizeof(char_map_t *) * 2 * map->size);
    7575                if (!tmp)
    7676                        return ENOMEM;
     
    8080        }
    8181
    82         map->items[map->next] = (char_map_ref) malloc(sizeof(char_map_t));
     82        map->items[map->next] = (char_map_t *) malloc(sizeof(char_map_t));
    8383        if (!map->items[map->next])
    8484                return ENOMEM;
     
    110110 * @returns             FALSE otherwise.
    111111 */
    112 static int char_map_is_valid(const char_map_ref map)
     112static int char_map_is_valid(const char_map_t *map)
    113113{
    114114        return map && (map->magic == CHAR_MAP_MAGIC_VALUE);
     
    139139 */
    140140int
    141 char_map_add(char_map_ref map, const char *identifier, size_t length,
     141char_map_add(char_map_t *map, const char *identifier, size_t length,
    142142    const int value)
    143143{
     
    172172 * @param[in,out] map   The character string to integer map.
    173173 */
    174 void char_map_destroy(char_map_ref map)
     174void char_map_destroy(char_map_t *map)
    175175{
    176176        if (char_map_is_valid(map)) {
     
    200200 * @returns             NULL if the key is not assigned a node.
    201201 */
    202 static char_map_ref
    203 char_map_find_node(const char_map_ref map, const char *identifier,
     202static char_map_t *
     203char_map_find_node(const char_map_t *map, const char *identifier,
    204204    size_t length)
    205205{
     
    224224        }
    225225
    226         return map;
     226        return (char_map_t *) map;
    227227}
    228228
     
    242242 * @returns             CHAR_MAP_NULL if the key is not assigned a value.
    243243 */
    244 int char_map_exclude(char_map_ref map, const char *identifier, size_t length)
    245 {
    246         char_map_ref node;
     244int char_map_exclude(char_map_t *map, const char *identifier, size_t length)
     245{
     246        char_map_t *node;
    247247
    248248        node = char_map_find_node(map, identifier, length);
     
    270270 *  @returns            CHAR_MAP_NULL if the key is not assigned a value.
    271271 */
    272 int char_map_find(const char_map_ref map, const char *identifier, size_t length)
    273 {
    274         char_map_ref node;
     272int char_map_find(const char_map_t *map, const char *identifier, size_t length)
     273{
     274        char_map_t *node;
    275275
    276276        node = char_map_find_node(map, identifier, length);
     
    285285 *  @returns            ENOMEM if there is not enough memory left.
    286286 */
    287 int char_map_initialize(char_map_ref map)
     287int char_map_initialize(char_map_t *map)
    288288{
    289289        if (!map)
     
    295295        map->next = 0;
    296296
    297         map->items = malloc(sizeof(char_map_ref) * map->size);
     297        map->items = malloc(sizeof(char_map_t *) * map->size);
    298298        if (!map->items) {
    299299                map->magic = 0;
     
    330330 */
    331331int
    332 char_map_update(char_map_ref map, const char *identifier, const size_t length,
     332char_map_update(char_map_t *map, const char *identifier, const size_t length,
    333333    const int value)
    334334{
    335         char_map_ref node;
     335        char_map_t *node;
    336336
    337337        node = char_map_find_node(map, identifier, length);
  • uspace/lib/c/generic/adt/dynamic_fifo.c

    r88a1bb9 r4eca056  
    5959 * @returns             FALSE otherwise.
    6060 */
    61 static int dyn_fifo_is_valid(dyn_fifo_ref fifo)
     61static int dyn_fifo_is_valid(dyn_fifo_t *fifo)
    6262{
    6363        return fifo && (fifo->magic_value == DYN_FIFO_MAGIC_VALUE);
     
    7373 * @returns             ENOMEM if there is not enough memory left.
    7474 */
    75 int dyn_fifo_initialize(dyn_fifo_ref fifo, int size)
     75int dyn_fifo_initialize(dyn_fifo_t *fifo, int size)
    7676{
    7777        if (!fifo)
     
    104104 * @returns             ENOMEM if there is not enough memory left.
    105105 */
    106 int dyn_fifo_push(dyn_fifo_ref fifo, int value, int max_size)
     106int dyn_fifo_push(dyn_fifo_t *fifo, int value, int max_size)
    107107{
    108108        int *new_items;
     
    154154 * @returns             ENOENT if the queue is empty.
    155155 */
    156 int dyn_fifo_pop(dyn_fifo_ref fifo)
     156int dyn_fifo_pop(dyn_fifo_t *fifo)
    157157{
    158158        int value;
     
    176176 * @returns             ENOENT if the queue is empty.
    177177 */
    178 int dyn_fifo_value(dyn_fifo_ref fifo)
     178int dyn_fifo_value(dyn_fifo_t *fifo)
    179179{
    180180        if (!dyn_fifo_is_valid(fifo))
     
    193193 * @returns             EINVAL if the queue is not valid.
    194194 */
    195 int dyn_fifo_destroy(dyn_fifo_ref fifo)
     195int dyn_fifo_destroy(dyn_fifo_t *fifo)
    196196{
    197197        if (!dyn_fifo_is_valid(fifo))
  • uspace/lib/c/generic/adt/measured_strings.c

    r88a1bb9 r4eca056  
    5858 * @returns             NULL if there is not enough memory left.
    5959 */
    60 measured_string_ref
     60measured_string_t *
    6161measured_string_create_bulk(const char *string, size_t length)
    6262{
    63         measured_string_ref new;
     63        measured_string_t *new;
    6464
    6565        if (length == 0) {
     
    6767                        length++;
    6868        }
    69         new = (measured_string_ref) malloc(sizeof(measured_string_t) +
     69        new = (measured_string_t *) malloc(sizeof(measured_string_t) +
    7070            (sizeof(char) * (length + 1)));
    7171        if (!new)
     
    8888 * @returns             NULL if there is not enough memory left.
    8989 */
    90 measured_string_ref measured_string_copy(measured_string_ref source)
    91 {
    92         measured_string_ref new;
     90measured_string_t *measured_string_copy(measured_string_t *source)
     91{
     92        measured_string_t *new;
    9393
    9494        if (!source)
    9595                return NULL;
    9696
    97         new = (measured_string_ref) malloc(sizeof(measured_string_t));
     97        new = (measured_string_t *) malloc(sizeof(measured_string_t));
    9898        if (new) {
    9999                new->value = (char *) malloc(source->length + 1);
     
    131131 */
    132132int
    133 measured_strings_receive(measured_string_ref *strings, char **data,
     133measured_strings_receive(measured_string_t **strings, char **data,
    134134    size_t count)
    135135{
     
    166166        (*data)[lengths[count] - 1] = '\0';
    167167
    168         *strings = (measured_string_ref) malloc(sizeof(measured_string_t) *
     168        *strings = (measured_string_t *) malloc(sizeof(measured_string_t) *
    169169            count);
    170170        if (!*strings) {
     
    212212 * @returns             NULL if there is not enough memory left.
    213213 */
    214 static size_t *prepare_lengths(const measured_string_ref strings, size_t count)
     214static size_t *prepare_lengths(const measured_string_t *strings, size_t count)
    215215{
    216216        size_t *lengths;
     
    248248 *                      async_data_read_finalize() function.
    249249 */
    250 int measured_strings_reply(const measured_string_ref strings, size_t count)
     250int measured_strings_reply(const measured_string_t *strings, size_t count)
    251251{
    252252        size_t *lengths;
     
    311311 */
    312312int
    313 measured_strings_return(int phone, measured_string_ref *strings, char **data,
     313measured_strings_return(int phone, measured_string_t **strings, char **data,
    314314    size_t count)
    315315{
     
    339339        }
    340340
    341         *strings = (measured_string_ref) malloc(sizeof(measured_string_t) *
     341        *strings = (measured_string_t *) malloc(sizeof(measured_string_t) *
    342342            count);
    343343        if (!*strings) {
     
    385385 */
    386386int
    387 measured_strings_send(int phone, const measured_string_ref strings,
     387measured_strings_send(int phone, const measured_string_t *strings,
    388388    size_t count)
    389389{
  • uspace/lib/c/include/adt/char_map.h

    r88a1bb9 r4eca056  
    4848typedef struct char_map char_map_t;
    4949
    50 /** Type definition of the character string to integer map pointer.
    51  *  @see char_map
    52  */
    53 typedef char_map_t *char_map_ref;
    54 
    5550/** Character string to integer map item.
    5651 *
     
    6964        int next;
    7065        /** Next character array. */
    71         char_map_ref *items;
     66        char_map_t **items;
    7267        /** Consistency check magic value. */
    7368        int magic;
    7469};
    7570
    76 extern int char_map_initialize(char_map_ref);
    77 extern void char_map_destroy(char_map_ref);
    78 extern int char_map_exclude(char_map_ref, const char *, size_t);
    79 extern int char_map_add(char_map_ref, const char *, size_t, const int);
    80 extern int char_map_find(const char_map_ref, const char *, size_t);
    81 extern int char_map_update(char_map_ref, const char *, size_t, const int);
     71extern int char_map_initialize(char_map_t *);
     72extern void char_map_destroy(char_map_t *);
     73extern int char_map_exclude(char_map_t *, const char *, size_t);
     74extern int char_map_add(char_map_t *, const char *, size_t, const int);
     75extern int char_map_find(const char_map_t *, const char *, size_t);
     76extern int char_map_update(char_map_t *, const char *, size_t, const int);
    8277
    8378#endif
  • uspace/lib/c/include/adt/dynamic_fifo.h

    r88a1bb9 r4eca056  
    4444typedef struct dyn_fifo dyn_fifo_t;
    4545
    46 /** Type definition of the dynamic fifo queue pointer.
    47  *  @see dyn_fifo
    48  */
    49 typedef dyn_fifo_t *dyn_fifo_ref;
    50 
    5146/** Dynamic first in first out positive integer queue.
    5247 * Possitive integer values only.
     
    6661};
    6762
    68 extern int dyn_fifo_initialize(dyn_fifo_ref, int);
    69 extern int dyn_fifo_destroy(dyn_fifo_ref);
    70 extern int dyn_fifo_push(dyn_fifo_ref, int, int);
    71 extern int dyn_fifo_pop(dyn_fifo_ref);
    72 extern int dyn_fifo_value(dyn_fifo_ref);
     63extern int dyn_fifo_initialize(dyn_fifo_t *, int);
     64extern int dyn_fifo_destroy(dyn_fifo_t *);
     65extern int dyn_fifo_push(dyn_fifo_t *, int, int);
     66extern int dyn_fifo_pop(dyn_fifo_t *);
     67extern int dyn_fifo_value(dyn_fifo_t *);
    7368
    7469#endif
  • uspace/lib/c/include/adt/measured_strings.h

    r88a1bb9 r4eca056  
    4747typedef struct measured_string measured_string_t;
    4848
    49 /** Type definition of the character string with measured length pointer.
    50  * @see measured_string
    51  */
    52 typedef measured_string_t *measured_string_ref;
    53 
    5449/** Character string with measured length.
    5550 *
     
    6459};
    6560
    66 extern measured_string_ref measured_string_create_bulk(const char *, size_t);
    67 extern measured_string_ref measured_string_copy(measured_string_ref);
    68 extern int measured_strings_receive(measured_string_ref *, char **, size_t);
    69 extern int measured_strings_reply(const measured_string_ref, size_t);
    70 extern int measured_strings_return(int, measured_string_ref *, char **, size_t);
    71 extern int measured_strings_send(int, const measured_string_ref, size_t);
     61extern measured_string_t *measured_string_create_bulk(const char *, size_t);
     62extern measured_string_t *measured_string_copy(measured_string_t *);
     63extern int measured_strings_receive(measured_string_t **, char **, size_t);
     64extern int measured_strings_reply(const measured_string_t *, size_t);
     65extern int measured_strings_return(int, measured_string_t **, char **, size_t);
     66extern int measured_strings_send(int, const measured_string_t *, size_t);
    7267
    7368#endif
  • uspace/lib/net/generic/generic.c

    r88a1bb9 r4eca056  
    100100int
    101101generic_get_addr_req(int phone, int message, device_id_t device_id,
    102     measured_string_ref *address, char ** data)
     102    measured_string_t **address, char ** data)
    103103{
    104104        aid_t message_id;
     
    233233int
    234234generic_translate_req(int phone, int message, device_id_t device_id,
    235     services_t service, measured_string_ref configuration, size_t count,
    236     measured_string_ref *translation, char **data)
     235    services_t service, measured_string_t *configuration, size_t count,
     236    measured_string_t **translation, char **data)
    237237{
    238238        aid_t message_id;
  • uspace/lib/net/generic/net_remote.c

    r88a1bb9 r4eca056  
    6363 * @see net_get_conf_req()
    6464 */
    65 void net_free_settings(measured_string_ref settings, char *data)
     65void net_free_settings(measured_string_t *settings, char *data)
    6666{
    6767        if (settings)
     
    9090 */
    9191int
    92 net_get_conf_req(int net_phone, measured_string_ref *configuration,
     92net_get_conf_req(int net_phone, measured_string_t **configuration,
    9393    size_t count, char **data)
    9494{
     
    118118int
    119119net_get_device_conf_req(int net_phone, device_id_t device_id,
    120     measured_string_ref *configuration, size_t count, char **data)
     120    measured_string_t **configuration, size_t count, char **data)
    121121{
    122122        return generic_translate_req(net_phone, NET_NET_GET_DEVICE_CONF,
  • uspace/lib/net/il/arp_remote.c

    r88a1bb9 r4eca056  
    8383int
    8484arp_clear_address_req(int arp_phone, device_id_t device_id, services_t protocol,
    85     measured_string_ref address)
     85    measured_string_t *address)
    8686{
    8787        aid_t message_id;
     
    133133 */
    134134int arp_device_req(int arp_phone, device_id_t device_id, services_t protocol,
    135     services_t netif, measured_string_ref address)
     135    services_t netif, measured_string_t *address)
    136136{
    137137        aid_t message_id;
     
    165165int
    166166arp_translate_req(int arp_phone, device_id_t device_id, services_t protocol,
    167     measured_string_ref address, measured_string_ref *translation, char **data)
     167    measured_string_t *address, measured_string_t **translation, char **data)
    168168{
    169169        return generic_translate_req(arp_phone, NET_ARP_TRANSLATE, device_id,
  • uspace/lib/net/include/arp_interface.h

    r88a1bb9 r4eca056  
    4848
    4949extern int arp_device_req(int, device_id_t, services_t, services_t,
    50     measured_string_ref);
    51 extern int arp_translate_req(int, device_id_t, services_t, measured_string_ref,
    52     measured_string_ref *, char **);
     50    measured_string_t *);
     51extern int arp_translate_req(int, device_id_t, services_t, measured_string_t *,
     52    measured_string_t **, char **);
    5353extern int arp_clear_device_req(int, device_id_t);
    5454extern int arp_clear_address_req(int, device_id_t, services_t,
    55     measured_string_ref);
     55    measured_string_t *);
    5656extern int arp_clean_cache_req(int);
    5757extern int arp_connect_module(services_t);
  • uspace/lib/net/include/generic.h

    r88a1bb9 r4eca056  
    4949    services_t);
    5050extern int generic_device_req_remote(int, int, device_id_t, int, services_t);
    51 extern int generic_get_addr_req(int, int, device_id_t, measured_string_ref *,
     51extern int generic_get_addr_req(int, int, device_id_t, measured_string_t **,
    5252    char **);
    5353extern int generic_packet_size_req_remote(int, int, device_id_t,
     
    5858    services_t, services_t);
    5959extern int generic_translate_req(int, int, device_id_t, services_t,
    60     measured_string_ref, size_t, measured_string_ref *, char **);
     60    measured_string_t *, size_t, measured_string_t **, char **);
    6161
    6262#endif
  • uspace/lib/net/include/net_interface.h

    r88a1bb9 r4eca056  
    4444/*@{*/
    4545
    46 extern int net_get_device_conf_req(int, device_id_t, measured_string_ref *,
     46extern int net_get_device_conf_req(int, device_id_t, measured_string_t **,
    4747    size_t, char **);
    48 extern int net_get_conf_req(int, measured_string_ref *, size_t, char **);
    49 extern void net_free_settings(measured_string_ref, char *);
     48extern int net_get_conf_req(int, measured_string_t **, size_t, char **);
     49extern void net_free_settings(measured_string_t *, char *);
    5050extern int net_connect_module(void);
    5151
  • uspace/lib/net/include/netif_local.h

    r88a1bb9 r4eca056  
    158158 */
    159159extern int netif_get_addr_message(device_id_t device_id,
    160     measured_string_ref address);
     160    measured_string_t *address);
    161161
    162162/** Process the netif driver specific message.
     
    195195    device_stats_t *stats);
    196196
    197 extern int netif_get_addr_req_local(int, device_id_t, measured_string_ref *,
     197extern int netif_get_addr_req_local(int, device_id_t, measured_string_t **,
    198198    char **);
    199199extern int netif_probe_req_local(int, device_id_t, int, int);
  • uspace/lib/net/include/netif_remote.h

    r88a1bb9 r4eca056  
    4141#include <net/packet.h>
    4242
    43 extern int netif_get_addr_req_remote(int, device_id_t, measured_string_ref *,
     43extern int netif_get_addr_req_remote(int, device_id_t, measured_string_t **,
    4444    char **);
    4545extern int netif_probe_req_remote(int, device_id_t, int, int);
  • uspace/lib/net/netif/netif_local.c

    r88a1bb9 r4eca056  
    203203 */
    204204int netif_get_addr_req_local(int netif_phone, device_id_t device_id,
    205     measured_string_ref *address, char **data)
     205    measured_string_t **address, char **data)
    206206{
    207207        int rc;
  • uspace/lib/net/netif/netif_remote.c

    r88a1bb9 r4eca056  
    6060 */
    6161int netif_get_addr_req_remote(int netif_phone, device_id_t device_id,
    62     measured_string_ref *address, char **data)
     62    measured_string_t **address, char **data)
    6363{
    6464        return generic_get_addr_req(netif_phone, NET_NETIF_GET_ADDR, device_id,
  • uspace/srv/hw/netif/dp8390/dp8390_module.c

    r88a1bb9 r4eca056  
    186186}
    187187
    188 int netif_get_addr_message(device_id_t device_id, measured_string_ref address){
     188int netif_get_addr_message(device_id_t device_id, measured_string_t *address){
    189189        netif_device_t * device;
    190190        int rc;
  • uspace/srv/net/il/arp/arp.c

    r88a1bb9 r4eca056  
    126126
    127127static int arp_clear_address_req(int arp_phone, device_id_t device_id,
    128     services_t protocol, measured_string_ref address)
     128    services_t protocol, measured_string_t *address)
    129129{
    130130        arp_device_t *device;
     
    175175 */
    176176static int arp_proto_create(arp_proto_t **proto, services_t service,
    177     measured_string_ref address)
     177    measured_string_t *address)
    178178{
    179179        int rc;
     
    213213 */
    214214static int arp_device_message(device_id_t device_id, services_t service,
    215     services_t protocol, measured_string_ref address)
     215    services_t protocol, measured_string_t *address)
    216216{
    217217        arp_device_t *device;
     
    421421        arp_device_t *device;
    422422        arp_proto_t *proto;
    423         measured_string_ref hw_source;
     423        measured_string_t *hw_source;
    424424        uint8_t *src_hw;
    425425        uint8_t *src_proto;
     
    523523 * @returns             NULL if the hardware address is not found in the cache.
    524524 */
    525 static measured_string_ref
     525static measured_string_t *
    526526arp_translate_message(device_id_t device_id, services_t protocol,
    527     measured_string_ref target)
     527    measured_string_t *target)
    528528{
    529529        arp_device_t *device;
    530530        arp_proto_t *proto;
    531         measured_string_ref addr;
     531        measured_string_t *addr;
    532532        size_t length;
    533533        packet_t packet;
     
    612612    ipc_call_t *answer, int *answer_count)
    613613{
    614         measured_string_ref address;
    615         measured_string_ref translation;
     614        measured_string_t *address;
     615        measured_string_t *translation;
    616616        char *data;
    617617        packet_t packet;
  • uspace/srv/net/il/arp/arp.h

    r88a1bb9 r4eca056  
    8989struct arp_device {
    9090        /** Actual device hardware address. */
    91         measured_string_ref addr;
     91        measured_string_t * addr;
    9292        /** Actual device hardware address data. */
    9393        char *addr_data;
    9494        /** Broadcast device hardware address. */
    95         measured_string_ref broadcast_addr;
     95        measured_string_t * broadcast_addr;
    9696        /** Broadcast device hardware address data. */
    9797        char *broadcast_data;
     
    135135struct arp_proto {
    136136        /** Actual device protocol address. */
    137         measured_string_ref addr;
     137        measured_string_t *addr;
    138138        /** Actual device protocol address data. */
    139139        char *addr_data;
  • uspace/srv/net/il/ip/ip.c

    r88a1bb9 r4eca056  
    344344                }
    345345        };
    346         measured_string_ref configuration;
     346        measured_string_t *configuration;
    347347        size_t count = sizeof(names) / sizeof(measured_string_t);
    348348        char *data;
     
    623623static int
    624624ip_prepare_packet(in_addr_t *source, in_addr_t dest, packet_t packet,
    625     measured_string_ref destination)
     625    measured_string_t *destination)
    626626{
    627627        size_t length;
     
    997997{
    998998        measured_string_t destination;
    999         measured_string_ref translation;
     999        measured_string_t *translation;
    10001000        char *data;
    10011001        int phone;
  • uspace/srv/net/net/net.c

    r88a1bb9 r4eca056  
    9393        int rc;
    9494       
    95         measured_string_ref setting =
     95        measured_string_t *setting =
    9696            measured_string_create_bulk(value, 0);
    9797        if (!setting)
     
    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)
     
    357357 */
    358358static int net_get_conf(measured_strings_ref netif_conf,
    359     measured_string_ref configuration, size_t count, char **data)
     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;
  • uspace/srv/net/netif/lo/lo.c

    r88a1bb9 r4eca056  
    7070}
    7171
    72 int netif_get_addr_message(device_id_t device_id, measured_string_ref address)
     72int netif_get_addr_message(device_id_t device_id, measured_string_t *address)
    7373{
    7474        if (!address)
  • uspace/srv/net/nil/eth/eth.c

    r88a1bb9 r4eca056  
    293293                }
    294294        };
    295         measured_string_ref configuration;
     295        measured_string_t *configuration;
    296296        size_t count = sizeof(names) / sizeof(measured_string_t);
    297297        char *data;
     
    591591 */
    592592static int eth_addr_message(device_id_t device_id, eth_addr_type_t type,
    593     measured_string_ref *address)
     593    measured_string_t **address)
    594594{
    595595        eth_device_t *device;
     
    840840    ipc_call_t *call, ipc_call_t *answer, int *answer_count)
    841841{
    842         measured_string_ref address;
     842        measured_string_t *address;
    843843        packet_t packet;
    844844        size_t addrlen;
  • uspace/srv/net/nil/eth/eth.h

    r88a1bb9 r4eca056  
    9090       
    9191        /** Actual device hardware address. */
    92         measured_string_ref addr;
     92        measured_string_t *addr;
    9393        /** Actual device hardware address data. */
    9494        char *addr_data;
     
    123123       
    124124        /** Broadcast device hardware address. */
    125         measured_string_ref broadcast_addr;
     125        measured_string_t *broadcast_addr;
    126126};
    127127
  • uspace/srv/net/nil/nildummy/nildummy.c

    r88a1bb9 r4eca056  
    248248 */
    249249static int nildummy_addr_message(device_id_t device_id,
    250     measured_string_ref *address)
     250    measured_string_t **address)
    251251{
    252252        nildummy_device_t *device;
     
    377377    ipc_call_t *call, ipc_call_t *answer, int *answer_count)
    378378{
    379         measured_string_ref address;
     379        measured_string_t *address;
    380380        packet_t packet;
    381381        size_t addrlen;
  • uspace/srv/net/nil/nildummy/nildummy.h

    r88a1bb9 r4eca056  
    7676        size_t mtu;
    7777        /** Actual device hardware address. */
    78         measured_string_ref addr;
     78        measured_string_t *addr;
    7979        /** Actual device hardware address data. */
    8080        char *addr_data;
  • uspace/srv/net/tl/icmp/icmp.c

    r88a1bb9 r4eca056  
    413413                }
    414414        };
    415         measured_string_ref configuration;
     415        measured_string_t *configuration;
    416416        size_t count = sizeof(names) / sizeof(measured_string_t);
    417417        char *data;
  • uspace/srv/net/tl/udp/udp.c

    r88a1bb9 r4eca056  
    112112                }
    113113        };
    114         measured_string_ref configuration;
     114        measured_string_t *configuration;
    115115        size_t count = sizeof(names) / sizeof(measured_string_t);
    116116        char *data;
Note: See TracChangeset for help on using the changeset viewer.