| 3012 | } |
| 3013 | |
| 3014 | void sendStateSetToUI(const char* const key, const char* const value) const |
| 3015 | { |
| 3016 | v3_message** const message = createMessage("state-set"); |
| 3017 | DISTRHO_SAFE_ASSERT_RETURN(message != nullptr,); |
| 3018 | |
| 3019 | v3_attribute_list** const attrlist = v3_cpp_obj(message)->get_attributes(message); |
| 3020 | DISTRHO_SAFE_ASSERT_RETURN(attrlist != nullptr,); |
| 3021 | |
| 3022 | v3_cpp_obj(attrlist)->set_int(attrlist, "__dpf_msg_target__", 2); |
| 3023 | v3_cpp_obj(attrlist)->set_int(attrlist, "key:length", std::strlen(key)); |
| 3024 | v3_cpp_obj(attrlist)->set_int(attrlist, "value:length", std::strlen(value)); |
| 3025 | v3_cpp_obj(attrlist)->set_string(attrlist, "key", ScopedUTF16String(key)); |
| 3026 | v3_cpp_obj(attrlist)->set_string(attrlist, "value", ScopedUTF16String(value)); |
| 3027 | v3_cpp_obj(fConnectionFromCtrlToView)->notify(fConnectionFromCtrlToView, message); |
| 3028 | |
| 3029 | v3_cpp_obj_unref(message); |
| 3030 | } |
| 3031 | |
| 3032 | void sendReadyToUI() const |
| 3033 | { |
no test coverage detected