Changeset f772bc55 in mainline


Ignore:
Timestamp:
2010-11-18T22:56:01Z (14 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
88a1bb9
Parents:
4e5c7ba
Message:

Remove xxx_ref typedefs (part 2).

Location:
uspace
Files:
20 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/net/device.h

    r4e5c7ba rf772bc55  
    5959 */
    6060typedef struct device_stats device_stats_t;
    61 
    62 /** Type definition of the device usage statistics pointer.
    63  * @see device_stats
    64  */
    65 typedef device_stats_t *device_stats_ref;
    6661
    6762/** Device state. */
  • uspace/lib/c/include/net/packet.h

    r4e5c7ba rf772bc55  
    4848typedef struct packet * packet_t;
    4949
    50 /** Type definition of the packet pointer.
    51  * @see packet
    52  */
    53 typedef packet_t * packet_ref;
    54 
    5550/** Type definition of the packet dimension.
    5651 * @see packet_dimension
    5752 */
    5853typedef struct packet_dimension packet_dimension_t;
    59 
    60 /** Type definition of the packet dimension pointer.
    61  * @see packet_dimension
    62  */
    63 typedef packet_dimension_t * packet_dimension_ref;
    6454
    6555/** Packet dimension. */
  • uspace/lib/net/generic/generic.c

    r4e5c7ba rf772bc55  
    138138int
    139139generic_packet_size_req_remote(int phone, int message, device_id_t device_id,
    140     packet_dimension_ref packet_dimension)
     140    packet_dimension_t *packet_dimension)
    141141{
    142142        if (!packet_dimension)
  • uspace/lib/net/generic/packet_remote.c

    r4e5c7ba rf772bc55  
    6464 */
    6565static int
    66 packet_return(int phone, packet_ref packet, packet_id_t packet_id, size_t size)
     66packet_return(int phone, packet_t *packet, packet_id_t packet_id, size_t size)
    6767{
    6868        ipc_call_t answer;
     
    107107 *                      function.
    108108 */
    109 int packet_translate_remote(int phone, packet_ref packet, packet_id_t packet_id)
     109int packet_translate_remote(int phone, packet_t *packet, packet_id_t packet_id)
    110110{
    111111        int rc;
  • uspace/lib/net/il/ip_remote.c

    r4e5c7ba rf772bc55  
    186186 */
    187187int ip_packet_size_req_remote(int ip_phone, device_id_t device_id,
    188     packet_dimension_ref packet_dimension)
     188    packet_dimension_t *packet_dimension)
    189189{
    190190        return generic_packet_size_req_remote(ip_phone, NET_IL_PACKET_SPACE,
  • uspace/lib/net/include/generic.h

    r4e5c7ba rf772bc55  
    5252    char **);
    5353extern int generic_packet_size_req_remote(int, int, device_id_t,
    54     packet_dimension_ref);
     54    packet_dimension_t *);
    5555extern int generic_received_msg_remote(int, int, device_id_t, packet_id_t,
    5656    services_t, services_t);
  • uspace/lib/net/include/ip_remote.h

    r4e5c7ba rf772bc55  
    4444
    4545extern int ip_set_gateway_req_remote(int, device_id_t, in_addr_t);
    46 extern int ip_packet_size_req_remote(int, device_id_t, packet_dimension_ref);
     46extern int ip_packet_size_req_remote(int, device_id_t, packet_dimension_t *);
    4747extern int ip_received_error_msg_remote(int, device_id_t, packet_t, services_t,
    4848    services_t);
  • uspace/lib/net/include/netif_local.h

    r4e5c7ba rf772bc55  
    193193 */
    194194extern int netif_get_device_stats(device_id_t device_id,
    195     device_stats_ref stats);
     195    device_stats_t *stats);
    196196
    197197extern int netif_get_addr_req_local(int, device_id_t, measured_string_ref *,
     
    201201extern int netif_start_req_local(int, device_id_t);
    202202extern int netif_stop_req_local(int, device_id_t);
    203 extern int netif_stats_req_local(int, device_id_t, device_stats_ref);
     203extern int netif_stats_req_local(int, device_id_t, device_stats_t *);
    204204extern int netif_bind_service_local(services_t, device_id_t, services_t,
    205205    async_client_conn_t);
    206206
    207207extern int find_device(device_id_t, netif_device_t **);
    208 extern void null_device_stats(device_stats_ref);
     208extern void null_device_stats(device_stats_t *);
    209209extern void netif_pq_release(packet_id_t);
    210210extern packet_t netif_packet_get_1(size_t);
  • uspace/lib/net/include/netif_remote.h

    r4e5c7ba rf772bc55  
    4747extern int netif_start_req_remote(int, device_id_t);
    4848extern int netif_stop_req_remote(int, device_id_t);
    49 extern int netif_stats_req_remote(int, device_id_t, device_stats_ref);
     49extern int netif_stats_req_remote(int, device_id_t, device_stats_t *);
    5050extern int netif_bind_service_remote(services_t, device_id_t, services_t,
    5151    async_client_conn_t);
  • uspace/lib/net/include/packet_remote.h

    r4e5c7ba rf772bc55  
    3737#include <sys/types.h>
    3838
    39 extern int packet_translate_remote(int, packet_ref, packet_id_t);
     39extern int packet_translate_remote(int, packet_t *, packet_id_t);
    4040extern packet_t packet_get_4_remote(int, size_t, size_t, size_t, size_t);
    4141extern packet_t packet_get_1_remote(int, size_t);
  • uspace/lib/net/include/tl_common.h

    r4e5c7ba rf772bc55  
    5151DEVICE_MAP_DECLARE(packet_dimensions, packet_dimension_t);
    5252
    53 extern int tl_get_ip_packet_dimension(int, packet_dimensions_ref,
    54     device_id_t, packet_dimension_ref *);
     53extern int tl_get_ip_packet_dimension(int, packet_dimensions_t *,
     54    device_id_t, packet_dimension_t **);
    5555extern int tl_get_address_port(const struct sockaddr *, int, uint16_t *);
    56 extern int tl_update_ip_packet_dimension(packet_dimensions_ref, device_id_t,
     56extern int tl_update_ip_packet_dimension(packet_dimensions_t *, device_id_t,
    5757    size_t);
    5858extern int tl_set_address_port(struct sockaddr *, int, uint16_t);
    5959extern int tl_prepare_icmp_packet(int, int, packet_t, services_t);
    60 extern int tl_socket_read_packet_data(int, packet_ref, size_t,
    61     const packet_dimension_ref, const struct sockaddr *, socklen_t);
     60extern int tl_socket_read_packet_data(int, packet_t *, size_t,
     61    const packet_dimension_t *, const struct sockaddr *, socklen_t);
    6262
    6363#endif
  • uspace/lib/net/netif/netif_local.c

    r4e5c7ba rf772bc55  
    181181 */
    182182int netif_stats_req_local(int netif_phone, device_id_t device_id,
    183     device_stats_ref stats)
     183    device_stats_t *stats)
    184184{
    185185        fibril_rwlock_read_lock(&netif_globals.lock);
     
    253253 * @param[in] stats     The usage statistics.
    254254 */
    255 void null_device_stats(device_stats_ref stats)
     255void null_device_stats(device_stats_t *stats)
    256256{
    257257        bzero(stats, sizeof(device_stats_t));
  • uspace/lib/net/netif/netif_remote.c

    r4e5c7ba rf772bc55  
    138138 */
    139139int netif_stats_req_remote(int netif_phone, device_id_t device_id,
    140     device_stats_ref stats)
     140    device_stats_t *stats)
    141141{
    142142        if (!stats)
  • uspace/lib/net/tl/tl_common.c

    r4e5c7ba rf772bc55  
    120120int
    121121tl_get_ip_packet_dimension(int ip_phone,
    122     packet_dimensions_ref packet_dimensions, device_id_t device_id,
    123     packet_dimension_ref *packet_dimension)
     122    packet_dimensions_t *packet_dimensions, device_id_t device_id,
     123    packet_dimension_t **packet_dimension)
    124124{
    125125        int rc;
     
    162162 */
    163163int
    164 tl_update_ip_packet_dimension(packet_dimensions_ref packet_dimensions,
     164tl_update_ip_packet_dimension(packet_dimensions_t *packet_dimensions,
    165165    device_id_t device_id, size_t content)
    166166{
    167         packet_dimension_ref packet_dimension;
     167        packet_dimension_t *packet_dimension;
    168168
    169169        packet_dimension = packet_dimensions_find(packet_dimensions, device_id);
     
    287287 */
    288288int
    289 tl_socket_read_packet_data(int packet_phone, packet_ref packet, size_t prefix,
    290     const packet_dimension_ref dimension, const struct sockaddr *addr,
     289tl_socket_read_packet_data(int packet_phone, packet_t *packet, size_t prefix,
     290    const packet_dimension_t *dimension, const struct sockaddr *addr,
    291291    socklen_t addrlen)
    292292{
  • uspace/lib/packet/generic/packet_server.c

    r4e5c7ba rf772bc55  
    103103};
    104104
    105 int packet_translate_local(int phone, packet_ref packet, packet_id_t packet_id)
     105int packet_translate_local(int phone, packet_t *packet, packet_id_t packet_id)
    106106{
    107107        if (!packet)
  • uspace/lib/packet/include/packet_local.h

    r4e5c7ba rf772bc55  
    4343/*@{*/
    4444
    45 extern int packet_translate_local(int, packet_ref, packet_id_t);
     45extern int packet_translate_local(int, packet_t *, packet_id_t);
    4646extern packet_t packet_get_4_local(int, size_t, size_t, size_t, size_t);
    4747extern packet_t packet_get_1_local(int, size_t);
  • uspace/srv/hw/netif/dp8390/dp8390_module.c

    r4e5c7ba rf772bc55  
    157157}
    158158
    159 int netif_get_device_stats(device_id_t device_id, device_stats_ref stats){
     159int netif_get_device_stats(device_id_t device_id, device_stats_t *stats)
     160{
    160161        netif_device_t * device;
    161162        eth_stat_t * de_stat;
  • uspace/srv/net/netif/lo/lo.c

    r4e5c7ba rf772bc55  
    8181}
    8282
    83 int netif_get_device_stats(device_id_t device_id, device_stats_ref stats)
     83int netif_get_device_stats(device_id_t device_id, device_stats_t *stats)
    8484{
    8585        netif_device_t *device;
     
    9393                return rc;
    9494
    95         memcpy(stats, (device_stats_ref) device->specific,
     95        memcpy(stats, (device_stats_t *) device->specific,
    9696            sizeof(device_stats_t));
    9797
     
    145145        }
    146146
    147         null_device_stats((device_stats_ref) (*device)->specific);
     147        null_device_stats((device_stats_t *) (*device)->specific);
    148148        (*device)->device_id = device_id;
    149149        (*device)->nil_phone = -1;
     
    204204        next = packet;
    205205        do {
    206                 ((device_stats_ref) device->specific)->send_packets++;
    207                 ((device_stats_ref) device->specific)->receive_packets++;
     206                ((device_stats_t *) device->specific)->send_packets++;
     207                ((device_stats_t *) device->specific)->receive_packets++;
    208208                length = packet_get_data_length(next);
    209                 ((device_stats_ref) device->specific)->send_bytes += length;
    210                 ((device_stats_ref) device->specific)->receive_bytes += length;
     209                ((device_stats_t *) device->specific)->send_bytes += length;
     210                ((device_stats_t *) device->specific)->receive_bytes += length;
    211211                next = pq_next(next);
    212212        } while(next);
  • uspace/srv/net/tl/tcp/tcp.c

    r4e5c7ba rf772bc55  
    126126 */
    127127typedef struct tcp_timeout tcp_timeout_t;
    128 
    129 /** Type definition of the TCP timeout pointer.
    130  *  @see tcp_timeout
    131  */
    132 typedef tcp_timeout_t *tcp_timeout_ref;
    133128
    134129/** TCP reply timeout data.
     
    809804    size_t total_length)
    810805{
    811         packet_dimension_ref packet_dimension;
     806        packet_dimension_t *packet_dimension;
    812807        int rc;
    813808
     
    13061301        tcp_socket_data_t *socket_data;
    13071302        socket_core_ref socket;
    1308         packet_dimension_ref packet_dimension;
     1303        packet_dimension_t *packet_dimension;
    13091304
    13101305        /*
     
    15401535int tcp_timeout(void *data)
    15411536{
    1542         tcp_timeout_ref timeout = data;
     1537        tcp_timeout_t *timeout = data;
    15431538        int keep_write_lock = false;
    15441539        socket_core_ref socket;
     
    16171612int tcp_release_after_timeout(void *data)
    16181613{
    1619         tcp_timeout_ref timeout = data;
     1614        tcp_timeout_t *timeout = data;
    16201615        socket_core_ref socket;
    16211616        tcp_socket_data_t *socket_data;
     
    20542049    int globals_read_only)
    20552050{
    2056         tcp_timeout_ref operation_timeout;
     2051        tcp_timeout_t *operation_timeout;
    20572052        fid_t fibril;
    20582053
     
    21592154        socket_core_ref socket;
    21602155        tcp_socket_data_t *socket_data;
    2161         packet_dimension_ref packet_dimension;
     2156        packet_dimension_t *packet_dimension;
    21622157        packet_t packet;
    21632158        size_t total_length;
     
    23012296    tcp_socket_data_t *socket_data, int synchronize, int finalize)
    23022297{
    2303         packet_dimension_ref packet_dimension;
     2298        packet_dimension_t *packet_dimension;
    23042299        tcp_header_t *header;
    23052300        int rc;
     
    23382333        socket_core_ref socket;
    23392334        tcp_socket_data_t *socket_data;
    2340         packet_dimension_ref packet_dimension;
     2335        packet_dimension_t *packet_dimension;
    23412336        int rc;
    23422337
  • uspace/srv/net/tl/udp/udp.c

    r4e5c7ba rf772bc55  
    235235        struct sockaddr *src;
    236236        struct sockaddr *dest;
    237         packet_dimension_ref packet_dimension;
     237        packet_dimension_t *packet_dimension;
    238238        int rc;
    239239
     
    469469        size_t headerlen;
    470470        device_id_t device_id;
    471         packet_dimension_ref packet_dimension;
     471        packet_dimension_t *packet_dimension;
    472472        int rc;
    473473       
     
    714714        ipc_call_t answer;
    715715        int answer_count;
    716         packet_dimension_ref packet_dimension;
     716        packet_dimension_t *packet_dimension;
    717717
    718718        /*
Note: See TracChangeset for help on using the changeset viewer.