48 #ifndef SOL_NO_API_VERSION
49 #define SOL_UPDATE_API_VERSION (1)
59 void (*cb)(
void *data,
int status,
const struct sol_update_info *response),
68 void (*cb)(
void *data,
int status),
69 const void *data,
bool resume);
116 #ifdef SOL_UPDATE_MODULE_EXTERNAL
117 #define SOL_UPDATE_DECLARE(_NAME, decl ...) \
118 SOL_API const struct sol_update *SOL_UPDATE = \
119 &((const struct sol_update) { \
120 SOL_SET_API_VERSION(.api_version = SOL_UPDATE_API_VERSION, ) \
124 #define SOL_UPDATE_DECLARE(_NAME, decl ...) \
125 SOL_API const struct sol_update SOL_UPDATE_ ## _NAME = { \
126 SOL_SET_API_VERSION(.api_version = SOL_UPDATE_API_VERSION, ) \
void(* shutdown)(void)
Function called when module is unloaded.
Definition: sol-update-modules.h:108
struct sol_update sol_update
Structure containing function that need to be implemented by Soletta update modules.
Contains update info got via sol_update_check call.
Definition: sol-update.h:70
int(* get_progress)(struct sol_update_handle *handle)
Get update task progress.
Definition: sol-update-modules.h:83
bool(* cancel)(struct sol_update_handle *handle)
Cancel ongoing update tasks.
Definition: sol-update-modules.h:76
These are common Soletta macros.
int(* init)(void)
Function called when module is loaded.
Definition: sol-update-modules.h:101
Structure containing function that need to be implemented by Soletta update modules.
Definition: sol-update-modules.h:47
struct sol_update_handle sol_update_handle
Handle returned by some sol_update* calls, so they can be cancelled appropriately.
Definition: sol-update.h:63
uint16_t api_version
API version.
Definition: sol-update-modules.h:50
Routines to update a Soletta app.