LiliyGo-HiGrow-Sensor/build/gen/ffi_exports.c

240 lines
9.3 KiB
C
Raw Normal View History

2018-02-18 05:47:44 +00:00
/* Auto-generated, do not edit. */
/*
* Symbols filtered by the following globs:
*/
#include <stdbool.h>
#include "mgos_dlsym.h"
/* NOTE: signatures are fake */
double ceil(double);
double cos(double);
void esp32_uart_config_set_fifo(int, void *, int, int, int, int);
void esp32_uart_config_set_pins(int, void *, int, int, int, int);
double exp(double);
double fabs(double);
void fclose(void *);
double floor(double);
double fmax(double, double);
double fmin(double, double);
void * fopen(char *, char *);
int fread(char *, int, int, void *);
void free(void *);
void free(void *);
int fwrite(char *, int, int, void *);
int hall_sens_read(void);
double log(double);
void * malloc(int);
void mbuf_remove(void *, int);
int mg_conn_addr_to_str(void *, char *, int, int);
bool mg_rpc_send_errorf(void *, int, char *, char *);
void mg_send(void *, void *, int);
void mg_set_protocol_http_websocket(void *);
double mg_time(void);
int mgos_adc_enable(int);
int mgos_adc_read(int);
void * mgos_bind(char *, void (*)(void *, int, void *, void *), void *);
void mgos_bitbang_write_bits_js(int, int, int, void *, int);
void mgos_clear_timer(int);
void * mgos_conf_find_schema_entry(char *, void *);
double mgos_conf_value_double(void *, void *);
int mgos_conf_value_int(void *, void *);
char * mgos_conf_value_string_nonnull(void *, void *);
int mgos_conf_value_type(void *);
bool mgos_config_apply(char *, bool);
void * mgos_config_schema();
void * mgos_connect(char *, void (*)(void *, int, void *, void *), void *);
void * mgos_connect_http(char *, void (*)(void *, int, void *, void *), void *);
void * mgos_connect_http_ssl(char *, void (*)(void *, int, void *, void *), void *, char *, char *, char *);
void * mgos_connect_ssl(char *, void (*)(void *, int, void *, void *), void *, char *, char *, char *);
int mgos_debug_event_get_len(void *);
void * mgos_debug_event_get_ptr(void *);
void mgos_dht_close(void *);
void * mgos_dht_create(int, int);
float mgos_dht_get_humidity(void *);
float mgos_dht_get_temp(void *);
void mgos_disconnect(void *);
void mgos_esp_deep_sleep_d(double);
bool mgos_event_add_group_handler(int, void(*)(int, void *, void *), void *);
bool mgos_event_add_handler(int, void(*)(int, void *, void *), void *);
bool mgos_event_register_base(int, char *);
int mgos_event_trigger(int, void *);
void * mgos_get_body_ptr(void *);
int mgos_get_free_heap_size();
int mgos_get_heap_size();
int mgos_get_mbuf_len(void *);
void * mgos_get_mbuf_ptr(void *);
int mgos_get_mgstr_len(void *);
void * mgos_get_mgstr_ptr(void *);
void * mgos_get_msg_ptr(void *);
void * mgos_get_recv_mbuf(void *);
int mgos_gpio_disable_int(int);
int mgos_gpio_enable_int(int);
int mgos_gpio_read(int);
int mgos_gpio_set_button_handler(int,int,int,int,void(*)(int, void *), void *);
int mgos_gpio_set_int_handler(int,int,void(*)(int,void *),void *);
int mgos_gpio_set_mode(int,int);
int mgos_gpio_set_pull(int,int);
int mgos_gpio_toggle(int);
void mgos_gpio_write(int,int);
bool mgos_is_inbound(void *);
void mgos_log(char *, int, int, char *);
void * mgos_mjs_get_config();
void * mgos_rpc_add_handler(void *, void (*)(void *, char *, char *, void *), void *);
bool mgos_rpc_call(char *, char *, char *, void (*)(char *, int, char *, void *), void *);
bool mgos_rpc_send_response(void *, char *);
int mgos_set_timer(int,int,void(*)(void *),void *);
int mgos_strftime(char *, int, char *, int);
void mgos_system_restart(int);
void * mgos_uart_config_get_default(int);
void mgos_uart_config_set_basic_params(void *, int, int, int, int);
void mgos_uart_config_set_rx_params(void *, int, int, int);
void mgos_uart_config_set_tx_params(void *, int, int);
int mgos_uart_configure(int, void *);
void mgos_uart_flush(int);
int mgos_uart_is_rx_enabled(int);
int mgos_uart_read(int, void *, int);
int mgos_uart_read_avail(int);
void mgos_uart_set_dispatcher(int, void(*)(int, void *), void *);
void mgos_uart_set_rx_enabled(int, int);
int mgos_uart_write(int, char *, int);
int mgos_uart_write_avail(int);
double mgos_uptime();
void mgos_usleep(int);
void mgos_wdt_feed();
char * mjs_get_bcode_filename_by_offset(void *, int);
int mjs_get_lineno_by_offset(void *, int);
int mjs_get_offset_by_call_frame_num(void *, int);
double mjs_mem_get_int(void *, int, int);
void * mjs_mem_get_ptr(void *, int);
double mjs_mem_get_uint(void *, int, int);
void mjs_mem_set_uint(void *, int, int, int);
void * mjs_mem_to_ptr(int);
double pow(double, double);
int rand();
int remove(char *);
int rename(char *, char *);
double round(double);
double sin(double);
double sqrt(double);
void * strdup(char *);
int temprature_sens_read(void);
const struct mgos_ffi_export ffi_exports[] = {
{"ceil", ceil},
{"cos", cos},
{"esp32_uart_config_set_fifo", esp32_uart_config_set_fifo},
{"esp32_uart_config_set_pins", esp32_uart_config_set_pins},
{"exp", exp},
{"fabs", fabs},
{"fclose", fclose},
{"floor", floor},
{"fmax", fmax},
{"fmin", fmin},
{"fopen", fopen},
{"fread", fread},
{"free", free},
{"free", free},
{"fwrite", fwrite},
{"hall_sens_read", hall_sens_read},
{"log", log},
{"malloc", malloc},
{"mbuf_remove", mbuf_remove},
{"mg_conn_addr_to_str", mg_conn_addr_to_str},
{"mg_rpc_send_errorf", mg_rpc_send_errorf},
{"mg_send", mg_send},
{"mg_set_protocol_http_websocket", mg_set_protocol_http_websocket},
{"mg_time", mg_time},
{"mgos_adc_enable", mgos_adc_enable},
{"mgos_adc_read", mgos_adc_read},
{"mgos_bind", mgos_bind},
{"mgos_bitbang_write_bits_js", mgos_bitbang_write_bits_js},
{"mgos_clear_timer", mgos_clear_timer},
{"mgos_conf_find_schema_entry", mgos_conf_find_schema_entry},
{"mgos_conf_value_double", mgos_conf_value_double},
{"mgos_conf_value_int", mgos_conf_value_int},
{"mgos_conf_value_string_nonnull", mgos_conf_value_string_nonnull},
{"mgos_conf_value_type", mgos_conf_value_type},
{"mgos_config_apply", mgos_config_apply},
{"mgos_config_schema", mgos_config_schema},
{"mgos_connect", mgos_connect},
{"mgos_connect_http", mgos_connect_http},
{"mgos_connect_http_ssl", mgos_connect_http_ssl},
{"mgos_connect_ssl", mgos_connect_ssl},
{"mgos_debug_event_get_len", mgos_debug_event_get_len},
{"mgos_debug_event_get_ptr", mgos_debug_event_get_ptr},
{"mgos_dht_close", mgos_dht_close},
{"mgos_dht_create", mgos_dht_create},
{"mgos_dht_get_humidity", mgos_dht_get_humidity},
{"mgos_dht_get_temp", mgos_dht_get_temp},
{"mgos_disconnect", mgos_disconnect},
{"mgos_esp_deep_sleep_d", mgos_esp_deep_sleep_d},
{"mgos_event_add_group_handler", mgos_event_add_group_handler},
{"mgos_event_add_handler", mgos_event_add_handler},
{"mgos_event_register_base", mgos_event_register_base},
{"mgos_event_trigger", mgos_event_trigger},
{"mgos_get_body_ptr", mgos_get_body_ptr},
{"mgos_get_free_heap_size", mgos_get_free_heap_size},
{"mgos_get_heap_size", mgos_get_heap_size},
{"mgos_get_mbuf_len", mgos_get_mbuf_len},
{"mgos_get_mbuf_ptr", mgos_get_mbuf_ptr},
{"mgos_get_mgstr_len", mgos_get_mgstr_len},
{"mgos_get_mgstr_ptr", mgos_get_mgstr_ptr},
{"mgos_get_msg_ptr", mgos_get_msg_ptr},
{"mgos_get_recv_mbuf", mgos_get_recv_mbuf},
{"mgos_gpio_disable_int", mgos_gpio_disable_int},
{"mgos_gpio_enable_int", mgos_gpio_enable_int},
{"mgos_gpio_read", mgos_gpio_read},
{"mgos_gpio_set_button_handler", mgos_gpio_set_button_handler},
{"mgos_gpio_set_int_handler", mgos_gpio_set_int_handler},
{"mgos_gpio_set_mode", mgos_gpio_set_mode},
{"mgos_gpio_set_pull", mgos_gpio_set_pull},
{"mgos_gpio_toggle", mgos_gpio_toggle},
{"mgos_gpio_write", mgos_gpio_write},
{"mgos_is_inbound", mgos_is_inbound},
{"mgos_log", mgos_log},
{"mgos_mjs_get_config", mgos_mjs_get_config},
{"mgos_rpc_add_handler", mgos_rpc_add_handler},
{"mgos_rpc_call", mgos_rpc_call},
{"mgos_rpc_send_response", mgos_rpc_send_response},
{"mgos_set_timer", mgos_set_timer},
{"mgos_strftime", mgos_strftime},
{"mgos_system_restart", mgos_system_restart},
{"mgos_uart_config_get_default", mgos_uart_config_get_default},
{"mgos_uart_config_set_basic_params", mgos_uart_config_set_basic_params},
{"mgos_uart_config_set_rx_params", mgos_uart_config_set_rx_params},
{"mgos_uart_config_set_tx_params", mgos_uart_config_set_tx_params},
{"mgos_uart_configure", mgos_uart_configure},
{"mgos_uart_flush", mgos_uart_flush},
{"mgos_uart_is_rx_enabled", mgos_uart_is_rx_enabled},
{"mgos_uart_read", mgos_uart_read},
{"mgos_uart_read_avail", mgos_uart_read_avail},
{"mgos_uart_set_dispatcher", mgos_uart_set_dispatcher},
{"mgos_uart_set_rx_enabled", mgos_uart_set_rx_enabled},
{"mgos_uart_write", mgos_uart_write},
{"mgos_uart_write_avail", mgos_uart_write_avail},
{"mgos_uptime", mgos_uptime},
{"mgos_usleep", mgos_usleep},
{"mgos_wdt_feed", mgos_wdt_feed},
{"mjs_get_bcode_filename_by_offset", mjs_get_bcode_filename_by_offset},
{"mjs_get_lineno_by_offset", mjs_get_lineno_by_offset},
{"mjs_get_offset_by_call_frame_num", mjs_get_offset_by_call_frame_num},
{"mjs_mem_get_int", mjs_mem_get_int},
{"mjs_mem_get_ptr", mjs_mem_get_ptr},
{"mjs_mem_get_uint", mjs_mem_get_uint},
{"mjs_mem_set_uint", mjs_mem_set_uint},
{"mjs_mem_to_ptr", mjs_mem_to_ptr},
{"pow", pow},
{"rand", rand},
{"remove", remove},
{"rename", rename},
{"round", round},
{"sin", sin},
{"sqrt", sqrt},
{"strdup", strdup},
{"temprature_sens_read", temprature_sens_read},
};
const int ffi_exports_cnt = 112;