Changeset 6eb91ff for lib/format_wag.c


Ignore:
Timestamp:
02/15/06 11:32:27 (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:
49babe0
Parents:
7068467
Message:

Replace DEVICE/RT/TRACE/SOCKET/etc with TRACE_SOURCE_DEVICE/TRACE_SOURCE_RT/
TRACE_SOURCE_TRACE/TRACE_SOURCE_SOCKET/etc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_wag.c

    r7068467 r6eb91ff  
    134134        }
    135135        if (S_ISCHR(buf.st_mode)) {
    136                 libtrace->sourcetype = DEVICE;
     136                libtrace->sourcetype = TRACE_SOURCE_DEVICE;
    137137                               
    138138                INPUT.fd = open(CONNINFO.path, O_RDONLY);
     
    155155        if (!strncmp(CONNINFO.path,"-",1)) {
    156156                /* STDIN */
    157                 libtrace->sourcetype = STDIN;
     157                libtrace->sourcetype = TRACE_SOURCE_STDIN;
    158158                INPUT.file = LIBTRACE_FDOPEN(fileno(stdin),"r");
    159159
     
    192192                */
    193193                        /* TRACE */
    194                         libtrace->sourcetype = TRACE;
     194                        libtrace->sourcetype = TRACE_SOURCE_TRACE;
    195195                       
    196196                        /* we use an FDOPEN call to reopen an FD
     
    425425static struct libtrace_eventobj_t wag_event_trace(struct libtrace_t *trace, struct libtrace_packet_t *packet) {
    426426        switch(trace->sourcetype) {
    427                 case DEVICE:
     427                case TRACE_SOURCE_DEVICE:
    428428                        return trace_event_device(trace,packet);
    429429                default:
Note: See TracChangeset for help on using the changeset viewer.