php-src/ext/mysql/php_mysql.h

114 lines
3.3 KiB
C
Raw Normal View History

1999-09-04 03:54:12 +08:00
/*
1999-04-22 05:26:10 +08:00
+----------------------------------------------------------------------+
1999-09-04 03:54:12 +08:00
| PHP version 4.0 |
1999-04-22 05:26:10 +08:00
+----------------------------------------------------------------------+
2001-02-26 14:11:02 +08:00
| Copyright (c) 1997-2001 The PHP Group |
1999-04-22 05:26:10 +08:00
+----------------------------------------------------------------------+
| This source file is subject to version 2.02 of the PHP license, |
1999-09-04 03:54:12 +08:00
| that is bundled with this package in the file LICENSE, and is |
| available at through the world-wide-web at |
| http://www.php.net/license/2_02.txt. |
1999-09-04 03:54:12 +08: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. |
1999-04-22 05:26:10 +08:00
+----------------------------------------------------------------------+
| Authors: Zeev Suraski <zeev@zend.com> |
+----------------------------------------------------------------------+
1999-09-04 03:54:12 +08:00
*/
1999-04-22 05:26:10 +08:00
/* $Id$ */
#ifndef PHP_MYSQL_H
#define PHP_MYSQL_H
1999-04-22 05:26:10 +08:00
#ifdef PHP_WIN32
1999-06-04 20:51:41 +08:00
#define PHP_MYSQL_API __declspec(dllexport)
#else
#define PHP_MYSQL_API
1999-04-22 05:26:10 +08:00
#endif
#if HAVE_MYSQL
#ifdef ZTS
#include "TSRM.h"
#endif
1999-09-04 03:54:12 +08:00
extern zend_module_entry mysql_module_entry;
1999-04-22 05:26:10 +08:00
#define mysql_module_ptr &mysql_module_entry
PHP_MINIT_FUNCTION(mysql);
PHP_RINIT_FUNCTION(mysql);
PHP_MSHUTDOWN_FUNCTION(mysql);
PHP_RSHUTDOWN_FUNCTION(mysql);
1999-08-03 00:06:13 +08:00
PHP_MINFO_FUNCTION(mysql);
PHP_FUNCTION(mysql_connect);
PHP_FUNCTION(mysql_pconnect);
PHP_FUNCTION(mysql_close);
PHP_FUNCTION(mysql_select_db);
PHP_FUNCTION(mysql_create_db);
PHP_FUNCTION(mysql_drop_db);
PHP_FUNCTION(mysql_query);
PHP_FUNCTION(mysql_unbuffered_query);
PHP_FUNCTION(mysql_db_query);
PHP_FUNCTION(mysql_list_dbs);
PHP_FUNCTION(mysql_list_tables);
PHP_FUNCTION(mysql_list_fields);
PHP_FUNCTION(mysql_error);
PHP_FUNCTION(mysql_errno);
PHP_FUNCTION(mysql_affected_rows);
PHP_FUNCTION(mysql_insert_id);
PHP_FUNCTION(mysql_result);
PHP_FUNCTION(mysql_num_rows);
PHP_FUNCTION(mysql_num_fields);
PHP_FUNCTION(mysql_fetch_row);
PHP_FUNCTION(mysql_fetch_array);
PHP_FUNCTION(mysql_fetch_assoc);
PHP_FUNCTION(mysql_fetch_object);
PHP_FUNCTION(mysql_data_seek);
PHP_FUNCTION(mysql_fetch_lengths);
PHP_FUNCTION(mysql_fetch_field);
PHP_FUNCTION(mysql_field_seek);
PHP_FUNCTION(mysql_free_result);
PHP_FUNCTION(mysql_field_name);
PHP_FUNCTION(mysql_field_table);
PHP_FUNCTION(mysql_field_len);
PHP_FUNCTION(mysql_field_type);
PHP_FUNCTION(mysql_field_flags);
2000-10-12 02:27:21 +08:00
PHP_FUNCTION(mysql_escape_string);
PHP_FUNCTION(mysql_get_client_info);
PHP_FUNCTION(mysql_get_host_info);
PHP_FUNCTION(mysql_get_proto_info);
PHP_FUNCTION(mysql_get_server_info);
1999-04-22 05:26:10 +08:00
ZEND_BEGIN_MODULE_GLOBALS(mysql)
1999-04-22 05:26:10 +08:00
long default_link;
long num_links,num_persistent;
long max_links,max_persistent;
long allow_persistent;
long default_port;
char *default_host, *default_user, *default_password;
char *default_socket;
char *connect_error;
long connect_errno;
2000-06-19 20:56:30 +08:00
ZEND_END_MODULE_GLOBALS(mysql)
1999-04-22 05:26:10 +08:00
#ifdef ZTS
# define MySG(v) TSRMG(mysql_globals_id, zend_mysql_globals *, v)
1999-04-22 05:26:10 +08:00
#else
# define MySG(v) (mysql_globals.v)
#endif
#else
#define mysql_module_ptr NULL
#endif
#define phpext_mysql_ptr mysql_module_ptr
#endif /* PHP_MYSQL_H */