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) |
@@ -135,16 +136,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) |
+ .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) |
{ |