librazor/razor-internal.h
author Kristian H?gsberg <krh@redhat.com>
Mon Jun 16 22:35:09 2008 -0400 (2008-06-16)
changeset 244 708a3d9c759a
child 248 057933050c42
permissions -rw-r--r--
Don't fail to update if there is not older package found.
     1 #ifndef _RAZOR_INTERNAL_H_
     2 #define _RAZOR_INTERNAL_H_
     3 
     4 #define ALIGN(value, base) (((value) + (base - 1)) & ~((base) - 1))
     5 
     6 /* Utility functions */
     7 
     8 int razor_create_dir(const char *root, const char *path);
     9 int razor_write(int fd, const void *data, size_t size);
    10 
    11 
    12 typedef int (*razor_compare_with_data_func_t)(const void *p1,
    13 					      const void *p,
    14 					      void *data);
    15 uint32_t *
    16 razor_qsort_with_data(void *base, size_t nelem, size_t size,
    17 		      razor_compare_with_data_func_t compare, void *data);
    18 
    19 #endif /* _RAZOR_INTERNAL_H_ */