1
0
Fork 0
mirror of https://github.com/KingDuckZ/dindexer.git synced 2025-07-04 14:24:10 +00:00

Add a backend interface version number for eventual future changes.

Note that the interface is still a work in progress and might change
while still keeping the same interface version. This is going to be true
until the first stable release of this project (non beta).
This commit is contained in:
King_DuckZ 2016-06-02 10:01:19 +02:00
parent 0cb91fb9ca
commit e2275ce5db
5 changed files with 56 additions and 1 deletions

View file

@ -42,6 +42,8 @@ namespace dindb {
Backend& backend ( void );
const Backend& backend ( void ) const;
bool is_loaded ( void ) const;
int backend_interface_version ( void ) const;
int max_supported_interface_version ( void ) const;
BackendPlugin& operator= ( BackendPlugin&& ) = default;
@ -51,6 +53,7 @@ namespace dindb {
SoHandle m_lib;
BackendPtr m_backend;
boost::string_ref m_name;
int m_iface_ver;
};
std::string backend_name ( const std::string& parSOPath );