Skip to content

Commit

Permalink
Handle get_library_version for Qt (temporarily)
Browse files Browse the repository at this point in the history
Return version 3.0 and Git string "unknown"

Signed-off-by: Szczepan Zalega <[email protected]>
  • Loading branch information
szszszsz committed Jul 18, 2018
1 parent 09d4446 commit cdd155e
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libnitrokey.pro
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ HEADERS = \
$$PWD/libnitrokey/dissect.h \
$$PWD/libnitrokey/LibraryException.h \
$$PWD/libnitrokey/log.h \
$$PWD/libnitrokey/version.h \
$$PWD/libnitrokey/LongOperationInProgressException.h \
$$PWD/libnitrokey/misc.h \
$$PWD/libnitrokey/NitrokeyManager.h \
Expand All @@ -39,6 +40,7 @@ SOURCES = \
$$PWD/device.cc \
$$PWD/DeviceCommunicationExceptions.cpp \
$$PWD/log.cc \
$$PWD/version.cc \
$$PWD/misc.cc \
$$PWD/NitrokeyManager.cc \
$$PWD/NK_C_API.cc
Expand Down
37 changes: 37 additions & 0 deletions version.cc
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/*
* Copyright (c) 2018 Nitrokey UG
*
* This file is part of libnitrokey.
*
* libnitrokey is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* any later version.
*
* libnitrokey is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with libnitrokey. If not, see <http://www.gnu.org/licenses/>.
*
* SPDX-License-Identifier: LGPL-3.0
*/

#include "version.h"

namespace nitrokey {
unsigned int get_major_library_version() {
return 3;
}

unsigned int get_minor_library_version() {
return 0;
}

const char* get_library_version() {
return "unknown";
}
}

0 comments on commit cdd155e

Please sign in to comment.