Rockbox Development > Starting Development and Compiling

filename variable?

(1/1)

zardos:
I need some help, am writing a simple plugin? This is what i want to accomplice.

My plugins is names "testapp". And if i brows a file then klick "open with" testapp, i want my app to write put the file path of that file.

How do i do this simple task?

cool_walking_:
I've never attempted writing a viewer (plugin that takes a filename as a parameter), but looking at rockboy, it looks like it's passed as "parameter" to the plugin entry point:


--- Code: ---enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
--- End code ---

Looks like you'll need to add a line to apps/plugins/viewers.config, too.

I guess you've already got it in apps/plugins/SOURCES and apps/plugins/CATEGORIES ?


I found this in the wiki:
http://www.rockbox.org/twiki/bin/view/Main/ViewerPlugin

Navigation

[0] Message Index

Go to full version