Initial Functional Plugin

This commit is contained in:
bluepython508
2025-10-30 11:08:35 +00:00
commit 01474ad6a0
12 changed files with 4155 additions and 0 deletions

23
src/zathura.rs Normal file
View File

@@ -0,0 +1,23 @@
#![allow(warnings)]
pub use cairo::ffi::*;
include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
unsafe impl Sync for zathura_plugin_definition_s {}
pub type zathura_plugin_error_e = ZathuraResult;
#[repr(u32)]
pub enum ZathuraResult {
/// No error occurred
OK = 0,
/// An unknown error occurred
Unknown = 1,
/// Out of memory
OutOfMemory = 2,
/// The called function has not been implemented
NotImplemented = 3,
/// Invalid arguments have been passed
InvalidArguments = 4,
/// The provided password is invalid
InvalidPassword = 5,
}