Previous 15994 Revisions Next

r7804 Wednesday 14th April, 2010 at 14:03:44 UTC by Robbbert
[MESSUI] Software picker - restored partialhash function.
[src/mess]image.c

src/mess/image.c
r7803r7804
566566void image_device_compute_hash(char *dest, const device_config *device,
567567    const void *data, size_t length, unsigned int functions)
568568{
569//   device_image_partialhash_func partialhash;
569   device_image_partialhash_func partialhash;
570570
571571   /* retrieve the partial hash func */
572//   partialhash = (device_image_partialhash_func) device->get_config_string(DEVINFO_FCT_IMAGE_PARTIAL_HASH);
572   partialhash = (device_image_partialhash_func) device->get_config_fct(DEVINFO_FCT_IMAGE_PARTIAL_HASH);
573573
574574   /* compute the hash */
575//   if (partialhash)
576//      partialhash(dest, (const unsigned char*)data, length, functions);
577//   else
575   if (partialhash)
576      partialhash(dest, (const unsigned char*)data, length, functions);
577   else
578578      hash_compute(dest, (const unsigned char*)data, length, functions);
579579}
580580

Previous 15994 Revisions Next


© 1998-2018 The MESS Team