diff -r 000000000000 -r c3eb520e2219 librazor/razor-internal.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/librazor/razor-internal.h Mon Jun 16 15:40:30 2008 -0400 @@ -0,0 +1,19 @@ +#ifndef _RAZOR_INTERNAL_H_ +#define _RAZOR_INTERNAL_H_ + +#define ALIGN(value, base) (((value) + (base - 1)) & ~((base) - 1)) + +/* Utility functions */ + +int razor_create_dir(const char *root, const char *path); +int razor_write(int fd, const void *data, size_t size); + + +typedef int (*razor_compare_with_data_func_t)(const void *p1, + const void *p, + void *data); +uint32_t * +razor_qsort_with_data(void *base, size_t nelem, size_t size, + razor_compare_with_data_func_t compare, void *data); + +#endif /* _RAZOR_INTERNAL_H_ */