MCPcopy Create free account
hub / github.com/DISTRHO/Cardinal / dataToJson

Method dataToJson

plugins/Cardinal/src/HostTime.cpp:186–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184 {}
185
186 json_t* dataToJson() override {
187 json_t* rootJ = json_object();
188 json_object_set_new(rootJ, "barDivision", json_integer(barDivision));
189 return rootJ;
190 }
191
192 void dataFromJson(json_t* rootJ) override {
193 if (json_t* bdJ = json_object_get(rootJ, "barDivision")) {

Callers

nothing calls this directly

Calls 3

json_objectFunction · 0.85
json_object_set_newFunction · 0.85
json_integerFunction · 0.85

Tested by

no test coverage detected