Rockbox

  • Status Closed
  • Percent Complete
    0%
  • Task Type Patches
  • Category
  • Assigned To No-one
  • Operating System
  • Severity Low
  • Priority Very Low
  • Reported Version
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: Rockbox
Opened by hardeeps - 2003-07-21
Last edited by hardeeps - 2003-07-27

FS#1535 - Minor plugin changes

A couple of minor changes to the plugin code:

1. Changed plugin_test() to allow plugins that were
created with an older version of the api. So long as we
are only adding new functions and these functions are
added at the end of the api structure, the plugin code is
backwards compatible. To handle the case where
backwards compatibility breaks (e.g. if the existing APIs
change), added the PLUGIN_MIN_API_VERSION define.

2. Added the plugin_get_buffer() function which can be
called by both plugins and built-in modules and returns a
pointer to the portion of the plugin buffer not already
used by a plugin (returns entire buffer if no plugin
loaded). Modified text viewer plugin to use this function
(~30k vs. 1k of buffer space).

Closed by  hardeeps
2003-07-27 19:25
Reason for closing:  Accepted
Project Manager

I say we add both these ones.

Regarding the 1, we need to make a huge comment in the code
about how to add new functions to the struct.

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing