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
linux-micro-init.c File Reference
#include <ctype.h>
#include <stdio.h>
#include <string.h>
#include "soletta.h"
#include "sol-platform.h"
#include "sol-gpio.h"
#include "sol-util.h"
#include "sol-util-file.h"

Macros

#define _GNU_SOURCE
 

Functions

static void on_platform_state_change (void *data, enum sol_platform_state state)
 
static void on_service_change (void *data, const char *service, enum sol_platform_service_state state)
 
static bool on_timeout (void *data)
 
static int parse_cmdline_pin (void)
 
static int parse_kcmdline_pin (void)
 
static int parse_kcmdline_pin_entry (const char *start, size_t len)
 
static void shutdown (void)
 
 SOL_MAIN_DEFAULT (startup, shutdown)
 
static void startup (void)
 

Variables

static struct sol_gpiogpio
 
static bool gpio_state = false
 
static const char * services []
 
static struct sol_timeouttimeout
 

Macro Definition Documentation

#define _GNU_SOURCE

Function Documentation

static void on_platform_state_change ( void *  data,
enum sol_platform_state  state 
)
static
static void on_service_change ( void *  data,
const char *  service,
enum sol_platform_service_state  state 
)
static
static bool on_timeout ( void *  data)
static
static int parse_cmdline_pin ( void  )
static
Examples:
/src/samples/common/linux-micro-init.c.

References sol_argc(), sol_argv(), and value.

Referenced by startup().

static int parse_kcmdline_pin ( void  )
static
static int parse_kcmdline_pin_entry ( const char *  start,
size_t  len 
)
static
static void shutdown ( void  )
static
SOL_MAIN_DEFAULT ( startup  ,
shutdown   
)
static void startup ( void  )
static

Variable Documentation

struct sol_gpio* gpio
static
bool gpio_state = false
static
const char* services[]
static
Initial value:
= {
"console",
"hostname",
"network-up",
"sysctl",
"watchdog",
NULL
}
Examples:
/src/samples/common/linux-micro-init.c.

Referenced by shutdown(), and startup().

struct sol_timeout* timeout
static

Referenced by shutdown(), and startup().