![]() |
Disk ARchive
2.5.2
Full featured and portable backup and archiving tool
|
00001 /*********************************************************************/ 00002 // dar - disk archive - a backup/restoration program 00003 // Copyright (C) 2002-2052 Denis Corbin 00004 // 00005 // This program is free software; you can redistribute it and/or 00006 // modify it under the terms of the GNU General Public License 00007 // as published by the Free Software Foundation; either version 2 00008 // of the License, or (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, write to the Free Software 00017 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00018 // 00019 // to contact the author : http://dar.linux.free.fr/email.html 00020 /*********************************************************************/ 00021 00025 00026 #ifndef CAT_TOOLS_HPP 00027 #define CAT_TOOLS_HPP 00028 00029 #include "../my_config.h" 00030 00031 #include <string> 00032 00033 #include "cat_inode.hpp" 00034 00035 00036 extern "C" 00037 { 00038 } // end extern "C" 00039 00040 00041 #define REMOVE_TAG gettext("[--- REMOVED ENTRY ----]") 00042 #define SAVED_FAKE_BIT 0x80 00043 00044 namespace libdar 00045 { 00046 00049 00050 00051 extern std::string local_perm(const cat_inode & ref, bool hard); 00052 extern std::string local_uid(const cat_inode & ref); 00053 extern std::string local_gid(const cat_inode & ref); 00054 extern std::string local_size(const cat_inode & ref); 00055 extern std::string local_storage_size(const cat_inode & ref); 00056 extern std::string local_date(const cat_inode & ref); 00057 extern std::string local_flag(const cat_inode & ref, bool isolated, bool dirty_seq); 00058 extern void xml_listing_attributes(user_interaction & dialog, //< for user interaction 00059 const std::string & beginning, //< character std::string to use as margin 00060 const std::string & data, //< ("saved" | "referenced" | "deleted") 00061 const std::string & metadata, //< ("saved" | "referenced" | "absent") 00062 const cat_entree * obj = nullptr, //< the object to display cat_inode information about 00063 bool list_ea = false); //< whether to list Extended Attributes 00064 extern bool extract_base_and_status(unsigned char signature, unsigned char & base, saved_status & saved); 00065 extern void local_display_ea(user_interaction & dialog, const cat_inode * ino, const std::string &prefix, const std::string &suffix, bool xml_output = false); 00066 00067 00069 00070 } // end of namespace 00071 00072 #endif