MCPcopy Create free account
hub / github.com/Santroller/Santroller / load_held

Function load_held

src/config.cpp:446–462  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

444 return true;
445}
446bool load_held(pb_istream_t *stream, const pb_field_t *field, void **arg)
447{
448 auto profile = working_profile;
449 printf("found held!\r\n");
450 auto last_held = new HeldInput();
451 last_special = last_held;
452 proto_HeldInput input;
453 input.input.cb_input.funcs.decode = load_input_dev;
454 input.input.cb_input.arg = arg;
455 if (!pb_decode(stream, proto_HeldInput_fields, &input))
456 {
457 printf("couldnt decode held input?\r\n");
458 return false;
459 }
460 last_held->load(input, make_input(input.input, profile, stream));
461 return true;
462}
463bool load_cycle(pb_istream_t *stream, const pb_field_t *field, void **arg)
464{
465 auto profile = working_profile;

Callers

nothing calls this directly

Calls 3

pb_decodeFunction · 0.85
make_inputFunction · 0.85
loadMethod · 0.45

Tested by

no test coverage detected