looper/web_functions.hpp

27 lines
1 KiB
C++
Raw Normal View History

2024-05-01 09:07:08 -07:00
#pragma once
#ifdef __EMSCRIPTEN__
extern "C" {
extern void write_storage(const char *key, const char *value, int len);
extern void remove_storage(const char *key);
extern void read_storage(const char *key, const char **value, int *len);
extern void open_filepicker();
extern void set_filter(const char *filter);
extern const char *get_first_file();
extern bool file_picker_cancelled();
extern bool file_picker_confirmed();
extern bool file_picker_closed();
extern bool file_picker_visible();
extern bool file_picker_loading();
extern void clear_file_selection();
extern void find_keys(const char *prefix, const char ***output);
2024-05-02 14:52:11 -07:00
extern void get_size(int32_t *x, int32_t *y);
extern double get_dpi();
extern bool serviceworker_possible();
extern bool serviceworker_registered();
extern void update();
extern void unregister_serviceworker();
extern void register_serviceworker();
extern bool is_puter_enabled();
extern void enable_puter(bool enable);
2024-05-01 09:07:08 -07:00
}
#endif