Ubuntu: Add quantal, remove natty
[phpyaz-moved-to-github.git] / php_yaz.h
1 /* 
2    +----------------------------------------------------------------------+
3    | PHP Version 5                                                        |
4    +----------------------------------------------------------------------+
5    | Copyright (c) 1997-2011 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/31_0.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    | Author: Adam Dickmeiss <adam@indexdata.dk>                           |
16    +----------------------------------------------------------------------+
17  */
18
19 #ifndef PHP_YAZ_H
20 #define PHP_YAZ_H
21
22 #define PHP_YAZ_VERSION "1.1.5"
23
24 #if HAVE_YAZ
25
26 #ifdef ZTS
27 #include "TSRM.h"
28 #endif
29
30 extern zend_module_entry yaz_module_entry;
31 #define yaz_module_ptr &yaz_module_entry
32
33 PHP_FUNCTION(yaz_connect);
34 PHP_FUNCTION(yaz_close);
35 PHP_FUNCTION(yaz_search);
36 PHP_FUNCTION(yaz_wait);
37 PHP_FUNCTION(yaz_errno);
38 PHP_FUNCTION(yaz_error);
39 PHP_FUNCTION(yaz_addinfo);
40 PHP_FUNCTION(yaz_hits);
41 PHP_FUNCTION(yaz_record);
42 PHP_FUNCTION(yaz_syntax);
43 PHP_FUNCTION(yaz_element);
44 PHP_FUNCTION(yaz_range);
45 PHP_FUNCTION(yaz_itemorder);
46 PHP_FUNCTION(yaz_scan);
47 PHP_FUNCTION(yaz_scan_result);
48 PHP_FUNCTION(yaz_es_result);
49 PHP_FUNCTION(yaz_present);
50 PHP_FUNCTION(yaz_ccl_conf);
51 PHP_FUNCTION(yaz_ccl_parse);
52 PHP_FUNCTION(yaz_database);
53 PHP_FUNCTION(yaz_sort);
54 PHP_FUNCTION(yaz_schema);
55 PHP_FUNCTION(yaz_set_option);
56 PHP_FUNCTION(yaz_get_option);
57 PHP_FUNCTION(yaz_es);
58
59 ZEND_BEGIN_MODULE_GLOBALS(yaz)
60         int assoc_seq;
61         long max_links;
62         long keepalive;
63         char *log_file;
64         char *log_mask;
65 ZEND_END_MODULE_GLOBALS(yaz)
66
67 #ifdef ZTS
68 #define YAZSG(v) TSRMG(yaz_globals_id, zend_yaz_globals *, v)
69 #else
70 #define YAZSG(v) (yaz_globals.v)
71 #endif
72
73 #else
74
75 #define yaz_module_ptr NULL
76 #endif
77
78 #define phpext_yaz_ptr yaz_module_ptr
79 #endif