GWSOFT.co.uk  

Site by Graham Wharton 
November 21st 2008 06:49:23 PM 



NOTE : This project is not currently in development and is totally unsupported. These pages are here for information only.

getPluginVersion

Declaration

extern "C" void getPluginVersion(version_info &);

Description

This function must be implemented in the plugin. This function accepts a version_info structure which you should fill with appropriate values. version_info is defined in AppFileInfo.h as struct version_info { uint32 major; uint32 middle; uint32 minor; uint32 variety; uint32 internal; char short_info[64]; char long_info[256]; }; short_info should be used for the name of the author (or company name)
long_info should be used for the name of the plugin
major, middle and minor should be used to specify the version
variety and internal are reserved and should not be used (but should be set to 0)

Example Implementation

void getPluginVersion(version_info &ver) { ver.major = 1; ver.middle = 0; ver.minor = 0; ver.variety = 0; ver.internal = 0; sprintf(ver.short_info,"Company Name"); sprintf(ver.long_info,"Plugin Name"); }
BDCP Developers Home Page