Changeset ffc8c8d for lib/libtrace.h


Ignore:
Timestamp:
08/11/05 11:30:41 (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:
4d5a9a7
Parents:
a8ba977
Message:

better return codes in format_*.c, trace_perror stuff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/libtrace.h

    ra114d8b5 rffc8c8d  
    3636
    3737/** API version as 3 byte hex digits */
    38 #define LIBTRACE_API_VERSION 0x010010
     38#define LIBTRACE_API_VERSION 0x010014
    3939
    4040#ifdef __cplusplus
     
    9494        uint8_t status;
    9595};
     96
     97/** Enumeration of error codes */
     98enum {E_NOERROR, E_BAD_FORMAT, E_NO_INIT, E_NO_INIT_OUT, E_URI_LONG, E_URI_NOCOLON, E_INIT_FAILED };
    9699
    97100/** Structure for dealing with IP packets */
     
    195198void trace_help();
    196199
    197 void trace_perror();
     200/** Prints error information
     201 *
     202 * Prints out a descriptive error message for the currently set trace_err value
     203 */
     204void trace_perror(char *caller);
    198205
    199206/** Create a trace file from a URI
Note: See TracChangeset for help on using the changeset viewer.