You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
553 B

#ifndef HAS_BITMAP_H
#define HAS_BITMAP_H 1
11 years ago
10 years ago
#define BITMAP_SIDE 16
#define BITMAP_SIZE (BITMAP_SIDE * (BITMAP_SIDE / 8))
#define BITMAP_BITS (BITMAP_SIZE * 8)
11 years ago
#define CHAR_USED '@'
#define CHAR_NONE '-'
11 years ago
typedef unsigned char bitmap_t[BITMAP_SIZE];
int
bitmap_compare(const unsigned char *a,
const unsigned char *b);
int
bitmap_diffmap(unsigned char *diff,
const unsigned char *a,
const unsigned char *b);
10 years ago
size_t
bitmap_unpack(const unsigned char *map,
unsigned char ** const buf);
#endif