GridLab
Grid Application Toolkit

A simple API for Grid Applications
GAT

Menu



Main Page   Alphabetical List   Compound List   File List   Compound Members   File Members  

GATRequestCPIInstanceData.c File Reference

#include <string.h>
#include "GATCPI.h"
#include "GATRequestCPIInstanceData.h"

Include dependency graph for GATRequestCPIInstanceData.c:

Include dependency graph

Go to the source code of this file.

Functions

GATRequestCPIInstance_DataGATRequestCPIInstance_Data_Create (void)
 GATRequestCPIInstance_Data_Create.

void GATRequestCPIInstance_Data_Destroy (GATRequestCPIInstance_Data **instance_data)
 GATRequestCPIInstance_Data_Destroy.

GATResult GATRequestCPIInstance_Data_Clone (GATRequestCPIInstance_Data const *instance_data, GATRequestCPIInstance_Data **new_instance_data)
 GATRequestCPIInstance_Data_Clone.

GATResult GATRequestCPIInstance_Data_Equals (GATRequestCPIInstance_Data const *lhs, GATRequestCPIInstance_Data const *rhs, GATBool *isequal)
 GATRequestCPIInstance_Data_Equals.


Function Documentation

GATRequestCPIInstance_Data* GATRequestCPIInstance_Data_Create void   
 

GATRequestCPIInstance_Data_Create.

The function GATRequestCPIInstance_Data_Create creates a new instance of the internal CPI instance data.

Returns:
The pointer to the newly created and initialised data structure.

Definition at line 31 of file GATRequestCPIInstanceData.c.

Referenced by resourcebroker_adaptor_GATSelfCPI_CreateRequestForListener().

void GATRequestCPIInstance_Data_Destroy GATRequestCPIInstance_Data **    instance_data
 

GATRequestCPIInstance_Data_Destroy.

The function GATRequestCPIInstance_Data_Destroy is called to free all the memory associated with the given instance data item.

Parameters:
instance_data  The pointer to a variable holding the old instance data item, this is set to zero on exit.

Definition at line 52 of file GATRequestCPIInstanceData.c.

Referenced by resourcebroker_adaptor_GATRequestCPI_DestroyInstance(), and resourcebroker_adaptor_GATSelfCPI_CreateRequestForListener().

GATResult GATRequestCPIInstance_Data_Clone GATRequestCPIInstance_Data const *    instance_data,
GATRequestCPIInstance_Data **    new_instance_data
 

GATRequestCPIInstance_Data_Clone.

The function GATRequestCPIInstance_Data_Clone is called to make a copy of the given instance data item.

Parameters:
instance_data  The instance data item to copy.
new_instance_Data  The pointer to a variable, which receives the newly created copy of the instance data item.
Returns:
An error code.

Definition at line 74 of file GATRequestCPIInstanceData.c.

References GAT_INVALID_PARAMETER, GAT_MEMORYFAILURE, GAT_SUCCESS, GATResult, and GATRequestCPIInstance_Data::start_time.

Referenced by resourcebroker_adaptor_GATRequestCPI_CloneInstance(), and resourcebroker_adaptor_GATRequestCPI_CreateInstance().

GATResult GATRequestCPIInstance_Data_Equals GATRequestCPIInstance_Data const *    lhs,
GATRequestCPIInstance_Data const *    rhs,
GATBool   isequal
 

GATRequestCPIInstance_Data_Equals.

The function GATRequestCPIInstance_Data_Equals is called, whenever the engine needs to compare for equality two different instance data items.

Parameters:
lhs  The first instance data item to compare.
rhs  The second instance data item to compare.
isequal  The pointer to a variable, which receives the result of the compare operation.
Returns:
An error code.

Definition at line 112 of file GATRequestCPIInstanceData.c.

References GAT_SUCCESS, GATBool, GATFalse, GATTrue, and GATRequestCPIInstance_Data::start_time.

Referenced by resourcebroker_adaptor_GATRequestCPI_EqualsInstance().