Del via


Applibs storage.h

Header: #include <applibs/storage.h>

The Applibs storage header contains functions that interact with on-device storage, which includes read-only storage and mutable storage.

Application manifest

Mutable storage functions are only permitted if the application has the MutableStorage capability in the application manifest.

Concepts and samples

Mutable storage:

On-device storage:

Functions

Function Description
Storage_DeleteMutableFile Deletes the mutable storage file for the application.
Storage_GetAbsolutePathInImagePackage Gets a null-terminated string that contains the absolute path to a location within the image package of the running application, given a relative path inside the image package.
Storage_OpenFileInImagePackage Takes a relative path inside the image package and returns an opened read-only file descriptor.
Storage_OpenMutableFile Retrieves a file descriptor to the mutable storage file for the application. If the application doesn't already have a mutable storage file, this function creates a file and then returns the file descriptor.