discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss-gnuradio] Migration to gruel for realtime scheduling broke pyth


From: Stefan Brüns
Subject: [Discuss-gnuradio] Migration to gruel for realtime scheduling broke python bindings
Date: Wed, 24 Sep 2008 17:22:01 +0200
User-agent: KMail/1.9.9

Changeset 9607+9610 broke python bindins, as the enums moved out of SWIGs 
scope.

The following patch fixes this:

=== modified file 'gnuradio-core/src/lib/runtime/gr_realtime.i'
--- gnuradio-core/src/lib/runtime/gr_realtime.i 2006-08-03 03:51:51 +0000
+++ gnuradio-core/src/lib/runtime/gr_realtime.i 2008-09-24 15:14:57 +0000
@@ -1,4 +1,4 @@
-%rename(enable_realtime_scheduling) gr_enable_realtime_scheduling;
+%rename(enable_realtime_scheduling) gruel::enable_realtime_scheduling;

-%include <gr_realtime.h>
+%include <gruel/realtime.h>

---------------

The %rename serves only for documentary purpose, as SWIG strips namespaces by 
default. The patch restores the previous functionality, as well as exposes 
the additional interfaces introduced by the migration to gruel, namely 
gruel::enable_realtime_scheduling(gruel::rt_sched_param)

Stefan

-- 
Stefan Brüns  /  Bergstraße 21  /  52062 Aachen
mailto:lurch at gmx.li  http://www.kawo1.rwth-aachen.de/~lurchi/
   phone: +49 241 53809034     mobile: +49 151 50412019




reply via email to

[Prev in Thread] Current Thread [Next in Thread]