VortexFrame * vortex_frame_create ( VortexFrameType  type,
int  channel,
int  msgno,
axl_bool  more,
unsigned int  seqno,
int  size,
int  ansno,
const void *  payload 
)

Creates a new frame object (VortexFrame) using the given data.

Also check vortex_frame_create_full for a full support on creating new frames, also specifying content type and content transfer encoding values.

Parameters:
type The frame type to build.
channel The channel number the frame have.
msgno The message number the frame have.
more More flag configuration for the frame.
seqno The sequence number for the frame to build.
size The frame payload size.
ansno The answer number the frame have.
payload The payload the frame hold.
Returns:
A newly created VortexFrame object that must be unrefered using vortex_frame_free when no longer needed.