Changeset 89cc0cc for lib/libtrace.h.in


Ignore:
Timestamp:
11/22/18 17:10:50 (3 years ago)
Author:
Jacob Van Walraven <jcv9@…>
Branches:
develop
Children:
25a3255
Parents:
33b735c
Message:

More assertion cleanups

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/libtrace.h.in

    r33b735c r89cc0cc  
    324324        /** Trace err stat **/
    325325        TRACE_ERR_STAT = -20,
     326        /** Unable to create deadtrace **/
     327        TRACE_ERR_CREATE_DEADTRACE = -21,
    326328};
    327329
     
    15441546 *
    15451547 */
    1546 DLLEXPORT void trace_destroy(libtrace_t *trace);
     1548DLLEXPORT int trace_destroy(libtrace_t *trace);
    15471549
    15481550/** Close a dummy trace file, freeing up any resources it may have been using
    15491551 * @param trace         The dummy trace to be destroyed
    15501552 */
    1551 DLLEXPORT void trace_destroy_dead(libtrace_t *trace);
     1553DLLEXPORT int trace_destroy_dead(libtrace_t *trace);
    15521554
    15531555/** Close an output trace, freeing up any resources it may have been using
    15541556 * @param trace         The output trace to be destroyed
    15551557 */
    1556 DLLEXPORT void trace_destroy_output(libtrace_out_t *trace);
     1558DLLEXPORT int trace_destroy_output(libtrace_out_t *trace);
    15571559
    15581560/** Flush an output trace, forcing any buffered packets to be written
     
    17081710 */
    17091711DLLEXPORT
    1710 void trace_get_thread_statistics(libtrace_t *trace, libtrace_thread_t *t,
     1712int trace_get_thread_statistics(libtrace_t *trace, libtrace_thread_t *t,
    17111713                                 libtrace_stat_t *stats);
    17121714
     
    17421744 */
    17431745DLLEXPORT
    1744 void trace_subtract_statistics(const libtrace_stat_t *a,
     1746int trace_subtract_statistics(const libtrace_stat_t *a,
    17451747                               const libtrace_stat_t *b, libtrace_stat_t *c);
    17461748
     
    17541756 */
    17551757DLLEXPORT
    1756 void trace_add_statistics(const libtrace_stat_t *a,
     1758int trace_add_statistics(const libtrace_stat_t *a,
    17571759                          const libtrace_stat_t *b, libtrace_stat_t *c);
    17581760
     
    19421944 */
    19431945DLLEXPORT
    1944 void trace_construct_packet(libtrace_packet_t *packet,
     1946int trace_construct_packet(libtrace_packet_t *packet,
    19451947                libtrace_linktype_t linktype, const void *data, uint16_t len);
    19461948
Note: See TracChangeset for help on using the changeset viewer.