mirror of
https://github.com/szymon-jozef/libnotify-rs.git
synced 2026-10-27 19:20:43 +01:00
feat: add uninit
This commit is contained in:
@@ -25,3 +25,11 @@ where
|
|||||||
|
|
||||||
Ok(result)
|
Ok(result)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Uninitializes libnotify.
|
||||||
|
/// This should be called when the program no longer needs libnotify for the rest of its lifecycle, typically just before exitting.
|
||||||
|
pub fn uninit() {
|
||||||
|
unsafe {
|
||||||
|
notify_uninit();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user