From 55473f8c6d8d623992f2fffcbcc28749c118ab6d Mon Sep 17 00:00:00 2001 From: Szczepan Zalega Date: Tue, 25 Apr 2017 22:26:16 +0200 Subject: Fix includes in C_API Signed-off-by: Szczepan Zalega --- NK_C_API.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'NK_C_API.cc') diff --git a/NK_C_API.cc b/NK_C_API.cc index 5d8c3f4..0e3fa1f 100644 --- a/NK_C_API.cc +++ b/NK_C_API.cc @@ -1,5 +1,7 @@ -#include #include "NK_C_API.h" +#include +#include "include/NitrokeyManager.h" +#include #include "include/LibraryException.h" #include "include/cxx_semantics.h" @@ -8,7 +10,6 @@ using namespace nitrokey; static uint8_t NK_last_command_status = 0; static const int max_string_field_length = 100; - template T* duplicate_vector_and_clear(std::vector &v){ auto d = new T[v.size()]; @@ -169,6 +170,7 @@ void clear_string(std::string &s){ std::fill(s.begin(), s.end(), ' '); } + NK_C_API const char * NK_status() { auto m = NitrokeyManager::instance(); return get_with_string_result([&](){ -- cgit v1.2.1