Changeset e3b0188 for lib


Ignore:
Timestamp:
11/07/05 10:06:22 (16 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:
5843707
Parents:
130a0e4
Message:

a lot of changes for cross-compilation support

  • header ordering
  • os-specific headers
  • an lt_inttypes.h which defines PRIu64 etc for platforms that don't have them
  • removed daglegacy.h, merged with dagformat.h
Location:
lib
Files:
1 added
1 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • lib/Makefile.am

    r41b53c2 re3b0188  
    11lib_LTLIBRARIES = libtrace.la
    2 include_HEADERS = libtrace.h dagformat.h wag.h daglegacy.h
     2include_HEADERS = libtrace.h dagformat.h wag.h lt_inttypes.h
    33
     4libtrace_la_SOURCES = trace.c fifo.c fifo.h common.h format_template.c format_erf.c format_pcap.c format_wag.c format_helper.c format_helper.h parse_cmd.c parse_cmd.h libtrace_int.h lt_inttypes.h
    45if DAG2_4
    5 libtrace_la_SOURCES = trace.c fifo.c fifo.h common.h format_template.c format_erf.c format_pcap.c format_wag.c format_helper.c format_helper.h parse_cmd.c parse_cmd.h libtrace_int.h daglegacy.h
    66nodist_libtrace_la_SOURCES = dagopts.c dagapi.c
    7 else
    8 libtrace_la_SOURCES = trace.c fifo.c fifo.h common.h format_template.c format_erf.c format_pcap.c format_wag.c format_helper.c format_helper.h parse_cmd.c parse_cmd.h libtrace_int.h daglegacy.h
    97endif
    108
  • lib/dagformat.h

    rb87e133 re3b0188  
    8787#define dag_record_size         16
    8888
     89typedef struct legacy_cell {
     90        uint64_t  ts;
     91        uint32_t  crc;
     92} legacy_cell_t;
     93
     94typedef struct legacy_ether {
     95        uint64_t  ts;
     96        uint16_t  wlen;
     97} legacy_ether_t;
     98
     99typedef struct legacy_pos {
     100        uint64_t  ts;
     101        uint32_t  slen;
     102        uint32_t  wlen;
     103} legacy_pos_t;
     104
    89105#endif // _DAGFORMAT_H_
  • lib/format_erf.c

    r117e83b re3b0188  
    6262#include <string.h>
    6363#include <stdlib.h>
    64 #include "daglegacy.h"
    6564
    6665#if HAVE_ZLIB
  • lib/libtrace_int.h

    r7c8eacf re3b0188  
    6969#  include "dagformat.h"
    7070#endif
    71 #include "daglegacy.h"
    7271
    7372typedef enum {SOCKET, TRACE, STDIN, DEVICE, INTERFACE, RT } source_t;
Note: See TracChangeset for help on using the changeset viewer.