Changeset 7068467 for lib/libtrace_int.h


Ignore:
Timestamp:
02/10/06 18:02:32 (16 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:
6eb91ff
Parents:
7f32bb5
Message:

Major cleanup of libtrace3
Lots of documentation fixes
Lots of zerocopy fixes
Lots of config option fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/libtrace_int.h

    r37195b4 r7068467  
    7777
    7878extern struct trace_err_t{
    79         int err_num;    // error code
    80         char problem[255];      // the format, uri etc that caused the error for reporting purposes
     79        int err_num;            /* error code */
     80        char problem[255];      /* the format, uri etc that caused the error for reporting purposes */
    8181} trace_err;
    8282
     
    153153        char *type;
    154154        int (*init_input)(struct libtrace_t *libtrace);
    155         int (*config_input)(struct libtrace_t *libtrace,char *option,void *value);
     155        int (*config_input)(struct libtrace_t *libtrace,trace_option_t option,void *value);
    156156        int (*start_input)(struct libtrace_t *libtrace);
    157157        int (*init_output)(struct libtrace_out_t *libtrace);
    158         int (*config_output)(struct libtrace_out_t *libtrace, int argc, char *argv[]);
     158        int (*config_output)(struct libtrace_out_t *libtrace, trace_option_output_t, void *);
    159159        int (*start_output)(struct libtrace_out_t *libtrace);
    160160        int (*fin_input)(struct libtrace_t *libtrace);
     
    180180
    181181void register_format(struct libtrace_format_t *format);
     182
     183libtrace_linktype_t pcap_dlt_to_libtrace(int dlt);
     184char libtrace_to_pcap_dlt(libtrace_linktype_t type);
     185libtrace_linktype_t erf_type_to_libtrace(char erf);
     186char libtrace_to_erf_type(libtrace_linktype_t linktype);
     187
    182188       
    183189#ifdef __cplusplus
     
    185191#endif
    186192
    187 #endif // LIBTRACE_INT_H
     193#endif /* LIBTRACE_INT_H */
Note: See TracChangeset for help on using the changeset viewer.