File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / mysqli / mysqli_mysqlnd.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 23:47:58 2012 UTC (12 years, 4 months ago) by misho
Branches: php, MAIN
CVS tags: v5_3_10, HEAD
php

    1: /*
    2:   +----------------------------------------------------------------------+
    3:   | PHP Version 5                                                        |
    4:   +----------------------------------------------------------------------+
    5:   | Copyright (c) 2006-2009 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 MYSQLI_MYSQLND_H
   23: #define MYSQLI_MYSQLND_H
   24: 
   25: #include "ext/mysqlnd/mysqlnd_libmysql_compat.h"
   26: #include "ext/mysqlnd/mysqlnd_portability.h"
   27: 
   28: /* Here comes non-libmysql API to have less ifdefs in mysqli*/
   29: #define MYSQLI_CLOSE_EXPLICIT                  MYSQLND_CLOSE_EXPLICIT
   30: #define MYSQLI_CLOSE_IMPLICIT                  MYSQLND_CLOSE_IMPLICIT
   31: #define MYSQLI_CLOSE_DISCONNECTED              MYSQLND_CLOSE_DISCONNECTED
   32: 
   33: #define mysqli_result_is_unbuffered(r)	((r)->unbuf)
   34: #define mysqli_result_is_unbuffered_and_not_everything_is_fetched(r)	((r)->unbuf && !(r)->unbuf->eof_reached)
   35: #define mysqli_server_status(c)			(c)->upsert_status.server_status
   36: #define mysqli_stmt_get_id(s)			((s)->data->stmt_id)
   37: #define mysqli_stmt_warning_count(s)	mysqlnd_stmt_warning_count((s))
   38: #define mysqli_stmt_server_status(s)	mysqlnd_stmt_server_status((s))
   39: #define mysqli_stmt_get_connection(s)	(s)->data->conn
   40: #define mysqli_close(c, how)			mysqlnd_close((c), (how))
   41: #define mysqli_stmt_close(c, implicit)	mysqlnd_stmt_close((c), (implicit))
   42: #define mysqli_free_result(r, implicit)	mysqlnd_free_result((r), (implicit))
   43: #define mysqli_async_query(c, q, l)		mysqlnd_async_query((c), (q), (l))
   44: #define mysqli_change_user_silent(c, u, p, d)   mysqlnd_change_user((c), (u), (p), (d), TRUE)
   45: 
   46: #define HAVE_STMT_NEXT_RESULT
   47: 
   48: #endif

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>