The Assimilation Project  based on Assimilation version
Go to the documentation of this file.
27 #ifndef _INTFRAME_H
28 #define _INTFRAME_H
29 #include <projectcommon.h>
30 #include <frame.h>
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 };
47 WINEXPORT IntFrame* intframe_new(guint16 frametype, int intlength);
48 WINEXPORT Frame* intframe_tlvconstructor(gpointer tlvstart, gconstpointer pktend, gpointer*,gpointer*);
51 #endif /* _INTFRAME_H */
int(* intlength)(IntFrame *self)
get length of integer this IntFrame supports
Definition: intframe.h:41
This is an IntFrame class TLV (type, length, value) frame - representing an integer of some specified...
Definition: intframe.h:39
guint64(* getint)(IntFrame *self)
get value of integer in this IntFrame
Definition: intframe.h:42
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:179
Definition: projectcommon.h:45
void(* setint)(IntFrame *self, guint64 value)
set the integer to the given value
Definition: intframe.h:43
Implements basic Frame class.
Project common header file.
Frame baseclass
base Frame class object
Definition: intframe.h:40
guint64 _value
network byte order value of this IntFrame
Definition: intframe.h:44
WINEXPORT Frame * intframe_tlvconstructor(gpointer tlvstart, gconstpointer pktend, gpointer *, gpointer *)
Given marshalled data corresponding to an IntFrame (integer frame), return that corresponding Frame I...
Definition: intframe.c:206