expose getVersionString() in API

This commit is contained in:
mlangkabel
2019-04-02 17:52:58 +02:00
parent 02647c418c
commit 2dad29877f
2 changed files with 7 additions and 0 deletions
+2
View File
@@ -51,6 +51,8 @@ enum ReferenceKind
REFERENCE_ANNOTATION_USAGE
};
std::string getVersionString();
int getSupportedDatabaseVersion();
std::string getLastError();
+5
View File
@@ -108,6 +108,11 @@ namespace
sourcetrail::SourcetrailDBWriter dbWriter;
std::string getVersionString()
{
return dbWriter.getVersionString();
}
int getSupportedDatabaseVersion()
{
return dbWriter.getSupportedDatabaseVersion();