Skip to content
This repository was archived by the owner on Jun 23, 2022. It is now read-only.

refactor: use DSN_REGISTER_COMPONENT_PROVIDER to register aio_provider #507

Merged
merged 17 commits into from
Jun 22, 2020

Conversation

levy5307
Copy link
Contributor

@levy5307 levy5307 commented Jun 18, 2020

1. In rdsn, if we want to register a component provider, we should add register_component_provider in providers.common.cpp, which is a file in dsn_runtime. So the module is coupled with dsn_runtime.
In this pull request, we implement DSN_REGISTER_COMPONENT_PROVIDER. If you want to register a component provider for your module, you can add a DSN_REGISTER_COMPONENT_PROVIDER in this module, and let this module decoupled from dsn_runtime.

2. use DSN_REGISTER_COMPONENT_PROVIDER to register aio_provider

@levy5307 levy5307 marked this pull request as draft June 18, 2020 05:41
@levy5307 levy5307 marked this pull request as ready for review June 18, 2020 08:32
@acelyc111 acelyc111 merged commit 73b1bba into XiaoMi:master Jun 22, 2020
@levy5307 levy5307 deleted the component-provider branch June 22, 2020 03:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants