71 #ifndef SOL_NO_API_VERSION
72 #define SOL_UPDATE_INFO_API_VERSION (1)
97 void (*cb)(
void *data,
int status,
const struct sol_update_info *response),
121 const void *data,
bool resume);
bool sol_update_cancel(struct sol_update_handle *handle)
Cancel an ongoing check, fetch or install task.
const char * version
Current version of update file.
Definition: sol-update.h:75
int sol_update_get_progress(struct sol_update_handle *handle)
Get progress of given update task.
Contains update info got via sol_update_check call.
Definition: sol-update.h:70
struct sol_update_handle * sol_update_check(void(*cb)(void *data, int status, const struct sol_update_info *response), const void *data)
Check if there's an update to get.
uint64_t size
Size of update file.
Definition: sol-update.h:76
struct sol_update_handle * sol_update_fetch(void(*cb)(void *data, int status), const void *data, bool resume)
Fetch update, so it can be installed later wit sol_update_install.
bool need_update
If version of update is newer than current, so the update is necessary.
Definition: sol-update.h:77
uint16_t api_version
Definition: sol-update.h:73
struct sol_update_handle * sol_update_install(void(*cb)(void *data, int status), const void *data)
Install update.
These are routines that Soletta provides for its string slice implementation.
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
struct sol_update_info sol_update_info
Contains update info got via sol_update_check call.