1.1 --- a/sourcemm/CSmmAPI.cpp Thu Oct 06 20:46:49 2005 +0000
1.2 +++ b/sourcemm/CSmmAPI.cpp Thu Oct 06 21:59:10 2005 +0000
1.3 @@ -11,6 +11,7 @@
1.4 #include "CSmmAPI.h"
1.5 #include "sourcemm.h"
1.6 #include "concommands.h"
1.7 +#include "CPlugin.h"
1.8
1.9 /**
1.10 * @brief Implementation of main API interface
1.11 @@ -226,3 +227,17 @@
1.12 {
1.13 return m_Cache;
1.14 }
1.15 +
1.16 +void CSmmAPI::GetApiVersions(int &major, int &minor, int &plvers, int &plmin)
1.17 +{
1.18 + major = SM_VERS_API_MAJOR;
1.19 + minor = SM_VERS_API_MINOR;
1.20 + plvers = PLAPI_VERSION;
1.21 + plmin = PLAPI_MIN_VERSION;
1.22 +}
1.23 +
1.24 +void CSmmAPI::GetShVersions(int &shvers, int &shimpl)
1.25 +{
1.26 + shvers = SH_IFACE_VERSION;
1.27 + shimpl = SH_IMPL_VERSION;
1.28 +}