]> git.gag.com Git - debian/gnuradio/commitdiff
wrap the return type from gr_enable_realtime_scheduling
authoreb <eb@221aa14e-8319-0410-a670-987f0aec2ac5>
Mon, 10 Nov 2008 20:19:39 +0000 (20:19 +0000)
committereb <eb@221aa14e-8319-0410-a670-987f0aec2ac5>
Mon, 10 Nov 2008 20:19:39 +0000 (20:19 +0000)
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@9969 221aa14e-8319-0410-a670-987f0aec2ac5

gnuradio-core/src/lib/runtime/gr_realtime.i

index 8f39625b410630c9ebd0dc6d3598d44456eccf7a..be7f12bf0894fce3ee25526ebe8b17c7edab9553 100644 (file)
@@ -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
 //       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();