Skip to content

Create register_* macros - #59

Open
lforchini wants to merge 1 commit into
nutanix:mainfrom
lforchini:register-macros
Open

lforchini wants to merge 1 commit into
nutanix:mainfrom
lforchini:register-macros

Conversation

@lforchini

Copy link
Copy Markdown
Collaborator

Introduce register_backend and register_engine which take a name and a builder function to register it into the plugin system. Engine and Backend implementations now don't care about the exact registration mechanism.

I had to introduce RegisterableBackend/Engine to keep the original traits dyn-compatible.

Introduce register_backend and register_engine which take a name and
a builder function to register it into the plugin system. Engine and
Backend implementations now don't care about the exact registration
mechanism.

Signed-off-by: Leonardo Forchini <leonardo.forchini@nutanix.com>
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.

1 participant