FW Profile - C1 Implementation
FwPrPrivate.h
Go to the documentation of this file.
1 
45 #ifndef FWPR_PRIVATE_H_
46 #define FWPR_PRIVATE_H_
47 
48 #include "FwPrConstants.h"
49 
53 typedef enum {
66 } NodeType_t;
67 
76 
98 typedef struct {
103 } PrANode_t;
104 
121 typedef struct {
126 } PrDNode_t;
127 
152 typedef struct {
157 } PrFlow_t;
158 
186 typedef struct {
199 } PrBaseDesc_t;
200 
254 struct FwPrDesc {
276  void* prData;
277 };
278 
279 #endif /* FWPR_PRIVATE_H_ */
Structure representing a decision node in a procedure.
Definition: FwPrPrivate.h:121
FwPrBool_t PrDummyGuard(FwPrDesc_t prDesc)
Dummy guard which always returns true.
Definition: FwPrCore.c:23
Structure representing an action node in a procedure.
Definition: FwPrPrivate.h:98
FwPrCounterS1_t nOfGuards
the number of guards in the procedure
Definition: FwPrPrivate.h:264
FwPrCounterS1_t iAction
index of the action attached to the node
Definition: FwPrPrivate.h:102
Structure representing the base descriptor of a procedure.
Definition: FwPrPrivate.h:186
void * prData
the pointer to the data manipulated by the procedure actions and guards
Definition: FwPrPrivate.h:276
FwPrCounterS1_t nOfActions
the number of actions in the procedure
Definition: FwPrPrivate.h:262
FwPrCounterS1_t nOfANodes
the number of action nodes in the procedure
Definition: FwPrPrivate.h:194
FwPrCounterS1_t dest
the index of the destination of the control flow
Definition: FwPrPrivate.h:154
PrFlow_t * flows
array holding the control flows in the procedure
Definition: FwPrPrivate.h:192
FwPrCounterS1_t nOfFlows
the number of control flows in the procedure (excluding control flow from initial node) ...
Definition: FwPrPrivate.h:198
PrBaseDesc_t * prBase
pointer to the base descriptor
Definition: FwPrPrivate.h:256
Header file to define all constants and types for the procedure module of the FW Profile.
PrANode_t * aNodes
array holding the action nodes in the procedure
Definition: FwPrPrivate.h:188
An action state in a procedure.
Definition: FwPrPrivate.h:57
unsigned int FwPrCounterU3_t
Type used for unsigned counters with a "long" range.
Definition: FwPrConstants.h:72
FwPrCounterS1_t flowCnt
the counter for the number of control flows added to the procedure
Definition: FwPrPrivate.h:266
int FwPrBool_t
Type used for booleans (0 is "false" and 1 is "true").
Definition: FwPrConstants.h:48
PrDNode_t * dNodes
array holding the decision nodes in the procedure
Definition: FwPrPrivate.h:190
FwPrCounterS1_t iGuard
the index of the guard associated to the control flow
Definition: FwPrPrivate.h:156
A decision node in a procedure.
Definition: FwPrPrivate.h:61
void(* FwPrAction_t)(FwPrDesc_t)
Type for a pointer to a procedure action.
Definition: FwPrConstants.h:45
Structure representing a control flow.
Definition: FwPrPrivate.h:152
FwPrCounterU3_t nodeExecCnt
the node execution counter
Definition: FwPrPrivate.h:274
FwPrErrCode_t errCode
either 'success' or the code of the last error encountered by the procedure
Definition: FwPrPrivate.h:270
FwPrErrCode_t
Error codes and function return codes for the procedure functions.
Definition: FwPrConstants.h:81
FwPrCounterS1_t outFlowIndex
index of first out-going control flow in control flow array
Definition: FwPrPrivate.h:123
signed char FwPrCounterS1_t
Type used for signed counters with a "short" range.
Definition: FwPrConstants.h:78
Structure representing a procedure descriptor.
Definition: FwPrPrivate.h:254
FwPrCounterS1_t nOfOutTrans
number of outgoing control flows from the decision node
Definition: FwPrPrivate.h:125
FwPrAction_t * prActions
the procedure actions
Definition: FwPrPrivate.h:258
Either the initial or the final node.
Definition: FwPrPrivate.h:65
FwPrCounterS1_t iFlow
index of out-going control flows
Definition: FwPrPrivate.h:100
FwPrCounterU3_t prExecCnt
the procedure execution counter
Definition: FwPrPrivate.h:272
NodeType_t
Enumerated type for the type of a node in a procedure.
Definition: FwPrPrivate.h:53
FwPrGuard_t * prGuards
the control flow guards in the procedure
Definition: FwPrPrivate.h:260
FwPrCounterS1_t nOfDNodes
the number of decision nodes in the procedure
Definition: FwPrPrivate.h:196
FwPrCounterS1_t curNode
the current node of the procedure
Definition: FwPrPrivate.h:268
FwPrBool_t(* FwPrGuard_t)(FwPrDesc_t)
Type for a pointer to a procedure guard.
Definition: FwPrConstants.h:63
P&P Software GmbH, Copyright 2011, All Rights Reserved