From 45c097553efa5413b3264de87a75ca72feae08a6 Mon Sep 17 00:00:00 2001 From: husky Date: Thu, 20 Jul 2023 16:13:09 -0700 Subject: [PATCH] HOTFIX: make buf public so that outside code works --- Cargo.toml | 2 +- src/lib.rs | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 39039ac..b359cac 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "ofw" description = "basic interfacing with OpenFirmware (former IEEE standard 1275)" -version = "0.1.0" +version = "0.1.1" edition = "2021" authors = ["Niko Chow-Stuart "] repository = "https://git.gaycatgirl.sex/voremicrocomputers/vap_os/ofw" diff --git a/src/lib.rs b/src/lib.rs index c50a84c..c6f16ae 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -69,8 +69,12 @@ pub struct Args { /// a generic structure for accessing the results of a service call #[allow(dead_code)] pub struct ServiceResult<'a> { + /// whether or not the service call was successful pub success: bool, - buf: &'a mut [i32], + /// a buffer for storing the arguments and return values of the service call + /// should not be used directly + pub buf: &'a mut [i32], + /// a slice of the buffer containing the return values of the service call pub rets: &'a [i32], }