/* This is only used for nicer srd_dbg() output. */
static const char *OUTPUT_TYPES[] = {
"OUTPUT_ANN",
- "OUTPUT_PROTO",
+ "OUTPUT_PYTHON",
"OUTPUT_BINARY",
};
switch (pdo->output_type) {
case SRD_OUTPUT_ANN:
/* Annotations are only fed to callbacks. */
- if ((cb = srd_pd_output_callback_find(pdo->output_type))) {
+ if ((cb = srd_pd_output_callback_find(di->sess, pdo->output_type))) {
/* Annotations need converting from PyObject. */
if (convert_pyobj(di, data, &pdata->ann_format,
(char ***)&pdata->data) != SRD_OK) {
cb->cb(pdata, cb->cb_data);
}
break;
- case SRD_OUTPUT_PROTO:
+ case SRD_OUTPUT_PYTHON:
for (l = di->next_di; l; l = l->next) {
next_di = l->data;
/* TODO: Is this needed? */