PebbleOS
Loading...
Searching...
No Matches
Data Structures | Enumerations | Functions
app_fetch_endpoint.h File Reference
#include <pbl/util/uuid.h>
#include <kernel/events.h>
#include <process_management/app_install_types.h>

Data Structures

struct  AppFetchError
 Result of the last app fetch. More...
 

Enumerations

enum  AppFetchResult {
  AppFetchResultSuccess , AppFetchResultTimeoutError , AppFetchResultGeneralFailure , AppFetchResultPhoneBusy ,
  AppFetchResultUUIDInvalid , AppFetchResultNoBluetooth , AppFetchResultPutBytesFailure , AppFetchResultNoData ,
  AppFetchResultUserCancelled , AppFetchResultIncompatibleJSFailure
}
 Outcome of an app fetch. More...
 

Functions

void app_fetch_binaries (const Uuid *uuid, AppInstallId app_id, bool has_worker)
 Request the binaries of an app from the phone.
 
void app_fetch_cancel (AppInstallId app_id)
 Cancel a fetch in progress.
 
void app_fetch_cancel_from_system_task (AppInstallId app_id)
 Cancel a fetch in progress, synchronously.
 
bool app_fetch_in_progress (void)
 Check whether a fetch is in progress.
 
void app_fetch_put_bytes_event_handler (PebblePutBytesEvent *pb_event)
 Handle a put_bytes event.
 
AppFetchError app_fetch_get_previous_error (void)
 Get the result of the last fetch.