Skip to content
This repository has been archived by the owner on Dec 14, 2021. It is now read-only.

Commit

Permalink
expose getVersionString() in API
Browse files Browse the repository at this point in the history
  • Loading branch information
mlangkabel committed Apr 2, 2019
1 parent 02647c4 commit 2dad298
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions resources_swig/include/sourcetraildb.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ enum ReferenceKind
REFERENCE_ANNOTATION_USAGE
};

std::string getVersionString();

int getSupportedDatabaseVersion();

std::string getLastError();
Expand Down
5 changes: 5 additions & 0 deletions resources_swig/src/sourcetraildb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,11 @@ namespace

sourcetrail::SourcetrailDBWriter dbWriter;

std::string getVersionString()
{
return dbWriter.getVersionString();
}

int getSupportedDatabaseVersion()
{
return dbWriter.getSupportedDatabaseVersion();
Expand Down

0 comments on commit 2dad298

Please sign in to comment.