OMAPI  1.8
Open Movement Public API
download.c File Reference
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "omapi.h"

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
 

Detailed Description

Open Movement API Example: Download data from all devices.

Author
Dan Jackson
Date
2011-2012

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.

Remarks
Makes use of API initialization and device discovery, download, Return codes

Definition in file download.c.

Macro Definition Documentation

◆ printf

#define printf (   ...)    { fprintf(stdout, __VA_ARGS__); fflush(stdout); if (tee) { fprintf(stderr, __VA_ARGS__); } }

Definition at line 57 of file download.c.

Function Documentation

◆ download()

int download ( const char *  outpath)

Definition at line 174 of file download.c.

◆ download_main()

int download_main ( int  argc,
char *  argv[] 
)

Definition at line 213 of file download.c.

◆ logCallback()

void logCallback ( void *  reference,
const char *  message 
)

Definition at line 65 of file download.c.

Variable Documentation

◆ tee

char tee = 0

Definition at line 56 of file download.c.