Skip to content
Snippets Groups Projects
Commit ad68ff4f authored by Kornel's avatar Kornel
Browse files

Profile setters

parent 68e25d70
No related branches found
No related tags found
No related merge requests found
...@@ -125,6 +125,10 @@ impl<Ctx: Context> Profile<Ctx> { ...@@ -125,6 +125,10 @@ impl<Ctx: Context> Profile<Ctx> {
unsafe { ffi::cmsGetEncodedICCversion(self.handle) } unsafe { ffi::cmsGetEncodedICCversion(self.handle) }
} }
pub fn set_encoded_icc_version(&self, v: u32) {
unsafe { ffi::cmsSetEncodedICCversion(self.handle, v) }
}
/// Gets the attribute flags. Currently defined values correspond to the low 4 bytes of the 8 byte attribute quantity. /// Gets the attribute flags. Currently defined values correspond to the low 4 bytes of the 8 byte attribute quantity.
/// ///
/// * `Reflective` /// * `Reflective`
...@@ -164,12 +168,19 @@ impl<Ctx: Context> Profile<Ctx> { ...@@ -164,12 +168,19 @@ impl<Ctx: Context> Profile<Ctx> {
unsafe { ffi::cmsSetHeaderFlags(self.handle, flags); } unsafe { ffi::cmsSetHeaderFlags(self.handle, flags); }
} }
/// Returns the manufacturer signature as described in the header.
///
/// This funcionality is widely superseded by the manufaturer tag. Of use only in elder profiles.
pub fn header_manufacturer(&self) -> u32 { pub fn header_manufacturer(&self) -> u32 {
unsafe { ffi::cmsGetHeaderManufacturer(self.handle) } unsafe { ffi::cmsGetHeaderManufacturer(self.handle) }
} }
pub fn set_header_manufacturer(&self) -> u32 { /// Sets the manufacturer signature in the header.
unsafe { ffi::cmsGetHeaderManufacturer(self.handle) } ///
/// This funcionality is widely superseded by the manufaturer tag. Of use only in elder profiles.
#[deprecated(note="This funcionality is widely superseded by the manufaturer tag")]
pub fn set_header_manufacturer(&mut self, m: u32) {
unsafe { ffi::cmsSetHeaderManufacturer(self.handle, m) }
} }
/// Returns the model signature as described in the header. /// Returns the model signature as described in the header.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment