diff options
author | John MacFarlane <jgm@berkeley.edu> | 2015-01-20 17:47:07 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2015-01-20 17:47:07 -0800 |
commit | 84d48648f0a203befd666aa0c7dad32fa1a22710 (patch) | |
tree | 63dd5f72e5ca537df9e5841b51b91ed93ed82b5a /man | |
parent | 3f4d605546fc82a3cdce8056790f1bb140a62903 (diff) | |
parent | 4b5e43c4fa9e18b7a281063a98fbef0def5a1cbe (diff) |
Merge pull request #289 from nwellnhof/user_data
Add field for user data to node
Diffstat (limited to 'man')
-rw-r--r-- | man/man3/cmark.3 | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/man/man3/cmark.3 b/man/man3/cmark.3 index 5df89c3..f889521 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 20, 2015" "LOCAL" "Library Functions Manual" .SH NAME .PP @@ -172,6 +172,12 @@ Returns the current node. 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[]) .PP @@ -183,6 +189,19 @@ descendant of the root node or the root node itself. 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[]) .PP |