Import librespot_protocol as protocol.

This commit is contained in:
Paul Lietar 2016-01-27 10:40:00 +00:00
parent ae38e60518
commit 93640465dc
5 changed files with 8 additions and 8 deletions

View file

@ -14,8 +14,8 @@ use rustc_serialize::base64::FromBase64;
use connection::{PlainConnection, CipherConnection};
use diffie_hellman::DHLocalKeys;
use librespot_protocol as protocol;
use librespot_protocol::authentication::AuthenticationType;
use protocol;
use protocol::authentication::AuthenticationType;
use session::Session;
use util;

View file

@ -26,7 +26,7 @@ extern crate vorbis;
#[cfg(feature = "dns-sd")]
extern crate dns_sd;
extern crate librespot_protocol;
extern crate librespot_protocol as protocol;
#[macro_use]pub mod util;
mod audio_decrypt;

View file

@ -6,7 +6,7 @@ use std::io::{Cursor, Read, Write};
use std::mem::replace;
use std::sync::mpsc;
use librespot_protocol as protocol;
use protocol;
use session::Session;
use connection::PacketHandler;

View file

@ -1,12 +1,12 @@
use eventual::{Async, Future};
use protobuf;
use librespot_protocol as protocol;
use protocol;
use mercury::{MercuryRequest, MercuryMethod};
use util::{SpotifyId, FileId, StrChunksExt};
use session::Session;
pub use librespot_protocol::metadata::AudioFile_Format as FileFormat;
pub use protocol::metadata::AudioFile_Format as FileFormat;
fn countrylist_contains(list: &str, country: &str) -> bool {
list.chunks(2).any(|cc| cc == country)

View file

@ -10,8 +10,8 @@ use player::{Player, PlayerState};
use std::sync::{Mutex, Arc};
use librespot_protocol as protocol;
pub use librespot_protocol::spirc::PlayStatus;
use protocol;
pub use protocol::spirc::PlayStatus;
pub struct SpircManager(Arc<Mutex<SpircInternal>>);