The Assimilation Project
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
compressframe.h
Go to the documentation of this file.
1 
24 #ifndef _COMPRESSFRAME_H
25 #define _COMPRESSFRAME_H
26 #include <projectcommon.h>
27 #include <frame.h>
28 
32 
33 #define MAXUDPSIZE 65507
34 #define DEFAULT_COMPRESSION_THRESHOLD (MAXUDPSIZE/3)
35 
36 #define COMPRESS_NONE 0
38 #define COMPRESS_ZLIB 1
39 
40 struct _CompressFrame {
47 };
48 
49 
50 WINEXPORT CompressFrame* compressframe_new(guint16 frame_type, guint16 compression_method);
51 WINEXPORT CompressFrame* compressframe_new_string(guint16 frame_type, const char* compression_name);
52 WINEXPORT Frame* compressframe_tlvconstructor(gconstpointer, gconstpointer, gpointer*,gpointer*);
53 
55 
56 #endif /* _COMPRESSFRAME_H */
This is the base Frame class object (in-memory TLV (type, length, value)) for every general component...
Definition: frame.h:43
WINEXPORT Frame * compressframe_tlvconstructor(gconstpointer, gconstpointer, gpointer *, gpointer *)
#define WINEXPORT
Definition: projectcommon.h:45
guint32 compression_threshold
Definition: compressframe.h:43
This is our CompressFrame class object - used for representing a compression method.
Definition: compressframe.h:41
WINEXPORT CompressFrame * compressframe_new_string(guint16 frame_type, const char *compression_name)
Implements basic Frame class.
Project common header file.
guint8 compression_method
Definition: compressframe.h:45
guint32 decompressed_size
Definition: compressframe.h:44
guint8 compression_index
Definition: compressframe.h:46
WINEXPORT CompressFrame * compressframe_new(guint16 frame_type, guint16 compression_method)