2000-07-15 01:13:40 +00:00
|
|
|
/*
|
|
|
|
+----------------------------------------------------------------------+
|
2004-01-08 17:33:29 +00:00
|
|
|
| PHP Version 5 |
|
2000-07-15 01:13:40 +00:00
|
|
|
+----------------------------------------------------------------------+
|
2004-01-08 17:33:29 +00:00
|
|
|
| Copyright (c) 1997-2004 The PHP Group |
|
2000-07-15 01:13:40 +00:00
|
|
|
+----------------------------------------------------------------------+
|
2003-06-10 20:04:29 +00:00
|
|
|
| This source file is subject to version 3.0 of the PHP license, |
|
2000-07-15 01:13:40 +00:00
|
|
|
| that is bundled with this package in the file LICENSE, and is |
|
2003-06-10 20:04:29 +00:00
|
|
|
| available through the world-wide-web at the following url: |
|
|
|
|
| http://www.php.net/license/3_0.txt. |
|
2000-07-15 01:13:40 +00:00
|
|
|
| If you did not receive a copy of the PHP license and are unable to |
|
|
|
|
| obtain it through the world-wide-web, please send a note to |
|
|
|
|
| license@php.net so we can mail you a copy immediately. |
|
|
|
|
+----------------------------------------------------------------------+
|
2001-05-01 05:04:43 +00:00
|
|
|
| Authors: David Croft <david@infotrek.co.uk> |
|
|
|
|
| John Donagher <john@webmeta.com> |
|
2000-07-15 01:13:40 +00:00
|
|
|
+----------------------------------------------------------------------+
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* $Id$ */
|
|
|
|
|
2000-07-19 18:51:55 +00:00
|
|
|
#ifndef PHP_PFPRO_H
|
|
|
|
#define PHP_PFPRO_H
|
2000-07-15 01:13:40 +00:00
|
|
|
|
|
|
|
#if HAVE_PFPRO
|
|
|
|
|
|
|
|
extern zend_module_entry pfpro_module_entry;
|
|
|
|
#define phpext_pfpro_ptr &pfpro_module_entry
|
|
|
|
|
|
|
|
#ifdef PHP_WIN32
|
|
|
|
#define PHP_PFPRO_API __declspec(dllexport)
|
|
|
|
#else
|
|
|
|
#define PHP_PFPRO_API
|
|
|
|
#endif
|
|
|
|
|
2001-05-01 05:04:43 +00:00
|
|
|
#if PFPRO_VERSION < 3
|
|
|
|
#define pfproVersion() PNVersion()
|
|
|
|
#define pfproInit() PNInit()
|
|
|
|
#define pfproCleanup() PNCleanup()
|
|
|
|
#endif
|
|
|
|
|
2000-07-15 01:13:40 +00:00
|
|
|
PHP_MINIT_FUNCTION(pfpro);
|
|
|
|
PHP_MSHUTDOWN_FUNCTION(pfpro);
|
|
|
|
PHP_RINIT_FUNCTION(pfpro);
|
|
|
|
PHP_RSHUTDOWN_FUNCTION(pfpro);
|
|
|
|
PHP_MINFO_FUNCTION(pfpro);
|
|
|
|
|
2000-07-15 05:08:22 +00:00
|
|
|
PHP_FUNCTION(pfpro_version); /* Return library version */
|
|
|
|
PHP_FUNCTION(pfpro_init); /* Initialise pfpro gateway */
|
|
|
|
PHP_FUNCTION(pfpro_cleanup); /* Shut down cleanly */
|
|
|
|
PHP_FUNCTION(pfpro_process_raw); /* Raw transaction processing */
|
|
|
|
PHP_FUNCTION(pfpro_process); /* Transaction processing */
|
2000-07-15 01:13:40 +00:00
|
|
|
|
2002-10-10 02:23:24 +00:00
|
|
|
ZEND_BEGIN_MODULE_GLOBALS(pfpro)
|
2001-03-21 20:07:19 +00:00
|
|
|
int initialized;
|
2000-07-24 17:57:05 +00:00
|
|
|
char *defaulthost;
|
2003-03-10 14:50:16 +00:00
|
|
|
long defaultport;
|
|
|
|
long defaulttimeout;
|
2000-07-24 17:57:05 +00:00
|
|
|
char *proxyaddress;
|
2003-03-10 14:50:16 +00:00
|
|
|
long proxyport;
|
2000-07-24 17:57:05 +00:00
|
|
|
char *proxylogon;
|
|
|
|
char *proxypassword;
|
2002-10-10 02:23:24 +00:00
|
|
|
ZEND_END_MODULE_GLOBALS(pfpro)
|
2000-07-15 01:13:40 +00:00
|
|
|
|
|
|
|
#ifdef ZTS
|
2002-10-10 02:23:24 +00:00
|
|
|
#define PFPROG(v) TSRMG(pfpro_globals_id, zend_pfpro_globals *, v)
|
2000-07-15 01:13:40 +00:00
|
|
|
#else
|
|
|
|
#define PFPROG(v) (pfpro_globals.v)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
#define phpext_pfpro_ptr NULL
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2000-07-19 18:51:55 +00:00
|
|
|
#endif /* PHP_PFPRO_H */
|
2000-07-15 01:13:40 +00:00
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Local variables:
|
|
|
|
* tab-width: 4
|
|
|
|
* c-basic-offset: 4
|
|
|
|
* End:
|
|
|
|
*/
|