Annotation of embedaddon/php/ext/mysqlnd/mysqlnd_libmysql_compat.h, revision 1.1
1.1 ! misho 1: /*
! 2: +----------------------------------------------------------------------+
! 3: | PHP Version 5 |
! 4: +----------------------------------------------------------------------+
! 5: | Copyright (c) 2006-2012 The PHP Group |
! 6: +----------------------------------------------------------------------+
! 7: | This source file is subject to version 3.01 of the PHP license, |
! 8: | that is bundled with this package in the file LICENSE, and is |
! 9: | available through the world-wide-web at the following url: |
! 10: | http://www.php.net/license/3_01.txt |
! 11: | If you did not receive a copy of the PHP license and are unable to |
! 12: | obtain it through the world-wide-web, please send a note to |
! 13: | license@php.net so we can mail you a copy immediately. |
! 14: +----------------------------------------------------------------------+
! 15: | Authors: Georg Richter <georg@mysql.com> |
! 16: | Andrey Hristov <andrey@mysql.com> |
! 17: | Ulf Wendel <uwendel@mysql.com> |
! 18: +----------------------------------------------------------------------+
! 19:
! 20: */
! 21:
! 22: #ifndef MYSQLND_LIBMYSQL_COMPAT_H
! 23: #define MYSQLND_LIBMYSQL_COMPAT_H
! 24:
! 25: /* Global types and definitions*/
! 26: #define MYSQL_NO_DATA MYSQLND_NO_DATA
! 27: #define MYSQL_DATA_TRUNCATED MYSQLND_DATA_TRUNCATED
! 28: #define MYSQL_STMT MYSQLND_STMT
! 29: #define MYSQL_FIELD MYSQLND_FIELD
! 30: #define MYSQL_RES MYSQLND_RES
! 31: #define MYSQL_ROW MYSQLND_ROW_C
! 32: #define MYSQL MYSQLND
! 33: #define my_bool zend_bool
! 34: #define my_ulonglong uint64_t
! 35:
! 36: #define MYSQL_VERSION_ID MYSQLND_VERSION_ID
! 37: #define MYSQL_SERVER_VERSION MYSQLND_VERSION
! 38: #define MYSQL_ERRMSG_SIZE MYSQLND_ERRMSG_SIZE
! 39: #define SQLSTATE_LENGTH MYSQLND_SQLSTATE_LENGTH
! 40:
! 41: /* functions */
! 42: #define mysql_affected_rows(r) mysqlnd_affected_rows((r))
! 43: #define mysql_autocommit(r,m) mysqlnd_autocommit((r),(m))
! 44: #define mysql_change_user(r,a,b,c) mysqlnd_change_user((r), (a), (b), (c), FALSE)
! 45: #define mysql_character_set_name(c) mysqlnd_character_set_name((c))
! 46: #define mysql_close(r) mysqlnd_close((r), MYSQLND_CLOSE_EXPLICIT)
! 47: #define mysql_commit(r) mysqlnd_commit((r))
! 48: #define mysql_data_seek(r,o) mysqlnd_data_seek((r),(o))
! 49: #define mysql_debug(x) mysqlnd_debug((x))
! 50: #define mysql_dump_debug_info(r) mysqlnd_dump_debug_info((r))
! 51: #define mysql_errno(r) mysqlnd_errno((r))
! 52: #define mysql_error(r) mysqlnd_error((r))
! 53: #define mysql_escape_string(a,b,c) mysqlnd_escape_string((a), (b), (c))
! 54: #define mysql_fetch_field(r) mysqlnd_fetch_field((r))
! 55: #define mysql_fetch_field_direct(r,o) mysqlnd_fetch_field_direct((r), (o))
! 56: #define mysql_fetch_fields(r) mysqlnd_fetch_fields((r))
! 57: #define mysql_fetch_lengths(r) mysqlnd_fetch_lengths((r))
! 58: #define mysql_fetch_row(r) mysqlnd_fetch_row_c((r))
! 59: #define mysql_field_count(r) mysqlnd_field_count((r))
! 60: #define mysql_field_seek(r,o) mysqlnd_field_seek((r), (o))
! 61: #define mysql_field_tell(r) mysqlnd_field_tell((r))
! 62: #define mysql_init(a) mysqlnd_init((a))
! 63: #define mysql_insert_id(r) mysqlnd_insert_id((r))
! 64: #define mysql_kill(r,n) mysqlnd_kill((r), (n))
! 65: #define mysql_list_dbs(c, wild) mysqlnd_list_dbs((c), (wild))
! 66: #define mysql_list_fields(c, tab, wild) mysqlnd_list_fields((c), (tab), (wild))
! 67: #define mysql_list_processes(c) mysqlnd_list_processes((c))
! 68: #define mysql_list_tables(c, wild) mysqlnd_list_tables((c), (wild))
! 69: #define mysql_more_results(r) mysqlnd_more_results((r))
! 70: #define mysql_next_result(r) mysqlnd_next_result((r))
! 71: #define mysql_num_fields(r) mysqlnd_num_fields((r))
! 72: #define mysql_num_rows(r) mysqlnd_num_rows((r))
! 73: #define mysql_ping(r) mysqlnd_ping((r))
! 74: #define mysql_real_escape_string(r,a,b,c) mysqlnd_real_escape_string((r), (a), (b), (c))
! 75: #define mysql_real_query(r,a,b) mysqlnd_query((r), (a), (b))
! 76: #define mysql_refresh(conn, options) mysqlnd_refresh((conn), (options))
! 77: #define mysql_rollback(r) mysqlnd_rollback((r))
! 78: #define mysql_select_db(r,a) mysqlnd_select_db((r), (a) ,strlen((a)))
! 79: #define mysql_set_server_option(r,o) mysqlnd_set_server_option((r), (o))
! 80: #define mysql_set_character_set(r,a) mysqlnd_set_character_set((r), (a))
! 81: #define mysql_sqlstate(r) mysqlnd_sqlstate((r))
! 82: #define mysql_ssl_set(c,key,cert,ca,capath,cipher) mysqlnd_ssl_set((c), (key), (cert), (ca), (capath), (cipher))
! 83: #define mysql_stmt_affected_rows(s) mysqlnd_stmt_affected_rows((s))
! 84: #define mysql_stmt_field_count(s) mysqlnd_stmt_field_count((s))
! 85: #define mysql_stmt_param_count(s) mysqlnd_stmt_param_count((s))
! 86: #define mysql_stmt_num_rows(s) mysqlnd_stmt_num_rows((s))
! 87: #define mysql_stmt_insert_id(s) mysqlnd_stmt_insert_id((s))
! 88: #define mysql_stmt_close(s) mysqlnd_stmt_close((s))
! 89: #define mysql_stmt_bind_param(s,b) mysqlnd_stmt_bind_param((s), (b))
! 90: #define mysql_stmt_bind_result(s,b) mysqlnd_stmt_bind_result((s), (b))
! 91: #define mysql_stmt_errno(s) mysqlnd_stmt_errno((s))
! 92: #define mysql_stmt_error(s) mysqlnd_stmt_error((s))
! 93: #define mysql_stmt_sqlstate(s) mysqlnd_stmt_sqlstate((s))
! 94: #define mysql_stmt_prepare(s,q,l) mysqlnd_stmt_prepare((s), (q), (l))
! 95: #define mysql_stmt_execute(s) mysqlnd_stmt_execute((s))
! 96: #define mysql_stmt_reset(s) mysqlnd_stmt_reset((s))
! 97: #define mysql_stmt_store_result(s) mysqlnd_stmt_store_result((s))
! 98: #define mysql_stmt_free_result(s) mysqlnd_stmt_free_result((s))
! 99: #define mysql_stmt_data_seek(s,r) mysqlnd_stmt_data_seek((s), (r))
! 100: #define mysql_stmt_send_long_data(s,p,d,l) mysqlnd_stmt_send_long_data((s), (p), (d), (l))
! 101: #define mysql_stmt_attr_get(s,a,v) mysqlnd_stmt_attr_get((s), (a), (v))
! 102: #define mysql_stmt_attr_set(s,a,v) mysqlnd_stmt_attr_set((s), (a), (v))
! 103: #define mysql_stmt_param_metadata(s) mysqlnd_stmt_param_metadata((s))
! 104: #define mysql_stmt_result_metadata(s) mysqlnd_stmt_result_metadata((s))
! 105: #define mysql_stmt_next_result(s) mysqlnd_stmt_next_result((s))
! 106: #define mysql_stmt_more_results(s) mysqlnd_stmt_more_results((s))
! 107: #define mysql_thread_safe() mysqlnd_thread_safe()
! 108: #define mysql_info(r) mysqlnd_info((r))
! 109: #define mysql_options(r,a,b) mysqlnd_options((r), (a), (b))
! 110: #define mysql_stmt_init(r) mysqlnd_stmt_init((r))
! 111: #define mysql_free_result(r) mysqlnd_free_result((r), FALSE)
! 112: #define mysql_store_result(r) mysqlnd_store_result((r))
! 113: #define mysql_use_result(r) mysqlnd_use_result((r))
! 114: #define mysql_async_store_result(r) mysqlnd_async_store_result((r))
! 115: #define mysql_thread_id(r) mysqlnd_thread_id((r))
! 116: #define mysql_get_client_info() mysqlnd_get_client_info()
! 117: #define mysql_get_client_version() mysqlnd_get_client_version()
! 118: #define mysql_get_host_info(r) mysqlnd_get_host_info((r))
! 119: #define mysql_get_proto_info(r) mysqlnd_get_proto_info((r))
! 120: #define mysql_get_server_info(r) mysqlnd_get_server_info((r))
! 121: #define mysql_get_server_version(r) mysqlnd_get_server_version((r))
! 122: #define mysql_warning_count(r) mysqlnd_warning_count((r))
! 123: #define mysql_eof(r) (((r)->unbuf && (r)->unbuf->eof_reached) || (r)->stored_data)
! 124:
! 125: #define REFRESH_GRANT MYSQLND_REFRESH_GRANT
! 126: #define REFRESH_LOG MYSQLND_REFRESH_LOG
! 127: #define REFRESH_TABLES MYSQLND_REFRESH_TABLES
! 128: #define REFRESH_HOSTS MYSQLND_REFRESH_HOSTS
! 129: #define REFRESH_STATUS MYSQLND_REFRESH_STATUS
! 130: #define REFRESH_THREADS MYSQLND_REFRESH_THREADS
! 131: #define REFRESH_SLAVE MYSQLND_REFRESH_SLAVE
! 132: #define REFRESH_MASTER MYSQLND_REFRESH_MASTER
! 133: #define REFRESH_BACKUP_LOG MYSQLND_REFRESH_BACKUP_LOG
! 134:
! 135: #endif /* MYSQLND_LIBMYSQL_COMPAT_H */
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>