This is an automated email from the ASF dual-hosted git repository. xuzhenbao pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/celix.git
commit 0bca5eff57c1dbfb753bff6930fed0cd12875c7d Merge: 6a550a44 e48e5ed6 Author: xuzhenbao <[email protected]> AuthorDate: Tue Feb 20 21:46:05 2024 +0800 Merge pull request #710 from xuzhenbao/improve_zeroconf_discovery Improve zeroconf discovery bundles/remote_services/CMakeLists.txt | 8 +- .../discovery_common/src/discovery.c | 4 +- .../discovery_common/src/discovery_activator.c | 10 +- .../src/endpoint_descriptor_writer.c | 2 +- .../discovery_configured/CMakeLists.txt | 1 + .../remote_services/discovery_etcd/CMakeLists.txt | 1 + .../discovery_zeroconf/CMakeLists.txt | 5 +- .../discovery_zeroconf/gtest/CMakeLists.txt | 9 + .../src/DiscoveryZeroconfActivatorTestSuite.cc | 139 +++ .../src/DiscoveryZeroconfAnnouncerTestSuite.cc | 416 ++++---- .../src/DiscoveryZeroconfIntegrationTestSuite.cc | 2 +- .../gtest/src/DiscoveryZeroconfWatcherTestSuite.cc | 885 +++++++++++++++-- .../src/discovery_zeroconf_activator.c | 102 +- .../src/discovery_zeroconf_announcer.c | 372 ++++--- .../src/discovery_zeroconf_announcer.h | 6 +- .../src/discovery_zeroconf_constants.h | 33 +- .../src/discovery_zeroconf_watcher.c | 1035 ++++++++++++++++---- .../src/discovery_zeroconf_watcher.h | 8 + .../calculator_service/src/calculator_activator.c | 4 +- .../interceptors/src/rs_interceptor_activator.c | 8 +- .../src/remote_example_activator.c | 2 +- .../src/remote_example_impl.c | 2 +- .../remote_service_admin_dfi/CMakeLists.txt | 1 + .../remote_service_admin_dfi/gtest/CMakeLists.txt | 4 + .../gtest/src/rsa_client_server_tests.cc | 148 ++- .../gtest/src/rsa_tests.cc | 14 +- .../src/export_registration_dfi.c | 2 +- .../src/import_registration_dfi.c | 13 +- .../src/import_registration_dfi.h | 5 +- .../src/remote_service_admin_activator.c | 21 +- .../src/remote_service_admin_dfi.c | 204 +++- .../src/remote_service_admin_dfi_constants.h | 12 + .../rsa_shm/CMakeLists.txt | 1 + .../gtest/src/RsaShmActivatorUnitTestSuite.cc | 31 +- .../src/RsaShmExportRegistrationUnitTestSuite.cc | 68 +- .../rsa_shm/gtest/src/RsaShmImplUnitTestSuite.cc | 40 +- .../src/RsaShmImportRegistrationUnitTestSuite.cc | 61 +- .../gtest/src/RsaShmIntegrationTestSuite.cc | 2 +- .../rsa_shm/src/rsa_shm_activator.c | 12 +- .../rsa_shm/src/rsa_shm_constants.h | 24 +- .../rsa_shm/src/rsa_shm_export_registration.c | 41 +- .../rsa_shm/src/rsa_shm_impl.c | 78 +- .../rsa_shm/src/rsa_shm_import_registration.c | 37 +- .../gtest/src/EndpointDescriptionUnitTestSuite.cc | 12 +- .../rsa_common/src/endpoint_description.c | 10 +- .../rsa_common/src/export_registration_impl.c | 2 +- .../rsa_common/src/import_registration_impl.c | 2 +- .../rsa_common/src/remote_interceptors_handler.c | 2 +- .../rsa_common/src/remote_proxy_factory_impl.c | 2 +- .../remote_services/rsa_rpc_json/CMakeLists.txt | 1 + .../gtest/src/RsaJsonRpcIntegrationTestSuite.cc | 2 +- .../gtest/src/RsaJsonRpcUnitTestSuite.cc | 34 +- .../src/RsaRequestSenderTrackerUnitTestSuite.cc | 4 +- .../rsa_rpc_json/src/rsa_json_rpc_activator.c | 6 +- .../rsa_rpc_json/src/rsa_json_rpc_endpoint_impl.c | 4 +- .../rsa_rpc_json/src/rsa_request_sender_tracker.c | 4 +- .../rsa_spi/include/endpoint_listener.h | 4 +- .../rsa_spi/include/remote_constants.h | 55 +- .../rsa_spi/include/remote_endpoint.h | 2 +- .../rsa_spi/include/remote_interceptor.h | 4 +- .../remote_services/rsa_spi/include/remote_proxy.h | 4 +- .../rsa_spi/include/remote_service_admin.h | 2 +- .../rsa_spi/include/rsa_request_handler_service.h | 6 +- .../rsa_spi/include/rsa_request_sender_service.h | 6 +- .../rsa_spi/include/rsa_rpc_factory.h | 14 +- .../topology_manager/CMakeLists.txt | 13 +- .../topology_manager/gtest/CMakeLists.txt | 64 ++ .../src/TopologyManagerErrorInjectionTestSuite.cc | 267 +++++ .../gtest/src/TopologyManagerTestSuite.cc | 472 +++++++++ .../gtest/src/TopologyManagerTestSuiteBaseClass.h | 274 ++++++ .../topology_manager/src/activator.c | 14 +- .../topology_manager/src/topology_manager.c | 762 ++++++++++---- .../topology_manager/src/topology_manager.h | 1 - .../tms_tst/disc_mock/disc_mock_activator.c | 6 +- .../topology_manager/tms_tst/tms_tests.cpp | 38 +- examples/conan_test_package/my_rsa_activator.c | 4 +- libs/error_injector/mdnsresponder/CMakeLists.txt | 2 +- .../mdnsresponder/include/mdnsresponder_ei.h | 2 + .../mdnsresponder/src/mdnsresponder_ei.cc | 16 + libs/framework/error_injector/CMakeLists.txt | 3 +- .../error_injector/celix_bundle_ctx/CMakeLists.txt | 1 + .../include/celix_bundle_context_ei.h | 2 + .../src/celix_bundle_context_ei.cc | 7 + .../celix_dm_component}/CMakeLists.txt | 17 +- .../include/celix_dm_component_ei.h} | 16 +- .../src/celix_dm_component_ei.cc} | 34 +- libs/framework/include/celix_dm_component.h | 3 + .../error_injector/celix_properties/CMakeLists.txt | 1 + .../celix_properties/include/celix_properties_ei.h | 1 + .../celix_properties/src/celix_properties_ei.cc | 7 + .../include/celix_string_hash_map_ei.h | 6 +- .../src/celix_string_hash_map_ei.cc | 7 + libs/utils/include/celix_errno.h | 9 +- 93 files changed, 4875 insertions(+), 1229 deletions(-)
