| 307 | } |
| 308 | |
| 309 | EMSCRIPTEN_KEEPALIVE bool jsDeclareFile(const char *path, size_t len) { |
| 310 | // declare a file and it's length. But don't fill it in yet |
| 311 | auto inserted = fl::_createIfNotExists(fl::string(path), len); |
| 312 | if (!inserted) { |
| 313 | FL_WARN("File can only be declared once."); |
| 314 | return false; |
| 315 | } |
| 316 | return true; |
| 317 | } |
| 318 | |
| 319 | EMSCRIPTEN_KEEPALIVE void fastled_declare_files(const char* jsonStr) { |
| 320 | fl::json doc = fl::json::parse(fl::string(jsonStr)); |
no test coverage detected