ucx/buffer.h

changeset 61
fb07a0ab9a17
parent 60
abae4669fba7
child 62
6814aea8462d
     1.1 --- a/ucx/buffer.h	Wed Oct 10 09:54:57 2012 +0200
     1.2 +++ b/ucx/buffer.h	Wed Oct 10 10:04:01 2012 +0200
     1.3 @@ -7,11 +7,14 @@
     1.4  extern "C" {
     1.5  #endif
     1.6  
     1.7 +#define UCX_BUFFER_DEFAULT      0x00
     1.8 +#define UCX_BUFFER_AUTOFREE     0x01
     1.9  
    1.10  /* the user shall not modify values */
    1.11  typedef struct UcxBuffer UcxBuffer;
    1.12  
    1.13 -UcxBuffer *ucx_buffer_new(void *space, size_t length);
    1.14 +/* if space is NULL, new space is allocated and the autofree flag is enforced */
    1.15 +UcxBuffer *ucx_buffer_new(void *space, size_t length, int flags);
    1.16  void ucx_buffer_free(UcxBuffer* buffer);
    1.17  
    1.18  /*

mercurial