| 50 | */ |
| 51 | |
| 52 | static void oldpins_array_seed(struct srd_decoder_inst *di) |
| 53 | { |
| 54 | size_t count; |
| 55 | GArray *arr; |
| 56 | |
| 57 | if (!di) |
| 58 | return; |
| 59 | if (di->old_pins_array) |
| 60 | return; |
| 61 | |
| 62 | count = di->dec_num_channels; |
| 63 | arr = g_array_sized_new(FALSE, TRUE, sizeof(uint8_t), count); |
| 64 | g_array_set_size(arr, count); |
| 65 | memset(arr->data, SRD_INITIAL_PIN_SAME_AS_SAMPLE0, count); |
| 66 | di->old_pins_array = arr; |
| 67 | } |
| 68 | |
| 69 | static void oldpins_array_free(struct srd_decoder_inst *di) |
| 70 | { |
no outgoing calls
no test coverage detected