doc.txt 2.7 KB

123456789101112131415161718192021222324252627282930
  1. 
  2. package aroz // import "imuslab.com/aroz_online/subservice/demo/aroz"
  3. FUNCTIONS
  4. func HandleFlagCapture(info ServiceInfo) string
  5. This function will request the required flag from the startup paramters and
  6. parse it to the need of the arozos.
  7. TYPES
  8. type ServiceInfo struct {
  9. Name string //Name of this module. e.g. "Audio"
  10. Desc string //Description for this module
  11. Group string //Group of the module, e.g. "system" / "media" etc
  12. IconPath string //Module icon image path e.g. "Audio/img/function_icon.png"
  13. Version string //Version of the module. Format: [0-9]*.[0-9][0-9].[0-9]
  14. StartDir string //Default starting dir, e.g. "Audio/index.html"
  15. SupportFW bool //Support floatWindow. If yes, floatWindow dir will be loaded
  16. LaunchFWDir string //This link will be launched instead of 'StartDir' if fw mode
  17. SupportEmb bool //Support embedded mode
  18. LaunchEmb string //This link will be launched instead of StartDir / Fw if a file is opened with this module
  19. InitFWSize []int //Floatwindow init size. [0] => Width, [1] => Height
  20. InitEmbSize []int //Embedded mode init size. [0] => Width, [1] => Height
  21. SupportedExt []string //Supported File Extensions. e.g. ".mp3", ".flac", ".wav"
  22. }
  23. Information required for registering this subservice to arozos