Index: src/plugin/AdblockPlusClient.cpp |
=================================================================== |
--- a/src/plugin/AdblockPlusClient.cpp |
+++ b/src/plugin/AdblockPlusClient.cpp |
@@ -397,7 +397,7 @@ |
Communication::InputBuffer response; |
if (!CallEngine(request, response)) return defaultValue; |
- bool success; |
+ bool success; |
response >> success; |
if (success) |
{ |
@@ -408,3 +408,20 @@ |
else |
return defaultValue; |
} |
+ |
+std::wstring CAdblockPlusClient::GetRequire(const std::wstring& name) |
+{ |
+ Communication::OutputBuffer request; |
+ request << Communication::PROC_GET_REQUIRE << ToUtf8String(name); |
+ |
+ Communication::InputBuffer response; |
+ if (!CallEngine(request, response)) return L""; |
+ bool success; |
+ response >> success; |
+ std::string responseContent; |
+ if (success) |
+ { |
+ response >> responseContent; |
+ } |
+ return ToUtf16String(responseContent); |
+} |