|
|
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(). |