This is an automated email from the ASF dual-hosted git repository.

ivila pushed a commit to branch main
in repository 
https://gitbox.apache.org/repos/asf/incubator-teaclave-trustzone-sdk.git


The following commit(s) were added to refs/heads/main by this push:
     new c328d81  optee-utee: expose objectType from TEE_ObjectInfo
c328d81 is described below

commit c328d81496d83c4510fae10f42d1ccaafa05c827
Author: zengxiaobo <[email protected]>
AuthorDate: Mon Jun 16 17:45:07 2025 +0800

    optee-utee: expose objectType from TEE_ObjectInfo
    
    Signed-off-by: x1a0b0 <[email protected]>
---
 optee-utee/src/object.rs | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/optee-utee/src/object.rs b/optee-utee/src/object.rs
index d64c52e..71998bd 100644
--- a/optee-utee/src/object.rs
+++ b/optee-utee/src/object.rs
@@ -192,6 +192,11 @@ impl ObjectInfo {
     pub fn object_size(&self) -> usize {
         self.raw.objectSize as usize
     }
+
+    /// Return the `objectType` field of the raw structure `TEE_ObjectInfo`.
+    pub fn object_type(&self) -> u32 {
+        self.raw.objectType
+    }
 }
 
 /// Indicate the possible start offset when moving a data position in the data 
stream associated with a [PersistentObject](PersistentObject).


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to