Ignore:
Timestamp:
02/15/06 11:32:27 (15 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_legacy.c

    r7068467 r6eb91ff  
    136136        if (!strncmp(CONNINFO.path,"-",1)) {
    137137                // STDIN
    138                 libtrace->sourcetype = STDIN;
     138                libtrace->sourcetype = TRACE_SOURCE_STDIN;
    139139                INPUT.file = LIBTRACE_FDOPEN(fileno(stdin), "r");
    140140        } else {
     
    144144                }
    145145                if (S_ISSOCK(buf.st_mode)) {
    146                         libtrace->sourcetype = SOCKET;
     146                        libtrace->sourcetype = TRACE_SOURCE_SOCKET;
    147147                        if ((INPUT.fd = socket(
    148148                                        AF_UNIX, SOCK_STREAM, 0)) == -1) {
     
    163163                        }
    164164                } else {
    165                         libtrace->sourcetype = TRACE;
     165                        libtrace->sourcetype = TRACE_SOURCE_TRACE;
    166166
    167167                        // we use an FDOPEN call to reopen an FD
Note: See TracChangeset for help on using the changeset viewer.