-
Notifications
You must be signed in to change notification settings - Fork 46
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
Invalid Filter plugin interface #843
Comments
Note: in |
Thanks, I suspect this might be a documentation issue. We will need to look into it. |
It seems that issue concerns the code of at least one 'filter' plugin too. These 2 'filter' plugins don't have the same API: https://github.com/fledge-iot/fledge-filter-change/blob/develop/plugin.cpp In one case, we can see
and in the second case :
|
I'm using Fledge v2.0.0
There seem to be an inconsistency in FILTER plugin API:
But :
typedef void * PLUGIN_HANDLE;
is defined inplugin_api.h
Thus
handle
is avoid**
and C-style casted toLogFilter*
, which in no way can be a valid cast. (The commentThe plugin handle returned from plugin_init
is not helping here)We may infer that either:
void plugin_ingest(PLUGIN_HANDLE handle, READINGSET *readingSet
LogFilter *log = (LogFilter *) (*handle);
Same issue for
plugin_reconfigure
andplugin_shutdown
The text was updated successfully, but these errors were encountered: