The Assimilation Project
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
packetdecoder.h
Go to the documentation of this file.
1 
23 #ifndef _PACKETDECODER_H
24 #define _PACKETDECODER_H
25 #include <projectcommon.h>
26 #include <assimobj.h>
27 #include <frame.h>
28 
31 
33 
34 typedef Frame* (*FramePktConstructor) (gconstpointer tlvstart, gconstpointer pktend, gpointer*, gpointer*);
38  int frametype;
41 };
42 
46  void (*_pfinalize)(AssimObj*);
51  GSList* (*pktdata_to_framesetlist)(PacketDecoder*, gconstpointer pktstart, gconstpointer pktend);
52 };
53 
54 WINEXPORT PacketDecoder* packetdecoder_new(guint objsize, const FrameTypeToFrame* framemap, gint mapsize);
55 
57 #endif /* PACKETDECODER_H */
const FrameTypeToFrame * _framemap
Definition: packetdecoder.h:48
This is the base Frame class object (in-memory TLV (type, length, value)) for every general component...
Definition: frame.h:43
#define WINEXPORT
Definition: projectcommon.h:45
This file defines our base object class: AssimObj.
WINEXPORT PacketDecoder * packetdecoder_new(guint objsize, const FrameTypeToFrame *framemap, gint mapsize)
Initialize our frame type map.
Definition: packetdecoder.c:76
int frametype
One of the Defined Frame Formats from frameformats.h.
Definition: packetdecoder.h:38
Implements basic Frame class.
AssimObj baseclass
Definition: packetdecoder.h:45
Data structure defining the mapping between frametype integers and corresponding demarshalling module...
Definition: packetdecoder.h:37
Project common header file.
void(* _pfinalize)(AssimObj *)
Definition: packetdecoder.h:46
FramePktConstructor * _frametypemap
Definition: packetdecoder.h:50
Frame *(* FramePktConstructor)(gconstpointer tlvstart, gconstpointer pktend, gpointer *, gpointer *)
Definition: packetdecoder.h:34
FramePktConstructor constructor
Definition: packetdecoder.h:40