summaryrefslogtreecommitdiff
path: root/vrt/lib/rx.cc
diff options
context:
space:
mode:
authorEric Blossom2010-09-29 12:19:38 -0700
committerEric Blossom2010-09-29 12:19:38 -0700
commitc7219d7aced26483ffe9c935fd1033dc3803891b (patch)
treed1bb8045799f35c71bdd495d39007cb5fee50d24 /vrt/lib/rx.cc
parentdf0cfb734e5acf698d286e03ba6abccc13d9c586 (diff)
downloadgnuradio-c7219d7aced26483ffe9c935fd1033dc3803891b.tar.gz
gnuradio-c7219d7aced26483ffe9c935fd1033dc3803891b.tar.bz2
gnuradio-c7219d7aced26483ffe9c935fd1033dc3803891b.zip
Change data_handler::operator() return type to bool to simplify things.
Diffstat (limited to 'vrt/lib/rx.cc')
-rw-r--r--vrt/lib/rx.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/vrt/lib/rx.cc b/vrt/lib/rx.cc
index ca1be9fa4..f44077568 100644
--- a/vrt/lib/rx.cc
+++ b/vrt/lib/rx.cc
@@ -1,6 +1,6 @@
/* -*- c++ -*- */
/*
- * Copyright 2009 Free Software Foundation, Inc.
+ * Copyright 2009,2010 Free Software Foundation, Inc.
*
* This file is part of GNU Radio
*
@@ -80,13 +80,13 @@ namespace vrt {
~vrt_data_handler();
- result operator()(const void *base, size_t len);
+ bool operator()(const void *base, size_t len);
};
vrt_data_handler::~vrt_data_handler(){}
// N.B., There may be more than 1 VRT packet in a frame (usually IF-Context packets)
- data_handler::result
+ bool
vrt_data_handler::operator()(const void *base, size_t len)
{
const uint32_t *word_base = (const uint32_t *) base;
@@ -103,13 +103,13 @@ namespace vrt {
fprintf(stderr, "vrt_data_handler: malformed VRT packet!\n");
print_words(stderr, 0, word_base, word_len);
}
- return 0;
+ return true;
}
want_more = (*d_handler)(payload, n32_bit_words, &hdr);
word_base += hdr.pkt_size();
word_len -= hdr.pkt_size();
}
- return !want_more ? data_handler::DONE : 0;
+ return want_more;
}