Changeset 4795:cf3e4ecde1f5 in roaraudio for libroar/hash.c


Ignore:
Timestamp:
03/14/11 15:47:34 (13 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

Added Adler32 support (Closes: #123) (pr1)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/hash.c

    r4708 r4795  
    4646 
    4747static const struct hashes { 
    48  const int    id; 
    49  const char * name; 
    50  const ssize_t dlen; 
     48 const uint_least32_t id; 
     49 const char         * name; 
     50 const ssize_t        dlen; 
    5151} _libroar_hashes[] = { 
    5252/* 
     
    8888 {ROAR_HT_ISBN10,      "ISBN10",      8   }, 
    8989 {ROAR_HT_ISBN13,      "ISBN13",      8   }, 
     90 {ROAR_HT_ADLER32,     "ADLER32",     4   }, 
    9091 {-1, NULL} 
    9192}; 
     
    102103  roar_hash_crc24_digest, NULL, roar_hash_crc24_proc 
    103104 }, 
     105 {ROAR_HT_ADLER32, sizeof(uint32_t), -1, 
     106  roar_hash_adler32_init, NULL, 
     107  roar_hash_adler32_digest, NULL, roar_hash_adler32_proc 
     108 }, 
    104109 {-1, -1, -1, NULL, NULL, NULL, NULL, NULL} 
    105110}; 
Note: See TracChangeset for help on using the changeset viewer.