00001 // 00002 // aegis - project change supervisor 00003 // Copyright (C) 1991-1993, 2002, 2004-2006, 2008 Peter Miller. 00004 // 00005 // This program is free software; you can redistribute it and/or modify 00006 // it under the terms of the GNU General Public License as published by 00007 // the Free Software Foundation; either version 3 of the License, or 00008 // (at your option) any later version. 00009 // 00010 // This program is distributed in the hope that it will be useful, 00011 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 // GNU General Public License for more details. 00014 // 00015 // You should have received a copy of the GNU General Public License 00016 // along with this program. If not, see 00017 // <http://www.gnu.org/licenses/>. 00018 // 00019 00020 #ifndef LIBAEGIS_COMMIT_H 00021 #define LIBAEGIS_COMMIT_H 00022 00045 struct string_ty; // forward 00046 class nstring; // forward 00047 00057 void commit_rename(string_ty *from, string_ty *to); 00058 00068 void commit_rename(const nstring &from, const nstring &to); 00069 00079 void commit_symlink(string_ty *from, string_ty *to); 00080 00090 void commit_symlink(const nstring &from, const nstring &to); 00091 00101 void commit_hard_link(string_ty *from, string_ty *to); 00102 00112 void commit_hard_link(const nstring &from, const nstring &to); 00113 00121 void commit_unlink_errok(string_ty *path); 00122 00130 void commit_unlink_errok(const nstring &path); 00131 00141 void commit_rmdir_errok(string_ty *path); 00142 00152 void commit_rmdir_errok(const nstring &path); 00153 00163 void commit_rmdir_tree_bg(string_ty *path); 00164 00174 void commit_rmdir_tree_bg(const nstring &path); 00175 00185 void commit_rmdir_tree_errok(string_ty *path); 00186 00196 void commit_rmdir_tree_errok(const nstring &path); 00197 00208 void commit(void); 00209 00211 #endif // LIBAEGIS_COMMIT_H