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:
parent
0cb91fb9ca
commit
e2275ce5db
5 changed files with 56 additions and 1 deletions
|
@ -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 );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue