expose getVersionString() in API
This commit is contained in:
@@ -51,6 +51,8 @@ enum ReferenceKind
|
||||
REFERENCE_ANNOTATION_USAGE
|
||||
};
|
||||
|
||||
std::string getVersionString();
|
||||
|
||||
int getSupportedDatabaseVersion();
|
||||
|
||||
std::string getLastError();
|
||||
|
||||
@@ -108,6 +108,11 @@ namespace
|
||||
|
||||
sourcetrail::SourcetrailDBWriter dbWriter;
|
||||
|
||||
std::string getVersionString()
|
||||
{
|
||||
return dbWriter.getVersionString();
|
||||
}
|
||||
|
||||
int getSupportedDatabaseVersion()
|
||||
{
|
||||
return dbWriter.getSupportedDatabaseVersion();
|
||||
|
||||
Reference in New Issue
Block a user