diff options
-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(); |