Am 12.02.2014 um 21:00 schrieb W. Martinjak <[email protected]>: > Michael, > > On 2014-02-12 20:40, Michael Haberler wrote: >> Wolfgang, >> >> I have reproduced the problem. >> >> That said - get_rtapi_config() was meant to be internal use to rtapi, and >> not from RT components. Also, since it uses file operations it would be >> usable only for userland components, and only in rtapi_app_main and >> rtapi_app_exit. Moreover, since the path handling does not have a very good >> general solution right now, I'm hesitant to export that for general use in >> an ad-hoc way, because that means that API is frozen as it stands and must >> be supported. >> >> proposal: just use a string parameter passed when loading the component - >> you are free to use ini/hal file macro substitution to do any pathname >> massage. See the mesanet .hal files which work that way. > Yes I walked this way for the PC pluto-driver. > But I've been suggested by you to use the get_rtapi_config way. ;) > > <quote> > - die absoluten Pfade sind ein no-no und ein wenig ausmisten wäre > angesagt, verwende get_rtapi_config() > </quote>
sorry about that, makes me look really silly.. I should have suggested the command line param instead - looks like your compiled-in pathnames froze my brain ;) I guess that was not a very well thought out suggestion I gave. It is true we had used it in some components initially, but the above still stands - the only way to get in parameters compatible with any thread flavor an RT/non-RT use is command line args. However, if somebody has better ideas how to do this - improvements are always welcome! - Michael > > Matsche > > -- > "In der Wissenschaft siegt nie eine neue Theorie, > nur ihre Gegner sterben nach und nach" > > Max Planck > > > ------------------------------------------------------------------------------ > Android apps run on BlackBerry 10 > Introducing the new BlackBerry 10.2.1 Runtime for Android apps. > Now with support for Jelly Bean, Bluetooth, Mapview and more. > Get your Android app in front of a whole new audience. Start now. > http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk > _______________________________________________ > Emc-developers mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/emc-developers ------------------------------------------------------------------------------ Android apps run on BlackBerry 10 Introducing the new BlackBerry 10.2.1 Runtime for Android apps. Now with support for Jelly Bean, Bluetooth, Mapview and more. Get your Android app in front of a whole new audience. Start now. http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk _______________________________________________ Emc-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-developers
