Changes samples' function prototypes to apply newly introduced callback type.