xdas_buf.h File Reference

OpenXDAS network buffer management. More...

#include "xdas_wire.h"
#include <stddef.h>

Go to the source code of this file.

Data Structures

struct  xdas_buffer_tag
 Buffer object holds XDAS wire messages. More...

Defines

#define xdas_buffer_get_uint32(b)   xdas_get_uint32(&(b)->curpos)
#define xdas_buffer_get_uint24(b)   xdas_get_uint24(&(b)->curpos)
#define xdas_buffer_get_uint16(b)   xdas_get_uint16(&(b)->curpos)
#define xdas_buffer_put_uint32(b, v)   xdas_put_uint32(&(b)->curpos,(v))
#define xdas_buffer_put_uint24(b, v)   xdas_put_uint24(&(b)->curpos,(v))
#define xdas_buffer_put_uint16(b, v)   xdas_put_uint16(&(b)->curpos,(v))

Typedefs

typedef struct xdas_buffer_tagxdas_buffer
 Buffer object holds XDAS wire messages.

Functions

xdas_buffer xdas_buffer_alloc (size_t size)
 Allocates a message buffer.
xdas_buffer xdas_buffer_realloc (xdas_buffer buf, size_t size)
 Resizes a message buffer.
xdas_buffer xdas_buffer_dup (xdas_buffer buf)
 Returns a duplicate buffer.
void xdas_buffer_free (xdas_buffer buf)
 Free a message buffer.


Detailed Description

OpenXDAS network buffer management.

Includes structures, constants and functions that used to handle memory allocation for xdas network message buffers.

Author:
John Calcote (jcalcote@novell.com)
Attention:
Please submit patches to http://openxdas.sourceforge.net

Definition in file xdas_buf.h.


Generated on Thu Aug 20 22:33:06 2009 for OpenXDAS by  doxygen 1.5.6