Changeset 880aa58 for lib/libtrace.h


Ignore:
Timestamp:
02/16/06 15:44:06 (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:
f03fc17
Parents:
1fbd938
Message:

Added libtrace_set_err() to everything (except format_rt, that's shane's job)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/libtrace.h

    r1fbd938 r880aa58  
    101101
    102102/** Enumeration of error codes */
    103 enum {E_NOERROR, E_BAD_FORMAT, E_NO_INIT, E_NO_INIT_OUT, E_URI_LONG, E_URI_NOCOLON, E_INIT_FAILED };
     103enum {
     104        TRACE_ERR_NOERROR       = 0,
     105        TRACE_ERR_BAD_FORMAT    = -1,
     106        TRACE_ERR_NO_INIT       = -2,
     107        TRACE_ERR_NO_INIT_OUT   = -3,
     108        TRACE_ERR_URI_LONG      = -4,
     109        TRACE_ERR_URI_NOCOLON   = -5,
     110        TRACE_ERR_INIT_FAILED   = -6,
     111        TRACE_ERR_UNKNOWN_OPTION= -7,
     112        TRACE_ERR_NO_CONVERSION = -8,
     113        TRACE_ERR_BAD_PACKET    = -9,
     114        TRACE_ERR_OPTION_UNAVAIL= -10
     115};
    104116
    105117/** @name Packet structures
     
    275287char *trace_get_output_format(const libtrace_out_t *libtrace);
    276288
    277 /** Prints error information
    278  *
    279  * Prints out a descriptive error message for the currently set trace_err value
    280  */
    281 void trace_perror(const char *caller);
    282 
    283289/** @name Creation and destruction of traces
    284290 * These members deal with creating, configuring and cleaning up a trace object
Note: See TracChangeset for help on using the changeset viewer.