summaryrefslogtreecommitdiff
path: root/ext/icap/php_icap.h
blob: 91ceacd2c769f126512490e0e45bd94e4f8f68ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/* $Id$ */

#ifndef _INCLUDED_ICAP_H
#define _INCLUDED_ICAP_H

#if COMPILE_DL
#undef HAVE_ICAP
#define HAVE_ICAP 1
#endif

#if HAVE_ICAP

#ifdef THREAD_SAFE
#include "tls.h"
#endif
#ifndef MSVC5
#include "build-defs.h"
#endif

extern PHP_MINIT_FUNCTION(icap);
PHP_MINFO_FUNCTION(icap);

/* Functions accessable to PHP */
extern zend_module_entry php_icap_module_entry;
#define php_icap_module_ptr &php_icap_module_entry
#define phpext_icap_ptr php_icap_module_ptr

extern int icap_init_request(INIT_FUNC_ARGS);
extern int icap_end_request(void);
PHP_FUNCTION(icap_open);
PHP_FUNCTION(icap_popen);
PHP_FUNCTION(icap_reopen);
PHP_FUNCTION(icap_close);
PHP_FUNCTION(icap_fetch_event);
PHP_FUNCTION(icap_list_events);
PHP_FUNCTION(icap_create_calendar);
PHP_FUNCTION(icap_rename_calendar);
PHP_FUNCTION(icap_delete_calendar);
PHP_FUNCTION(icap_store_event);
PHP_FUNCTION(icap_delete_event);
PHP_FUNCTION(icap_snooze);
PHP_FUNCTION(icap_list_alarms);


#else
#define php_icap_module_ptr NULL
#endif /* HAVE_ICAP */


#endif