11#ifndef routingservice_infrastructure_h
12#define routingservice_infrastructure_h
14#include "routingservice/routingservice_dll.h"
15#include "dds_c/dds_c_infrastructure.h"
33#if (defined(RTI_WIN32) || defined(RTI_INTIME))
34 #undef RTI_USER_DLL_EXPORT
35 #define RTI_USER_DLL_EXPORT __declspec(dllexport)
37 #define RTI_USER_DLL_EXPORT
40#define RTI_ROUTING_SERVICE_VERSION {7,4,0,0}
48#define RTI_UNUSED_PARAMETER(x) (void)(x)
100const char * RTI_RoutingServiceProperties_lookup_property_with_prefix(
105extern ROUTERDllExport
106DDS_Boolean RTI_RoutingServiceProperties_add(
111extern ROUTERDllExport
112DDS_Boolean RTI_RoutingServiceProperties_assert(
117extern ROUTERDllExport
118DDS_Boolean RTI_RoutingServiceProperties_equals(
122extern ROUTERDllExport
124RTI_RoutingServiceProperties_copy(
128extern ROUTERDllExport
129void RTI_RoutingServiceProperties_finalize(
132extern ROUTERDllExport
133DDS_Boolean RTI_RoutingServiceProperties_initialize(
144#define RTI_ROUTING_SERVICE_OK 0
151#define RTI_ROUTING_SERVICE_ERROR 1
158#define RTI_ROUTING_SERVICE_ERROR_MAX_LENGTH 1024
160struct RTI_RoutingServiceEnvironmentImpl;
251 int native_error_code,
252 const char *error_format,
277 const char *error_format,
319extern ROUTERDllExport
const char *
335extern ROUTERDllExport
int RTI_RoutingServiceEnvironment_get_native_code(
338extern ROUTERDllExport
339int RTI_RoutingServiceVersion_compare(
350#define RTI_ROUTING_SERVICE_TYPE_REPRESENTATION_DYNAMIC_TYPE 0
355#define RTI_ROUTING_SERVICE_TYPE_REPRESENTATION_XML 1
360#define RTI_ROUTING_SERVICE_TYPE_REPRESENTATION_JAVA_OBJECT 2
362#define RTI_ROUTING_SERVICE_TYPE_REPRESENTATION_FIRST_CUSTOM_REPRESENTATION 100
367#define RTI_ROUTING_SERVICE_DATA_REPRESENTATION_DYNAMIC_DATA 0
372#define RTI_ROUTING_SERVICE_DATA_REPRESENTATION_XML 1
377#define RTI_ROUTING_SERVICE_DATA_REPRESENTATION_JAVA_OBJECT 2
379#define RTI_ROUTING_SERVICE_DATA_REPRESENTATION_FIRST_CUSTOM_REPRESENTATION 100
462#define RTI_RoutingServiceStringSeq_INITIALIZER \
465extern ROUTERDllExport
467RTI_RoutingServiceStringSeq_copy(
499#define RTI_RoutingServiceStreamInfo_INITIALIZER {\
502 RTI_RoutingServiceStringSeq_INITIALIZER, \
506extern ROUTERDllExport
void RTI_RoutingServiceStreamInfo_finalize(
509extern ROUTERDllExport DDS_Boolean RTI_RoutingServiceStreamInfo_initialize(
511 DDS_Boolean is_disposed_stream,
512 const char *stream_name,
513 const char *registered_type_name,
514 int type_dfinition_format,
532 const char *registered_type_name,
552extern ROUTERDllExport
557#define RTI_ROUTING_SERVICE_PROPERTY_PREFIX \
558 "rti.routing_service"
565#define RTI_ROUTING_SERVICE_APP_NAME_PROPERTY_NAME \
566 RTI_ROUTING_SERVICE_PROPERTY_PREFIX".app_name"
573#define RTI_ROUTING_SERVICE_GROUP_PROPERTY_NAME \
574 RTI_ROUTING_SERVICE_PROPERTY_PREFIX".group_name"
581#define RTI_ROUTING_SERVICE_VERSION_PROPERTY_NAME \
582 RTI_ROUTING_SERVICE_PROPERTY_PREFIX".version"
596#define RTI_ROUTING_SERVICE_VERBOSITY_PROPERTY_NAME \
597 RTI_ROUTING_SERVICE_PROPERTY_PREFIX".verbosity"
605#define RTI_ROUTING_SERVICE_ENTITY_RESOURCE_NAME_PROPERTY_NAME \
606 RTI_ROUTING_SERVICE_PROPERTY_PREFIX".entity.resource_name"
RTI_RoutingServiceVerbosity RTI_RoutingServiceEnvironment_get_verbosity(const RTI_RoutingServiceEnvironment *self)
Retrieves the verbosity that Routing Service is using.
const char * RTI_RoutingServiceEnvironment_get_error_message(const RTI_RoutingServiceEnvironment *self)
Returns the error message this environment contains.
struct RTI_RoutingServiceEnvironmentImpl RTI_RoutingServiceEnvironment
The environment permits the return of error information in the RTI Routing Service API and informatio...
Definition: routingservice_infrastructure.h:173
int RTI_RoutingServiceTypeRepresentationKind
Type representation kind.
Definition: routingservice_infrastructure.h:388
RTI_RoutingServiceVerbosity
Verbosity used by Routing Service.
Definition: routingservice_infrastructure.h:204
void RTI_RoutingServiceEnvironment_set_error_w_params(RTI_RoutingServiceEnvironment *self, int overwrite, int error_code, int native_error_code, const char *error_format,...)
Assigns an error into the environment.
struct RTI_RoutingServiceStreamInfo * RTI_RoutingServiceStreamInfo_new_disposed(const char *stream_name)
Creates a stream info for a disposed stream. Disposed streams are no longer available in a data domai...
int RTI_RoutingServiceDataRepresentationKind
Data representation kind.
Definition: routingservice_infrastructure.h:420
void RTI_RoutingServiceEnvironment_set_error(RTI_RoutingServiceEnvironment *self, const char *error_format,...)
Assigns an error into the environment.
struct RTI_RoutingServiceStreamInfo * RTI_RoutingServiceStreamInfo_new_discovered(const char *stream_name, const char *registered_type_name, RTI_RoutingServiceTypeRepresentationKind type_representation_kind, RTI_RoutingServiceTypeRepresentation type_representation)
Creates a stream info for a newly discovered stream.
void RTI_RoutingServiceEnvironment_clear_error(RTI_RoutingServiceEnvironment *self)
Clears an error (if any) set in this environment.
void * RTI_RoutingServiceTypeRepresentation
Type representation.
Definition: routingservice_infrastructure.h:400
const char * RTI_RoutingServiceProperties_lookup_property(const struct RTI_RoutingServiceProperties *self, const char *name)
Searches for a property given its name.
DDS_Boolean RTI_RoutingServiceEnvironment_error_occurred(const RTI_RoutingServiceEnvironment *self)
Checks whether an error has been set in this environment.
void * RTI_RoutingServiceSample
Stream sample.
Definition: routingservice_infrastructure.h:439
void * RTI_RoutingServiceSampleInfo
Stream sample info. In DDS, this is a DDS_SampleInfo object.
Definition: routingservice_infrastructure.h:446
void RTI_RoutingServiceStreamInfo_delete(struct RTI_RoutingServiceStreamInfo *self)
Destroys a stream info.
@ RTI_ROUTING_SERVICE_VERBOSITY_WARN
Definition: routingservice_infrastructure.h:216
@ RTI_ROUTING_SERVICE_VERBOSITY_DEBUG
Definition: routingservice_infrastructure.h:224
@ RTI_ROUTING_SERVICE_VERBOSITY_EXCEPTION
Definition: routingservice_infrastructure.h:212
@ RTI_ROUTING_SERVICE_VERBOSITY_NONE
Definition: routingservice_infrastructure.h:208
@ RTI_ROUTING_SERVICE_VERBOSITY_INFO
Definition: routingservice_infrastructure.h:220
Configuration property.
Definition: routingservice_infrastructure.h:61
char * name
Property name.
Definition: routingservice_infrastructure.h:63
void * value
Property value.
Definition: routingservice_infrastructure.h:65
Set of configuration properties.
Definition: routingservice_infrastructure.h:74
int count
Number of properties in the array.
Definition: routingservice_infrastructure.h:78
struct RTI_RoutingServiceNameValue * properties
Array of configuration properties.
Definition: routingservice_infrastructure.h:76
DDS_Boolean string_values
A non-zero value indicates that all the values of the properties are strings (char *)
Definition: routingservice_infrastructure.h:81
Stream information.
Definition: routingservice_infrastructure.h:478
char * stream_name
The stream name.
Definition: routingservice_infrastructure.h:482
DDS_Boolean disposed
Indicates whether the stream is a newly discovered stream or a disposed stream that no longer exists.
Definition: routingservice_infrastructure.h:495
struct RTI_RoutingServiceTypeInfo type_info
The type information associated with the stream.
Definition: routingservice_infrastructure.h:486
Definition of a String sequence.
Definition: routingservice_infrastructure.h:452
int element_count_max
maximum capacity of the array.
Definition: routingservice_infrastructure.h:458
int element_count
Number of elements in the array.
Definition: routingservice_infrastructure.h:456
char ** element_array
Array of elements.
Definition: routingservice_infrastructure.h:454
Type information.
Definition: routingservice_infrastructure.h:404
RTI_RoutingServiceTypeRepresentationKind type_representation_kind
The representation kind.
Definition: routingservice_infrastructure.h:408
RTI_RoutingServiceTypeRepresentation type_representation
The type representation.
Definition: routingservice_infrastructure.h:410
char * type_name
The registered type name.
Definition: routingservice_infrastructure.h:406
Represents the version of a plugin or RTI Routing Service itself.
Definition: routingservice_infrastructure.h:180
int minor
Minor version number.
Definition: routingservice_infrastructure.h:188
int revision
Revision of a release.
Definition: routingservice_infrastructure.h:196
int release
Release version number.
Definition: routingservice_infrastructure.h:192
int major
Major version number.
Definition: routingservice_infrastructure.h:184