Changeset 084d95a for lib/libtrace.h


Ignore:
Timestamp:
09/05/05 14:44:41 (15 years ago)
Author:
Shane Alcock <salcock@…>
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:
de8c420b
Parents:
03cbfec
Message:

Fixed another reference to sizeof(dag_record_t) and added support for dummy traces

trace_create_dead and trace_destroy_dead

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/libtrace.h

    rca87bcd r084d95a  
    236236struct libtrace_t *trace_create(char *uri);
    237237
     238/** Creates a "dummy" trace file that has only the format type set.
     239 *
     240 * @returns opaque pointer to a (sparsely initialised) libtrace_t
     241 *
     242 * IMPORTANT: Do not attempt to call trace_read_packet or other such functions with
     243 * the dummy trace. Its intended purpose is to act as a packet->trace for libtrace_packet_t's
     244 * that are not associated with a libtrace_t structure.
     245 */
     246struct libtrace_t *trace_create_dead(char *uri);
     247
    238248/** Creates a trace output file from a URI.
    239249 *
     
    263273 */
    264274void trace_destroy(struct libtrace_t *trace);
     275
     276void trace_destroy_dead(struct libtrace_t *trace);
    265277
    266278/** Close a trace output file, freeing up any resources it may have been using
Note: See TracChangeset for help on using the changeset viewer.