The Assimilation Project
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
seqnoframe.h
Go to the documentation of this file.
1 
29 #ifndef _SEQNOFRAME_H
30 #define _SEQNOFRAME_H
31 #include <frame.h>
32 
35 typedef struct _SeqnoFrame SeqnoFrame;
36 
43 struct _SeqnoFrame {
45  guint64 (*getreqid)(SeqnoFrame* self);
46  void (*setreqid)(SeqnoFrame* self, guint64 value);
47  guint16 (*getqid)(SeqnoFrame* self);
48  void (*setqid)(SeqnoFrame* self, guint16 value);
49  guint32 (*getsessionid)(SeqnoFrame* self);
50  int (*equal)(SeqnoFrame* self, SeqnoFrame*rhs);
51  int (*compare)(SeqnoFrame* self, SeqnoFrame*rhs);
52  guint64 _reqid;
53  guint32 _sessionid;
54  guint16 _qid;
55 };
56 WINEXPORT SeqnoFrame* seqnoframe_new(guint16 frametype, int objsize);
57 WINEXPORT SeqnoFrame* seqnoframe_new_init(guint16 frametype, guint64 requestid, guint16 qid);
58 WINEXPORT Frame* seqnoframe_tlvconstructor(gpointer tlvstart, gconstpointer pktend, gpointer*,gpointer*);
59 
61 
62 #endif /* _SEQNOFRAME_H */
guint32 _sessionid
value of this session id
Definition: seqnoframe.h:53
int(* equal)(SeqnoFrame *self, SeqnoFrame *rhs)
Equal compare two SeqnoFrames including qid.
Definition: seqnoframe.h:50
WINEXPORT SeqnoFrame * seqnoframe_new(guint16 frametype, int objsize)
Construct new SeqnoFrame object.
Definition: seqnoframe.c:205
WINEXPORT SeqnoFrame * seqnoframe_new_init(guint16 frametype, guint64 requestid, guint16 qid)
Construct a fully-iniitialized SeqnoFrame object.
Definition: seqnoframe.c:245
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
guint16 _qid
value of this queue id
Definition: seqnoframe.h:54
guint64 _reqid
value of this request id
Definition: seqnoframe.h:52
guint16(* getqid)(SeqnoFrame *self)
get value of queue id
Definition: seqnoframe.h:47
Implements basic Frame class.
WINEXPORT Frame * seqnoframe_tlvconstructor(gpointer tlvstart, gconstpointer pktend, gpointer *, gpointer *)
Construct Frame (SeqnoFrame) object from marshalled packet data.
Definition: seqnoframe.c:171
void(* setqid)(SeqnoFrame *self, guint16 value)
set the queue id
Definition: seqnoframe.h:48
guint64(* getreqid)(SeqnoFrame *self)
get value of request id
Definition: seqnoframe.h:45
Frame baseclass
base Frame class object
Definition: seqnoframe.h:44
void(* setreqid)(SeqnoFrame *self, guint64 value)
set the request id
Definition: seqnoframe.h:46
This is an SeqnoFrame class TLV (type, length, value) frame.
Definition: seqnoframe.h:43
int(* compare)(SeqnoFrame *self, SeqnoFrame *rhs)
Compare two SeqnoFrames: -1, 0, +1.
Definition: seqnoframe.h:51
guint32(* getsessionid)(SeqnoFrame *self)
get value of session id
Definition: seqnoframe.h:49