summaryrefslogtreecommitdiff
path: root/common/tuxcmd-error.h
blob: 04be91e1364fa1e56906f1f0fe629cf5bb9c09e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/*  Tux Commander VFS: VFS utilities
 *  Copyright (C) 2024 Tomas Bzatek <tbzatek@users.sourceforge.net>
 *   Check for updates on tuxcmd.sourceforge.net
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

#ifndef __TUXCMD_ERROR_H__
#define __TUXCMD_ERROR_H__

#ifdef __cplusplus
  extern "C" {
#endif

#include <glib.h>

typedef enum {
  TUXCMD_ERROR_CANCELLED,
  TUXCMD_ERROR_EXCEPTION,
  TUXCMD_ERROR_NOT_SUPPORTED,
  /*  Basic IO  */
  TUXCMD_ERROR_CHDIR,
  TUXCMD_ERROR_OPENDIR,
  TUXCMD_ERROR_STAT,
  TUXCMD_ERROR_MKDIR,
  TUXCMD_ERROR_REMOVE,
  TUXCMD_ERROR_SYMLINK,
  TUXCMD_ERROR_CHMOD,
  TUXCMD_ERROR_CHOWN,
  TUXCMD_ERROR_RENAME,
  TUXCMD_ERROR_TIMESTAMPS,
  /*  File IO  */
  TUXCMD_ERROR_OPEN_FILE,
  TUXCMD_ERROR_READ_FILE,
  TUXCMD_ERROR_WRITE_FILE,
  TUXCMD_ERROR_CLOSE_FILE,
  TUXCMD_ERROR_SEEK,
  /*  File copy  */
  TUXCMD_ERROR_ALLOC_FAILED,
  TUXCMD_ERROR_SOURCE_OPEN,
  TUXCMD_ERROR_TARGET_OPEN,
  TUXCMD_ERROR_SOURCE_READ,
  TUXCMD_ERROR_TARGET_WRITE,
  TUXCMD_ERROR_SOURCE_CLOSE,
  TUXCMD_ERROR_TARGET_CLOSE
} TuxcmdError;

#define TUXCMD_ERROR (tuxcmd_error_quark ())
inline GQuark tuxcmd_error_quark (void) {
  return g_quark_from_static_string ("tuxcmd-error-quark");
}

#ifdef __cplusplus
  }
#endif
#endif /* __TUXCMD_ERROR_H__ */