liblo_sys/lib.rs
1mod lo_sys;
2
3pub use lo_sys::*;
4
5#[cfg(test)]
6mod tests {
7 use super::*;
8 use std::ffi::CString;
9
10 #[test]
11 fn test_basic_functionality() {
12 unsafe {
13 // Test creating an address
14 let url = CString::new("osc.udp://localhost:7770/").unwrap();
15 let addr = lo_address_new_from_url(url.as_ptr());
16 assert!(!addr.is_null());
17 lo_address_free(addr);
18 }
19 }
20}