test(tests): Update to new String wrapper
This commit is contained in:
parent
601d82d5c9
commit
1599631431
|
@ -15,7 +15,10 @@ pub mod trinitrix {
|
||||||
pub enum Trinitrix {
|
pub enum Trinitrix {
|
||||||
/// Attribute doc comment, but very ##" "## "# " escaped
|
/// Attribute doc comment, but very ##" "## "# " escaped
|
||||||
#[allow(non_camel_case_types)]
|
#[allow(non_camel_case_types)]
|
||||||
hi { trixy_output: trixy::oneshot::Sender<trixy::types::String>, name: String },
|
hi {
|
||||||
|
trixy_output: trixy::oneshot::Sender<trixy::types::String>,
|
||||||
|
name: trixy::types::newtypes::String,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* C API */
|
/* C API */
|
||||||
|
|
|
@ -15,7 +15,10 @@ pub mod trinitrix {
|
||||||
pub enum Trinitrix {
|
pub enum Trinitrix {
|
||||||
/// Second doc comment
|
/// Second doc comment
|
||||||
#[allow(non_camel_case_types)]
|
#[allow(non_camel_case_types)]
|
||||||
hi { trixy_output: trixy::oneshot::Sender<trixy::types::String>, name: String },
|
hi {
|
||||||
|
trixy_output: trixy::oneshot::Sender<trixy::types::String>,
|
||||||
|
name: trixy::types::newtypes::String,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* C API */
|
/* C API */
|
||||||
|
|
|
@ -18,7 +18,10 @@ pub mod trinitrix {
|
||||||
pub enum Trinitrix {
|
pub enum Trinitrix {
|
||||||
///I \n also \n contain \n them
|
///I \n also \n contain \n them
|
||||||
#[allow(non_camel_case_types)]
|
#[allow(non_camel_case_types)]
|
||||||
hi { trixy_output: trixy::oneshot::Sender<trixy::types::String>, name: String },
|
hi {
|
||||||
|
trixy_output: trixy::oneshot::Sender<trixy::types::String>,
|
||||||
|
name: trixy::types::newtypes::String,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* C API */
|
/* C API */
|
||||||
|
|
|
@ -34,7 +34,7 @@ pub mod trinitrix {
|
||||||
/// Send a message to the current room
|
/// Send a message to the current room
|
||||||
/// The send message is interpreted literally.
|
/// The send message is interpreted literally.
|
||||||
#[allow(non_camel_case_types)]
|
#[allow(non_camel_case_types)]
|
||||||
room_message_send { message: String },
|
room_message_send { message: trixy::types::newtypes::String },
|
||||||
Ui(ui::Ui),
|
Ui(ui::Ui),
|
||||||
Keymaps(keymaps::Keymaps),
|
Keymaps(keymaps::Keymaps),
|
||||||
Raw(raw::Raw),
|
Raw(raw::Raw),
|
||||||
|
@ -105,15 +105,22 @@ pub mod trinitrix {
|
||||||
pub enum Keymaps {
|
pub enum Keymaps {
|
||||||
/// Add a new keymapping
|
/// Add a new keymapping
|
||||||
#[allow(non_camel_case_types)]
|
#[allow(non_camel_case_types)]
|
||||||
add { mode: String, key: String, callback: extern "C" fn() },
|
add {
|
||||||
|
mode: trixy::types::newtypes::String,
|
||||||
|
key: trixy::types::newtypes::String,
|
||||||
|
callback: extern "C" fn(),
|
||||||
|
},
|
||||||
/// Remove a keymapping
|
/// Remove a keymapping
|
||||||
///
|
///
|
||||||
/// Does nothing, if the keymapping doesn't exists yet
|
/// Does nothing, if the keymapping doesn't exists yet
|
||||||
#[allow(non_camel_case_types)]
|
#[allow(non_camel_case_types)]
|
||||||
remove { mode: String, key: String },
|
remove {
|
||||||
|
mode: trixy::types::newtypes::String,
|
||||||
|
key: trixy::types::newtypes::String,
|
||||||
|
},
|
||||||
/// List declared keymappings
|
/// List declared keymappings
|
||||||
#[allow(non_camel_case_types)]
|
#[allow(non_camel_case_types)]
|
||||||
get { mode: String },
|
get { mode: trixy::types::newtypes::String },
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/// Functions only used internally within Trinitrix
|
/// Functions only used internally within Trinitrix
|
||||||
|
@ -122,17 +129,17 @@ pub mod trinitrix {
|
||||||
pub enum Raw {
|
pub enum Raw {
|
||||||
/// Send an error to the default error output
|
/// Send an error to the default error output
|
||||||
#[allow(non_camel_case_types)]
|
#[allow(non_camel_case_types)]
|
||||||
raise_error { error_message: String },
|
raise_error { error_message: trixy::types::newtypes::String },
|
||||||
/// Send output to the default output
|
/// Send output to the default output
|
||||||
/// This is mainly used to display the final
|
/// This is mainly used to display the final
|
||||||
/// output of evaluated lua commands.
|
/// output of evaluated lua commands.
|
||||||
#[allow(non_camel_case_types)]
|
#[allow(non_camel_case_types)]
|
||||||
display_output { output_message: String },
|
display_output { output_message: trixy::types::newtypes::String },
|
||||||
/// Input a character without checking for possible keymaps
|
/// Input a character without checking for possible keymaps
|
||||||
/// If the current state does not expect input, this character is ignored
|
/// If the current state does not expect input, this character is ignored
|
||||||
/// The encoding is the same as in the `trinitrix.api.keymaps` commands
|
/// The encoding is the same as in the `trinitrix.api.keymaps` commands
|
||||||
#[allow(non_camel_case_types)]
|
#[allow(non_camel_case_types)]
|
||||||
send_input_unprocessed { input: String },
|
send_input_unprocessed { input: trixy::types::newtypes::String },
|
||||||
Private(__private::Private),
|
Private(__private::Private),
|
||||||
}
|
}
|
||||||
/// This namespace is used to store some command specific data (like functions, as
|
/// This namespace is used to store some command specific data (like functions, as
|
||||||
|
|
Reference in New Issue