Soletta™ Framework
|
Structure containing function that need to be implemented by Soletta update modules. More...
#include <sol-update-modules.h>
Data Fields | |
uint16_t | api_version |
API version. More... | |
bool(* | cancel )(struct sol_update_handle *handle) |
Cancel ongoing update tasks. More... | |
struct sol_update_handle *(* | check )(void(*cb)(void *data, int status, const struct sol_update_info *response), const void *data) |
Checks for updates. More... | |
struct sol_update_handle *(* | fetch )(void(*cb)(void *data, int status), const void *data, bool resume) |
Fetch updates. More... | |
int(* | get_progress )(struct sol_update_handle *handle) |
Get update task progress. More... | |
int(* | init )(void) |
Function called when module is loaded. More... | |
struct sol_update_handle *(* | install )(void(*cb)(void *data, int status), const void *data) |
Install updates. More... | |
void(* | shutdown )(void) |
Function called when module is unloaded. More... | |
Structure containing function that need to be implemented by Soletta update modules.
uint16_t sol_update::api_version |
API version.
bool(* sol_update::cancel)(struct sol_update_handle *handle) |
Cancel ongoing update tasks.
struct sol_update_handle*(* sol_update::check)(void(*cb)(void *data, int status, const struct sol_update_info *response), const void *data) |
Checks for updates.
struct sol_update_handle*(* sol_update::fetch)(void(*cb)(void *data, int status), const void *data, bool resume) |
Fetch updates.
int(* sol_update::get_progress)(struct sol_update_handle *handle) |
Get update task progress.
int(* sol_update::init)(void) |
Function called when module is loaded.
An opportunity to do setup tasks, like checking if an update completed successfully.
Must return 0 on success, and a negative number on failure.
struct sol_update_handle*(* sol_update::install)(void(*cb)(void *data, int status), const void *data) |
Install updates.
void(* sol_update::shutdown)(void) |
Function called when module is unloaded.
Cleanup tasks can be performed when this function is called.