RTI Routing Service Version 7.2.0
RTI_RoutingServiceAdapterPlugin Struct Reference

Adapter plugin. More...

Data Fields

struct RTI_RoutingServiceVersion plugin_version
 The version of this adapter plugin. More...
 
RTI_RoutingServiceAdapterPlugin_DeleteFcn adapter_plugin_delete
 Handles the deletion of the adapter plugin (required). More...
 
RTI_RoutingServiceAdapterPlugin_CreateConnectionFcn adapter_plugin_create_connection
 Handles the creation of connections (required). More...
 
RTI_RoutingServiceAdapterPlugin_DeleteConnectionFcn adapter_plugin_delete_connection
 Handles the deletion of connections (required). More...
 
RTI_RoutingServiceConnection_CreateSessionFcn connection_create_session
 Handles the creation of sessions (optional). More...
 
RTI_RoutingServiceConnection_DeleteSessionFcn connection_delete_session
 Handles the deletion of sessions (optional). More...
 
RTI_RoutingServiceConnection_CreateStreamReaderFcn connection_create_stream_reader
 Handles the creation of stream readers (optional for write-only adapters). More...
 
RTI_RoutingServiceConnection_DeleteStreamReaderFcn connection_delete_stream_reader
 Handles the deletion of stream readers (optional for write-only adapters). More...
 
RTI_RoutingServiceConnection_CreateStreamWriterFcn connection_create_stream_writer
 Handles the creation of stream writers (optional for read-only adapters). More...
 
RTI_RoutingServiceConnection_DeleteStreamWriterFcn connection_delete_stream_writer
 Handles the deletion of stream writers (optional for read-only adapters). More...
 
RTI_RoutingServiceConnection_GetDiscoveryReaderFcn connection_get_input_stream_discovery_reader
 Gets the input stream discovery reader (optional). More...
 
RTI_RoutingServiceConnection_GetDiscoveryReaderFcn connection_get_output_stream_discovery_reader
 Gets the output stream discovery reader (optional). More...
 
RTI_RoutingServiceConnection_CopyTypeRepresentationFcn connection_copy_type_representation
 Handles the copy of type representations (optional). More...
 
RTI_RoutingServiceConnection_DeleteTypeRepresentationFcn connection_delete_type_representation
 Handles the deletion of type representations (optional). More...
 
RTI_RoutingServiceConnection_ToStringFcn connection_to_string
 Returns the string representation of a connection for logging purposes (optional). More...
 
RTI_RoutingServiceAdapterEntity_UpdateFcn connection_update
 Handles configuration changes in a connection (optional). More...
 
RTI_RoutingServiceAdapterEntity_UpdateFcn session_update
 [Not supported] Handles configuration changes in a session (optional). More...
 
RTI_RoutingServiceStreamReader_ReadFcn stream_reader_read
 Reads from an input stream (optional for write-only adapters). More...
 
RTI_RoutingServiceStreamReader_ReturnLoanFcn stream_reader_return_loan
 Returns the loan on the read samples and infos (optional for write-only adapters). More...
 
RTI_RoutingServiceAdapterEntity_UpdateFcn stream_reader_update
 [Not supported] Handles configuration changes in a stream reader (optional). More...
 
RTI_RoutingServiceStreamWriter_WriteFcn stream_writer_write
 Writes to an output stream (optional for read-only adapters). More...
 
RTI_RoutingServiceAdapterEntity_UpdateFcn stream_writer_update
 [Not supported] Handles configuration changes in a stream writer (optional). More...
 
void * user_object
 A place for adapter implementors to keep a pointer to data that may be needed by the implementation. More...
 

Detailed Description

Adapter plugin.

This structure contains the plugin implementation as a set of function pointers.

C adapters are registered with RTI Routing Service using the XML tag <adapter_plugin>

For example:

<dds>
    ...
    <adapter_library name="MyAdapterLib">
        <adapter_plugin name="MyAdapterPlugin">
           <dll>mycadapter</dll>
           <create_function>
               MyAdapterPlugin_create
           </create_function>
        </adapter_plugin>
        ...
    </adapter_library>
    ...
    <routing_service>
    ...
    </routing_service>
    ...
</dds>

In the previous example, MyAdapterPlugin_create is the function that creates and instance of the adapter plugin.

This function must have the following prototype:

See also
RTI_RoutingServiceAdapterPlugin_CreateFcn

Field Documentation

◆ plugin_version

struct RTI_RoutingServiceVersion RTI_RoutingServiceAdapterPlugin::plugin_version

The version of this adapter plugin.

◆ adapter_plugin_delete

RTI_RoutingServiceAdapterPlugin_DeleteFcn RTI_RoutingServiceAdapterPlugin::adapter_plugin_delete

