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
Data Structures | Macros | Typedefs | Functions
sol-platform-linux-micro.h File Reference

These routines are used for Soletta platform Linux micro interaction. More...

#include "sol-common-buildopts.h"
#include "sol-platform.h"
#include "sol-platform-linux.h"
#include <stdbool.h>
#include <unistd.h>
#include <stdint.h>

Go to the source code of this file.

Data Structures

struct  sol_platform_linux_micro_module
 struct that describes the Linux micro module More...
 

Macros

#define SOL_PLATFORM_LINUX_MICRO_MODULE(_NAME, decl...)
 Exports the Linux micro module. More...
 
#define SOL_PLATFORM_LINUX_MICRO_MODULE_API_VERSION   (1)
 Compile time API version to be checked during runtime. More...
 

Typedefs

typedef struct
sol_platform_linux_micro_module 
sol_platform_linux_micro_module
 struct that describes the Linux micro module More...
 

Functions

void sol_platform_linux_micro_inform_service_state (const char *service, enum sol_platform_service_state state)
 Inform the service observers the current state of the service. More...
 

Detailed Description

These routines are used for Soletta platform Linux micro interaction.

Macro Definition Documentation

#define SOL_PLATFORM_LINUX_MICRO_MODULE (   _NAME,
  decl... 
)
Value:
const struct sol_platform_linux_micro_module SOL_PLATFORM_LINUX_MICRO_MODULE_ ## _NAME = { \
decl \
}
struct that describes the Linux micro module
Definition: sol-platform-linux-micro.h:43
uint16_t api_version
The API version.
Definition: sol-platform-linux-micro.h:46
#define SOL_PLATFORM_LINUX_MICRO_MODULE_API_VERSION
Compile time API version to be checked during runtime.
Definition: sol-platform-linux-micro.h:45
#define SOL_SET_API_VERSION(expression)
This macro will cope with SOL_NO_API_VERSION and allows easy declaration of api_version fields...
Definition: sol-mainloop.h:660

Exports the Linux micro module.

This macro should be used to declare a Linux micro module, making it visible to Soletta.

Parameters
_NAMEThe meta type name.
declThe meta declarations.

Example:

.name = "My module"
.init = init_module,
.shutdown = shutdown_module,
#define SOL_PLATFORM_LINUX_MICRO_MODULE_API_VERSION   (1)

Compile time API version to be checked during runtime.

Typedef Documentation

struct that describes the Linux micro module

See Also
SOL_PLATFORM_LINUX_MICRO_MODULE()

Function Documentation

void sol_platform_linux_micro_inform_service_state ( const char *  service,
enum sol_platform_service_state  state 
)

Inform the service observers the current state of the service.

Parameters
serviceThe service name
stateThe current service state
See Also
sol_platform_add_service_monitor()