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
Macros | Functions | Variables
platform-simple.c File Reference
#include <errno.h>
#include <stdlib.h>
#include <stdio.h>
#include "sol-mainloop.h"
#include "sol-platform.h"
#include "sol-util.h"

Macros

#define CMD_TICK   2000
 

Functions

int main (int argc, char *argv[])
 
static void on_service_changed (void *data, const char *service, enum sol_platform_service_state state)
 
static void on_state_change (void *data, enum sol_platform_state state)
 
static bool on_timeout_cmd (void *data)
 

Variables

static char ** cmds
 
static int cur_cmd
 
static int n_cmds
 
static struct sol_timeouttimeout_handle
 

Macro Definition Documentation

#define CMD_TICK   2000
Examples:
/src/samples/common/platform-simple.c.

Referenced by main().

Function Documentation

int main ( int  argc,
char *  argv[] 
)
static void on_service_changed ( void *  data,
const char *  service,
enum sol_platform_service_state  state 
)
static
static void on_state_change ( void *  data,
enum sol_platform_state  state 
)
static
Examples:
/src/samples/common/platform-simple.c.

Referenced by main().

static bool on_timeout_cmd ( void *  data)
static

Variable Documentation

char** cmds
static
int cur_cmd
static
int n_cmds
static
struct sol_timeout* timeout_handle
static