diff options
author | eb | 2008-11-10 20:19:39 +0000 |
---|---|---|
committer | eb | 2008-11-10 20:19:39 +0000 |
commit | eed0956a285e6aaf062a5c6f69e17bccd8ef8a20 (patch) | |
tree | a47a5bd16e4a471f8ad905de456f7d6149dd48bd | |
parent | 4e633f8926cf87b63694a5c3015d669040cf69e0 (diff) | |
download | gnuradio-eed0956a285e6aaf062a5c6f69e17bccd8ef8a20.tar.gz gnuradio-eed0956a285e6aaf062a5c6f69e17bccd8ef8a20.tar.bz2 gnuradio-eed0956a285e6aaf062a5c6f69e17bccd8ef8a20.zip |
wrap the return type from gr_enable_realtime_scheduling
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@9969 221aa14e-8319-0410-a670-987f0aec2ac5
-rw-r--r-- | gnuradio-core/src/lib/runtime/gr_realtime.i | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/gnuradio-core/src/lib/runtime/gr_realtime.i b/gnuradio-core/src/lib/runtime/gr_realtime.i index 8f39625b4..be7f12bf0 100644 --- a/gnuradio-core/src/lib/runtime/gr_realtime.i +++ b/gnuradio-core/src/lib/runtime/gr_realtime.i @@ -20,7 +20,7 @@ * Boston, MA 02110-1301, USA. */ -%rename(enable_realtime_scheduling) gruel::enable_realtime_scheduling; +%rename(enable_realtime_scheduling) gr_enable_realtime_scheduling; // NOTE: This is duplicated from gruel/src/include/gruel/gr_realtime.h, // and must be kept in sync with it. This is the least evil workaround @@ -29,5 +29,16 @@ // Otherwise, they can't find #include <gruel/gr_realtime.h>, since // pkg-config strips -I/usr/include from the --cflags path. +namespace gruel { + + typedef enum { + RT_OK = 0, + RT_NOT_IMPLEMENTED, + RT_NO_PRIVS, + RT_OTHER_ERROR + } rt_status_t; + +} + typedef gruel::rt_status_t gr_rt_status_t; gr_rt_status_t gr_enable_realtime_scheduling(); |