Struct r_core::r_io_plugin_t [−][src]
#[repr(C)]pub struct r_io_plugin_t {Show 28 fields
pub name: *const c_char,
pub desc: *const c_char,
pub version: *const c_char,
pub author: *const c_char,
pub license: *const c_char,
pub widget: *mut c_void,
pub uris: *const c_char,
pub listener: Option<unsafe extern "C" fn(io: *mut RIODesc) -> c_int>,
pub init: Option<unsafe extern "C" fn() -> c_int>,
pub undo: RIOUndo,
pub isdbg: bool,
pub system: Option<unsafe extern "C" fn(io: *mut RIO, fd: *mut RIODesc, arg1: *const c_char) -> *mut c_char>,
pub open: Option<unsafe extern "C" fn(io: *mut RIO, arg1: *const c_char, perm: c_int, mode: c_int) -> *mut RIODesc>,
pub open_many: Option<unsafe extern "C" fn(io: *mut RIO, arg1: *const c_char, perm: c_int, mode: c_int) -> *mut RList>,
pub read: Option<unsafe extern "C" fn(io: *mut RIO, fd: *mut RIODesc, buf: *mut c_uchar, count: c_int) -> c_int>,
pub seek: Option<unsafe extern "C" fn(io: *mut RIO, fd: *mut RIODesc, offset: c_ulonglong, whence: c_int) -> c_ulonglong>,
pub write: Option<unsafe extern "C" fn(io: *mut RIO, fd: *mut RIODesc, buf: *const c_uchar, count: c_int) -> c_int>,
pub close: Option<unsafe extern "C" fn(desc: *mut RIODesc) -> c_int>,
pub is_blockdevice: Option<unsafe extern "C" fn(desc: *mut RIODesc) -> bool>,
pub is_chardevice: Option<unsafe extern "C" fn(desc: *mut RIODesc) -> bool>,
pub getpid: Option<unsafe extern "C" fn(desc: *mut RIODesc) -> c_int>,
pub gettid: Option<unsafe extern "C" fn(desc: *mut RIODesc) -> c_int>,
pub getbase: Option<unsafe extern "C" fn(desc: *mut RIODesc, base: *mut c_ulonglong) -> bool>,
pub resize: Option<unsafe extern "C" fn(io: *mut RIO, fd: *mut RIODesc, size: c_ulonglong) -> bool>,
pub extend: Option<unsafe extern "C" fn(io: *mut RIO, fd: *mut RIODesc, size: c_ulonglong) -> c_int>,
pub accept: Option<unsafe extern "C" fn(io: *mut RIO, desc: *mut RIODesc, fd: c_int) -> bool>,
pub create: Option<unsafe extern "C" fn(io: *mut RIO, file: *const c_char, mode: c_int, type_: c_int) -> c_int>,
pub check: Option<unsafe extern "C" fn(io: *mut RIO, arg1: *const c_char, many: bool) -> bool>,
}
Fields
name: *const c_char
desc: *const c_char
version: *const c_char
license: *const c_char
widget: *mut c_void
uris: *const c_char
listener: Option<unsafe extern "C" fn(io: *mut RIODesc) -> c_int>
init: Option<unsafe extern "C" fn() -> c_int>
undo: RIOUndo
isdbg: bool
system: Option<unsafe extern "C" fn(io: *mut RIO, fd: *mut RIODesc, arg1: *const c_char) -> *mut c_char>
open: Option<unsafe extern "C" fn(io: *mut RIO, arg1: *const c_char, perm: c_int, mode: c_int) -> *mut RIODesc>
open_many: Option<unsafe extern "C" fn(io: *mut RIO, arg1: *const c_char, perm: c_int, mode: c_int) -> *mut RList>
read: Option<unsafe extern "C" fn(io: *mut RIO, fd: *mut RIODesc, buf: *mut c_uchar, count: c_int) -> c_int>
seek: Option<unsafe extern "C" fn(io: *mut RIO, fd: *mut RIODesc, offset: c_ulonglong, whence: c_int) -> c_ulonglong>
write: Option<unsafe extern "C" fn(io: *mut RIO, fd: *mut RIODesc, buf: *const c_uchar, count: c_int) -> c_int>
close: Option<unsafe extern "C" fn(desc: *mut RIODesc) -> c_int>
is_blockdevice: Option<unsafe extern "C" fn(desc: *mut RIODesc) -> bool>
is_chardevice: Option<unsafe extern "C" fn(desc: *mut RIODesc) -> bool>
getpid: Option<unsafe extern "C" fn(desc: *mut RIODesc) -> c_int>
gettid: Option<unsafe extern "C" fn(desc: *mut RIODesc) -> c_int>
getbase: Option<unsafe extern "C" fn(desc: *mut RIODesc, base: *mut c_ulonglong) -> bool>
resize: Option<unsafe extern "C" fn(io: *mut RIO, fd: *mut RIODesc, size: c_ulonglong) -> bool>
extend: Option<unsafe extern "C" fn(io: *mut RIO, fd: *mut RIODesc, size: c_ulonglong) -> c_int>
accept: Option<unsafe extern "C" fn(io: *mut RIO, desc: *mut RIODesc, fd: c_int) -> bool>
create: Option<unsafe extern "C" fn(io: *mut RIO, file: *const c_char, mode: c_int, type_: c_int) -> c_int>
check: Option<unsafe extern "C" fn(io: *mut RIO, arg1: *const c_char, many: bool) -> bool>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for r_io_plugin_t
impl !Send for r_io_plugin_t
impl !Sync for r_io_plugin_t
impl Unpin for r_io_plugin_t
impl UnwindSafe for r_io_plugin_t
Blanket Implementations
Mutably borrows from an owned value. Read more