From b207aa2d76a8171681b0ff0a3b5342e8f0703ba9 Mon Sep 17 00:00:00 2001 From: Johnathan Corgan Date: Thu, 26 Jan 2012 14:06:37 -0800 Subject: uhd: add utility function to convert raw gr_message to async_metadata_t --- gr-uhd/include/gr_uhd_amsg_source.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gr-uhd/include/gr_uhd_amsg_source.h') diff --git a/gr-uhd/include/gr_uhd_amsg_source.h b/gr-uhd/include/gr_uhd_amsg_source.h index accf15ce2..3c1b59fa7 100644 --- a/gr-uhd/include/gr_uhd_amsg_source.h +++ b/gr-uhd/include/gr_uhd_amsg_source.h @@ -38,6 +38,13 @@ GR_UHD_API boost::shared_ptr uhd_make_amsg_source( ); class GR_UHD_API uhd_amsg_source{ +public: + /*! + * Convert a raw asynchronous message to an asynchronous metatdata object. + * \return The asynchronous metadata object. + */ + static uhd::async_metadata_t msg_to_async_metadata_t(const gr_message_sptr msg); + }; #endif /* INCLUDED_GR_UHD_AMSG_SOURCE_H */ -- cgit