Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Exiting from plugin without returning?
« previous next »
  • Print
Pages: [1]

Author Topic: Exiting from plugin without returning?  (Read 1418 times)

Offline torne

  • Developer
  • Member
  • *
  • Posts: 994
  • arf arf
Exiting from plugin without returning?
« on: December 28, 2008, 05:32:04 PM »
I'm writing a plugin that uses substantial third party code (open source of course). It's written with portability in mind and calls all OS functionality through a nice abstraction layer that's not too hard to implement using the RB plugin functions, except for one rather annoying exception: it expects to be able to call a function to terminate the program with a fatal error :)

Is there any way to exit a plugin without having to return from its main function? It doesn't look like it, from plugin_load's implementation. The third party code contains the main loop of the program, and I'm trying to avoid modifying the code any more than necessary: propagating the errors upward from the various places it calls os_fatal() would be a huge and difficult change..

Any ideas? I'm guessing rockbox can't longjmp().. :)
Logged
some kind of ARM guy. ipodvideo/gigabeat-s/h120/clipv2. to save time let's assume i know everything.

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Exiting from plugin without returning?
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.046 seconds with 16 queries.