Handles the deletion of the adapter plugin (required).

◆ adapter_plugin_create_connection

RTI_RoutingServiceAdapterPlugin_CreateConnectionFcn RTI_RoutingServiceAdapterPlugin::adapter_plugin_create_connection

Handles the creation of connections (required).

◆ adapter_plugin_delete_connection

RTI_RoutingServiceAdapterPlugin_DeleteConnectionFcn RTI_RoutingServiceAdapterPlugin::adapter_plugin_delete_connection

Handles the deletion of connections (required).

◆ connection_create_session

RTI_RoutingServiceConnection_CreateSessionFcn RTI_RoutingServiceAdapterPlugin::connection_create_session

Handles the creation of sessions (optional).

◆ connection_delete_session

RTI_RoutingServiceConnection_DeleteSessionFcn RTI_RoutingServiceAdapterPlugin::connection_delete_session

Handles the deletion of sessions (optional).

◆ connection_create_stream_reader

RTI_RoutingServiceConnection_CreateStreamReaderFcn RTI_RoutingServiceAdapterPlugin::connection_create_stream_reader

Handles the creation of stream readers (optional for write-only adapters).

◆ connection_delete_stream_reader

RTI_RoutingServiceConnection_DeleteStreamReaderFcn RTI_RoutingServiceAdapterPlugin::connection_delete_stream_reader

Handles the deletion of stream readers (optional for write-only adapters).

◆ connection_create_stream_writer

RTI_RoutingServiceConnection_CreateStreamWriterFcn RTI_RoutingServiceAdapterPlugin::connection_create_stream_writer

Handles the creation of stream writers (optional for read-only adapters).

◆ connection_delete_stream_writer

RTI_RoutingServiceConnection_DeleteStreamWriterFcn RTI_RoutingServiceAdapterPlugin::connection_delete_stream_writer

Handles the deletion of stream writers (optional for read-only adapters).

◆ connection_get_input_stream_discovery_reader

RTI_RoutingServiceConnection_GetDiscoveryReaderFcn RTI_RoutingServiceAdapterPlugin::connection_get_input_stream_discovery_reader

Gets the input stream discovery reader (optional).

◆ connection_get_output_stream_discovery_reader

RTI_RoutingServiceConnection_GetDiscoveryReaderFcn RTI_RoutingServiceAdapterPlugin::connection_get_output_stream_discovery_reader

Gets the output stream discovery reader (optional).

◆ connection_copy_type_representation

RTI_RoutingServiceConnection_CopyTypeRepresentationFcn RTI_RoutingServiceAdapterPlugin::connection_copy_type_representation

Handles the copy of type representations (optional).

◆ connection_delete_type_representation

RTI_RoutingServiceConnection_DeleteTypeRepresentationFcn RTI_RoutingServiceAdapterPlugin::connection_delete_type_representation

Handles the deletion of type representations (optional).

◆ connection_to_string

RTI_RoutingServiceConnection_ToStringFcn RTI_RoutingServiceAdapterPlugin::connection_to_string

Returns the string representation of a connection for logging purposes (optional).

◆ connection_update

RTI_RoutingServiceAdapterEntity_UpdateFcn RTI_RoutingServiceAdapterPlugin::connection_update

Handles configuration changes in a connection (optional).

◆ session_update

RTI_RoutingServiceAdapterEntity_UpdateFcn RTI_RoutingServiceAdapterPlugin::session_update

[Not supported] Handles configuration changes in a session (optional).

◆ stream_reader_read

RTI_RoutingServiceStreamReader_ReadFcn RTI_RoutingServiceAdapterPlugin::stream_reader_read

Reads from an input stream (optional for write-only adapters).

◆ stream_reader_return_loan

RTI_RoutingServiceStreamReader_ReturnLoanFcn RTI_RoutingServiceAdapterPlugin::stream_reader_return_loan

Returns the loan on the read samples and infos (optional for write-only adapters).

◆ stream_reader_update

RTI_RoutingServiceAdapterEntity_UpdateFcn RTI_RoutingServiceAdapterPlugin::stream_reader_update

[Not supported] Handles configuration changes in a stream reader (optional).

◆ stream_writer_write

RTI_RoutingServiceStreamWriter_WriteFcn RTI_RoutingServiceAdapterPlugin::stream_writer_write

Writes to an output stream (optional for read-only adapters).

◆ stream_writer_update

RTI_RoutingServiceAdapterEntity_UpdateFcn RTI_RoutingServiceAdapterPlugin::stream_writer_update

[Not supported] Handles configuration changes in a stream writer (optional).

◆ user_object

void* RTI_RoutingServiceAdapterPlugin::user_object

A place for adapter implementors to keep a pointer to data that may be needed by the implementation.