summaryrefslogtreecommitdiffstats
path: root/cpukit/ftpd/ftpd.h
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1999-04-02 14:39:19 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1999-04-02 14:39:19 +0000
commit85e24a32379f2345ecb95f8420fb4c3f2ff51741 (patch)
treec67fbd5be1203cce35b53d5ca902ad7ac2d6b715 /cpukit/ftpd/ftpd.h
parentNew file. Text from Jake Janovetz. (diff)
downloadrtems-85e24a32379f2345ecb95f8420fb4c3f2ff51741.tar.bz2
Patch from Emmanuel Rauget (raguet@crf.canon.fr) to add a htons on the
sin_port.
Diffstat (limited to '')
-rw-r--r--cpukit/ftpd/ftpd.h20
1 files changed, 18 insertions, 2 deletions
diff --git a/cpukit/ftpd/ftpd.h b/cpukit/ftpd/ftpd.h
index 56bae5a043..6daaaf4d51 100644
--- a/cpukit/ftpd/ftpd.h
+++ b/cpukit/ftpd/ftpd.h
@@ -10,17 +10,33 @@
#define FTPD_CONTROL_PORT 21
+typedef int (*rtems_ftpd_hookfunction)(unsigned char *, unsigned long);
+
+struct rtems_ftpd_hook
+{
+ char *filename;
+ rtems_ftpd_hookfunction hook_function;
+};
+
+struct rtems_ftpd_configuration
+{
+ rtems_task_priority priority; /* FTPD task priority */
+ unsigned long max_hook_filesize; /* Maximum buffersize */
+ /* for hooks */
+ int port; /* Well-known port */
+ struct rtems_ftpd_hook *hooks; /* List of hooks */
+};
+
/*
* Reply codes.
*/
-
#define PRELIM 1 /* positive preliminary */
#define COMPLETE 2 /* positive completion */
#define CONTINUE 3 /* positive intermediate */
#define TRANSIENT 4 /* transient negative completion */
#define ERROR 5 /* permanent negative completion */
-void rtems_ftpd_sTart(rtems_task_priority priority);
+int rtems_initialize_ftpd();
#endif /* __FTPD_H__ */