summaryrefslogtreecommitdiff
path: root/ext/mcal/php_mcal.h
blob: 902c25dcc28c6f67aca6623e083b28ef97c78010 (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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
/* $Id$ */

#ifndef PHP_MCAL_H
#define PHP_MCAL_H

#if HAVE_MCAL

#ifndef PHP_WIN32
#include "build-defs.h"
#endif

/* Functions accessable to PHP */
/* extern zend_module_entry php_mcal_module_entry; */
extern zend_module_entry php_mcal_module_entry;
#define php_mcal_module_ptr &php_mcal_module_entry
#define phpext_mcal_ptr php_mcal_module_ptr

#ifdef ZEND_VERSION
extern PHP_MINIT_FUNCTION(mcal);
PHP_MINFO_FUNCTION(mcal);
#else
extern int PHP_MINIT_FUNCTION(INIT_FUNC_ARGS);
extern void PHP_MINFO_FUNCTION(void);
#endif


extern int mcal_init_request(INIT_FUNC_ARGS);
extern int mcal_end_request(void);
void make_event_object();
void php_mcal_event_init();

PHP_FUNCTION(mcal_open);
PHP_FUNCTION(mcal_popen);
PHP_FUNCTION(mcal_reopen);
PHP_FUNCTION(mcal_close);
PHP_FUNCTION(mcal_fetch_event);
PHP_FUNCTION(mcal_list_events);
PHP_FUNCTION(mcal_create_calendar);
PHP_FUNCTION(mcal_rename_calendar);
PHP_FUNCTION(mcal_delete_calendar);
PHP_FUNCTION(mcal_append_event);
PHP_FUNCTION(mcal_store_event);
PHP_FUNCTION(mcal_delete_event);
PHP_FUNCTION(mcal_snooze);
PHP_FUNCTION(mcal_list_alarms);
PHP_FUNCTION(mcal_event_set_category);
PHP_FUNCTION(mcal_event_set_title);
PHP_FUNCTION(mcal_event_set_description);
PHP_FUNCTION(mcal_event_set_start);
PHP_FUNCTION(mcal_event_set_end);
PHP_FUNCTION(mcal_event_set_alarm);
PHP_FUNCTION(mcal_event_set_class);
PHP_FUNCTION(mcal_event_add_attribute);
PHP_FUNCTION(mcal_is_leap_year);
PHP_FUNCTION(mcal_days_in_month);
PHP_FUNCTION(mcal_date_valid);
PHP_FUNCTION(mcal_time_valid);
PHP_FUNCTION(mcal_day_of_week);
PHP_FUNCTION(mcal_day_of_year);
PHP_FUNCTION(mcal_week_of_year);
PHP_FUNCTION(mcal_date_compare);
PHP_FUNCTION(mcal_event_init);
PHP_FUNCTION(mcal_next_recurrence);
PHP_FUNCTION(mcal_event_set_recur_none);
PHP_FUNCTION(mcal_event_set_recur_daily);
PHP_FUNCTION(mcal_event_set_recur_weekly);
PHP_FUNCTION(mcal_event_set_recur_monthly_mday);
PHP_FUNCTION(mcal_event_set_recur_monthly_wday);
PHP_FUNCTION(mcal_event_set_recur_yearly);
PHP_FUNCTION(mcal_fetch_current_stream_event);


#else
#define php_mcal_module_ptr NULL
#endif /* HAVE_MCAL */


#endif