|
Soletta™ Framework
|
#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 |
|
static |
References console_fd, led_state, and value.
Referenced by user_handle_get().
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
|
static |
References sol_oic_resource_type::api_version, SOL_OIC_FLAG_ACTIVE, SOL_OIC_FLAG_DISCOVERABLE, SOL_OIC_FLAG_OBSERVABLE, SOL_OIC_RESOURCE_TYPE_API_VERSION, sol_oic_server_register_resource(), SOL_SET_API_VERSION, sol_str_slice_from_str(), and SOL_STR_SLICE_LITERAL.
Referenced by main().
|
static |
References console_fd, and led_state.
Referenced by user_handle_put().
|
static |
References get_scrolllock_led(), SOL_COAP_RESPONSE_CODE_CONTENT, SOL_COAP_RESPONSE_CODE_INTERNAL_ERROR, SOL_INT_CHECK_GOTO, SOL_NULL_CHECK_GOTO, sol_oic_map_append(), SOL_OIC_REPR_BOOL, SOL_OIC_REPR_INT, sol_oic_server_response_free(), sol_oic_server_response_get_writer(), sol_oic_server_response_new(), and sol_oic_server_send_response().
Referenced by main().
|
static |
References sol_oic_repr_field::key, set_scrolllock_led(), SOL_COAP_RESPONSE_CODE_BAD_REQUEST, SOL_COAP_RESPONSE_CODE_INTERNAL_ERROR, SOL_COAP_RESPONSE_CODE_OK, SOL_OIC_MAP_LOOP, sol_oic_repr_field_clear(), SOL_OIC_REPR_TYPE_BOOL, sol_oic_server_request_get_reader(), sol_oic_server_send_response(), sol_oic_repr_field::type, and sol_oic_repr_field::v_boolean.
Referenced by main().
|
static |
Referenced by get_scrolllock_led(), main(), and set_scrolllock_led().
|
static |
Referenced by get_scrolllock_led(), and set_scrolllock_led().
1.8.6