diff options
author | defanor <defanor@uberspace.net> | 2023-06-20 21:49:53 +0300 |
---|---|---|
committer | defanor <defanor@uberspace.net> | 2023-06-20 21:49:53 +0300 |
commit | c3cb19dec32ffae9e4f93c269b4e1d3504321643 (patch) | |
tree | d5c5bc4fc9582b01b68a4056a52a00692d77f5da /src/rexmpp_jid.rs | |
parent | c12a24ef337889ed1f980cce2baf78ac6bd0ee93 (diff) |
Add Rust versions of the TCP module and of a few structures
Diffstat (limited to 'src/rexmpp_jid.rs')
-rw-r--r-- | src/rexmpp_jid.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/rexmpp_jid.rs b/src/rexmpp_jid.rs new file mode 100644 index 0000000..7730b2f --- /dev/null +++ b/src/rexmpp_jid.rs @@ -0,0 +1,17 @@ +use std::os::raw::{c_char}; + +#[repr(C)] +pub struct RexmppJID { + local: [c_char; 1024], + domain: [c_char; 1024], + resource: [c_char; 1024], + bare: [c_char; 2048], + full: [c_char; 3072] +} + +// #[no_mangle] +// extern "C" +// fn rexmpp_jid_parse (str: *const c_char, jid : &mut RexmppJID) -> c_int +// { + +// } |