From 040def592d73c7babf4634a0990e51de1a68d635 Mon Sep 17 00:00:00 2001 From: Nick Wellnhofer Date: Mon, 19 Jan 2015 15:06:14 +0100 Subject: Add user data field for nodes --- man/man3/cmark.3 | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'man/man3') diff --git a/man/man3/cmark.3 b/man/man3/cmark.3 index 5df89c3..1bffc5c 100644 --- a/man/man3/cmark.3 +++ b/man/man3/cmark.3 @@ -1,4 +1,4 @@ -.TH cmark 3 "January 11, 2015" "LOCAL" "Library Functions Manual" +.TH cmark 3 "January 19, 2015" "LOCAL" "Library Functions Manual" .SH NAME .PP @@ -182,6 +182,19 @@ descendant of the root node or the root node itself. .SS Accessors +.PP +\fIvoid*\f[] \fBcmark_node_get_user_data\f[](\fIcmark_node *node\f[]) + +.PP +Returns the user data of \f[I]node\f[]\&. + +.PP +\fIint\f[] \fBcmark_node_set_user_data\f[](\fIcmark_node *node\f[], \fIvoid *user_data\f[]) + +.PP +Sets arbitrary user data for \f[I]node\f[]\&. Returns 1 on success, +0 on failure. + .PP \fIcmark_node_type\f[] \fBcmark_node_get_type\f[](\fIcmark_node *node\f[]) -- cgit v1.2.3 From 4b5e43c4fa9e18b7a281063a98fbef0def5a1cbe Mon Sep 17 00:00:00 2001 From: Nick Wellnhofer Date: Tue, 20 Jan 2015 18:11:23 +0100 Subject: Accessor for iterator's root node --- man/man3/cmark.3 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'man/man3') diff --git a/man/man3/cmark.3 b/man/man3/cmark.3 index 1bffc5c..f889521 100644 --- a/man/man3/cmark.3 +++ b/man/man3/cmark.3 @@ -1,4 +1,4 @@ -.TH cmark 3 "January 19, 2015" "LOCAL" "Library Functions Manual" +.TH cmark 3 "January 20, 2015" "LOCAL" "Library Functions Manual" .SH NAME .PP @@ -171,6 +171,12 @@ Returns the current node. .PP Returns the current event type. +.PP +\fIcmark_node*\f[] \fBcmark_iter_get_root\f[](\fIcmark_iter *iter\f[]) + +.PP +Returns the root node. + .PP \fIvoid\f[] \fBcmark_iter_reset\f[](\fIcmark_iter *iter\f[], \fIcmark_node *current\f[], \fIcmark_event_type event_type\f[]) -- cgit v1.2.3