From 85e24a32379f2345ecb95f8420fb4c3f2ff51741 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 2 Apr 1999 14:39:19 +0000 Subject: Patch from Emmanuel Rauget (raguet@crf.canon.fr) to add a htons on the sin_port. --- c/src/libnetworking/rtems_servers/ftpd.h | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'c/src/libnetworking/rtems_servers/ftpd.h') diff --git a/c/src/libnetworking/rtems_servers/ftpd.h b/c/src/libnetworking/rtems_servers/ftpd.h index 56bae5a043..6daaaf4d51 100644 --- a/c/src/libnetworking/rtems_servers/ftpd.h +++ b/c/src/libnetworking/rtems_servers/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__ */ -- cgit v1.2.3