Changeset 6dbc47a for lib/trace.c


Ignore:
Timestamp:
02/21/06 15:48:53 (16 years ago)
Author:
Shane Alcock <salcock@…>
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:
9ff68ff
Parents:
1b4901a
Message:

Updated all formats to use TRACE_FORMAT_* instead of nasty strings
format_rt is in a state where it provides basic client services
Added trace_get_format() function
libtrace_packet_t has a type field for storing format now

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/trace.c

    r0a6638f r6dbc47a  
    116116#include "libtrace_int.h"
    117117#include "format_helper.h"
     118#include "rt_protocol.h"
    118119#include <err.h>
    119120
     
    544545         * structure */
    545546        packet->trace = libtrace;
    546 
     547        packet->type = RT_DATA;
     548       
    547549        if (libtrace->format->read_packet) {
    548550                do {
     
    15661568        return uridata;
    15671569}
     1570
     1571enum base_format_t trace_get_format(struct libtrace_packet_t *packet) {
     1572        assert(packet);
     1573
     1574        return packet->trace->format->type;
     1575}
    15681576       
    15691577/** Update the libtrace error
Note: See TracChangeset for help on using the changeset viewer.