summaryrefslogtreecommitdiff
path: root/ext/mcal/php_mcal.h
blob: b519725cc57e6c02ca44b2ac068e177333799f5f (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
79
80
81
82
83
84
85
86
/* $Id$ */

#ifndef _INCLUDED_MCAL_H
#define _INCLUDED_MCAL_H

#if COMPILE_DL
#undef HAVE_MCAL
#define HAVE_MCAL 1
#endif

#if HAVE_MCAL

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

/* Functions accessable to PHP */
//extern php3_module_entry php3_mcal_module_entry;
extern php3_module_entry php3_mcal_module_entry;
#define php3_mcal_module_ptr &php3_mcal_module_entry
#define phpext_mcal_ptr php3_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 php3_event_init();

void php3_mcal_open(INTERNAL_FUNCTION_PARAMETERS);
void php3_mcal_popen(INTERNAL_FUNCTION_PARAMETERS);
void php3_mcal_reopen(INTERNAL_FUNCTION_PARAMETERS);
void php3_mcal_close(INTERNAL_FUNCTION_PARAMETERS);
void php3_mcal_fetch_event(INTERNAL_FUNCTION_PARAMETERS);
void php3_mcal_list_events(INTERNAL_FUNCTION_PARAMETERS);
void php3_mcal_create_calendar(INTERNAL_FUNCTION_PARAMETERS);
void php3_mcal_rename_calendar(INTERNAL_FUNCTION_PARAMETERS);
void php3_mcal_delete_calendar(INTERNAL_FUNCTION_PARAMETERS);
void php3_mcal_store_event(INTERNAL_FUNCTION_PARAMETERS);
void php3_mcal_delete_event(INTERNAL_FUNCTION_PARAMETERS);
void php3_mcal_snooze(INTERNAL_FUNCTION_PARAMETERS);
void php3_mcal_list_alarms(INTERNAL_FUNCTION_PARAMETERS);
void php3_mcal_event_set_category(INTERNAL_FUNCTION_PARAMETERS);
void php3_mcal_event_set_title(INTERNAL_FUNCTION_PARAMETERS);
void php3_mcal_event_set_description(INTERNAL_FUNCTION_PARAMETERS);
void php3_mcal_event_set_start(INTERNAL_FUNCTION_PARAMETERS);
void php3_mcal_event_set_end(INTERNAL_FUNCTION_PARAMETERS);
void php3_mcal_event_set_alarm(INTERNAL_FUNCTION_PARAMETERS);
void php3_mcal_event_set_class(INTERNAL_FUNCTION_PARAMETERS);
void php3_mcal_is_leap_year(INTERNAL_FUNCTION_PARAMETERS);
void php3_mcal_days_in_month(INTERNAL_FUNCTION_PARAMETERS);
void php3_mcal_date_valid(INTERNAL_FUNCTION_PARAMETERS);
void php3_mcal_time_valid(INTERNAL_FUNCTION_PARAMETERS);
void php3_mcal_day_of_week(INTERNAL_FUNCTION_PARAMETERS);
void php3_mcal_day_of_year(INTERNAL_FUNCTION_PARAMETERS);
void php3_mcal_date_compare(INTERNAL_FUNCTION_PARAMETERS);
void php3_mcal_event_init(INTERNAL_FUNCTION_PARAMETERS);
void php3_mcal_next_recurrence(INTERNAL_FUNCTION_PARAMETERS);
void php3_mcal_event_set_recur_daily(INTERNAL_FUNCTION_PARAMETERS);
void php3_mcal_event_set_recur_weekly(INTERNAL_FUNCTION_PARAMETERS);
void php3_mcal_event_set_recur_monthly_mday(INTERNAL_FUNCTION_PARAMETERS);
void php3_mcal_event_set_recur_monthly_wday(INTERNAL_FUNCTION_PARAMETERS);
void php3_mcal_event_set_recur_yearly(INTERNAL_FUNCTION_PARAMETERS);
void php3_mcal_fetch_current_stream_event(INTERNAL_FUNCTION_PARAMETERS);


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


#endif