Initial Functional Plugin
This commit is contained in:
23
src/zathura.rs
Normal file
23
src/zathura.rs
Normal 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,
|
||||
}
|
||||
Reference in New Issue
Block a user