Changeset 37d2975
- Timestamp:
- 10/11/04 14:24:52 (16 years ago)
- 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:
- 2b07596
- Parents:
- ef36351d
- Location:
- lib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/libtrace.h
ref36351d r37d2975 358 358 TRACE_EVENT_SLEEP, 359 359 TRACE_EVENT_PACKET 360 } libtrace_event type_t;360 } libtrace_event_t; 361 361 362 362 typedef struct { 363 libtrace_event type_t type;363 libtrace_event_t type; 364 364 int fd; 365 365 double seconds; 366 } libtrace_event _t;366 } libtrace_eventobj_t; 367 367 368 368 /** process a libtrace event … … 379 379 * TRACE_EVENT_PACKET Packet arrived in <buffer> with size <size> 380 380 */ 381 libtrace_event _t trace_event(struct libtrace_t *trace,381 libtrace_eventobj_t trace_event(struct libtrace_t *trace, 382 382 struct libtrace_packet_t *packet); 383 383 -
lib/trace.c
ref36351d r37d2975 1045 1045 * @author Perry Lorier 1046 1046 */ 1047 libtrace_event _t libtrace_event(struct libtrace_t *trace,1047 libtrace_eventobj_t libtrace_event(struct libtrace_t *trace, 1048 1048 struct libtrace_packet_t *packet) { 1049 libtrace_event _t event;1049 libtrace_eventobj_t event; 1050 1050 /* Is there a packet ready? */ 1051 1051 switch (trace->sourcetype) {
Note: See TracChangeset
for help on using the changeset viewer.