Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow aliases in middlewares [12151] #158

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

jparisu
Copy link

@jparisu jparisu commented Jul 16, 2021

Allow to use aliases as names for types in every SH.

Does not break backward compatibility.

Design:
Every new alias added will create its own <alias>.mix file in order for the IS to find it.

Future work:
This is a non efficient way to use aliases as every different alaises regarding the same SH will load dynamically the same library separatly.
Neverthwless, any other way to implement it will cost too much effort and will change the main logic of the core.

Signed-off-by: jparisu javierparis@eprosima.com

Signed-off-by: jparisu <javierparis@eprosima.com>
else()
set(system_types ${_ARG_TYPES})
endif()
message(STATUS "#! is_install_middleware_plugin called with aliases ${_ARG_ALIAS}")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
message(STATUS "#! is_install_middleware_plugin called with aliases ${_ARG_ALIAS}")
message(STATUS "The macro is_install_middleware_plugin is called for the middleware ${_ARG_MIDDLEWARE} with aliases ${_ARG_ALIAS}")

Copy link
Contributor

@lauramg15 lauramg15 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO:

  • Add test

@jparisu jparisu changed the title Allow aliases in middlewares Allow aliases in middlewares [12151 Jul 19, 2021
@jparisu jparisu changed the title Allow aliases in middlewares [12151 Allow aliases in middlewares [12151] Jul 19, 2021
@jparisu jparisu marked this pull request as draft July 19, 2021 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants