introduce xencl for high-level interaction with xen

This commit is contained in:
Alex Zenla
2024-01-08 23:23:26 -08:00
parent faf8027590
commit c9f61ec72f
6 changed files with 105 additions and 5 deletions

9
xencl/examples/simple.rs Normal file
View File

@ -0,0 +1,9 @@
use std::collections::HashMap;
use xencl::{XenClient, XenClientError};
fn main() -> Result<(), XenClientError> {
let mut client = XenClient::open()?;
let entries: HashMap<String, String> = HashMap::new();
client.create(2, entries)?;
Ok(())
}