Ignore:
Timestamp:
08/04/05 15:37:08 (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:
ef55d05
Parents:
fe43699
Message:

moved format.h to libtrace_int.h

pulled out all the format-specific libtrace_t stuff into an opaque pointer which is defined inside each format_*.o file, for both input and output

This seems to work, it compiles at least, and wag and erf both work

rtclient input is currently broken, I suspect it's not stepping over the status properly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_template.c

    rdd22d84 r9e2a109  
    3030
    3131#include "libtrace.h"
    32 #include "format.h"
     32#include "libtrace_int.h"
    3333#include <inttypes.h>
    3434
     35struct libtrace_format_data_t {
     36        int fd;
     37};
    3538static int template_init_input(struct libtrace_t *libtrace) {
     39        libtrace->format_data = (struct libtrace_format_data_t *)
     40                malloc(sizeof(struct libtrace_format_data_t));
    3641        return -1;
    3742}
     
    108113        return;
    109114}
    110 static struct format_t template = {
     115static struct libtrace_format_t template = {
    111116        "template",
    112117        "$Id$",
Note: See TracChangeset for help on using the changeset viewer.