-
-
Notifications
You must be signed in to change notification settings - Fork 589
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
Support plugins #1266
Support plugins #1266
Conversation
dfc5630
to
9b87c8f
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## next #1266 +/- ##
==========================================
- Coverage 51.64% 51.63% -0.02%
==========================================
Files 59 59
Lines 13236 13349 +113
==========================================
+ Hits 6836 6893 +57
- Misses 6400 6456 +56
|
1d52f0d
to
fcfa63e
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## next #1266 +/- ##
==========================================
- Coverage 51.63% 51.52% -0.12%
==========================================
Files 59 60 +1
Lines 13236 13400 +164
==========================================
+ Hits 6835 6904 +69
- Misses 6401 6496 +95
|
Otherwise epoxy will fail with assertion error. Signed-off-by: Yuxuan Shui <[email protected]>
829bd5b
to
710ebef
Compare
Instead of a fixed table, allow an arbitrary number of backends to be registered through `backend_register`. Slightly refactored configuration validation. As a side-effect, you now have to explicitly specify a backend, because due to the dynamic nature of backends, there is no way to choose a default. Signed-off-by: Yuxuan Shui <[email protected]>
Signed-off-by: Yuxuan Shui <[email protected]>
It's unclear which functions a custom backend will need, let's be conversative first. Signed-off-by: Yuxuan Shui <[email protected]>
And add a pkgconfig file so they can be found. Signed-off-by: Yuxuan Shui <[email protected]>
We want to change the backend interface as little as possible once we release it as a public interface, so while we still can, we should try to give it maximum flexibility. Signed-off-by: Yuxuan Shui <[email protected]>
Signed-off-by: Yuxuan Shui <[email protected]>
Allow loaded plugins to hook into specific backends. Signed-off-by: Yuxuan Shui <[email protected]>
Signed-off-by: Yuxuan Shui <[email protected]>
The idea is to allow backend plugins to override backend functions by modifying this table. Right now, when they do this they are actually changing a global variable and their change will persist after backend resets (!). Store the table inside backend_base solves this problem. Signed-off-by: Yuxuan Shui <[email protected]>
No description provided.