| 101 | |
| 102 | |
| 103 | std::vector<FunctionCallConfig> FunctionCallManager::getAllFunctionCalls() const { |
| 104 | std::lock_guard<std::recursive_mutex> lock(_mutex); |
| 105 | |
| 106 | std::vector<FunctionCallConfig> configs; |
| 107 | |
| 108 | // Add C++ functionCalls |
| 109 | for (const auto& pair : _cppFunctionCalls) { |
| 110 | configs.emplace_back(pair.second->getConfig()); |
| 111 | } |
| 112 | |
| 113 | // Add platform functionCalls |
| 114 | for (const auto& pair : _functionCalls) { |
| 115 | configs.emplace_back(pair.second.config); |
| 116 | } |
| 117 | |
| 118 | return configs; |
| 119 | } |
| 120 | |
| 121 | nlohmann::json FunctionCallManager::exportCatalog() const { |
| 122 | std::lock_guard<std::recursive_mutex> lock(_mutex); |