From 28a55fdc69e31490a4086ecae8cc687f40ba0b94 Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Wed, 25 Sep 2024 21:12:24 +0200 Subject: Add libs:sftp sftp implementation using libssh2 and openssl --- libs/samba/src/main/cpp/jni.hpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libs/samba/src/main/cpp/jni.hpp') diff --git a/libs/samba/src/main/cpp/jni.hpp b/libs/samba/src/main/cpp/jni.hpp index 1729828..b9bdb69 100644 --- a/libs/samba/src/main/cpp/jni.hpp +++ b/libs/samba/src/main/cpp/jni.hpp @@ -2,6 +2,7 @@ #define CLEVERSYNC_JNI_HPP #include +#include #include #include @@ -186,6 +187,12 @@ std::string StringToUTF8(JNIEnv* env, const Ref& str); LocalRef UTF8ToString(JNIEnv* env, const std::string& str); +LocalRef UTF8ToString(JNIEnv* env, const char* str); + +LocalRef VectorToByteArray(JNIEnv* env, const std::vector& data); + +std::vector ByteArrayToVector(JNIEnv* env, const Ref& data); + LocalRef CreateArray(JNIEnv* env, const Ref& element_class, std::vector> objects); namespace internal { -- cgit v1.2.3-70-g09d2