The Assimilation Project
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
intframe.h
Go to the documentation of this file.
1 
27 #ifndef _INTFRAME_H
28 #define _INTFRAME_H
29 #include <projectcommon.h>
30 #include <frame.h>
31 
34 
35 typedef struct _IntFrame IntFrame;
39 struct _IntFrame {
41  int (*intlength)(IntFrame* self);
42  guint64 (*getint)(IntFrame* self);
43  void (*setint)(IntFrame* self, guint64 value);
44  guint64 _value;
45 };
46 
47 WINEXPORT IntFrame* intframe_new(guint16 frametype, int intlength);
48 WINEXPORT Frame* intframe_tlvconstructor(gconstpointer tlvstart, gconstpointer pktend, gpointer*,gpointer*);
50 
51 #endif /* _INTFRAME_H */
This is an IntFrame class TLV (type, length, value) frame - representing an integer of some specified...
Definition: intframe.h:39
This is the base Frame class object (in-memory TLV (type, length, value)) for every general component...
Definition: frame.h:43
WINEXPORT IntFrame * intframe_new(guint16 frametype, int intlength)
Construct new IntFrame object.
Definition: intframe.c:181
#define WINEXPORT
Definition: projectcommon.h:45
Implements basic Frame class.
Project common header file.
WINEXPORT Frame * intframe_tlvconstructor(gconstpointer tlvstart, gconstpointer pktend, gpointer *, gpointer *)
Given marshalled data corresponding to an IntFrame (integer frame), return that corresponding Frame I...
Definition: intframe.c:208
Frame baseclass
base Frame class object
Definition: intframe.h:40
void(* setint)(IntFrame *self, guint64 value)
set the integer to the given value
Definition: intframe.h:43
int(* intlength)(IntFrame *self)
get length of integer this IntFrame supports
Definition: intframe.h:41
guint64 _value
network byte order value of this IntFrame
Definition: intframe.h:44
guint64(* getint)(IntFrame *self)
get value of integer in this IntFrame
Definition: intframe.h:42