Index: compiled/bindings/main.cpp |
=================================================================== |
--- a/compiled/bindings/main.cpp |
+++ b/compiled/bindings/main.cpp |
@@ -29,16 +29,17 @@ |
#include "../filter/ElemHideBase.h" |
#include "../filter/ElemHideFilter.h" |
#include "../filter/ElemHideException.h" |
#include "../filter/ElemHideEmulationFilter.h" |
#include "../subscription/Subscription.h" |
#include "../subscription/DownloadableSubscription.h" |
#include "../subscription/UserDefinedSubscription.h" |
#include "../storage/FilterStorage.h" |
+#include "../ElemHide.h" |
#include "../FilterNotifier.h" |
int main() |
{ |
try |
{ |
class_<Filter>("Filter") |
.property("text", &Filter::GetText) |
@@ -137,16 +138,29 @@ |
.property("subscriptionCount", &FilterStorage::GetSubscriptionCount) |
.function("subscriptionAt", &FilterStorage::SubscriptionAt) |
.function("indexOfSubscription", &FilterStorage::IndexOfSubscription) |
.function("getSubscriptionForFilter", &FilterStorage::GetSubscriptionForFilter) |
.function("addSubscription", &FilterStorage::AddSubscription) |
.function("removeSubscription", &FilterStorage::RemoveSubscription) |
.function("moveSubscription", &FilterStorage::MoveSubscription); |
+ class_<ElemHide_SelectorList>("ElemHide_SelectorList") |
+ .property("selectorCount", &ElemHide_SelectorList::GetSelectorCount) |
+ .function("selectorAt", &ElemHide_SelectorList::SelectorAt) |
+ .function("filterKeyAt", &ElemHide_SelectorList::FilterKeyAt); |
+ |
+ singleton<ElemHide>("ElemHide", &ElemHide::GetInstance) |
sergei
2018/01/15 15:31:19
Could you please change it from singleton to a cla
hub
2018/01/16 02:57:39
I can.
This require a few other changes, ElemHid
|
+ .function("add", &ElemHide::Add) |
+ .function("remove", &ElemHide::Remove) |
+ .function("clear", &ElemHide::Clear) |
+ .function("getException", &ElemHide::GetException) |
+ .function("getSelectorsForDomain", &ElemHide::GetSelectorsForDomain) |
+ .function("getUnconditionalSelectors", &ElemHide::GetUnconditionalSelectors); |
+ |
printBindings(); |
RegExpFilter::GenerateCustomBindings(); |
FilterNotifier::GenerateCustomBindings(); |
return 0; |
} |
catch (const std::exception& e) |
{ |