From b845f2fc1aa5662db23dba31eda6f9fccba06fe5 Mon Sep 17 00:00:00 2001 From: michaelwright235 Date: Wed, 31 May 2023 22:20:56 +0300 Subject: [PATCH] sys: propertylist: Introduce consts of Reading and Writing Error Codes --- core-foundation-sys/src/propertylist.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core-foundation-sys/src/propertylist.rs b/core-foundation-sys/src/propertylist.rs index 574c4d1..da6026f 100644 --- a/core-foundation-sys/src/propertylist.rs +++ b/core-foundation-sys/src/propertylist.rs @@ -23,6 +23,12 @@ pub const kCFPropertyListImmutable: CFPropertyListMutabilityOptions = 0; pub const kCFPropertyListMutableContainers: CFPropertyListMutabilityOptions = 1; pub const kCFPropertyListMutableContainersAndLeaves: CFPropertyListMutabilityOptions = 2; +/* Reading and Writing Error Codes */ +pub const kCFPropertyListReadCorruptError: CFIndex = 3840; +pub const kCFPropertyListReadUnknownVersionError: CFIndex = 3841; +pub const kCFPropertyListReadStreamError: CFIndex = 3842; +pub const kCFPropertyListWriteStreamError: CFIndex = 3851; + extern "C" { // CFPropertyList.h //