summaryrefslogtreecommitdiffstats
path: root/sfshare-daemon/sfshare_errors.h
diff options
context:
space:
mode:
authorJan Lipovsky <janlipovsky@gmail.com>2010-05-28 13:59:28 +0200
committerJan Lipovsky <janlipovsky@gmail.com>2010-05-28 13:59:28 +0200
commitba2bbc75e63b968d03da1094fcb8f28a1f734b39 (patch)
treeb2c56735780032dab543167bafd3139f7f73903e /sfshare-daemon/sfshare_errors.h
parentb282327da5b515ce3288b1084bf1e21cf01c49af (diff)
downloadsfshare-master.tar.gz
sfshare-master.tar.xz
sfshare-master.zip
ReleaseHEADmaster
Diffstat (limited to 'sfshare-daemon/sfshare_errors.h')
-rwxr-xr-xsfshare-daemon/sfshare_errors.h49
1 files changed, 49 insertions, 0 deletions
diff --git a/sfshare-daemon/sfshare_errors.h b/sfshare-daemon/sfshare_errors.h
new file mode 100755
index 0000000..069c9e2
--- /dev/null
+++ b/sfshare-daemon/sfshare_errors.h
@@ -0,0 +1,49 @@
+/*
+ * sfshare_errors.c
+ *
+ * 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.
+ *
+ * Author: Jan Lipovsky <janlipovsky@gmail.com>
+ */
+
+#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