Add ignore file
[phpyaz-moved-to-github.git] / php_yaz.h
1 /* 
2    +----------------------------------------------------------------------+
3    | PHP Version 5                                                        |
4    +----------------------------------------------------------------------+
5    | Copyright (c) 1997-2004 The PHP Group                                |
6    +----------------------------------------------------------------------+
7    | This source file is subject to version 3.0 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_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 /* $Id: php_yaz.h,v 1.36 2008/02/20 10:11:27 dickmeiss Exp $ */
20
21 #ifndef PHP_YAZ_H
22 #define PHP_YAZ_H
23
24 #define PHP_YAZ_VERSION "1.0.14"
25
26 #if HAVE_YAZ
27
28 #ifdef ZTS
29 #include "TSRM.h"
30 #endif
31
32 extern zend_module_entry yaz_module_entry;
33 #define yaz_module_ptr &yaz_module_entry
34
35 PHP_FUNCTION(yaz_connect);
36 PHP_FUNCTION(yaz_close);
37 PHP_FUNCTION(yaz_search);
38 PHP_FUNCTION(yaz_wait);
39 PHP_FUNCTION(yaz_errno);
40 PHP_FUNCTION(yaz_error);
41 PHP_FUNCTION(yaz_addinfo);
42 PHP_FUNCTION(yaz_hits);
43 PHP_FUNCTION(yaz_record);
44 PHP_FUNCTION(yaz_syntax);
45 PHP_FUNCTION(yaz_element);
46 PHP_FUNCTION(yaz_range);
47 PHP_FUNCTION(yaz_itemorder);
48 PHP_FUNCTION(yaz_scan);
49 PHP_FUNCTION(yaz_scan_result);
50 PHP_FUNCTION(yaz_es_result);
51 PHP_FUNCTION(yaz_present);
52 PHP_FUNCTION(yaz_ccl_conf);
53 PHP_FUNCTION(yaz_ccl_parse);
54 PHP_FUNCTION(yaz_database);
55 PHP_FUNCTION(yaz_sort);
56 PHP_FUNCTION(yaz_schema);
57 PHP_FUNCTION(yaz_set_option);
58 PHP_FUNCTION(yaz_get_option);
59 PHP_FUNCTION(yaz_es);
60
61 ZEND_BEGIN_MODULE_GLOBALS(yaz)
62         int assoc_seq;
63         long max_links;
64         long keepalive;
65         char *log_file;
66         char *log_mask;
67 ZEND_END_MODULE_GLOBALS(yaz)
68     
69 #ifdef ZTS
70 #define YAZSG(v) TSRMG(yaz_globals_id, zend_yaz_globals *, v)
71 #else
72 #define YAZSG(v) (yaz_globals.v)
73 #endif
74
75 #else
76
77 #define yaz_module_ptr NULL
78 #endif
79
80 #define phpext_yaz_ptr yaz_module_ptr
81 #endif