root/ext/odbc/php_odbc.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


   1 /*
   2    +----------------------------------------------------------------------+
   3    | PHP Version 5                                                        |
   4    +----------------------------------------------------------------------+
   5    | Copyright (c) 1997-2016 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: Stig Sæther Bakken <ssb@php.net>                            |
  16    |          Andreas Karajannis <Andreas.Karajannis@gmd.de>              |
  17    |          Kevin N. Shallow <kshallow@tampabay.rr.com> (Birdstep)      |
  18    +----------------------------------------------------------------------+
  19 */
  20 
  21 /* $Id$ */
  22 
  23 #ifndef PHP_ODBC_H
  24 #define PHP_ODBC_H
  25 
  26 #if HAVE_UODBC
  27 
  28 #ifdef ZTS
  29 #include "TSRM.h"
  30 #endif
  31 
  32 extern zend_module_entry odbc_module_entry;
  33 #define odbc_module_ptr &odbc_module_entry
  34 
  35 #if defined(HAVE_DBMAKER) || defined(PHP_WIN32) || defined(HAVE_IBMDB2) || defined(HAVE_UNIXODBC) || defined(HAVE_BIRDSTEP) || defined(HAVE_IODBC)
  36 # define PHP_ODBC_HAVE_FETCH_HASH 1
  37 #endif
  38 
  39 /* user functions */
  40 PHP_MINIT_FUNCTION(odbc);
  41 PHP_MSHUTDOWN_FUNCTION(odbc);
  42 PHP_RINIT_FUNCTION(odbc);
  43 PHP_RSHUTDOWN_FUNCTION(odbc);
  44 PHP_MINFO_FUNCTION(odbc);
  45 
  46 PHP_FUNCTION(odbc_error);
  47 PHP_FUNCTION(odbc_errormsg);
  48 PHP_FUNCTION(odbc_setoption);
  49 PHP_FUNCTION(odbc_autocommit);
  50 PHP_FUNCTION(odbc_close);
  51 PHP_FUNCTION(odbc_close_all);
  52 PHP_FUNCTION(odbc_commit);
  53 PHP_FUNCTION(odbc_connect);
  54 PHP_FUNCTION(odbc_pconnect);
  55 PHP_FUNCTION(odbc_cursor);
  56 #ifdef HAVE_SQLDATASOURCES
  57 PHP_FUNCTION(odbc_data_source);
  58 #endif
  59 PHP_FUNCTION(odbc_do);
  60 PHP_FUNCTION(odbc_exec);
  61 PHP_FUNCTION(odbc_execute);
  62 #ifdef PHP_ODBC_HAVE_FETCH_HASH
  63 PHP_FUNCTION(odbc_fetch_array);
  64 PHP_FUNCTION(odbc_fetch_object);
  65 #endif
  66 PHP_FUNCTION(odbc_fetch_into);
  67 PHP_FUNCTION(odbc_fetch_row);
  68 PHP_FUNCTION(odbc_field_len);
  69 PHP_FUNCTION(odbc_field_scale);
  70 PHP_FUNCTION(odbc_field_name);
  71 PHP_FUNCTION(odbc_field_type);
  72 PHP_FUNCTION(odbc_field_num);
  73 PHP_FUNCTION(odbc_free_result);
  74 #if !defined(HAVE_SOLID) && !defined(HAVE_SOLID_30)
  75 PHP_FUNCTION(odbc_next_result);
  76 #endif
  77 PHP_FUNCTION(odbc_num_fields);
  78 PHP_FUNCTION(odbc_num_rows);
  79 PHP_FUNCTION(odbc_prepare);
  80 PHP_FUNCTION(odbc_result);
  81 PHP_FUNCTION(odbc_result_all);
  82 PHP_FUNCTION(odbc_rollback);
  83 PHP_FUNCTION(odbc_binmode);
  84 PHP_FUNCTION(odbc_longreadlen);
  85 PHP_FUNCTION(odbc_tables);
  86 PHP_FUNCTION(odbc_columns);
  87 #if !defined(HAVE_DBMAKER) && !defined(HAVE_SOLID) && !defined(HAVE_SOLID_35)    /* not supported now */
  88 PHP_FUNCTION(odbc_columnprivileges);
  89 PHP_FUNCTION(odbc_tableprivileges);
  90 #endif
  91 #if !defined(HAVE_SOLID) || !defined(HAVE_SOLID_35)    /* not supported */
  92 PHP_FUNCTION(odbc_foreignkeys);
  93 PHP_FUNCTION(odbc_procedures);
  94 PHP_FUNCTION(odbc_procedurecolumns);
  95 #endif
  96 PHP_FUNCTION(odbc_gettypeinfo);
  97 PHP_FUNCTION(odbc_primarykeys);
  98 PHP_FUNCTION(odbc_specialcolumns);
  99 PHP_FUNCTION(odbc_statistics);
 100 
 101 #else
 102 
 103 #define odbc_module_ptr NULL
 104 
 105 #endif /* HAVE_UODBC */
 106 
 107 #define phpext_odbc_ptr odbc_module_ptr
 108 
 109 #endif /* PHP_ODBC_H */
 110 
 111 /*
 112  * Local variables:
 113  * tab-width: 4
 114  * c-basic-offset: 4
 115  * End:
 116  */

/* [<][>][^][v][top][bottom][index][help] */