bitmap - bitmap_destroy destroy bitmap struct bitmap Opaque...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
#ifndef _BITMAP_H_ #define _BITMAP_H_ /* * Fixed-size array of bits. (Intended for storage management.) * * Functions: * bitmap_create - allocate a new bitmap object. * Returns NULL on error. * bitmap_getdata - return pointer to raw bit data (for I/O). * bitmap_alloc - locate a cleared bit, set it, and return its index. * bitmap_mark - set a clear bit by its index. * bitmap_unmark - clear a set bit by its index. * bitmap_isset - return whether a particular bit is set or not.
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: * bitmap_destroy - destroy bitmap. */ struct bitmap; /* Opaque. */ struct bitmap *bitmap_create(u_int32_t nbits); void *bitmap_getdata(struct bitmap *); int bitmap_alloc(struct bitmap *, u_int32_t *index); void bitmap_mark(struct bitmap *, u_int32_t index); void bitmap_unmark(struct bitmap *, u_int32_t index); int bitmap_isset(struct bitmap *, u_int32_t index); void bitmap_destroy(struct bitmap *); #endif /* _BITMAP_H_ */...
View Full Document

This note was uploaded on 02/15/2012 for the course CS 153 taught by Professor Brecht during the Spring '12 term at Alabama.

Ask a homework question - tutors are online