/* * License: BSD-style license * Copyright: Radek Podgorny , * Bernd Schubert */ #ifndef GENERAL_H #define GENERAL_H #include enum whiteout { WHITEOUT_FILE, WHITEOUT_DIR }; typedef enum filetype { NOT_EXISTING=-1, IS_DIR=0, IS_FILE=1, } filetype_t; int path_hidden(const char *path, int branch); int remove_hidden(const char *path, int maxbranch); int hide_file(const char *path, int branch_rw); int hide_dir(const char *path, int branch_rw); filetype_t path_is_dir (const char *path); int maybe_whiteout(const char *path, int branch_rw, enum whiteout mode); int set_owner(const char *path); #endif