From d82cbb3a81f116cd22e9895ecac36ac3d7b38929 Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Thu, 5 Apr 2012 07:32:58 +0200 Subject: XS_PLUGIN and XS_FILTER implementation This patch introduces following features: - XS_PLUGIN context option to add plugins to libxs - XS_FILTER option to switch between different filter types - Automatic loading of plug-ins is *not* implemented. From the implementation point of view: - standard prefix filter is implemented as a pluggable filter - trie_t and mtrie_t are joined into a single class - the code for 0MQ/3.1 compatibility is left in in the form of comments - new test for testing re-subscriptions is added Signed-off-by: Martin Sustrik --- tests/tests.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/tests.cpp') diff --git a/tests/tests.cpp b/tests/tests.cpp index f5c403a..21d10e3 100644 --- a/tests/tests.cpp +++ b/tests/tests.cpp @@ -107,6 +107,10 @@ #include "libzmq21.cpp" #undef XS_TEST_MAIN +#define XS_TEST_MAIN resubscribe +#include "resubscribe.cpp" +#undef XS_TEST_MAIN + int main () { int rc; @@ -149,6 +153,8 @@ int main () assert (rc == 0); rc = libzmq21 (); assert (rc == 0); + rc = resubscribe (); + assert (rc == 0); fprintf (stderr, "SUCCESS\n"); sleep (1); -- cgit v1.2.3