Main Page   Compound List   File List   Compound Members   File Members  

checkpoint_int.h File Reference

#include "checkpoint.h"

Go to the source code of this file.

Functions

int HCI_PushNode (HC_Sequence_t *sequence, long node)
long HCI_PopNode (HC_Sequence_t *sequence)
int HCI_CallNormal (HC_Sequence_t *sequence, long nodenum, void *userdata)
int HCI_CallRollback (HC_Sequence_t *sequence, long nodenum, void *userdata, unsigned long checkpoint)
int HCI_CallPolicy (HC_Sequence_t *sequence, long nodenum, void *userdata, HC_PolicyEvent_t event, long policy_data)


Detailed Description

Internal data structures and functions for the HAFTA checkpoint library.


Function Documentation

int HCI_CallNormal HC_Sequence_t   sequence,
long    nodenum,
void *    userdata
 

Call the normal function for the given node.

Parameters:
sequence  Sequence object.
nodenum  Node number of the normal function.
userdata  User-defined data.
Returns:
An error code.

int HCI_CallPolicy HC_Sequence_t   sequence,
long    nodenum,
void *    userdata,
HC_PolicyEvent_t    event,
long    policy_data
 

Call the policy function for the given node.

Parameters:
sequence  Sequence object.
nodenum  Node number of the policy function.
userdata  User-defined data.
event  The event that has occured.
policy_data  The policy-specific data.
Returns:
An error code.

int HCI_CallRollback HC_Sequence_t   sequence,
long    nodenum,
void *    userdata,
unsigned long    checkpoint
 

Call the rollback function for the given node.

Parameters:
sequence  Sequence object.
nodenum  Node number of the rollback function.
userdata  User-defined data.
checkpoint  The checkpoint value last cleared in the normal function.
Returns:
An error code.

long HCI_PopNode HC_Sequence_t   sequence
 

Pops a node from the stack.

Parameters:
sequence  The sequence object.
Returns:
The node popped from the stack or an error code (<0)

int HCI_PushNode HC_Sequence_t   sequence,
long    node
 

Pushes a node onto the stack.

Parameters:
sequence  The sequence object.
node  The node to be pushed.
Returns:
An error code.


Copyright ©2003. Astra Network Inc. All Rights Reserved.