Beispiel #1
0
static void PianoJsonParseStation (json_object *j, PianoStation_t *s) {
    s->name = PianoJsonStrdup (j, "stationName");
    s->id = PianoJsonStrdup (j, "stationToken");
    s->isCreator = !json_object_get_boolean (json_object_object_get (j,
                   "isShared"));
    s->isQuickMix = json_object_get_boolean (json_object_object_get (j,
                    "isQuickMix"));
}
Beispiel #2
0
static void PianoJsonParseStation (json_object *j, PianoStation_t *s) {
	s->name = PianoJsonStrdup (j, "stationName");
	s->id = PianoJsonStrdup (j, "stationToken");
	s->isCreator = !getBoolDefault (j, "isShared", !false);
	s->isQuickMix = getBoolDefault (j, "isQuickMix", false);
}