librazor/razor-internal.h
changeset 244 708a3d9c759a
child 248 057933050c42
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/librazor/razor-internal.h	Mon Jun 16 22:35:09 2008 -0400
     1.3 @@ -0,0 +1,19 @@
     1.4 +#ifndef _RAZOR_INTERNAL_H_
     1.5 +#define _RAZOR_INTERNAL_H_
     1.6 +
     1.7 +#define ALIGN(value, base) (((value) + (base - 1)) & ~((base) - 1))
     1.8 +
     1.9 +/* Utility functions */
    1.10 +
    1.11 +int razor_create_dir(const char *root, const char *path);
    1.12 +int razor_write(int fd, const void *data, size_t size);
    1.13 +
    1.14 +
    1.15 +typedef int (*razor_compare_with_data_func_t)(const void *p1,
    1.16 +					      const void *p,
    1.17 +					      void *data);
    1.18 +uint32_t *
    1.19 +razor_qsort_with_data(void *base, size_t nelem, size_t size,
    1.20 +		      razor_compare_with_data_func_t compare, void *data);
    1.21 +
    1.22 +#endif /* _RAZOR_INTERNAL_H_ */