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
Functions | Variables
oic-server.c File Reference
#include <errno.h>
#include <fcntl.h>
#include <linux/kd.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/ioctl.h>
#include "sol-log.h"
#include "sol-mainloop.h"
#include "sol-str-slice.h"
#include "sol-util.h"
#include "sol-vector.h"
#include "sol-coap.h"
#include "sol-oic-server.h"

Functions

static bool get_scrolllock_led (void)
 
int main (int argc, char *argv[])
 
static struct
sol_oic_server_resource
register_light_resource_type (int(*handle_get)(void *data, struct sol_oic_request *request), int(*handle_put)(void *data, struct sol_oic_request *request), const char *resource_type)
 
static bool set_scrolllock_led (bool on)
 
static int user_handle_get (void *data, struct sol_oic_request *request)
 
static int user_handle_put (void *data, struct sol_oic_request *request)
 

Variables

static int console_fd
 
static bool led_state
 

Function Documentation

static bool get_scrolllock_led ( void  )
static
int main ( int  argc,
char *  argv[] 
)
static struct sol_oic_server_resource* register_light_resource_type ( int(*)(void *data, struct sol_oic_request *request)  handle_get,
int(*)(void *data, struct sol_oic_request *request)  handle_put,
const char *  resource_type 
)
static
static bool set_scrolllock_led ( bool  on)
static
static int user_handle_get ( void *  data,
struct sol_oic_request request 
)
static
static int user_handle_put ( void *  data,
struct sol_oic_request request 
)
static

Variable Documentation

int console_fd
static
bool led_state
static