summaryrefslogtreecommitdiff
path: root/src/rexmpp_random.rs
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_random.rs
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_random.rs')
-rw-r--r--src/rexmpp_random.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/rexmpp_random.rs b/src/rexmpp_random.rs
new file mode 100644
index 0000000..dbabc71
--- /dev/null
+++ b/src/rexmpp_random.rs
@@ -0,0 +1,5 @@
+use std::os::raw::{c_char};
+
+extern {
+ pub fn rexmpp_random_id () -> *mut c_char;
+}