Go to the source code of this file.
Macros | |
#define | printf(...) { fprintf(stdout, __VA_ARGS__); fflush(stdout); if (tee) { fprintf(stderr, __VA_ARGS__); } } |
Functions | |
void | logCallback (void *reference, const char *message) |
int | download (const char *outpath) |
int | download_main (int argc, char *argv[]) |
Variables | |
char | tee = 0 |
Open Movement API Example: Download data from all devices.
A command-line tool to download from all devices that containing data. This example uses the OmDeviceCallback to monitor for any connected devices and begins downloading in the background. This example uses the OmDownloadCallback to monitor download progress.
Definition in file download.c.
#define printf | ( | ... | ) | { fprintf(stdout, __VA_ARGS__); fflush(stdout); if (tee) { fprintf(stderr, __VA_ARGS__); } } |
Definition at line 57 of file download.c.
int download | ( | const char * | outpath | ) |
Definition at line 174 of file download.c.
int download_main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 213 of file download.c.
void logCallback | ( | void * | reference, |
const char * | message | ||
) |
Definition at line 65 of file download.c.
char tee = 0 |
Definition at line 56 of file download.c.