From eed0956a285e6aaf062a5c6f69e17bccd8ef8a20 Mon Sep 17 00:00:00 2001 From: eb Date: Mon, 10 Nov 2008 20:19:39 +0000 Subject: [PATCH] wrap the return type from gr_enable_realtime_scheduling git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@9969 221aa14e-8319-0410-a670-987f0aec2ac5 --- gnuradio-core/src/lib/runtime/gr_realtime.i | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/gnuradio-core/src/lib/runtime/gr_realtime.i b/gnuradio-core/src/lib/runtime/gr_realtime.i index 8f39625b..be7f12bf 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 , 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(); -- 2.47.2