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
| | |-+  filename variable?
« previous next »
  • Print
Pages: [1]

Author Topic: filename variable?  (Read 1467 times)

Offline zardos

  • Member
  • *
  • Posts: 5
filename variable?
« on: October 25, 2007, 08:55:43 PM »
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?
Logged

Offline cool_walking_

  • Rockbox Expert
  • Member
  • *
  • Posts: 695
Re: filename variable?
« Reply #1 on: October 25, 2007, 11:53:07 PM »
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: [Select]
enum plugin_status plugin_start(struct plugin_api* api, void* parameter)

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
« Last Edit: October 26, 2007, 12:18:05 AM by cool_walking_ »
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  filename variable?
 

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

Page created in 0.065 seconds with 16 queries.