Skip to content
Extraits de code Groupes Projets

AMADEUS: Implementation of lkt-lib

Fusionnées Kubat a demandé de fusionner amadeus-rs vers master
8 fichiers
+ 166
44
Comparer les modifications
  • Côte à côte
  • En ligne
Fichiers
8
@@ -153,14 +153,14 @@ impl Deamon for StatusDeamon {
@@ -153,14 +153,14 @@ impl Deamon for StatusDeamon {
return_when_flagged!(quit_deamon, joined_deamon);
return_when_flagged!(quit_deamon, joined_deamon);
let status = {
let status = {
let mut res = match connexion.send_query(LektorQuery::PlaybackStatus) {
let res = match connexion.send_query(LektorQuery::PlaybackStatus) {
Ok(res) => res,
Ok(res) => res,
Err(e) => {
Err(e) => {
error!("failed to send the playback status command to lektor: {e}");
error!("failed to send the playback status command to lektor: {e}");
continue;
continue;
}
}
};
};
match LektorPlaybackStatusResponse::consume(&mut res) {
match LektorPlaybackStatusResponse::consume(res) {
Err(e) => {
Err(e) => {
error!("failed to build response from formated response: {e}");
error!("failed to build response from formated response: {e}");
continue;
continue;
@@ -170,14 +170,14 @@ impl Deamon for StatusDeamon {
@@ -170,14 +170,14 @@ impl Deamon for StatusDeamon {
};
};
let current = if status.state != LektorState::Stopped {
let current = if status.state != LektorState::Stopped {
let mut res = match connexion.send_query(LektorQuery::CurrentKara) {
let res = match connexion.send_query(LektorQuery::CurrentKara) {
Ok(res) => res,
Ok(res) => res,
Err(e) => {
Err(e) => {
error!("failed to send the current kara command to lektor: {e}",);
error!("failed to send the current kara command to lektor: {e}",);
continue;
continue;
}
}
};
};
match LektorCurrentKaraResponse::consume(&mut res) {
match LektorCurrentKaraResponse::consume(res) {
Ok(res) => Some(res),
Ok(res) => Some(res),
Err(err) => {
Err(err) => {
error!("failed to build response from formated response: {err}");
error!("failed to build response from formated response: {err}");
Chargement en cours