cosmigo / pmotion-purebasic

Cosmigo Pro Motion NG plugins interfaces in PureBasic
Other
4 stars 0 forks source link

Need to define unused DLL functions? #2

Closed tajmone closed 3 years ago

tajmone commented 4 years ago

Missing info on DLL functions.

I need to understand if DLL functions specifically targeting import or export functionality can be left out entirely in those plug-ins that won't use them — i.e. if these functions still require defining DLLProcedures that do nothing, or if they can simply be omitted since PM wouldn't try to call them after having acknowledged the plug-in supported features via the registration functions.

For example, an import plug-in shouldn’t expect any calls to beginWrite() or writeNextImage(), and an export plug-in shouldn’t expect any calls to getTransparentColor() or isAlphaEnabled().

For more info, see also:

tajmone commented 3 years ago

Yes, right now we need to define all DLL functions, even those which will not be used by the plug-in.

This will probably change in future versions of the interface, but in any case to keep backward compatibility with PM v6.5 we'd still need to define them (i.e. stick to interface v1).