Changeset ef36351d for lib/libtrace.h


Ignore:
Timestamp:
10/11/04 13:53:12 (17 years ago)
Author:
Daniel Lawson <dlawson@…>
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:
37d2975
Parents:
4e92740
Message:

fixes in the event framework

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/libtrace.h

    r83e0a25 ref36351d  
    358358        TRACE_EVENT_SLEEP,
    359359        TRACE_EVENT_PACKET
     360} libtrace_eventtype_t;
     361
     362typedef struct {
     363        libtrace_eventtype_t type;
     364        int fd;
     365        double seconds;
    360366} libtrace_event_t;
    361367
    362368/** process a libtrace event
    363  * @returns
     369 * @param trace the libtrace opaque pointer
     370 * @param packet the libtrace_packet opaque pointer
     371 * @param fd a pointer to a file descriptor to listen on
     372 * @param seconds a pointer the time in seconds since to the next event
     373 * @returns libtrace_event struct containing the type, and potential
     374 *      fd or seconds to sleep on
     375 *
     376 * Type can be:
    364377 *  TRACE_EVENT_IOWAIT  Waiting on I/O on <fd>
    365378 *  TRACE_EVENT_SLEEP   Next event in <seconds>
    366379 *  TRACE_EVENT_PACKET  Packet arrived in <buffer> with size <size>
    367380 */
    368 libtrace_event_t trace_event(struct libtrace_packet_t *packet,
    369                 int *fd,double *seconds);
     381libtrace_event_t trace_event(struct libtrace_t *trace,
     382                struct libtrace_packet_t *packet);
    370383
    371384/** setup a BPF filter
Note: See TracChangeset for help on using the changeset viewer.