comparison Core/Lua/LuaContext.h @ 4031:e3b3af80732d

ServerResources, and moving EmbeddedResourceHttpHandler from Core to OrthancServer
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 09 Jun 2020 21:31:13 +0200
parents 100fbe970762
children
comparison
equal deleted inserted replaced
4030:100fbe970762 4031:e3b3af80732d
38 38
39 #if !defined(ORTHANC_ENABLE_LUA) 39 #if !defined(ORTHANC_ENABLE_LUA)
40 # error The macro ORTHANC_ENABLE_LUA must be defined 40 # error The macro ORTHANC_ENABLE_LUA must be defined
41 #endif 41 #endif
42 42
43 #if !defined(ORTHANC_HAS_EMBEDDED_RESOURCES)
44 # error Macro ORTHANC_HAS_EMBEDDED_RESOURCES must be defined
45 #endif
46
47 #if !defined(ORTHANC_ENABLE_CURL) 43 #if !defined(ORTHANC_ENABLE_CURL)
48 # error Macro ORTHANC_ENABLE_CURL must be defined 44 # error Macro ORTHANC_ENABLE_CURL must be defined
49 #endif 45 #endif
50 46
51 #if ORTHANC_ENABLE_LUA == 0 47 #if ORTHANC_ENABLE_LUA == 0
52 # error The Lua support is disabled, cannot include this file 48 # error The Lua support is disabled, cannot include this file
53 #endif
54
55 #if ORTHANC_HAS_EMBEDDED_RESOURCES == 1
56 # include <OrthancEmbeddedResources.h> // Autogenerated file
57 #endif 49 #endif
58 50
59 #if ORTHANC_ENABLE_CURL == 1 51 #if ORTHANC_ENABLE_CURL == 1
60 # include "../HttpClient.h" 52 # include "../HttpClient.h"
61 #endif 53 #endif
125 } 117 }
126 118
127 void Execute(Json::Value& output, 119 void Execute(Json::Value& output,
128 const std::string& command); 120 const std::string& command);
129 121
130 #if ORTHANC_HAS_EMBEDDED_RESOURCES == 1
131 void Execute(EmbeddedResources::FileResourceId resource);
132 #endif
133
134 bool IsExistingFunction(const char* name); 122 bool IsExistingFunction(const char* name);
135 123
136 #if ORTHANC_ENABLE_CURL == 1 124 #if ORTHANC_ENABLE_CURL == 1
137 void SetHttpCredentials(const char* username, 125 void SetHttpCredentials(const char* username,
138 const char* password) 126 const char* password)