diff --git a/src/lib.rs b/src/lib.rs index cdc796e..cbb36f5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -221,7 +221,7 @@ impl Conn for User { } } -pub fn display_file(user: &mut User, path: &str) -> Result<()> { +pub fn door_display_file(user: &mut User, path: &str) -> Result<()> { if let Ok(file) = std::fs::read(path) { user.write(&file)?; user.write_str(ResetAttributes.to_string().as_str())?; @@ -229,7 +229,7 @@ pub fn display_file(user: &mut User, path: &str) -> Result<()> { Ok(()) } -pub fn read_string(user: &mut impl Conn, len: usize) -> Result { +pub fn door_read_string(user: &mut impl Conn, len: usize) -> Result { const BACKSPACE: [u8; 3] = *b"\x08\x20\x08"; user.write_str(esc!("[s"))?; @@ -312,7 +312,7 @@ fn convert_socket(sock: i64) -> Result { Ok(stream) } -pub fn init() -> Result { +pub fn door_init() -> Result { let args = env::args().collect::>(); if args.len() < 2 || 3 < args.len() { panic!("Usage: door.exe door32.sys [socket]");