mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-31 12:21:19 -03:00
event: make some types public again
This commit is contained in:
@@ -200,7 +200,7 @@ fn from(typ: &EventType) -> Self {
|
||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||
pub struct EventDescription {
|
||||
// TODO: remove the wrapper struct and just put `EventType` where `EventDescription` is now
|
||||
typ: EventType,
|
||||
pub typ: EventType,
|
||||
}
|
||||
|
||||
impl From<&event_description_t> for EventDescription {
|
||||
@@ -266,14 +266,14 @@ fn from(desc: &EventDescription) -> Self {
|
||||
#[derive(Debug)]
|
||||
pub struct EventHandler {
|
||||
/// Properties of the event to match.
|
||||
desc: EventDescription,
|
||||
pub desc: EventDescription,
|
||||
/// Name of the function to invoke.
|
||||
function_name: WString,
|
||||
pub function_name: WString,
|
||||
/// A flag set when an event handler is removed from the global list.
|
||||
/// Once set, this is never cleared.
|
||||
removed: AtomicBool,
|
||||
pub removed: AtomicBool,
|
||||
/// A flag set when an event handler is first fired.
|
||||
fired: AtomicBool,
|
||||
pub fired: AtomicBool,
|
||||
}
|
||||
|
||||
impl EventHandler {
|
||||
|
||||
Reference in New Issue
Block a user