Mercurial > hg > orthanc
diff OrthancFramework/Sources/Lua/LuaContext.cpp @ 4300:b30a8de92ad9
abi continued
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 05 Nov 2020 19:33:18 +0100 |
parents | bf7b9edf6b81 |
children | 3af1d763763a |
line wrap: on
line diff
--- a/OrthancFramework/Sources/Lua/LuaContext.cpp Thu Nov 05 18:24:50 2020 +0100 +++ b/OrthancFramework/Sources/Lua/LuaContext.cpp Thu Nov 05 19:33:18 2020 +0100 @@ -578,6 +578,17 @@ } + void LuaContext::Execute(const std::string &command) + { + ExecuteInternal(NULL, command); + } + + void LuaContext::Execute(std::string &output, const std::string &command) + { + ExecuteInternal(&output, command); + } + + void LuaContext::ExecuteInternal(std::string* output, const std::string& command) { @@ -609,6 +620,15 @@ } +#if ORTHANC_ENABLE_CURL == 1 + void LuaContext::SetHttpCredentials(const char* username, + const char* password) + { + httpClient_.SetCredentials(username, password); + } +#endif + + void LuaContext::Execute(Json::Value& output, const std::string& command) {