From cc812a28a4b7ef128b24833c535097aeee398446 Mon Sep 17 00:00:00 2001 From: Jeff Muizelaar <jrmuizel@gmail.com> Date: Mon, 5 Oct 2020 11:35:24 -0400 Subject: [PATCH] Add remove_tag and link_tag --- src/profile.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/profile.rs b/src/profile.rs index 10391f3..f249da6 100644 --- a/src/profile.rs +++ b/src/profile.rs @@ -381,6 +381,20 @@ impl<Ctx: Context> Profile<Ctx> { } } + #[inline] + pub fn remove_tag(&mut self, sig: TagSignature) -> bool { + unsafe { + ffi::cmsWriteTag(self.handle, sig, std::ptr::null()) != 0 + } + } + + #[inline] + pub fn link_tag(&mut self, sig: TagSignature, dst: TagSignature) -> bool { + unsafe { + ffi::cmsLinkTag(self.handle, sig, dst) != 0 + } + } + /// Retrieves the Profile ID stored in the profile header. #[inline] pub fn profile_id(&self) -> ffi::ProfileID { -- GitLab