summaryrefslogtreecommitdiff
path: root/ext/mhash/php_mhash.h
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>1999-05-16 12:01:25 +0000
committerSascha Schumann <sas@php.net>1999-05-16 12:01:25 +0000
commitdb6ce2f2a9e7b54f3c0bf2920eb8583b09ffcfda (patch)
tree103adccc056c194e7aecafbbf0bbf750c3150501 /ext/mhash/php_mhash.h
parent4e08c66771017f1e181a267ace64ce68286efcef (diff)
downloadphp-git-db6ce2f2a9e7b54f3c0bf2920eb8583b09ffcfda.tar.gz
add mhash support
Diffstat (limited to 'ext/mhash/php_mhash.h')
-rw-r--r--ext/mhash/php_mhash.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/ext/mhash/php_mhash.h b/ext/mhash/php_mhash.h
new file mode 100644
index 0000000000..f2ce9d4cbc
--- /dev/null
+++ b/ext/mhash/php_mhash.h
@@ -0,0 +1,24 @@
+#ifndef PHP_MHASH_H
+#define PHP_MHASH_H
+
+#if HAVE_LIBMHASH
+
+#if PHP_API_VERSION < 19990421
+#define zend_module_entry php3_module_entry
+#include "modules.h"
+#include "internal_functions.h"
+#endif
+
+extern zend_module_entry mhash_module_entry;
+#define mhash_module_ptr &mhash_module_entry
+
+PHP_FUNCTION(mhash_get_block_size);
+PHP_FUNCTION(mhash);
+
+#else
+#define mhash_module_ptr NULL
+#endif
+
+#define phpext_mhash_ptr mhash_module_ptr
+
+#endif