razor-internal.h
author Dan Winship <danw@gnome.org>
Tue Mar 11 11:44:51 2008 -0400 (2008-03-11)
changeset 161 7762db2848bf
child 186 7f45d0401e37
permissions -rw-r--r--
update to deal with obsoletes better

when looking for a package "foo" to install/update, we have to look
not just for a package named "foo", but also any package that
obsoletes+provides "foo".

So redo the algorithm to satisfy *all* installs/removes from the
property list, so now we don't need to walk the package list at all.
     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 #endif /* _RAZOR_INTERNAL_H_ */