#ifndef __frame_h__
#define __frame_h__

typedef struct frameDescriptor_t {
  struct frameDescriptor_t *next;
  char * payload;
  int length;
  int maxLength;
  unsigned char attrib;
  } frameDescriptor_t, *pFrameDescriptor_t;

#define FRAME_ATTRIB_VALID (0x01)
#define FRAME_ATTRIB_INUSE (0x02)

#ifdef __cplusplus
extern "C" {
#endif

int frameInit(void);
pFrameDescriptor_t frameRequest(int reqLength);
void frameReturn(pFrameDescriptor_t pRetFrame);

#ifdef __cplusplus
}
#endif

#endif /* __frame_h__ */

