looper/web_functions.hpp
2024-05-02 14:52:11 -07:00

27 lines
No EOL
1 KiB
C++

#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);
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);
}
#endif