Skip to content

Commit

Permalink
Add GetVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
fasterthanlime committed May 2, 2018
1 parent e3a7634 commit 8e7b6c8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions Lib7Zip/7zipLibrary.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ C7ZipLibrary::~C7ZipLibrary()
Deinitialize();
}

const char *C7ZipLibrary::GetVersion()
{
return MY_VERSION;
}

void C7ZipLibrary::Deinitialize()
{
if (!m_bInitialized)
Expand Down
5 changes: 3 additions & 2 deletions Lib7Zip/lib7zip.h
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ class C7ZipLibrary
C7ZipObjectPtrArray m_InternalObjectsArray;

public:
const char *GetVersion();
bool Initialize();
void Deinitialize();

Expand All @@ -228,9 +229,9 @@ class C7ZipLibrary

lib7zip::ErrorCodeEnum GetLastError() const { return m_LastError; }

const C7ZipObjectPtrArray & GetInternalObjectsArray() { return m_InternalObjectsArray; }
const C7ZipObjectPtrArray & GetInternalObjectsArray() { return m_InternalObjectsArray; }

bool IsInitialized() const { return m_bInitialized; }
bool IsInitialized() const { return m_bInitialized; }
};

//set locale used by lib7zip, if NULL or not set, lib7zip will use user default locale
Expand Down

0 comments on commit 8e7b6c8

Please sign in to comment.