[ scummvm-Patches-1885986 ] Plugins versioning

SourceForge.net noreply at sourceforge.net
Mon Feb 4 02:48:09 CET 2008


Patches item #1885986, was opened at 2008-02-04 02:48
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=418822&aid=1885986&group_id=37116

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Jordi Vilalta (jvprat)
Assigned to: Max Horn (fingolfin)
Summary: Plugins versioning

Initial Comment:
I've been following the move to more general plugins with interest, but since there was just a high level roadmap on #scummvm I'm not sure how to help.

It looks like one of the open issues is versioning. The attached patch is a proposal to handle general plugin API version, plugin types and plugin types API version.

It adds a "type" parameter to the REGISTER_PLUGIN macro (currently it's just used to match dynamic plugins API versions).

I think having a generic PLUGIN_alloc function that returns a void pointer to the "plugin meta object" could be enough, since the generic plugin class would know how to cast it depending on the plugin type. With this, the general plugin API could be very stable, even when adding new plugin types, and all plugin types would have the same interface.

But as I said, I'm not sure how you envision the implementation details, so I don't know if it fits your approach. Let me know what can I do to help with this.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=418822&aid=1885986&group_id=37116




More information about the Scummvm-tracker mailing list