Disk ARchive
2.4.5
Main Page
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
src
dar_suite
dar_suite.hpp
Go to the documentation of this file.
1
/*********************************************************************/
2
// dar - disk archive - a backup/restoration program
3
// Copyright (C) 2002-2052 Denis Corbin
4
//
5
// This program is free software; you can redistribute it and/or
6
// modify it under the terms of the GNU General Public License
7
// as published by the Free Software Foundation; either version 2
8
// of the License, or (at your option) any later version.
9
//
10
// This program is distributed in the hope that it will be useful,
11
// but WITHOUT ANY WARRANTY; without even the implied warranty of
12
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
// GNU General Public License for more details.
14
//
15
// You should have received a copy of the GNU General Public License
16
// along with this program; if not, write to the Free Software
17
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18
//
19
// to contact the author : http://dar.linux.free.fr/email.html
20
/*********************************************************************/
21
// $Id: dar_suite.hpp,v 1.17 2011/01/09 17:25:58 edrusb Rel $
22
//
23
/*********************************************************************/
24
//
25
29
30
#ifndef DAR_SUITE_HPP
31
#define DAR_SUITE_HPP
32
33
#include "../my_config.h"
34
#include "
user_interaction.hpp
"
35
36
#define EXIT_OK 0 // all that was asked is done
37
#define EXIT_SYNTAX 1 // syntax error on command line
38
#define EXIT_ERROR 2 // error not related to the data treated
39
// (lack of memory, hardware problem, etc.)
40
#define EXIT_BUG 3 // detected a condition that should never happen
41
#define EXIT_USER_ABORT 4 // user asked to abort (or question in non
42
// interactive mode)
43
#define EXIT_DATA_ERROR 5 // error in data treated (could not save/restore/
44
// compare all data due for example to bad access permission. Comparison
45
// mismatch of some files, archive testing failed etc...)
46
#define EXIT_SCRIPT_ERROR 6 // error around the execution of a user command
47
// using -E or -F options
48
#define EXIT_LIBDAR 7 // error calling libdar. Arguments given to libdar
49
// do not match those expected (sanity checks warning).
50
#define EXIT_LIMITINT 8 // limitinit overflow
51
// fixed using full infinint version of the program
52
#define EXIT_UNKNOWN_ERROR 9
53
// error not possible to report by other mean no access to stdout/stderr)
54
#define EXIT_COMPILATION 10 // feature not activated at compilation time
55
#define EXIT_SAVED_MODIFIED 11 // some files have been modified at the time they were saved
56
57
#define EXTENSION "dar"
58
60
#ifndef __VERSION__
61
#define __VERSION__ "unknown"
62
#endif
63
65
#ifdef __GNUC__
66
#define CC_NAT "GNUC"
67
#else
68
#define CC_NAT "unknown"
69
#endif
70
71
using namespace
libdar;
72
75
76
extern
void
dar_suite_reset_signal_handler();
77
extern
int
dar_suite_global(
int
argc,
char
*
const
argv[],
const
char
**env,
int
(*call)(
user_interaction
& dialog,
int
,
char
*
const
[],
const
char
**env));
78
79
extern
std::string dar_suite_command_line_features();
80
82
83
#endif
Generated on Wed Jun 13 2012 09:36:50 for Disk ARchive by
1.8.1