summaryrefslogtreecommitdiff
path: root/gnuradio-core/src/lib/general/gr_head.cc
diff options
context:
space:
mode:
authoreb2009-08-15 18:32:56 +0000
committereb2009-08-15 18:32:56 +0000
commitcdecd3aa94c0ed24312c869c27b3cbd01998004e (patch)
tree41cea512ed2f77b7ee861c85362b466aa4cdd703 /gnuradio-core/src/lib/general/gr_head.cc
parent1579bab2e5840e8f7e7918b7cabf250ca4fd259a (diff)
downloadgnuradio-cdecd3aa94c0ed24312c869c27b3cbd01998004e.tar.gz
gnuradio-cdecd3aa94c0ed24312c869c27b3cbd01998004e.tar.bz2
gnuradio-cdecd3aa94c0ed24312c869c27b3cbd01998004e.zip
Added reset method to gr_head and gr_vector_sink. This allows graphs
containing these blocks to be run more than once with user control over when the reset of the counter and sink occurs. git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@11599 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gnuradio-core/src/lib/general/gr_head.cc')
-rw-r--r--gnuradio-core/src/lib/general/gr_head.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/gnuradio-core/src/lib/general/gr_head.cc b/gnuradio-core/src/lib/general/gr_head.cc
index 94a00cc68..01035ffcd 100644
--- a/gnuradio-core/src/lib/general/gr_head.cc
+++ b/gnuradio-core/src/lib/general/gr_head.cc
@@ -1,6 +1,6 @@
/* -*- c++ -*- */
/*
- * Copyright 2004 Free Software Foundation, Inc.
+ * Copyright 2004,2009 Free Software Foundation, Inc.
*
* This file is part of GNU Radio
*
@@ -35,10 +35,10 @@ gr_head::gr_head (size_t sizeof_stream_item, int nitems)
{
}
-gr_block_sptr
+gr_head_sptr
gr_make_head (size_t sizeof_stream_item, int nitems)
{
- return gr_block_sptr (new gr_head (sizeof_stream_item, nitems));
+ return gnuradio::get_initial_sptr(new gr_head (sizeof_stream_item, nitems));
}
int