From cd6b7a8cda83f54679634624e84e92b91cf80683 Mon Sep 17 00:00:00 2001 From: Daniel De Graaf Date: Thu, 1 Apr 2010 18:50:16 -0500 Subject: Split up API_VERSION number Since we can make API changes in multiple branches at the same time, a single sequence number is insufficient. Use two numbers to indicate the major version and API increment. --- src/modules.cpp | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'src') diff --git a/src/modules.cpp b/src/modules.cpp index f2ce6d372..8af5b95e3 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -34,24 +34,15 @@ void dynamic_reference_base::reset_all() } // Version is a simple class for holding a modules version number -template<> -VersionBase::VersionBase(const std::string &desc, int flags) -: description(desc), Flags(flags) +Version::Version(const std::string &desc, int flags) : description(desc), Flags(flags) { } -template<> -VersionBase::VersionBase(const std::string &desc, int flags, const std::string& linkdata) +Version::Version(const std::string &desc, int flags, const std::string& linkdata) : description(desc), Flags(flags), link_data(linkdata) { } -template<> -bool VersionBase::CanLink(const std::string& other_data) -{ - return link_data == other_data; -} - Request::Request(Module* src, Module* dst, const char* idstr) : id(idstr), source(src), dest(dst) { -- cgit v1.2.3