Changeset 1fbd938 for lib/libtrace_int.h


Ignore:
Timestamp:
02/16/06 11:56:02 (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:
880aa58
Parents:
ee5e4c7
Message:

More -pedantic cleanups
Changed the format structure (again) for pause and seek support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/libtrace_int.h

    r6eb91ff r1fbd938  
    160160        char *version;
    161161        char *type;
    162         int (*init_input)(struct libtrace_t *libtrace);
    163         int (*config_input)(struct libtrace_t *libtrace,trace_option_t option,void *value);
    164         int (*start_input)(struct libtrace_t *libtrace);
    165         int (*init_output)(struct libtrace_out_t *libtrace);
    166         int (*config_output)(struct libtrace_out_t *libtrace, trace_option_output_t, void *);
    167         int (*start_output)(struct libtrace_out_t *libtrace);
    168         int (*fin_input)(struct libtrace_t *libtrace);
    169         int (*fin_output)(struct libtrace_out_t *libtrace);
    170         int (*read_packet)(struct libtrace_t *libtrace, struct libtrace_packet_t *packet);
    171         int (*write_packet)(struct libtrace_out_t *libtrace, const struct libtrace_packet_t *packet);
    172         libtrace_linktype_t (*get_link_type)(const struct libtrace_packet_t *packet);
    173         int8_t (*get_direction)(const struct libtrace_packet_t *packet);
    174         int8_t (*set_direction)(const struct libtrace_packet_t *packet, int8_t direction);
    175         uint64_t (*get_erf_timestamp)(const struct libtrace_packet_t *packet);
    176         struct timeval (*get_timeval)(const struct libtrace_packet_t *packet);
    177         double (*get_seconds)(const struct libtrace_packet_t *packet);
    178         int (*get_capture_length)(const struct libtrace_packet_t *packet);
    179         int (*get_wire_length)(const struct libtrace_packet_t *packet);
    180         int (*get_framing_length)(const struct libtrace_packet_t *packet);
     162        int (*init_input)(libtrace_t *libtrace);
     163        int (*config_input)(libtrace_t *libtrace,trace_option_t option,void *value);
     164        int (*start_input)(libtrace_t *libtrace);
     165        int (*pause_input)(libtrace_t *libtrace);
     166        int (*init_output)(libtrace_out_t *libtrace);
     167        int (*config_output)(libtrace_out_t *libtrace, trace_option_output_t, void *);
     168        int (*start_output)(libtrace_out_t *libtrace);
     169        int (*fin_input)(libtrace_t *libtrace);
     170        int (*fin_output)(libtrace_out_t *libtrace);
     171        int (*read_packet)(libtrace_t *libtrace, struct libtrace_packet_t *packet);
     172        int (*write_packet)(libtrace_out_t *libtrace, const libtrace_packet_t *packet);
     173        libtrace_linktype_t (*get_link_type)(const libtrace_packet_t *packet);
     174        int8_t (*get_direction)(const libtrace_packet_t *packet);
     175        int8_t (*set_direction)(const libtrace_packet_t *packet, int8_t direction);
     176        uint64_t (*get_erf_timestamp)(const libtrace_packet_t *packet);
     177        struct timeval (*get_timeval)(const libtrace_packet_t *packet);
     178        double (*get_seconds)(const libtrace_packet_t *packet);
     179        int (*seek_erf)(libtrace_t *trace, uint64_t timestamp);
     180        int (*seek_timeval)(libtrace_t *trace, struct timeval tv);
     181        int (*seek_seconds)(libtrace_t *trace, double seconds);
     182        int (*get_capture_length)(const libtrace_packet_t *packet);
     183        int (*get_wire_length)(const libtrace_packet_t *packet);
     184        int (*get_framing_length)(const libtrace_packet_t *packet);
    181185        size_t (*set_capture_length)(struct libtrace_packet_t *packet,size_t size);
    182         int (*get_fd)(const struct libtrace_packet_t *packet);
    183         struct libtrace_eventobj_t (*trace_event)(struct libtrace_t *trace, struct libtrace_packet_t *packet); 
     186        int (*get_fd)(const libtrace_packet_t *packet);
     187        struct libtrace_eventobj_t (*trace_event)(libtrace_t *trace, libtrace_packet_t *packet);       
    184188        void (*help)();
    185189};
Note: See TracChangeset for help on using the changeset viewer.