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 "../filter/Matcher.h" |
#include "../FilterNotifier.h" |
int main() |
{ |
try |
{ |
class_<Filter>("Filter") |
.property("text", &Filter::GetText) |
@@ -126,16 +127,37 @@ |
.property("downloadStatus", &DownloadableSubscription::GetDownloadStatus, &DownloadableSubscription::SetDownloadStatus) |
.property("lastSuccess", &DownloadableSubscription::GetLastSuccess, &DownloadableSubscription::SetLastSuccess) |
.property("errors", &DownloadableSubscription::GetErrorCount, &DownloadableSubscription::SetErrorCount) |
.property("version", &DownloadableSubscription::GetDataRevision, &DownloadableSubscription::SetDataRevision) |
.property("requiredVersion", &DownloadableSubscription::GetRequiredVersion, &DownloadableSubscription::SetRequiredVersion) |
.property("downloadCount", &DownloadableSubscription::GetDownloadCount, &DownloadableSubscription::SetDownloadCount) |
.function("serialize", &DownloadableSubscription::Serialize); |
+ class_<ReMatchResults>("ReMatchResults") |
+ .function("push", &ReMatchResults::push); |
+ |
+ class_<CombinedMatcher>("CombinedMatcher") |
+ .function("add", &CombinedMatcher::Add) |
+ .function("remove", &CombinedMatcher::Remove) |
+ .function("matchesAny", &CombinedMatcher::MatchesAny) |
+ .function("clear", &CombinedMatcher::Clear) |
+ .function("hasFilter", &CombinedMatcher::HasFilter) |
+ .function("getKeywordForFilter", &CombinedMatcher::GetKeywordForFilter) |
+ .function("findKeyword", &CombinedMatcher::FindKeyword); |
hub
2017/09/29 16:17:35
the function bindings are mostly needed for the te
|
+ |
+ class_<Matcher>("Matcher") |
+ .function("add", &Matcher::Add) |
+ .function("remove", &Matcher::Remove) |
+ .function("matchesAny", &Matcher::MatchesAny) |
+ .function("clear", &Matcher::Clear) |
+ .function("hasFilter", &Matcher::HasFilter) |
+ .function("getKeywordForFilter", &Matcher::GetKeywordForFilter) |
+ .function("findKeyword", &Matcher::FindKeyword); |
+ |
singleton<FilterStorage>("FilterStorage", &FilterStorage::GetInstance) |
.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); |