Ignore:
Timestamp:
04/02/08 16:22:01 (5 years ago)
Author:
spa1
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
  • trunk/lib/libtrace_int.h

    r1332 r1335  
    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.