diff options
author | Till Hoeppner | 2015-07-28 00:26:03 +0200 |
---|---|---|
committer | Till Hoeppner | 2015-07-28 00:26:03 +0200 |
commit | 2b5c034f133fe55aaf9e5d69c98cafcfee139a11 (patch) | |
tree | cdd75b0cf75113d3fa3d3fb3cacb053970b713cc /src/format/mod.rs | |
parent | 4914e6a56547dcbe0fdbcfd7eae62a3d416875a5 (diff) | |
download | ilc-2b5c034f133fe55aaf9e5d69c98cafcfee139a11.tar.gz ilc-2b5c034f133fe55aaf9e5d69c98cafcfee139a11.tar.xz ilc-2b5c034f133fe55aaf9e5d69c98cafcfee139a11.zip |
Add msgpack output
Diffstat (limited to 'src/format/mod.rs')
-rw-r--r-- | src/format/mod.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/format/mod.rs b/src/format/mod.rs index 558de90..f918287 100644 --- a/src/format/mod.rs +++ b/src/format/mod.rs @@ -25,6 +25,7 @@ use context::Context; pub mod weechat3; pub mod energymech; pub mod binary; +pub mod msgpack; pub trait Encode<'a, W> where W: Write { fn encode(&'a self, context: &'a Context, output: W, event: &'a Event) -> ::Result<()>; @@ -53,6 +54,7 @@ pub fn decoder<'a>(format: &str) -> Option<Box<DecodeBox<'a, &'a mut BufRead>>> "energymech" => Some(Box::new(energymech::Energymech)), "weechat3" => Some(Box::new(weechat3::Weechat3)), "binary" => Some(Box::new(binary::Binary)), + "msgpack" => Some(Box::new(msgpack::Msgpack)), _ => None } } @@ -62,6 +64,7 @@ pub fn encoder<'a>(format: &str) -> Option<Box<Encode<'a, &'a mut Write>>> { "energymech" => Some(Box::new(energymech::Energymech)), "weechat3" => Some(Box::new(weechat3::Weechat3)), "binary" => Some(Box::new(binary::Binary)), + "msgpack" => Some(Box::new(msgpack::Msgpack)), _ => None } } |