This is required in various situations and for various lib users,
especially so GUIs which might want to pass specific info via this
mechanism.
return 0;
}
-void show_pd_annotation(struct srd_proto_data *pdata)
+void show_pd_annotation(struct srd_proto_data *pdata, void *data)
{
int i;
char **annotations;
+ /* 'data' is not used in this specific callback. */
+ (void)data;
+
if (pdata->ann_format != 0) {
/* CLI only shows the default annotation format. */
return;
return 1;
}
if (srd_register_callback(SRD_OUTPUT_ANN,
- show_pd_annotation) != SRD_OK) {
+ show_pd_annotation, NULL) != SRD_OK) {
printf("Failed to register protocol decoder callback\n");
return 1;
}