mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
fix unnecessarily long server name
xous server names are 64 characters long, not 256. maybe should refactor to just eliminate the xous server name structure -- it's actually redundant, and a vestige from when we were just figuring out how to use rkyv.
This commit is contained in:
parent
9566355f9a
commit
812d334a01
1 changed files with 4 additions and 4 deletions
|
|
@ -229,10 +229,10 @@ pub enum ImefOpcode {
|
|||
SetPredictionCanvas(Gid),
|
||||
|
||||
/// set prediction server. Must be a String of the name of a server that is loaded in the system.
|
||||
SetPredictionServer(xous::String<256>),
|
||||
SetPredictionServer(xous::String<64>),
|
||||
|
||||
/// register a listener for finalized inputs
|
||||
RegisterListener(xous::String<256>),
|
||||
RegisterListener(xous::String<64>),
|
||||
|
||||
/// this is the event opcode used by listeners
|
||||
GotInputLine(xous::String<4000>),
|
||||
|
|
@ -301,7 +301,7 @@ impl ImeFrontEndApi for ImeFrontEnd {
|
|||
fn set_predictor(&self, servername: &str) -> Result<(), xous::Error> {
|
||||
match self.connection {
|
||||
Some(cid) => {
|
||||
let mut server = xous::String::<256>::new();
|
||||
let mut server = xous::String::<64>::new();
|
||||
use core::fmt::Write;
|
||||
write!(server, "{}", servername).expect("IMEF: couldn't write set_predictor server name");
|
||||
let ime_op = ImefOpcode::SetPredictionServer(server);
|
||||
|
|
@ -319,7 +319,7 @@ impl ImeFrontEndApi for ImeFrontEnd {
|
|||
fn register_listener(&self, servername: &str) -> Result<(), xous::Error> {
|
||||
match self.connection {
|
||||
Some(cid) => {
|
||||
let mut server = xous::String::<256>::new();
|
||||
let mut server = xous::String::<64>::new();
|
||||
use core::fmt::Write;
|
||||
write!(server, "{}", servername).expect("IMEF: couldn't write set_predictor server name");
|
||||
let ime_op = ImefOpcode::RegisterListener(server);
|
||||
|
|
|
|||
Loading…
Reference in a new issue