summaryrefslogtreecommitdiff
path: root/ext/ftp/php_ftp.h
diff options
context:
space:
mode:
authorAndrew Skalski <askalski@php.net>1999-09-20 14:10:25 +0000
committerAndrew Skalski <askalski@php.net>1999-09-20 14:10:25 +0000
commit85ca1dfb0856579548339210235a4d5bdf934438 (patch)
tree2c5b291ac287a0c6d096037e2bb8907edbf23e05 /ext/ftp/php_ftp.h
parentfffbcf529736810b542fd0b3b62229e3ab15902e (diff)
downloadphp-git-85ca1dfb0856579548339210235a4d5bdf934438.tar.gz
Replaced ftplib because of incompatible license.
Diffstat (limited to 'ext/ftp/php_ftp.h')
-rw-r--r--ext/ftp/php_ftp.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/ext/ftp/php_ftp.h b/ext/ftp/php_ftp.h
new file mode 100644
index 0000000000..1a71ba70a1
--- /dev/null
+++ b/ext/ftp/php_ftp.h
@@ -0,0 +1,38 @@
+/* $Id$ */
+
+#ifndef _INCLUDED_FTP_H
+#define _INCLUDED_FTP_H
+
+#if COMPILE_DL
+#undef HAVE_FTP
+#define HAVE_FTP 1
+#endif
+
+#if HAVE_FTP
+
+extern php3_module_entry php3_ftp_module_entry;
+#define php3_ftp_module_ptr &php3_ftp_module_entry
+
+extern PHP_MINIT_FUNCTION(ftp);
+
+PHP_FUNCTION(ftp_connect);
+PHP_FUNCTION(ftp_login);
+PHP_FUNCTION(ftp_pwd);
+PHP_FUNCTION(ftp_cdup);
+PHP_FUNCTION(ftp_chdir);
+PHP_FUNCTION(ftp_mkdir);
+PHP_FUNCTION(ftp_rmdir);
+PHP_FUNCTION(ftp_nlist);
+PHP_FUNCTION(ftp_listraw);
+PHP_FUNCTION(ftp_systype);
+PHP_FUNCTION(ftp_get);
+PHP_FUNCTION(ftp_put);
+PHP_FUNCTION(ftp_quit);
+
+#define phpext_ftp_ptr php3_ftp_module_ptr
+
+#else
+#define php3_ftp_module_ptr NULL
+#endif /* HAVE_FTP */
+
+#endif