added new markup
[util-vserver.git] / util-vserver / lib_internal / unify.h
index 30d8e3b..60691eb 100644 (file)
 #ifndef H_UTIL_VSERVER_LIB_INTERNAL_UNIFY_H
 #define H_UTIL_VSERVER_LIB_INTERNAL_UNIFY_H
 
+#include <sys/stat.h>
 #include <stdbool.h>
 
-struct stat;
-
 bool
 Unify_unify(char const *src, struct stat const *src_stat,
            char const *dst, bool ignore_zero) NONNULL((1,2,3));
@@ -37,7 +36,10 @@ Unify_deUnify(char const *dst) NONNULL((1));
 bool
 Unify_setTime(char const *dst, struct stat const *stat) NONNULL((1,2));
 
-bool
+
+typedef enum { unifyUNSUPPORTED, unifyUINLINKABLE, unifyBUSY } UnifyStatus;
+
+UnifyStatus
 Unify_isIUnlinkable(char const *filename) NONNULL((1));
 
 #define        Unify_isUnified(LHS, RHS)               \