Ignore:
Timestamp:
12/03/08 13:24:55 (13 years ago)
Author:
Perry Lorier <perry@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
f66a2dca
Parents:
7157db8
Message:

Rewrite the libtrace io subsystem to use the new wandio abstraction layer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_atmhdr.c

    rf0fb38f rc66068d  
    66#include "libtrace_int.h"
    77#include "format_helper.h"
     8#include "wandio.h"
    89
    910#include <sys/stat.h>
     
    2425        union {
    2526                int fd;
    26                 libtrace_io_t *file;
     27                io_t *file;
    2728        } input;
    2829};
     
    5152static int atmhdr_fin_input(libtrace_t *libtrace)
    5253{
    53         libtrace_io_close(INPUT.file);
     54        wandio_destroy(INPUT.file);
    5455        free(libtrace->format_data);
    5556        return 0;
     
    9697        packet->type = TRACE_RT_DATA_ATMHDR;
    9798
    98         if ((numbytes=libtrace_io_read(INPUT.file, buffer, (size_t)12)) != 12)
     99        if ((numbytes=wandio_read(INPUT.file, buffer, (size_t)12)) != 12)
    99100        {
    100101                if (numbytes != 0) {
Note: See TracChangeset for help on using the changeset viewer.