Changeset 4eca056 in mainline
- Timestamp:
- 2010-11-18T23:36:04Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- aaa3f33a
- Parents:
- 88a1bb9
- Location:
- uspace
- Files:
-
- 28 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/adt/char_map.c
r88a1bb9 r4eca056 65 65 */ 66 66 static int 67 char_map_add_item(char_map_ refmap, const char *identifier, size_t length,67 char_map_add_item(char_map_t *map, const char *identifier, size_t length, 68 68 const int value) 69 69 { 70 70 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); 75 75 if (!tmp) 76 76 return ENOMEM; … … 80 80 } 81 81 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)); 83 83 if (!map->items[map->next]) 84 84 return ENOMEM; … … 110 110 * @returns FALSE otherwise. 111 111 */ 112 static int char_map_is_valid(const char_map_ refmap)112 static int char_map_is_valid(const char_map_t *map) 113 113 { 114 114 return map && (map->magic == CHAR_MAP_MAGIC_VALUE); … … 139 139 */ 140 140 int 141 char_map_add(char_map_ refmap, const char *identifier, size_t length,141 char_map_add(char_map_t *map, const char *identifier, size_t length, 142 142 const int value) 143 143 { … … 172 172 * @param[in,out] map The character string to integer map. 173 173 */ 174 void char_map_destroy(char_map_ refmap)174 void char_map_destroy(char_map_t *map) 175 175 { 176 176 if (char_map_is_valid(map)) { … … 200 200 * @returns NULL if the key is not assigned a node. 201 201 */ 202 static char_map_ ref203 char_map_find_node(const char_map_ refmap, const char *identifier,202 static char_map_t * 203 char_map_find_node(const char_map_t *map, const char *identifier, 204 204 size_t length) 205 205 { … … 224 224 } 225 225 226 return map;226 return (char_map_t *) map; 227 227 } 228 228 … … 242 242 * @returns CHAR_MAP_NULL if the key is not assigned a value. 243 243 */ 244 int char_map_exclude(char_map_ refmap, const char *identifier, size_t length)245 { 246 char_map_ refnode;244 int char_map_exclude(char_map_t *map, const char *identifier, size_t length) 245 { 246 char_map_t *node; 247 247 248 248 node = char_map_find_node(map, identifier, length); … … 270 270 * @returns CHAR_MAP_NULL if the key is not assigned a value. 271 271 */ 272 int char_map_find(const char_map_ refmap, const char *identifier, size_t length)273 { 274 char_map_ refnode;272 int char_map_find(const char_map_t *map, const char *identifier, size_t length) 273 { 274 char_map_t *node; 275 275 276 276 node = char_map_find_node(map, identifier, length); … … 285 285 * @returns ENOMEM if there is not enough memory left. 286 286 */ 287 int char_map_initialize(char_map_ refmap)287 int char_map_initialize(char_map_t *map) 288 288 { 289 289 if (!map) … … 295 295 map->next = 0; 296 296 297 map->items = malloc(sizeof(char_map_ ref) * map->size);297 map->items = malloc(sizeof(char_map_t *) * map->size); 298 298 if (!map->items) { 299 299 map->magic = 0; … … 330 330 */ 331 331 int 332 char_map_update(char_map_ refmap, const char *identifier, const size_t length,332 char_map_update(char_map_t *map, const char *identifier, const size_t length, 333 333 const int value) 334 334 { 335 char_map_ refnode;335 char_map_t *node; 336 336 337 337 node = char_map_find_node(map, identifier, length); -
uspace/lib/c/generic/adt/dynamic_fifo.c
r88a1bb9 r4eca056 59 59 * @returns FALSE otherwise. 60 60 */ 61 static int dyn_fifo_is_valid(dyn_fifo_ reffifo)61 static int dyn_fifo_is_valid(dyn_fifo_t *fifo) 62 62 { 63 63 return fifo && (fifo->magic_value == DYN_FIFO_MAGIC_VALUE); … … 73 73 * @returns ENOMEM if there is not enough memory left. 74 74 */ 75 int dyn_fifo_initialize(dyn_fifo_ reffifo, int size)75 int dyn_fifo_initialize(dyn_fifo_t *fifo, int size) 76 76 { 77 77 if (!fifo) … … 104 104 * @returns ENOMEM if there is not enough memory left. 105 105 */ 106 int dyn_fifo_push(dyn_fifo_ reffifo, int value, int max_size)106 int dyn_fifo_push(dyn_fifo_t *fifo, int value, int max_size) 107 107 { 108 108 int *new_items; … … 154 154 * @returns ENOENT if the queue is empty. 155 155 */ 156 int dyn_fifo_pop(dyn_fifo_ reffifo)156 int dyn_fifo_pop(dyn_fifo_t *fifo) 157 157 { 158 158 int value; … … 176 176 * @returns ENOENT if the queue is empty. 177 177 */ 178 int dyn_fifo_value(dyn_fifo_ reffifo)178 int dyn_fifo_value(dyn_fifo_t *fifo) 179 179 { 180 180 if (!dyn_fifo_is_valid(fifo)) … … 193 193 * @returns EINVAL if the queue is not valid. 194 194 */ 195 int dyn_fifo_destroy(dyn_fifo_ reffifo)195 int dyn_fifo_destroy(dyn_fifo_t *fifo) 196 196 { 197 197 if (!dyn_fifo_is_valid(fifo)) -
uspace/lib/c/generic/adt/measured_strings.c
r88a1bb9 r4eca056 58 58 * @returns NULL if there is not enough memory left. 59 59 */ 60 measured_string_ ref60 measured_string_t * 61 61 measured_string_create_bulk(const char *string, size_t length) 62 62 { 63 measured_string_ refnew;63 measured_string_t *new; 64 64 65 65 if (length == 0) { … … 67 67 length++; 68 68 } 69 new = (measured_string_ ref) malloc(sizeof(measured_string_t) +69 new = (measured_string_t *) malloc(sizeof(measured_string_t) + 70 70 (sizeof(char) * (length + 1))); 71 71 if (!new) … … 88 88 * @returns NULL if there is not enough memory left. 89 89 */ 90 measured_string_ ref measured_string_copy(measured_string_refsource)91 { 92 measured_string_ refnew;90 measured_string_t *measured_string_copy(measured_string_t *source) 91 { 92 measured_string_t *new; 93 93 94 94 if (!source) 95 95 return NULL; 96 96 97 new = (measured_string_ ref) malloc(sizeof(measured_string_t));97 new = (measured_string_t *) malloc(sizeof(measured_string_t)); 98 98 if (new) { 99 99 new->value = (char *) malloc(source->length + 1); … … 131 131 */ 132 132 int 133 measured_strings_receive(measured_string_ ref*strings, char **data,133 measured_strings_receive(measured_string_t **strings, char **data, 134 134 size_t count) 135 135 { … … 166 166 (*data)[lengths[count] - 1] = '\0'; 167 167 168 *strings = (measured_string_ ref) malloc(sizeof(measured_string_t) *168 *strings = (measured_string_t *) malloc(sizeof(measured_string_t) * 169 169 count); 170 170 if (!*strings) { … … 212 212 * @returns NULL if there is not enough memory left. 213 213 */ 214 static size_t *prepare_lengths(const measured_string_ refstrings, size_t count)214 static size_t *prepare_lengths(const measured_string_t *strings, size_t count) 215 215 { 216 216 size_t *lengths; … … 248 248 * async_data_read_finalize() function. 249 249 */ 250 int measured_strings_reply(const measured_string_ refstrings, size_t count)250 int measured_strings_reply(const measured_string_t *strings, size_t count) 251 251 { 252 252 size_t *lengths; … … 311 311 */ 312 312 int 313 measured_strings_return(int phone, measured_string_ ref*strings, char **data,313 measured_strings_return(int phone, measured_string_t **strings, char **data, 314 314 size_t count) 315 315 { … … 339 339 } 340 340 341 *strings = (measured_string_ ref) malloc(sizeof(measured_string_t) *341 *strings = (measured_string_t *) malloc(sizeof(measured_string_t) * 342 342 count); 343 343 if (!*strings) { … … 385 385 */ 386 386 int 387 measured_strings_send(int phone, const measured_string_ refstrings,387 measured_strings_send(int phone, const measured_string_t *strings, 388 388 size_t count) 389 389 { -
uspace/lib/c/include/adt/char_map.h
r88a1bb9 r4eca056 48 48 typedef struct char_map char_map_t; 49 49 50 /** Type definition of the character string to integer map pointer.51 * @see char_map52 */53 typedef char_map_t *char_map_ref;54 55 50 /** Character string to integer map item. 56 51 * … … 69 64 int next; 70 65 /** Next character array. */ 71 char_map_ ref*items;66 char_map_t **items; 72 67 /** Consistency check magic value. */ 73 68 int magic; 74 69 }; 75 70 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);71 extern int char_map_initialize(char_map_t *); 72 extern void char_map_destroy(char_map_t *); 73 extern int char_map_exclude(char_map_t *, const char *, size_t); 74 extern int char_map_add(char_map_t *, const char *, size_t, const int); 75 extern int char_map_find(const char_map_t *, const char *, size_t); 76 extern int char_map_update(char_map_t *, const char *, size_t, const int); 82 77 83 78 #endif -
uspace/lib/c/include/adt/dynamic_fifo.h
r88a1bb9 r4eca056 44 44 typedef struct dyn_fifo dyn_fifo_t; 45 45 46 /** Type definition of the dynamic fifo queue pointer.47 * @see dyn_fifo48 */49 typedef dyn_fifo_t *dyn_fifo_ref;50 51 46 /** Dynamic first in first out positive integer queue. 52 47 * Possitive integer values only. … … 66 61 }; 67 62 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);63 extern int dyn_fifo_initialize(dyn_fifo_t *, int); 64 extern int dyn_fifo_destroy(dyn_fifo_t *); 65 extern int dyn_fifo_push(dyn_fifo_t *, int, int); 66 extern int dyn_fifo_pop(dyn_fifo_t *); 67 extern int dyn_fifo_value(dyn_fifo_t *); 73 68 74 69 #endif -
uspace/lib/c/include/adt/measured_strings.h
r88a1bb9 r4eca056 47 47 typedef struct measured_string measured_string_t; 48 48 49 /** Type definition of the character string with measured length pointer.50 * @see measured_string51 */52 typedef measured_string_t *measured_string_ref;53 54 49 /** Character string with measured length. 55 50 * … … 64 59 }; 65 60 66 extern measured_string_ refmeasured_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);61 extern measured_string_t *measured_string_create_bulk(const char *, size_t); 62 extern measured_string_t *measured_string_copy(measured_string_t *); 63 extern int measured_strings_receive(measured_string_t **, char **, size_t); 64 extern int measured_strings_reply(const measured_string_t *, size_t); 65 extern int measured_strings_return(int, measured_string_t **, char **, size_t); 66 extern int measured_strings_send(int, const measured_string_t *, size_t); 72 67 73 68 #endif -
uspace/lib/net/generic/generic.c
r88a1bb9 r4eca056 100 100 int 101 101 generic_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) 103 103 { 104 104 aid_t message_id; … … 233 233 int 234 234 generic_translate_req(int phone, int message, device_id_t device_id, 235 services_t service, measured_string_ refconfiguration, 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) 237 237 { 238 238 aid_t message_id; -
uspace/lib/net/generic/net_remote.c
r88a1bb9 r4eca056 63 63 * @see net_get_conf_req() 64 64 */ 65 void net_free_settings(measured_string_ refsettings, char *data)65 void net_free_settings(measured_string_t *settings, char *data) 66 66 { 67 67 if (settings) … … 90 90 */ 91 91 int 92 net_get_conf_req(int net_phone, measured_string_ ref*configuration,92 net_get_conf_req(int net_phone, measured_string_t **configuration, 93 93 size_t count, char **data) 94 94 { … … 118 118 int 119 119 net_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) 121 121 { 122 122 return generic_translate_req(net_phone, NET_NET_GET_DEVICE_CONF, -
uspace/lib/net/il/arp_remote.c
r88a1bb9 r4eca056 83 83 int 84 84 arp_clear_address_req(int arp_phone, device_id_t device_id, services_t protocol, 85 measured_string_ refaddress)85 measured_string_t *address) 86 86 { 87 87 aid_t message_id; … … 133 133 */ 134 134 int arp_device_req(int arp_phone, device_id_t device_id, services_t protocol, 135 services_t netif, measured_string_ refaddress)135 services_t netif, measured_string_t *address) 136 136 { 137 137 aid_t message_id; … … 165 165 int 166 166 arp_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) 168 168 { 169 169 return generic_translate_req(arp_phone, NET_ARP_TRANSLATE, device_id, -
uspace/lib/net/include/arp_interface.h
r88a1bb9 r4eca056 48 48 49 49 extern 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 *); 51 extern int arp_translate_req(int, device_id_t, services_t, measured_string_t *, 52 measured_string_t **, char **); 53 53 extern int arp_clear_device_req(int, device_id_t); 54 54 extern int arp_clear_address_req(int, device_id_t, services_t, 55 measured_string_ ref);55 measured_string_t *); 56 56 extern int arp_clean_cache_req(int); 57 57 extern int arp_connect_module(services_t); -
uspace/lib/net/include/generic.h
r88a1bb9 r4eca056 49 49 services_t); 50 50 extern 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*,51 extern int generic_get_addr_req(int, int, device_id_t, measured_string_t **, 52 52 char **); 53 53 extern int generic_packet_size_req_remote(int, int, device_id_t, … … 58 58 services_t, services_t); 59 59 extern 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 **); 61 61 62 62 #endif -
uspace/lib/net/include/net_interface.h
r88a1bb9 r4eca056 44 44 /*@{*/ 45 45 46 extern int net_get_device_conf_req(int, device_id_t, measured_string_ ref*,46 extern int net_get_device_conf_req(int, device_id_t, measured_string_t **, 47 47 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 *);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 50 extern int net_connect_module(void); 51 51 -
uspace/lib/net/include/netif_local.h
r88a1bb9 r4eca056 158 158 */ 159 159 extern int netif_get_addr_message(device_id_t device_id, 160 measured_string_ refaddress);160 measured_string_t *address); 161 161 162 162 /** Process the netif driver specific message. … … 195 195 device_stats_t *stats); 196 196 197 extern int netif_get_addr_req_local(int, device_id_t, measured_string_ ref*,197 extern int netif_get_addr_req_local(int, device_id_t, measured_string_t **, 198 198 char **); 199 199 extern int netif_probe_req_local(int, device_id_t, int, int); -
uspace/lib/net/include/netif_remote.h
r88a1bb9 r4eca056 41 41 #include <net/packet.h> 42 42 43 extern int netif_get_addr_req_remote(int, device_id_t, measured_string_ ref*,43 extern int netif_get_addr_req_remote(int, device_id_t, measured_string_t **, 44 44 char **); 45 45 extern int netif_probe_req_remote(int, device_id_t, int, int); -
uspace/lib/net/netif/netif_local.c
r88a1bb9 r4eca056 203 203 */ 204 204 int 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) 206 206 { 207 207 int rc; -
uspace/lib/net/netif/netif_remote.c
r88a1bb9 r4eca056 60 60 */ 61 61 int 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) 63 63 { 64 64 return generic_get_addr_req(netif_phone, NET_NETIF_GET_ADDR, device_id, -
uspace/srv/hw/netif/dp8390/dp8390_module.c
r88a1bb9 r4eca056 186 186 } 187 187 188 int netif_get_addr_message(device_id_t device_id, measured_string_ refaddress){188 int netif_get_addr_message(device_id_t device_id, measured_string_t *address){ 189 189 netif_device_t * device; 190 190 int rc; -
uspace/srv/net/il/arp/arp.c
r88a1bb9 r4eca056 126 126 127 127 static int arp_clear_address_req(int arp_phone, device_id_t device_id, 128 services_t protocol, measured_string_ refaddress)128 services_t protocol, measured_string_t *address) 129 129 { 130 130 arp_device_t *device; … … 175 175 */ 176 176 static int arp_proto_create(arp_proto_t **proto, services_t service, 177 measured_string_ refaddress)177 measured_string_t *address) 178 178 { 179 179 int rc; … … 213 213 */ 214 214 static int arp_device_message(device_id_t device_id, services_t service, 215 services_t protocol, measured_string_ refaddress)215 services_t protocol, measured_string_t *address) 216 216 { 217 217 arp_device_t *device; … … 421 421 arp_device_t *device; 422 422 arp_proto_t *proto; 423 measured_string_ refhw_source;423 measured_string_t *hw_source; 424 424 uint8_t *src_hw; 425 425 uint8_t *src_proto; … … 523 523 * @returns NULL if the hardware address is not found in the cache. 524 524 */ 525 static measured_string_ ref525 static measured_string_t * 526 526 arp_translate_message(device_id_t device_id, services_t protocol, 527 measured_string_ reftarget)527 measured_string_t *target) 528 528 { 529 529 arp_device_t *device; 530 530 arp_proto_t *proto; 531 measured_string_ refaddr;531 measured_string_t *addr; 532 532 size_t length; 533 533 packet_t packet; … … 612 612 ipc_call_t *answer, int *answer_count) 613 613 { 614 measured_string_ refaddress;615 measured_string_ reftranslation;614 measured_string_t *address; 615 measured_string_t *translation; 616 616 char *data; 617 617 packet_t packet; -
uspace/srv/net/il/arp/arp.h
r88a1bb9 r4eca056 89 89 struct arp_device { 90 90 /** Actual device hardware address. */ 91 measured_string_ refaddr;91 measured_string_t * addr; 92 92 /** Actual device hardware address data. */ 93 93 char *addr_data; 94 94 /** Broadcast device hardware address. */ 95 measured_string_ refbroadcast_addr;95 measured_string_t * broadcast_addr; 96 96 /** Broadcast device hardware address data. */ 97 97 char *broadcast_data; … … 135 135 struct arp_proto { 136 136 /** Actual device protocol address. */ 137 measured_string_ refaddr;137 measured_string_t *addr; 138 138 /** Actual device protocol address data. */ 139 139 char *addr_data; -
uspace/srv/net/il/ip/ip.c
r88a1bb9 r4eca056 344 344 } 345 345 }; 346 measured_string_ refconfiguration;346 measured_string_t *configuration; 347 347 size_t count = sizeof(names) / sizeof(measured_string_t); 348 348 char *data; … … 623 623 static int 624 624 ip_prepare_packet(in_addr_t *source, in_addr_t dest, packet_t packet, 625 measured_string_ refdestination)625 measured_string_t *destination) 626 626 { 627 627 size_t length; … … 997 997 { 998 998 measured_string_t destination; 999 measured_string_ reftranslation;999 measured_string_t *translation; 1000 1000 char *data; 1001 1001 int phone; -
uspace/srv/net/net/net.c
r88a1bb9 r4eca056 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) … … 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) … … 357 357 */ 358 358 static int net_get_conf(measured_strings_ref netif_conf, 359 measured_string_ refconfiguration, size_t count, char **data)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; -
uspace/srv/net/netif/lo/lo.c
r88a1bb9 r4eca056 70 70 } 71 71 72 int netif_get_addr_message(device_id_t device_id, measured_string_ refaddress)72 int netif_get_addr_message(device_id_t device_id, measured_string_t *address) 73 73 { 74 74 if (!address) -
uspace/srv/net/nil/eth/eth.c
r88a1bb9 r4eca056 293 293 } 294 294 }; 295 measured_string_ refconfiguration;295 measured_string_t *configuration; 296 296 size_t count = sizeof(names) / sizeof(measured_string_t); 297 297 char *data; … … 591 591 */ 592 592 static int eth_addr_message(device_id_t device_id, eth_addr_type_t type, 593 measured_string_ ref*address)593 measured_string_t **address) 594 594 { 595 595 eth_device_t *device; … … 840 840 ipc_call_t *call, ipc_call_t *answer, int *answer_count) 841 841 { 842 measured_string_ refaddress;842 measured_string_t *address; 843 843 packet_t packet; 844 844 size_t addrlen; -
uspace/srv/net/nil/eth/eth.h
r88a1bb9 r4eca056 90 90 91 91 /** Actual device hardware address. */ 92 measured_string_ refaddr;92 measured_string_t *addr; 93 93 /** Actual device hardware address data. */ 94 94 char *addr_data; … … 123 123 124 124 /** Broadcast device hardware address. */ 125 measured_string_ refbroadcast_addr;125 measured_string_t *broadcast_addr; 126 126 }; 127 127 -
uspace/srv/net/nil/nildummy/nildummy.c
r88a1bb9 r4eca056 248 248 */ 249 249 static int nildummy_addr_message(device_id_t device_id, 250 measured_string_ ref*address)250 measured_string_t **address) 251 251 { 252 252 nildummy_device_t *device; … … 377 377 ipc_call_t *call, ipc_call_t *answer, int *answer_count) 378 378 { 379 measured_string_ refaddress;379 measured_string_t *address; 380 380 packet_t packet; 381 381 size_t addrlen; -
uspace/srv/net/nil/nildummy/nildummy.h
r88a1bb9 r4eca056 76 76 size_t mtu; 77 77 /** Actual device hardware address. */ 78 measured_string_ refaddr;78 measured_string_t *addr; 79 79 /** Actual device hardware address data. */ 80 80 char *addr_data; -
uspace/srv/net/tl/icmp/icmp.c
r88a1bb9 r4eca056 413 413 } 414 414 }; 415 measured_string_ refconfiguration;415 measured_string_t *configuration; 416 416 size_t count = sizeof(names) / sizeof(measured_string_t); 417 417 char *data; -
uspace/srv/net/tl/udp/udp.c
r88a1bb9 r4eca056 112 112 } 113 113 }; 114 measured_string_ refconfiguration;114 measured_string_t *configuration; 115 115 size_t count = sizeof(names) / sizeof(measured_string_t); 116 116 char *data;
Note:
See TracChangeset
for help on using the changeset viewer.