diff options
author | defanor <defanor@uberspace.net> | 2023-10-07 20:29:00 +0300 |
---|---|---|
committer | defanor <defanor@uberspace.net> | 2023-10-07 20:29:00 +0300 |
commit | 430d97ddc6e68e62cc0f2e77319aaa92876f51eb (patch) | |
tree | b566aea000feebaac699b14de39c660e1e3f7e60 /src/rexmpp_xml.h | |
parent | ccdb748c81abc9bb30b8989e27d22bbbb219f9a0 (diff) |
Use file descriptors instead of streams, update Rust sources
File descriptors tend to be easier to handle with FFI.
Diffstat (limited to 'src/rexmpp_xml.h')
-rw-r--r-- | src/rexmpp_xml.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rexmpp_xml.h b/src/rexmpp_xml.h index 8f6d974..38142ae 100644 --- a/src/rexmpp_xml.h +++ b/src/rexmpp_xml.h @@ -233,10 +233,10 @@ rexmpp_xml_t *rexmpp_xml_parse (const char *str, int str_len); /** @brief Reads XML from a file stream, reading the stream line by line. - @param[in] fd A file stream + @param[in] fd A file descriptor @returns Parsed XML, or NULL on failure. */ -rexmpp_xml_t *rexmpp_xml_read_fd (FILE *fd); +rexmpp_xml_t *rexmpp_xml_read_fd (int fd); /** @brief Reads XML from a file |