![]() |
BSB Developer Docs
|
JavaScript application manifest library. More...
#include <toolbox/semver.h>Go to the source code of this file.
Data Structures | |
| struct | JsAppManifestInfo |
| JsAppManifest information structure. More... | |
Typedefs | |
| typedef struct JsAppManifest | JsAppManifest |
| JsAppManifest opaque type. | |
Functions | |
| JsAppManifest * | js_app_manifest_alloc (void) |
| Create a JsAppManifest instance. | |
| void | js_app_manifest_free (JsAppManifest *instance) |
| Delete a JsAppManifest instance. | |
| bool | js_app_manifest_load_from_file (JsAppManifest *instance, const char *file_path) |
| Load a JsAppManifest instance from a JSON description file. | |
| bool | js_app_manifest_get_info (const JsAppManifest *instance, JsAppManifestInfo *info) |
| Get the manifest information (its contents). | |
JavaScript application manifest library.
A JS application manifest contains the properties necessary to properly display and run an application.
The manifest file is stored using the following JSON format:
Fields marked as optional may be omitted, in which case they will be assigned their respective default values.
| JsAppManifest * js_app_manifest_alloc | ( | void | ) |
Create a JsAppManifest instance.
| void js_app_manifest_free | ( | JsAppManifest * | instance | ) |
Delete a JsAppManifest instance.
| [in,out] | instance | pointer to the instance to be deleted |
| bool js_app_manifest_get_info | ( | const JsAppManifest * | instance, |
| JsAppManifestInfo * | info ) |
Get the manifest information (its contents).
| [in] | instance | pointer to the instance to be queried |
| [out] | info | pointer to the output structure to be filled out with info (must be allocated) |
true if valid information was present, false otherwise | bool js_app_manifest_load_from_file | ( | JsAppManifest * | instance, |
| const char * | file_path ) |
Load a JsAppManifest instance from a JSON description file.
| [in,out] | instance | pointer to the instance to be loaded |
| [in] | file_path | zero-terminated string containing the path to the manifest file |
true if the manifest was loaded successfully, false otherwise