equal
deleted
inserted
replaced
448 if(!strcmp(subcmd, "SCHEME") && netmsg->partCount == flib_meta.modCount + flib_meta.settingCount + 3) { |
448 if(!strcmp(subcmd, "SCHEME") && netmsg->partCount == flib_meta.modCount + flib_meta.settingCount + 3) { |
449 flib_scheme *cfg = flib_scheme_from_netmsg(netmsg->parts+2); |
449 flib_scheme *cfg = flib_scheme_from_netmsg(netmsg->parts+2); |
450 if(cfg) { |
450 if(cfg) { |
451 flib_scheme_destroy(conn->scheme); |
451 flib_scheme_destroy(conn->scheme); |
452 conn->scheme = cfg; |
452 conn->scheme = cfg; |
453 conn->onCfgSchemeCb(conn->onCfgSchemeCtx, cfg); |
453 conn->onSchemeChangedCb(conn->onSchemeChangedCtx, cfg); |
454 } else { |
454 } else { |
455 flib_log_e("Error processing CFG SCHEME message"); |
455 flib_log_e("Error processing CFG SCHEME message"); |
456 } |
456 } |
457 } else if(!strcmp(subcmd, "FULLMAPCONFIG") && netmsg->partCount == 7) { |
457 } else if(!strcmp(subcmd, "FULLMAPCONFIG") && netmsg->partCount == 7) { |
458 flib_map *map = flib_map_from_netmsg(netmsg->parts+2); |
458 flib_map *map = flib_map_from_netmsg(netmsg->parts+2); |