The Assimilation Project
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
frameset.h
Go to the documentation of this file.
1 
26 #ifndef _FRAMESET_H
27 #define _FRAMESET_H
28 #include <projectcommon.h>
29 #include <glib.h>
30 #include <assimobj.h>
31 #include <frame.h>
32 #include <signframe.h>
33 #include <framesettypes.h>
34 #include <generic_tlv_min.h>
35 #include <seqnoframe.h>
36 
44 struct _FrameSet {
46  GSList* framelist;
47  gpointer packet;
49  gpointer pktend;
50  guint16 fstype;
51  guint16 fsflags;
53  SeqnoFrame* (*getseqno)(FrameSet*);
54 };
55 #define FRAMESET_INITSIZE (GENERICTLV_HDRSZ+sizeof(guint16))
56 
57 WINEXPORT FrameSet* frameset_new(guint16 frameset_type);
60 WINEXPORT void frameset_construct_packet(FrameSet* fs, SignFrame* sign, Frame* crypt, Frame* compress);
61 WINEXPORT Frame* frame_new(guint16 frame_type, gsize framesize);
63 WINEXPORT guint16 frameset_set_flags(FrameSet* f, guint16 flagbits);
64 WINEXPORT guint16 frameset_clear_flags(FrameSet* f, guint16 flagbits);
65 WINEXPORT gpointer frame_append_to_frameset_packet(FrameSet*, Frame*, gpointer curpos);
66 WINEXPORT void frameset_dump(const FrameSet*);
67 
68 #endif /* _FRAMESET_H */