Boost logo

Boost Users :

Subject: Re: [Boost-users] Query on Boost.DLL
From: Klaim - Joël Lamotte (mjklaim_at_[hidden])
Date: 2016-02-21 05:59:59


On 21 February 2016 at 00:48, Leo Carreon <lcarreon_at_[hidden]> wrote:

> Hi,
>
> I have been reading the Boost.DLL documentation.
>
> Can a single plugin support multiple API’s?
> If yes, when the multiple API’s are used at the same time; will there be
> only one instance of the plugin loaded or will there be multiple instances
> loaded?
>

I might have misunderstood your question, but I believe that you ca have
anyhting as API of your plugin
and have as many plugin instances as you want.
"plugin" in the library is only a common example of how we use dynamically
loaded shared libraries.
Basically, as long as you have a way to instantiate or acquire a plugin
implementation (for example with a factory function),
it will be managed through a shared_ptr (as the documentation shows).

>
> Regards,
> Leo
>
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net