Changeset 3d4d52d for lib/common.h


Ignore:
Timestamp:
02/17/06 14:49:14 (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:
65a5900
Parents:
f03fc17
Message:

Abstract away opening up traces into a single trace_open_trace that's more
simple and reliable.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/common.h

    r7068467 r3d4d52d  
    11#ifndef COMMON_H
    22#define COMMON_H 1
     3
     4#include "config.h"
    35
    46#ifdef __cplusplus
     
    1719#  define LIBTRACE_CLOSE(file) gzclose(file)
    1820#  define LIBTRACE_WRITE(file,buf,len) gzwrite(file,buf,len)
     21#  define LIBTRACE_FILE gzFile*
    1922#else
    2023#  define LIBTRACE_READ(file,buf,len) read(file,buf,len)
     
    2326#  define LIBTRACE_CLOSE(file) close(file)
    2427#  define LIBTRACE_WRITE(file,buf,len) write(file,buf,len)
     28#  define LIBTRACE_FILE int
    2529#endif
    2630
Note: See TracChangeset for help on using the changeset viewer.