aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/types.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-04-03 19:43:20 -0700
committerJosh Blum <josh@joshknows.com>2010-04-03 19:43:20 -0700
commit83bd55d63972804e62f3890a4a90c8288fcbad0c (patch)
treeb5bf6a8877b37b238f9f540b0b77d1425ed619b9 /host/lib/types.cpp
parentf4ccb204473884126bcff6551d224e263dd5102a (diff)
downloaduhd-83bd55d63972804e62f3890a4a90c8288fcbad0c.tar.gz
uhd-83bd55d63972804e62f3890a4a90c8288fcbad0c.tar.bz2
uhd-83bd55d63972804e62f3890a4a90c8288fcbad0c.zip
extended stream cmd with mode enum, and extended fragment flags in metadata
Diffstat (limited to 'host/lib/types.cpp')
-rw-r--r--host/lib/types.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/host/lib/types.cpp b/host/lib/types.cpp
index bf9f8b895..d87238161 100644
--- a/host/lib/types.cpp
+++ b/host/lib/types.cpp
@@ -71,9 +71,9 @@ clock_config_t::clock_config_t(void){
/***********************************************************************
* stream command
**********************************************************************/
-stream_cmd_t::stream_cmd_t(void){
+stream_cmd_t::stream_cmd_t(const stream_mode_t &stream_mode_){
+ stream_mode = stream_mode_;
stream_now = true;
- continuous = false;
num_samps = 0;
}
@@ -85,7 +85,8 @@ rx_metadata_t::rx_metadata_t(void){
has_stream_id = false;
time_spec = time_spec_t();
has_time_spec = false;
- is_fragment = false;
+ more_fragments = false;
+ fragment_offset = 0;
}
tx_metadata_t::tx_metadata_t(void){