GridLab
Grid Application Toolkit

A simple API for Grid Applications
GAT

Menu



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

pipe.h File Reference

Header file for the sample Pipe CPI provider. More...

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Defines

#define _PIPE_H_   1

Functions

GATResult pipe_adaptor_register_pipe (GATContext error_context, GATRegistry registry, GATTable_const system_config, GATTable_const instance_config, void *token)
 pipe_adaptor_register Registers all CPIs this adaptor provides.


Detailed Description

Header file for the sample Pipe CPI provider.

Date:
Date:
2004/04/28 10:53:34

Version:
Header:
/export/cvs-gridlab/wp-1/Codes/GATEngine/C-reference/adaptors/endpoint/pipe.h,v 1.3 2004/04/28 10:53:34 hartmutkaiser Exp

Copyright (C) Kelly Davis This file is part of the GAT Engine. Contributed by Kelly Davis <kdavis@aei.mpg.de>.

Use, modification and distribution is subject to the Gridlab Software License. (See accompanying file GLlicense.txt or copy at http://www.gridlab.org/GLlicense.txt)

Definition in file pipe.h.


Define Documentation

#define _PIPE_H_   1
 

Definition at line 18 of file pipe.h.


Function Documentation

GATResult pipe_adaptor_register_pipe GATContext    error_context,
GATRegistry    registry,
GATTable_const    system_config,
GATTable_const    instance_config,
void *    token
 

pipe_adaptor_register Registers all CPIs this adaptor provides.

This function is invoked by the loader in the GATEngine when an instance of this adaptor is loaded. Each instance has its own private configuration table.

For every CPI provided the adapter has to hand all the corresponding function pointers to the engine to allow to be called back under certain circumstances. Additionally the adaptor may allocate some private data for every loaded instance. This data is handed back to the adaptor as the first parameter to each of the subsequently called functions.

Parameters:
registry  The registry the adaptor should register its CPIs with.
system_config  The system configuration table.
instance_config  The configuration table for this instance.
token  An arbitrary token used by the loader to identify this adaptor instance
Returns:
An error code.

Definition at line 202 of file pipe.c.

References GATPipeCPI_Data::clone_instance, GATPipeCPI_Data::close, cpi, GATPipeCPI_Data::create_instance, GATPipeCPI_Data::data, GATPipeCPI_Data::destroy, GATPipeCPI_Data::destroy_instance, GATPipeCPI_Data::equals_instance, GAT_CREATE_STATUS, GAT_CURRENT_STATUS, GAT_FAILED, GAT_MEMORYFAILURE, GAT_RETURN_STATUS, GAT_UNUSED_PARAMETER, GAT_USES_STATUS, GATPipeCPI_Create(), GATPipeCPI_Destroy(), GATPIPECPI_VERSION, GATPreferences_Add(), GATPreferences_Create(), GATPreferences_Destroy(), GATTable_const, GATPipeCPI_Data::get_metric_event, GATPipeCPI_Data::get_metrics, pipe_adaptor_PipeCPI_CloneInstance(), pipe_adaptor_PipeCPI_Close(), pipe_adaptor_PipeCPI_CreateInstance(), pipe_adaptor_PipeCPI_Destroy(), pipe_adaptor_PipeCPI_DestroyInstance(), pipe_adaptor_PipeCPI_EqualsInstance(), pipe_adaptor_PipeCPI_GetMetricEvent(), pipe_adaptor_PipeCPI_GetMetrics(), pipe_adaptor_PipeCPI_Read(), pipe_adaptor_PipeCPI_Seek(), pipe_adaptor_PipeCPI_Write(), GATPipeCPI_Data::read, GATPipeCPI_Data::seek, token, and GATPipeCPI_Data::write.

Referenced by endpoint_adaptor_register().