Skip to content

Commit 107c816

Browse files
committed
parser data DOC format detection fixed
Refs sysrepo/sysrepo#2583
1 parent 34de73a commit 107c816

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/parser_data.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ LY_ERR lyd_parse_data(const struct ly_ctx *ctx, struct lyd_node *parent, struct
216216
*
217217
* @param[in] ctx Context to connect with the tree being built here.
218218
* @param[in] data The input data in the specified @p format to parse (and validate).
219-
* @param[in] format Format of the input data to be parsed. Can be 0 to try to detect format from the input handler.
219+
* @param[in] format Format of the input data to be parsed.
220220
* @param[in] parse_options Options for parser, see @ref dataparseroptions.
221221
* @param[in] validate_options Options for the validation phase, see @ref datavalidationoptions.
222222
* @param[out] tree Full parsed data tree, note that NULL can be a valid tree
@@ -234,7 +234,7 @@ LY_ERR lyd_parse_data_mem(const struct ly_ctx *ctx, const char *data, LYD_FORMAT
234234
* @param[in] ctx Context to connect with the tree being built here.
235235
* @param[in] fd File descriptor of a regular file (e.g. sockets are not supported) containing the input data in the
236236
* specified @p format to parse.
237-
* @param[in] format Format of the input data to be parsed. Can be 0 to try to detect format from the input handler.
237+
* @param[in] format Format of the input data to be parsed.
238238
* @param[in] parse_options Options for parser, see @ref dataparseroptions.
239239
* @param[in] validate_options Options for the validation phase, see @ref datavalidationoptions.
240240
* @param[out] tree Full parsed data tree, note that NULL can be a valid tree
@@ -251,7 +251,7 @@ LY_ERR lyd_parse_data_fd(const struct ly_ctx *ctx, int fd, LYD_FORMAT format, ui
251251
*
252252
* @param[in] ctx Context to connect with the tree being built here.
253253
* @param[in] path Path to the file with the input data in the specified @p format to parse (and validate).
254-
* @param[in] format Format of the input data to be parsed. Can be 0 to try to detect format from the input handler.
254+
* @param[in] format Format of the input data to be parsed. Can be 0 to try to detect format from @p path extension.
255255
* @param[in] parse_options Options for parser, see @ref dataparseroptions.
256256
* @param[in] validate_options Options for the validation phase, see @ref datavalidationoptions.
257257
* @param[out] tree Full parsed data tree, note that NULL can be a valid tree

0 commit comments

Comments
 (0)