sys::fsh service

The sys::fsh service is in charge of handling high-level filesystem operations, such as file associations and thumbnails generation.

Methods

0x0001 REGISTER_OPENER

Register an application as an opener for a list of file types.

Arguments:

Return value:

None

Errors:

  • 0x1000: One of the provided extensions is empty
  • 0x1001: At least one of the provided extensions is reserved to the system
  • 0x3000: Client does not expose a file opening service
  • 0x3001: Client already handles at least one of the provided extensions

0x0002 UNREGISTER_OPENER

Unregister an application as an opener for a list of file types.

Argument:

Return value:

None

Errors:

  • 0x1001: One of the provided extensions is empty
  • 0x3000: Client does not expose a file opening service
  • 0x3001: Client does not currently handle at least one of the provided extensions

0x0003 LIST_OPENERS

List the file openers associated to a specific type of items.

The list is not ordered, it's up to the file manager to determine the display order if multiple openers are found.

Arguments:

Return value:

Errors:

0x1000 CHECK_ITEM_THUMBNAIL_CACHE

Check if a cached thumbnail exists for a given filesystem item to determine if another should be generated or not.

The cache policy is determined using internal criterias.

Arguments:

Return value:

  • Presence (1 byte): 0x01 if a thumbnail is present, 0x00 else

If a thumbnail is present, this is followed by:

Errors:

0x1001 CACHE_ITEM_THUMBNAIL

Write a filesystem item's thumbnail in the cache.

If a thumbnail already exists in cache, it will be replaced by the new one.

The cache policy is determined using internal criterias.

Arguments:

Return value:

  • Thumbnail TFEID (8 bytes)

Errors:

  • 0x1000: Invalid bitmap data
  • 0x3000: Client is not a file manager service
  • 0x3001: Unknown FSID
  • 0x3002: Unknown FEID

0x1100 CHECK_ITEM_PREVIEW_CACHE

Check if a cached preview exists for a given filesystem item to determine if another should be generated or not.

The cache policy is determined using internal criterias.

Arguments:

Return value:

  • Presence (1 byte): 0x01 if a preview is present, 0x00 else

If a preview is present, this is followed by:

Errors:

0x1101 CACHE_ITEM_PREVIEW

Write a filesystem item's preview in the cache.

If a preview already exists in cache, it will be replaced by the new one.

The cache policy is determined using internal criterias.

Arguments:

Return value:

  • Preview TFEID (8 bytes)

Errors:

  • 0x1000: Invalid bitmap data
  • 0x3000: Client is not a file manager service
  • 0x3001: Unknown FSID
  • 0x3002: Unknown FEID