Changeset 37195b4 for lib/libtrace_int.h


Ignore:
Timestamp:
02/10/06 10:52:41 (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:
7f32bb5
Parents:
56ef532
Message:

Split out legacy from erf
Added config_input, start_input, and start_output hooks for formats

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/libtrace_int.h

    rf9374e9 r37195b4  
    7171#endif
    7272
     73#include <stdbool.h>
     74
    7375typedef enum {SOCKET, TRACE, STDIN, DEVICE, INTERFACE, RT } source_t;
    7476
     
    100102        struct libtrace_format_data_t *format_data; /**<format data pointer */
    101103        source_t sourcetype;    /**< The type (device,file, etc */
     104        bool started;
    102105
    103106        struct libtrace_event_t event;
     
    150153        char *type;
    151154        int (*init_input)(struct libtrace_t *libtrace);
     155        int (*config_input)(struct libtrace_t *libtrace,char *option,void *value);
     156        int (*start_input)(struct libtrace_t *libtrace);
    152157        int (*init_output)(struct libtrace_out_t *libtrace);
    153158        int (*config_output)(struct libtrace_out_t *libtrace, int argc, char *argv[]);
     159        int (*start_output)(struct libtrace_out_t *libtrace);
    154160        int (*fin_input)(struct libtrace_t *libtrace);
    155161        int (*fin_output)(struct libtrace_out_t *libtrace);
    156162        int (*read_packet)(struct libtrace_t *libtrace, struct libtrace_packet_t *packet);
    157163        int (*write_packet)(struct libtrace_out_t *libtrace, const struct libtrace_packet_t *packet);
    158         void* (*get_link)(const struct libtrace_packet_t *packet);
    159164        libtrace_linktype_t (*get_link_type)(const struct libtrace_packet_t *packet);
    160165        int8_t (*get_direction)(const struct libtrace_packet_t *packet);
Note: See TracChangeset for help on using the changeset viewer.