-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[Idea] Hiding plugin instance at library mode #100
Comments
the main reason of getting a reference to the input/output instance, is to be able to set properties or any other kind of future modification. Note that when the end-user call flb_stop(ctx), the engine receives the message and it start releasing resources, internally it does an exit for all input/output instances associated to the main context. The user never need to do an explicit release of the instances, all this happens in the background. |
Thank you for your comment.
So, why should we expose a plugin instance ?
I understand. But I think it is odd from user side. So , I proposed that plugin instances should be hid from user and modify API. |
I am thinking about this, no strong opinion yet, once I finish buffering/scheduling stuff I will focus on API and share more updates. |
I see, I'm waiting. |
I am reviewing this. I think it make sense to have an integer as identifier, thanks for pointing that. |
This patch remove the notion of the input_instance references, instead it uses an unique id that can be mapped easily in an int (similar to file descriptors). Signed-off-by: Eduardo Silva <[email protected]>
@nokute78 I have pushed the changes into api_ffd branch. note: the remaining part are tests. |
I just migrated all tests/examples, changes rebased on master. If is there anything pending or something not working as suggested please add your comments to this tickets. |
Amazing!! That's what I imagined! |
I believe the feature description is not correct anymore, since we can configure the target URI and data format through parameters. Signed-off-by: Fujimoto Seiji <[email protected]>
Now,
flb_output_new
andflb_input_new
return a pointer of plugin instance.Would you move them to
flb_ctx_t
to hide from user ?Like this.
User specify plugin instance with plugin id (like
fd
).Pros:
flb_ctx_t
. User doesn't need to release plugin instances. Engine will do.flb_stop
orflb_destroy
. (Now, it depends on user code.)Cons:
How about this?
The text was updated successfully, but these errors were encountered: