Changeset 0d57541 for lib/trace.c


Ignore:
Timestamp:
02/28/06 13:44:36 (16 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:
5b66921
Parents:
c26ca86
Message:

Add preliminary seek support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/trace.c

    rd8f02df r0d57541  
    16681668        return err;
    16691669}
     1670
     1671int trace_seek_erf_timestamp(libtrace_t *trace, uint64_t ts)
     1672{
     1673        if (trace->format->seek_erf) {
     1674                return trace->format->seek_erf(trace,ts);
     1675        }
     1676        else {
     1677                /*FIXME: can this be transmuted into seek_seconds, or
     1678                 * seek_timeval?
     1679                 */
     1680                trace_set_err(trace,
     1681                                TRACE_ERR_OPTION_UNAVAIL,
     1682                                "Feature unimplemented");
     1683                return -1;
     1684        }
     1685}
     1686
Note: See TracChangeset for help on using the changeset viewer.