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') 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