diff options
author | Daniel De Graaf <danieldg@inspircd.org> | 2010-04-01 18:50:16 -0500 |
---|---|---|
committer | Daniel De Graaf <danieldg@inspircd.org> | 2010-04-01 19:01:32 -0500 |
commit | cd6b7a8cda83f54679634624e84e92b91cf80683 (patch) | |
tree | 311a67cdc262ab4e5721c899f15b631e5b2d870b /src/modules.cpp | |
parent | a72520a03c2176f0a99a2dbe2f3c4b4c6a95a3e1 (diff) |
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.
Diffstat (limited to 'src/modules.cpp')
-rw-r--r-- | src/modules.cpp | 13 |
1 files changed, 2 insertions, 11 deletions
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<API_VERSION>::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<API_VERSION>::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<API_VERSION>::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) { |