| 1042 | } |
| 1043 | |
| 1044 | void configuration_impl::add_plugin(std::map<plugin_type_e, std::set<std::string>>& _plugins, const plugin_config_data_t& _plugin_data, |
| 1045 | const std::string& _application_name) { |
| 1046 | |
| 1047 | #ifdef _WIN32 |
| 1048 | std::string its_library(_plugin_data.name_); |
| 1049 | its_library += ".dll"; |
| 1050 | #else |
| 1051 | std::string its_library("lib"); |
| 1052 | its_library += _plugin_data.name_; |
| 1053 | its_library += ".so"; |
| 1054 | #endif |
| 1055 | |
| 1056 | if (_plugin_data.type_ == "application_plugin") { |
| 1057 | #if defined(__linux__) || defined(__QNX__) |
| 1058 | its_library += "."; |
| 1059 | its_library += (VSOMEIP_APPLICATION_PLUGIN_VERSION + '0'); |
| 1060 | #endif |
| 1061 | _plugins[plugin_type_e::APPLICATION_PLUGIN].insert(its_library); |
| 1062 | } else if (_plugin_data.type_ == "configuration_plugin") { |
| 1063 | #if defined(__linux__) || defined(__QNX__) |
| 1064 | its_library += "."; |
| 1065 | its_library += (VSOMEIP_PRE_CONFIGURATION_PLUGIN_VERSION + '0'); |
| 1066 | #endif |
| 1067 | _plugins[plugin_type_e::PRE_CONFIGURATION_PLUGIN].insert(its_library); |
| 1068 | } else { |
| 1069 | VSOMEIP_WARNING << "Unknown plug-in type (" << _plugin_data.type_ << ") configured for client: " << _application_name; |
| 1070 | } |
| 1071 | } |
| 1072 | |
| 1073 | void configuration_impl::load_tracing(const configuration_element& _element) { |
| 1074 | try { |