#include <gre/gre.h>
int gr_application_set_data_static(
gr_application_t *app,
const char *key,
const char *fmt,
void *data
);
The gr_application_set_data_static function provides an interface to set a Storyboard data
variable that is statically allocated for the lifetime of the application
Parameters:
app A pointer to an application handle created using gr_application_create_args.
key The data key variable to set
fmt The format describing the data argument: 1s0 (string) | 4u1 (uint32_t) | 4s1 (int32_t) ...
data A pointer to the data to set that can be passed to free() upon overwrite
Returns:
Zero on success, -1 on failure.
The gr_application_set_data_static function is a method of setting, and creating data
variables which are useable by the storyboard engine but are static. Data stored in ROM/flash should use this API.