You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@celix.apache.org by pn...@apache.org on 2021/02/23 15:24:40 UTC

[celix] 01/01: Merge pull request #310 from apache/feature/cxx_headers

This is an automated email from the ASF dual-hosted git repository.

pnoltes pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/celix.git

commit 9432bd3383b8974ffb2bdfee5065828bbd679e3b
Merge: 3bec2e0 dca3993
Author: Pepijn Noltes <pe...@gmail.com>
AuthorDate: Tue Feb 23 16:24:32 2021 +0100

    Merge pull request #310 from apache/feature/cxx_headers
    
    Adds initial impl for the C++ headers only wrappers

 .gitignore                                         |   1 +
 Doxyfile                                           |   6 +-
 LICENSE                                            |  33 +-
 README.md                                          | 364 +++++++++-
 bundles/CMakeLists.txt                             |   6 +-
 .../http_admin/test/test/http_websocket_tests.cc   |   1 +
 .../log_service_v2/src/log_service_activator.c     |   2 -
 .../pubsub_spi/src/pubsub_interceptors_handler.c   |   2 +-
 .../pubsub_utils/src/pubsub_serializer_handler.c   |   2 +-
 .../rsa_common/src/remote_interceptors_handler.c   |   2 +-
 bundles/shell/CMakeLists.txt                       |   4 +-
 bundles/shell/shell/CMakeLists.txt                 |  52 +-
 bundles/shell/shell/api/celix/IShellCommand.h      |  63 ++
 bundles/shell/shell/api/celix_shell.h              |   2 +-
 bundles/shell/shell/src/Shell.cc                   | 284 ++++++++
 bundles/shell/shell/src/activator.c                | 294 --------
 bundles/shell/shell/src/{shell.c => c_shell.c}     |   0
 bundles/shell/shell/src/c_shell_activator.c        | 162 +++++
 bundles/shell/shell/src/lb_command.c               |  20 +-
 bundles/shell/shell/src/std_commands.c             | 169 +++++
 bundles/shell/shell/src/std_commands.h             |  51 +-
 bundles/shell/shell/test/CMakeLists.txt            |  16 +-
 bundles/shell/shell/test/src/ShellTestSuite.cpp    |  52 ++
 cmake/cmake_celix/BundlePackaging.cmake            |   1 -
 cmake/cmake_celix/ContainerPackaging.cmake         |  41 +-
 cmake/cmake_celix/DockerPackaging.cmake            |  21 +-
 documents/building/README.md                       |   2 +-
 .../getting_started/creating_a_simple_bundle.md    |  28 +-
 documents/intro/README.md                          | 121 +---
 documents/subprojects/README.md                    |  24 +-
 examples/celix-examples/CMakeLists.txt             |   4 +
 .../bundle_with_private_lib/CMakeLists.txt         |   1 +
 .../CMakeLists.txt                                 |  11 +-
 .../api/IAnotherExample.h                          |   0
 .../api/example.h                                  |   0
 .../bar/CMakeLists.txt                             |   2 +-
 .../bar/src/Bar.cc                                 |   0
 .../bar/src/Bar.h                                  |   0
 .../bar/src/BarActivator.cc                        |  53 ++
 .../baz/CMakeLists.txt                             |   2 +-
 .../baz/src/Baz.cc                                 |   0
 .../baz/src/Baz.h                                  |   0
 .../baz/src/BazActivator.cc                        |  44 ++
 .../foo/CMakeLists.txt                             |   2 +-
 .../foo/src/Foo.cc                                 |   0
 .../foo/src/Foo.h                                  |   0
 .../foo/src/FooActivator.cc                        |  33 +-
 examples/celix-examples/dm_example/CMakeLists.txt  |   1 +
 .../celix-examples/dm_example_cxx/CMakeLists.txt   |  10 +-
 .../dm_example_cxx/phase1/src/Phase1Activator.cc   |  50 +-
 .../dm_example_cxx/phase1/src/Phase1Activator.h    |   3 +-
 .../dm_example_cxx/phase2/src/Phase2Cmp.h          |   2 +-
 .../dm_example_cxx/phase2/src/Phase2aActivator.cc  |  41 +-
 .../dm_example_cxx/phase2/src/Phase2aCmp.cc        |   4 +
 .../dm_example_cxx/phase2/src/Phase2bActivator.cc  |  34 +-
 .../dm_example_cxx/phase2/src/Phase2bCmp.cc        |   4 +
 .../dm_example_cxx/phase3/src/Phase3Activator.cc   |   2 +-
 .../phase3_locking/src/Phase3LockingActivator.cc   |   2 +-
 .../celix-examples/export_import/CMakeLists.txt    |   4 +-
 .../celix-examples/hello_world_c/CMakeLists.txt    |   1 +
 .../celix-examples/hello_world_cxx/CMakeLists.txt  |  14 +-
 .../hello_world_cxx/src/BundleActivator.cc         |  45 --
 .../src/MyBundleActivator.cc}                      |  20 +-
 .../celix-examples/http_example/CMakeLists.txt     |   1 +
 .../log_service_example/CMakeLists.txt             |   2 +-
 .../readme_cxx_examples/CMakeLists.txt             |  92 +++
 .../include/ICalc.h}                               |  16 +-
 .../src/CalcProviderBundleActivator.cc}            |  27 +-
 .../src/CalcTrackerBundleActivator.cc}             |  26 +-
 .../src/CalcUserBundleActivator.cc}                |  40 +-
 .../src/FilterExampleBundleActivator.cc            |  52 ++
 .../src/MyBundleActivator.cc}                      |  20 +-
 .../services_example_c/CMakeLists.txt              |   4 +-
 .../celix-examples/services_example_c/README.md    |  10 +-
 .../services_example_cxx/CMakeLists.txt            |  53 +-
 .../README.md                                      |  43 +-
 .../src/FooActivator.h => api/examples/ICalc.h}    |  18 +-
 .../services_example_cxx/bar/src/BarActivator.cc   |  49 --
 .../services_example_cxx/baz/src/BazActivator.cc   |  44 --
 .../src/DynamicConsumerBundleActivator.cc          | 196 ++++++
 .../src/DynamicProviderBundleActivator.cc          | 119 ++++
 .../src/SimpleConsumerBundleActivator.cc           | 119 ++++
 .../src/SimpleProviderBundleActivator.cc           |  64 ++
 .../track_tracker_example/CMakeLists.txt           |   1 +
 libs/framework/doxygen.md                          |  66 ++
 libs/framework/gtest/CMakeLists.txt                |  10 +-
 .../gtest/src/CxxBundleContextTestSuite.cc         | 546 +++++++++++++++
 libs/framework/gtest/src/CxxFilterTestSuite.cc     |  82 +++
 .../gtest/src/CxxFrameworkFactoryTestSuite.cc      |  34 +-
 libs/framework/gtest/src/CxxPropertiesTestSuite.cc |  91 +++
 .../gtest/src/DependencyManagerTestSuite.cc        |   7 +-
 .../framework/gtest/src/HelloWorldCxxActivator.cc  |  21 +-
 .../gtest/src/bundle_context_services_test.cpp     |  28 +-
 libs/framework/include/celix/Bundle.h              |  62 ++
 libs/framework/include/celix/BundleActivator.h     | 135 ++++
 libs/framework/include/celix/BundleContext.h       | 580 ++++++++++++++++
 libs/framework/include/celix/Constants.h           | 164 +++++
 libs/framework/include/celix/Exception.h           |  21 +
 libs/framework/include/celix/Filter.h              | 137 ++++
 libs/framework/include/celix/Framework.h           | 115 ++++
 libs/framework/include/celix/FrameworkFactory.h    |  51 ++
 libs/framework/include/celix/Properties.h          | 268 ++++++++
 .../celix/{dm/Properties.h => ServiceFactory.h}    |  18 +-
 libs/framework/include/celix/ServiceRegistration.h | 351 ++++++++++
 .../include/celix/ServiceRegistrationBuilder.h     | 202 ++++++
 libs/framework/include/celix/TrackerBuilders.h     | 364 ++++++++++
 libs/framework/include/celix/Trackers.h            | 765 +++++++++++++++++++++
 libs/framework/include/celix/UseServiceBuilder.h   | 189 +++++
 .../include/celix/{dm/types.h => Utils.h}          |  57 +-
 libs/framework/include/celix/dm/Component.h        |  16 +-
 libs/framework/include/celix/dm/Component_Impl.h   |  17 +-
 libs/framework/include/celix/dm/Properties.h       |   5 +-
 libs/framework/include/celix/dm/ProvidedService.h  |   1 -
 .../include/celix/dm/ProvidedService_Impl.h        |   2 -
 .../framework/include/celix/dm/ServiceDependency.h |  15 +-
 .../include/celix/dm/ServiceDependency_Impl.h      |  36 +-
 libs/framework/include/celix/dm/types.h            |  54 +-
 libs/framework/include/celix_api.h                 |   4 +-
 libs/framework/include/celix_bundle_activator.h    |  69 --
 libs/framework/include/celix_bundle_context.h      |  28 +-
 libs/framework/include/celix_constants.h           | 186 +++--
 libs/framework/include/celix_framework.h           |  12 +-
 libs/framework/include/celix_log.h                 |   5 +-
 libs/framework/include/dm_component.h              |   3 +-
 libs/framework/include/service_registry.h          |   4 +-
 libs/framework/src/bundle_context.c                |  31 +-
 libs/framework/src/celix_log.c                     |   1 +
 libs/framework/src/dm_component_impl.c             |   6 +-
 libs/framework/src/framework.c                     |  29 +-
 libs/framework/src/service_reference.c             |   2 +-
 libs/framework/src/service_registry.c              |  35 +-
 libs/framework/src/service_tracker.c               |   2 +-
 libs/utils/include/celix_utils.h                   |  14 +
 libs/utils/include/utils.h                         |   2 +-
 libs/utils/private/test/utils_test.cpp             |   9 +-
 libs/utils/src/filter.c                            |  15 +-
 libs/utils/src/properties.c                        |   2 +-
 libs/utils/src/utils.c                             |  13 +-
 138 files changed, 6899 insertions(+), 1294 deletions(-)