summaryrefslogtreecommitdiff
path: root/test/select-no-nd.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2013-12-13 20:16:52 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2013-12-13 20:16:52 +0000
commit1b95fec601a3d006ba6b99e1dea3f61c3c8318fc (patch)
tree1a0c3a78afe1db919ff6b4c56a6c3f2e01d03607 /test/select-no-nd.c
parente3372335ec1628e1d6ef1a4fd63b11bb47f2e0e6 (diff)
downloadlibcss-1b95fec601a3d006ba6b99e1dea3f61c3c8318fc.tar.gz
libcss-1b95fec601a3d006ba6b99e1dea3f61c3c8318fc.tar.bz2
Various changes which modify API and ABI:
- Remove client allocation function. - Change node_classes callback not to yield array ownership to libcss. - Node bloom filters now built by, during selection libcss. - Added selection callbacks to get and set data on document nodes. Test suite, example, and documentation updated to match.
Diffstat (limited to 'test/select-no-nd.c')
-rw-r--r--test/select-no-nd.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/select-no-nd.c b/test/select-no-nd.c
new file mode 100644
index 0000000..8eb3735
--- /dev/null
+++ b/test/select-no-nd.c
@@ -0,0 +1,14 @@
+
+#include "select-common.c"
+
+static css_error get_libcss_node_data(void *pw, void *n,
+ void **libcss_node_data)
+{
+ UNUSED(pw);
+ UNUSED(n);
+
+ /* Test case were node data is deleted, by not passing any node data */
+ *libcss_node_data = NULL;
+
+ return CSS_OK;
+}