aboutsummaryrefslogtreecommitdiffstats
path: root/com32/libupload
diff options
context:
space:
mode:
authorErwan Velu <erwanaliasr1@gmail.com>2011-04-20 20:21:21 +0200
committerErwan Velu <erwanaliasr1@gmail.com>2011-04-20 20:21:21 +0200
commit43d0347fe332dccc68c2af8f80384f6d2df2c263 (patch)
tree3c91c44360782cb97156ae5b78afadd9e5b5eec4 /com32/libupload
parent4441650e1b594f632652a5d3c32c5610ea6abf54 (diff)
downloadsyslinux-43d0347fe332dccc68c2af8f80384f6d2df2c263.tar.gz
syslinux-43d0347fe332dccc68c2af8f80384f6d2df2c263.tar.xz
syslinux-43d0347fe332dccc68c2af8f80384f6d2df2c263.zip
libupload: Adding tftp.h missing file
Oups, this while wasn't commited :/
Diffstat (limited to 'com32/libupload')
-rw-r--r--com32/libupload/tftp.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/com32/libupload/tftp.h b/com32/libupload/tftp.h
new file mode 100644
index 00000000..323dc16a
--- /dev/null
+++ b/com32/libupload/tftp.h
@@ -0,0 +1,22 @@
+#include <stdint.h>
+
+#ifndef UPLOAD_TFTP
+#define UPLOAD_TFTP
+/* TFTP Error codes */
+enum tftp_error_codes {
+TFTP_ERR_UNKNOWN_ERROR = 0, // We have to use the message from the server
+TFTP_ERR_FILE_NOT_FOUND = 1, /**< File not found */
+TFTP_ERR_ACCESS_DENIED = 2, /**< Access violation */
+TFTP_ERR_DISK_FULL = 3, /**< Disk full or allocation exceeded */
+TFTP_ERR_ILLEGAL_OP = 4, /**< Illegal TFTP operation */
+TFTP_ERR_UNKNOWN_TID = 5, /**< Unknown transfer ID */
+TFTP_ERR_FILE_EXISTS = 6, /**< File already exists */
+TFTP_ERR_UNKNOWN_USER = 7, /**< No such user */
+TFTP_ERR_BAD_OPTS = 8, /**< Option negotiation failed */
+TFTP_ERR_UNABLE_TO_RESOLVE = 9, // Not in RFC, internal usage
+TFTP_ERR_UNABLE_TO_CONNECT = 10, // Not in RFC, internal usage
+TFTP_OK = 11, /* Not in RFC */
+};
+
+extern const char *tftp_string_error_message[];
+#endif