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
|
/*
* 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 library 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
* Library General Public License for more details.
*
* You should have received a copy of the GNU General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
*/
#ifndef SFSHARE_ERRORS_H
#define SFSHARE_ERRORS_H
/* Types of errors */
typedef enum
{
OK,
ERROR_FAILED,
ERROR_PERMISSION_DENIED,
/* Samba share */
ERROR_FILE_NOT_EXIST,
ERROR_CAN_NOT_OPEN_FILE,
ERROR_CAN_NOT_WRITE_TO_FILE,
ERROR_DIRECTORY_NOT_SHARED,
ERROR_WRONG_NAME,
ERROR_WRONG_PATH,
ERROR_READONLY_WRITABLE,
ERROR_SHARE_NAME_EXIST,
NUM_ERRORS
} Error_sfshare;
/* Definition in file: dbus_service.c */
gchar *get_error_msg (Error_sfshare err);
#endif
|