-
Notifications
You must be signed in to change notification settings - Fork 3
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
refactor(plugin): Cleanup and consolidate functions #153
Conversation
fc15b6a
to
3a952c8
Compare
3a952c8
to
1a80696
Compare
56618ce
to
d1b854b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, @papazof, very interesting changes!
Cleanup, rename and consolidate plugin/op-related functions: - Move and cleanup op-related declarations/macros from `plugin.h` to `op.h` - Move plugin-related functions from `vaccel.c` to `plugin.c` - Rename plugin-related functions and add `plugin_` prefix - Cleanup and expose both `vaccel_plugin_load()` and `vaccel_parse_and_load()` - Remove fs check from `vaccel_plugin_load()` so the user can provide libraries without a full path. `dlopen` will search in the library path if only a library filename is provided - Remove redundant `misc.c|h` and related tests - Remove `plugin_register|unregister()` from public headers, since they are not currently meant to be used explicitly PR: #153 Signed-off-by: Kostis Papazafeiropoulos <[email protected]> Reviewed-by: Ilias Lagomatis <[email protected]> Approved-by: Ilias Lagomatis <[email protected]>
Update ops with proper function pointer types for `plugin_get_op_func()` results PR: #153 Signed-off-by: Kostis Papazafeiropoulos <[email protected]> Reviewed-by: Ilias Lagomatis <[email protected]> Approved-by: Ilias Lagomatis <[email protected]>
PR: #153 Signed-off-by: github-actions[bot] <[email protected]> Reviewed-by: Ilias Lagomatis <[email protected]> Approved-by: Ilias Lagomatis <[email protected]>
f6c47ee
to
975e0b7
Compare
Cpp-Linter Report
|
Coverage report diff
|
Cleanup, rename and consolidate plugin/op-related functions: - Move and cleanup op-related declarations/macros from `plugin.h` to `op.h` - Move plugin-related functions from `vaccel.c` to `plugin.c` - Rename plugin-related functions and add `plugin_` prefix - Cleanup and expose both `vaccel_plugin_load()` and `vaccel_parse_and_load()` - Remove fs check from `vaccel_plugin_load()` so the user can provide libraries without a full path. `dlopen` will search in the library path if only a library filename is provided - Remove redundant `misc.c|h` and related tests - Remove `plugin_register|unregister()` from public headers, since they are not currently meant to be used explicitly PR: #153 Signed-off-by: Kostis Papazafeiropoulos <[email protected]> Reviewed-by: Ilias Lagomatis <[email protected]> Approved-by: Ilias Lagomatis <[email protected]>
Update ops with proper function pointer types for `plugin_get_op_func()` results PR: #153 Signed-off-by: Kostis Papazafeiropoulos <[email protected]> Reviewed-by: Ilias Lagomatis <[email protected]> Approved-by: Ilias Lagomatis <[email protected]>
Cleanup, rename and consolidate plugin/op-related functions:
plugin.h
toop.h
vaccel.c
toplugin.c
plugin_
prefixvaccel_plugin_load()
andvaccel_parse_and_load()
vaccel_plugin_load()
so the user can provide libraries without a full path.dlopen
will search in the library path if only a library filename is providedmisc.c|h
and related testsplugin_register|unregister()
from public headers, since they are not currently meant to be used explicitlyplugin_get_op_func()
results