Soletta™ Framework
Framework for making IoT devices

Full online documentation | C API Index
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions
sol-update.h File Reference

Routines to update a Soletta app. More...

#include "sol-str-slice.h"

Go to the source code of this file.

Data Structures

struct  sol_update_info
 Contains update info got via sol_update_check call. More...
 

Macros

#define SOL_UPDATE_INFO_API_VERSION   (1)
 

Typedefs

typedef struct sol_update_handle sol_update_handle
 Handle returned by some sol_update* calls, so they can be cancelled appropriately. More...
 
typedef struct sol_update_info sol_update_info
 Contains update info got via sol_update_check call. More...
 

Functions

bool sol_update_cancel (struct sol_update_handle *handle)
 Cancel an ongoing check, fetch or install task. More...
 
struct sol_update_handlesol_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. More...
 
struct sol_update_handlesol_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. More...
 
int sol_update_get_progress (struct sol_update_handle *handle)
 Get progress of given update task. More...
 
struct sol_update_handlesol_update_install (void(*cb)(void *data, int status), const void *data)
 Install update. More...
 

Detailed Description

Routines to update a Soletta app.

Provide way to check, fetch and install updates

Macro Definition Documentation

#define SOL_UPDATE_INFO_API_VERSION   (1)