summaryrefslogtreecommitdiff
path: root/src/rexmpp_xml.h
diff options
context:
space:
mode:
authordefanor <defanor@uberspace.net>2023-10-07 20:29:00 +0300
committerdefanor <defanor@uberspace.net>2023-10-07 20:29:00 +0300
commit430d97ddc6e68e62cc0f2e77319aaa92876f51eb (patch)
treeb566aea000feebaac699b14de39c660e1e3f7e60 /src/rexmpp_xml.h
parentccdb748c81abc9bb30b8989e27d22bbbb219f9a0 (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.h4
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