On 06/10/14 14:19, Dimitry Sibiryakov wrote: > Hello, All. > > What is the right method to choose subj for a new plugin? Should it be a > sum of version > numbers of all parent classes (ie IVersioned+IPluginModule+IBasePlugin etc)? >
Choosing version is needed only f you add new type of plugin - for existing plugin types version number is already chosen. If I correctly understood your answer - no. It will be that sum (i.e. FB_PLUGIN_VERSION) + number of virtual functions in type of plugin you are going to add. As a rule of dumb - for any interface version is equal to total number of virtual functions in it. Now let me return to one more aspect. Adding own plugin types by users was not taken into an account initially. What if we change PluginType from unsigned to signed and let users' plugin types be negative (like blob types)? Do you any problems here? A. ------------------------------------------------------------------------------ HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions Find What Matters Most in Your Big Data with HPCC Systems Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. Leverages Graph Analysis for Fast Processing & Easy Data Exploration http://p.sf.net/sfu/hpccsystems Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel
