diff options
author | Josh Blum | 2012-09-12 00:14:54 -0700 |
---|---|---|
committer | Josh Blum | 2012-09-12 00:14:54 -0700 |
commit | 8695f6127a447dbe6f5cf6eeba9d5cd110e33420 (patch) | |
tree | 9c097ba205781e91909db935e8d232e753c1feaa /lib/gras_impl/messages.hpp | |
parent | a822c2f3063030d9af172c4d3798885f3281d44e (diff) | |
download | sandhi-8695f6127a447dbe6f5cf6eeba9d5cd110e33420.tar.gz sandhi-8695f6127a447dbe6f5cf6eeba9d5cd110e33420.tar.bz2 sandhi-8695f6127a447dbe6f5cf6eeba9d5cd110e33420.zip |
split up misc header into messages and token
Diffstat (limited to 'lib/gras_impl/messages.hpp')
-rw-r--r-- | lib/gras_impl/messages.hpp | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/lib/gras_impl/messages.hpp b/lib/gras_impl/messages.hpp new file mode 100644 index 0000000..d5bfc8b --- /dev/null +++ b/lib/gras_impl/messages.hpp @@ -0,0 +1,58 @@ +// +// Copyright 2012 Josh Blum +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Lesser General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public License +// along with io_sig program. If not, see <http://www.gnu.org/licenses/>. + +#ifndef INCLUDED_LIBGRAS_IMPL_MESSAGES_HPP +#define INCLUDED_LIBGRAS_IMPL_MESSAGES_HPP + +#include <gnuradio/sbuffer.hpp> + +namespace gnuradio +{ + +struct TopBlockMessage +{ + enum + { + ALLOCATE, + ACTIVE, + INERT, + HINT, + TOKEN_TIME, + } what; + size_t hint; + Token token; +}; + +struct CheckTokensMessage +{ + //empty +}; + +struct SelfKickMessage +{ + //empty +}; + +struct BufferReturnMessage +{ + size_t index; + SBuffer buffer; +}; + + +} //namespace gnuradio + +#endif /*INCLUDED_LIBGRAS_IMPL_MESSAGES_HPP*/ |