Changeset 590fb30 for lib


Ignore:
Timestamp:
04/02/08 16:22:01 (14 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:
c0dba7a
Parents:
5ceb545
Message:
  • Replaced #define for prepare_packet flags with an enum
  • Added a enum value for a "Do NOT take ownership of the buffer" flag so that all formats can set this flag to a value
File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/libtrace_int.h

    rf0fb38f r590fb30  
    196196/* Flags for prepare_packet functions */
    197197/*-------------------------------------*/
    198 /* If set, the memory pointed to by 'buffer' is malloc()'d and libtrace should
    199  * undertake ownership of that memory. If not set, the memory is treated as
    200  * externally-owned and will not be freed by libtrace when the packet is
    201  * destroyed. */
     198enum {
     199        /* If set, the memory pointed to by 'buffer' is malloc()'d and
     200         * libtrace should undertake ownership of that memory. If not set,
     201         * the memory is treated as externally-owned and will not be freed by
     202         * libtrace when the packet is destroyed. */
     203        TRACE_PREP_OWN_BUFFER           =1,
     204        TRACE_PREP_DO_NOT_OWN_BUFFER    =0
     205};
     206
    202207#define TRACE_PREP_OWN_BUFFER   1
    203208
Note: See TracChangeset for help on using the changeset viewer.