Support and General Use > Plugins/Viewers
Help with "plugin_load" function
jesteban100:
Hi, I'm new on this, i know a little about C and assembler and now i'm tryng to read an mpg file from any plugin.
In the following link i've read about "plugin_load"
http://forums.rockbox.org/index.php?topic=13515.msg101863#msg101863
but i've got this error at cygwin:
"undefined reference to plugin_load"
Then i've tried
rb -> plugin_load(....)
and now the error is "the struct plugin_api has no member 'plugin_load"
i'm a little confused, and looking for help. How can i solve this problem?
linuxstb:
The plugin_load() function is used by core Rockbox to load a plugin.
Rockbox reserves a small amount of memory at a fixed address (512KB on most targets) to load a plugin to - all plugins are compiled and linked to run from this address, and you can therefore only run one plugin at a time.
So it doesn't make sense for plugins to be able to load other plugins - it's not possible.
What exactly are you trying to achieve?
jesteban100:
i know that i can only read one plugin at the same time, but i've readed that "plugin_load()" loads another plugin and closes the first one. I'm not sure about that, but that's just what i've readed:
http://forums.rockbox.org/index.php?topic=15310.0
http://forums.rockbox.org...13515.msg101863#msg101863
I think that is correct to use "plugin_load()" cause this instruction is defined in plugin.h and plugin.c, but i can't find how to use it properly, I really need help
gratt:
You need to add plugin_load() into the plugin struct
in plugin.c/h to access it from a plugin.
I did this and was able to get the text viewer to open from
my HTML parser plugin but on exit was left with a blank screen
or data abort. I never got that sorted out.
Post back if you get it
GRaTT
jesteban100:
--- Quote from: gratt on May 28, 2008, 02:00:37 PM ---You need to add plugin_load() into the plugin struct
in plugin.c/h to access it from a plugin.
GRaTT
--- End quote ---
i've tried it but i get this warning:
warning: intialization from incompatible pointer type
and most of the plugins don't work properly in my sansa e250.
I`m afraid that i don`t know exactly how to add plugin_load() into the plugin struct
in plugin.c/h
what I exactly need is to load an mpg file from any plugin, i've tought in the "plugin_load" function, but if anyone know a different way...help me
Navigation
[0] Message Index
[#] Next page
Go to full version