@@ -869,8 +869,7 @@ typedef struct accesskit_opt_text_selection {
869869} accesskit_opt_text_selection ;
870870
871871/**
872- * Use `accesskit_custom_action_new` or
873- * `accesskit_custom_action_new_with_length` to create this struct. Do not
872+ * Use `accesskit_custom_action_new` or to create this struct. Do not
874873 * reallocate `description`.
875874 *
876875 * When you get this struct, you are responsible for freeing `description`.
@@ -2092,12 +2091,6 @@ void accesskit_node_clear_text_selection(struct accesskit_node *node);
20922091struct accesskit_custom_action accesskit_custom_action_new (
20932092 int32_t id , const char * description );
20942093
2095- /**
2096- * The string must not contain null bytes.
2097- */
2098- struct accesskit_custom_action accesskit_custom_action_new_with_length (
2099- int32_t id , size_t length , const char * description );
2100-
21012094void accesskit_custom_actions_free (struct accesskit_custom_actions * value );
21022095
21032096/**
@@ -2131,9 +2124,15 @@ void accesskit_tree_free(struct accesskit_tree *tree);
21312124 */
21322125char * accesskit_tree_get_toolkit_name (const struct accesskit_tree * tree );
21332126
2127+ /**
2128+ * Caller is responsible for freeing the memory pointed by `toolkit_name`
2129+ */
21342130void accesskit_tree_set_toolkit_name (struct accesskit_tree * tree ,
21352131 const char * toolkit_name );
21362132
2133+ /**
2134+ * Caller is responsible for freeing the memory pointed by `toolkit_name`
2135+ */
21372136void accesskit_tree_set_toolkit_name_with_length (struct accesskit_tree * tree ,
21382137 size_t length ,
21392138 const char * toolkit_name );
@@ -2145,9 +2144,15 @@ void accesskit_tree_clear_toolkit_name(struct accesskit_tree *tree);
21452144 */
21462145char * accesskit_tree_get_toolkit_version (const struct accesskit_tree * tree );
21472146
2147+ /**
2148+ * Caller is responsible for freeing the memory pointed by `toolkit_version`
2149+ */
21482150void accesskit_tree_set_toolkit_version (struct accesskit_tree * tree ,
21492151 const char * toolkit_version );
21502152
2153+ /**
2154+ * Caller is responsible for freeing the memory pointed by `toolkit_version`
2155+ */
21512156void accesskit_tree_set_toolkit_version_with_length (
21522157 struct accesskit_tree * tree , size_t length , const char * toolkit_version );
21532158
0 commit comments