#if THREAD_SAFE & HAVE_NSLDAP
#include "php3_threads.h"
/* Structure for LDAP error values */
-#define LDAP_TLS_VARS ldap_module *PHP3_TLS_GET(ldapTLS,php3_ldap_module)
-#define LDAP_GLOBAL(a) php3_ldap_module->a
+#define LDAP_TLS_VARS ldap_module *PHP3_TLS_GET(ldapTLS,php_ldap_module)
+#define LDAP_GLOBAL(a) php_ldap_module->a
#else
#define LDAP_TLS_VARS
-#define LDAP_GLOBAL(a) php3_ldap_module.a
-ldap_module php3_ldap_module;
+#define LDAP_GLOBAL(a) php_ldap_module.a
+ldap_module php_ldap_module;
#endif
#if 0 /* see my note in php_ldap.h. smc */
/* Function for setting thread-specific LDAP error values */
-static void php3_ldap_set_ld_error( int err, char *matched, char *errmsg, void *dummy )
+static void php_ldap_set_ld_error( int err, char *matched, char *errmsg, void *dummy )
{
LDAP_TLS_VARS;
}
/* Function for getting the thread-specific LDAP error values */
-static int php3_ldap_get_ld_error( char **matched, char **errmsg, void *dummy )
+static int php_ldap_get_ld_error( char **matched, char **errmsg, void *dummy )
{
LDAP_TLS_VARS;
/* Retrieve the error values */
}
/* Function for setting the value of the errno variable */
-static void php3_ldap_set_errno( int err )
+static void php_ldap_set_errno( int err )
{
errno = err;
}
/* Function for getting the value of the errno variable */
-static int php3_ldap_get_errno( void )
+static int php_ldap_get_errno( void )
{
return( errno );
}
PHP_MINIT_FUNCTION(ldap)
{
#if defined(THREAD_SAFE)
- ldap_module *php3_ldap_module;
+ ldap_module *php_ldap_module;
PHP3_MUTEX_ALLOC(ldap_mutex);
PHP3_MUTEX_LOCK(ldap_mutex);
numthreads++;
}
}
PHP3_MUTEX_UNLOCK(ldap_mutex);
- if(!PHP3_TLS_THREAD_INIT(ldapTLS,php3_ldap_module,ldap_module))
+ if(!PHP3_TLS_THREAD_INIT(ldapTLS,php_ldap_module,ldap_module))
return 0;
#if 0 /*HAVE_NSLDAP*/
/* Set up the ldap_thread_fns structure with pointers
thread needs to unlock a mutex. */
LDAP_GLOBAL(tfns).ltf_mutex_unlock = (int (*)(void *)) php3_mutex_unlock;
/* Call the get_errno() function to get the value of errno */
- LDAP_GLOBAL(tfns).ltf_get_errno = php3_ldap_get_errno;
+ LDAP_GLOBAL(tfns).ltf_get_errno = php_ldap_get_errno;
/* Call the set_errno() function to set the value of errno */
- LDAP_GLOBAL(tfns).ltf_set_errno = php3_ldap_set_errno;
+ LDAP_GLOBAL(tfns).ltf_set_errno = php_ldap_set_errno;
/* Call the get_ld_error() function to get error values from
calls to functions in the libldap library */
- LDAP_GLOBAL(tfns).ltf_get_lderrno = php3_ldap_get_ld_error;
+ LDAP_GLOBAL(tfns).ltf_get_lderrno = php_ldap_get_ld_error;
/* Call the set_ld_error() function to set error values for
calls to functions in the libldap library */
- LDAP_GLOBAL(tfns).ltf_set_lderrno = php3_ldap_set_ld_error;
+ LDAP_GLOBAL(tfns).ltf_set_lderrno = php_ldap_set_ld_error;
/* Don't pass any extra parameter to the functions for
getting and setting libldap function call errors */
LDAP_GLOBAL(tfns).ltf_lderrno_arg = NULL;
{
#ifdef THREAD_SAFE
LDAP_TLS_VARS;
- PHP3_TLS_THREAD_FREE(php3_ldap_module);
+ PHP3_TLS_THREAD_FREE(php_ldap_module);
PHP3_MUTEX_LOCK(ldap_mutex);
numthreads--;
if (!numthreads) {
/* }}} */
-static void php3_ldap_do_search(INTERNAL_FUNCTION_PARAMETERS, int scope)
+static void php_ldap_do_search(INTERNAL_FUNCTION_PARAMETERS, int scope)
{
pval **link, **base_dn, **filter, **attrs, **attr;
char *ldap_base_dn, *ldap_filter;
Read an entry */
PHP_FUNCTION(ldap_read)
{
- php3_ldap_do_search(INTERNAL_FUNCTION_PARAM_PASSTHRU, LDAP_SCOPE_BASE);
+ php_ldap_do_search(INTERNAL_FUNCTION_PARAM_PASSTHRU, LDAP_SCOPE_BASE);
}
/* }}} */
Single-level search */
PHP_FUNCTION(ldap_list)
{
- php3_ldap_do_search(INTERNAL_FUNCTION_PARAM_PASSTHRU, LDAP_SCOPE_ONELEVEL);
+ php_ldap_do_search(INTERNAL_FUNCTION_PARAM_PASSTHRU, LDAP_SCOPE_ONELEVEL);
}
/* }}} */
Search LDAP tree under base_dn */
PHP_FUNCTION(ldap_search)
{
- php3_ldap_do_search(INTERNAL_FUNCTION_PARAM_PASSTHRU, LDAP_SCOPE_SUBTREE);
+ php_ldap_do_search(INTERNAL_FUNCTION_PARAM_PASSTHRU, LDAP_SCOPE_SUBTREE);
}
/* }}} */
#define PHP_LD_FULL_ADD 0xff
-static void php3_ldap_do_modify(INTERNAL_FUNCTION_PARAMETERS, int oper)
+static void php_ldap_do_modify(INTERNAL_FUNCTION_PARAMETERS, int oper)
{
pval **link, **dn, **entry, **value, **ivalue;
LDAP *ldap;
PHP_FUNCTION(ldap_add)
{
/* use a newly define parameter into the do_modify so ldap_mod_add can be used the way it is supposed to be used , Gerrit THomson */
- /* php3_ldap_do_modify(INTERNAL_FUNCTION_PARAM_PASSTHRU, LDAP_MOD_ADD);*/
- php3_ldap_do_modify(INTERNAL_FUNCTION_PARAM_PASSTHRU, PHP_LD_FULL_ADD);
+ /* php_ldap_do_modify(INTERNAL_FUNCTION_PARAM_PASSTHRU, LDAP_MOD_ADD);*/
+ php_ldap_do_modify(INTERNAL_FUNCTION_PARAM_PASSTHRU, PHP_LD_FULL_ADD);
}
/* }}} */
Modify an LDAP entry */
PHP_FUNCTION(ldap_modify)
{
- php3_ldap_do_modify(INTERNAL_FUNCTION_PARAM_PASSTHRU, LDAP_MOD_REPLACE);
+ php_ldap_do_modify(INTERNAL_FUNCTION_PARAM_PASSTHRU, LDAP_MOD_REPLACE);
}
/* }}} */
Replace attribute values with new ones */
PHP_FUNCTION(ldap_mod_replace)
{
- php3_ldap_do_modify(INTERNAL_FUNCTION_PARAM_PASSTHRU, LDAP_MOD_REPLACE);}
+ php_ldap_do_modify(INTERNAL_FUNCTION_PARAM_PASSTHRU, LDAP_MOD_REPLACE);}
/* }}} */
/* {{{ proto int ldap_mod_add(int link, string dn, array entry)
Add attribute values to current */
PHP_FUNCTION(ldap_mod_add)
{
- php3_ldap_do_modify(INTERNAL_FUNCTION_PARAM_PASSTHRU, LDAP_MOD_ADD);
+ php_ldap_do_modify(INTERNAL_FUNCTION_PARAM_PASSTHRU, LDAP_MOD_ADD);
}
/* }}} */
Delete attribute values */
PHP_FUNCTION(ldap_mod_del)
{
- php3_ldap_do_modify(INTERNAL_FUNCTION_PARAM_PASSTHRU, LDAP_MOD_DELETE);
+ php_ldap_do_modify(INTERNAL_FUNCTION_PARAM_PASSTHRU, LDAP_MOD_DELETE);
}
/* end of attribute based functions , gerrit thomson */
| If you did not, or have any questions about PHP licensing, please |
| contact core@php.net. |
+----------------------------------------------------------------------+
- | Authors: |
- | Mark Musone <musone@chek.com> |
+ | Authors: Mark Musone <musone@chek.com> |
+----------------------------------------------------------------------+
*/
CALSTREAM *cal_close_full ();
-typedef struct php3_mcal_le_struct {
+typedef struct _php_mcal_le_struct {
CALSTREAM *mcal_stream;
long public;
CALEVENT *event;
};
#ifdef ZEND_VERSION
-zend_module_entry php3_mcal_module_entry = {
+zend_module_entry php_mcal_module_entry = {
CALVER, mcal_functions, PHP_MINIT(mcal), NULL, NULL, NULL, PHP_MINFO(mcal), 0, 0, 0, NULL
};
#else
-zend_module_entry php3_mcal_module_entry = {"mcal", mcal_functions, PHP_MINIT_FUNCTION, NULL, NULL, NULL, PHP_MINFO_FUNCTION, 0, 0, 0, NULL};
+zend_module_entry php_mcal_module_entry = {"mcal", mcal_functions, PHP_MINIT_FUNCTION, NULL, NULL, NULL, PHP_MINFO_FUNCTION, 0, 0, 0, NULL};
#endif
#if COMPILE_DL
-DLEXPORT zend_module_entry *get_module(void) { return &php3_mcal_module_entry; }
+DLEXPORT zend_module_entry *get_module(void) { return &php_mcal_module_entry; }
#endif
/*
}
-void php3_mcal_do_open(INTERNAL_FUNCTION_PARAMETERS, int persistent)
+void php_mcal_do_open(INTERNAL_FUNCTION_PARAMETERS, int persistent)
{
pval *calendar;
pval *user;
/* {{{ proto int mcal_close(int stream_id [, int options])
Close an MCAL stream */
-void php3_mcal_close(INTERNAL_FUNCTION_PARAMETERS)
+void PHP_FUNCTION(mcal_close)
{
pval *options, *streamind;
int ind, ind_type;
/* {{{ proto int mcal_open(string calendar, string user, string password [, int options])
Open an MCAL stream to a calendar */
-void php3_mcal_open(INTERNAL_FUNCTION_PARAMETERS)
+void PHP_FUNCTION(mcal_open)
{
- php3_mcal_do_open(INTERNAL_FUNCTION_PARAM_PASSTHRU, 0);
+ php_mcal_do_open(INTERNAL_FUNCTION_PARAM_PASSTHRU, 0);
}
/* }}} */
/* {{{ proto int mcal_reopen(int stream_id, string calendar [, int options])
Reopen MCAL stream to new calendar */
-void php3_mcal_reopen(INTERNAL_FUNCTION_PARAMETERS)
+void PHP_FUNCTION(mcal_reopen)
{
pval *streamind;
pval *calendar;
/* {{{ proto int mcal_expunge(int stream_id)
Delete all messages marked for deletion */
-void php3_mcal_expunge(INTERNAL_FUNCTION_PARAMETERS)
+void PHP_FUNCTION(mcal_expunge)
{
pval *streamind;
int ind, ind_type;
/* {{{ proto int mcal_fetch_event(int stream_id,int eventid, [int options])
Fetch an event*/
-void php3_mcal_fetch_event(INTERNAL_FUNCTION_PARAMETERS)
+void PHP_FUNCTION(mcal_fetch_event)
{
pval *streamind,*eventid,*options=NULL;
int ind, ind_type;
/* {{{ proto object mcal_fetch_current_stream_event(int stream_id)
Fetch the current event stored in the stream's event structure*/
-void php3_mcal_fetch_current_stream_event(INTERNAL_FUNCTION_PARAMETERS)
+void PHP_FUNCTION(mcal_fetch_current_stream_event)
{
pval *streamind;
int ind, ind_type;
/* {{{ proto array mcal_list_events(int stream_id,object begindate, [object enddate])
Returns list of UIDs for that day or range of days */
-void php3_mcal_list_events(INTERNAL_FUNCTION_PARAMETERS)
+void PHP_FUNCTION(mcal_list_events)
{
pval *streamind,*startyear,*startmonth,*startday;
pval *endyear,*endmonth,*endday;
/* {{{ proto string mcal_create_calendar(int stream_id, string calendar)
Create a new calendar*/
-void php3_mcal_create_calendar(INTERNAL_FUNCTION_PARAMETERS)
+void PHP_FUNCTION(mcal_create_calendar)
{
pval *streamind, *calendar;
int ind, ind_type;
/* {{{ proto string mcal_rename(int stream_id, string src_calendar, string dest_calendar)
Rename a calendar*/
-void php3_mcal_rename_calendar(INTERNAL_FUNCTION_PARAMETERS)
+void PHP_FUNCTION(mcal_rename_calendar)
{
pval *streamind, *src_calendar,*dest_calendar;
int ind, ind_type;
/* {{{ proto int mcal_reopen(int stream_id, array date, array time)
list alarms for a given time */
-void php3_mcal_list_alarms(INTERNAL_FUNCTION_PARAMETERS)
+void PHP_FUNCTION(mcal_list_alarms)
{
pval *streamind, *year,*month,*day,*hour,*min,*sec;
#ifdef ZEND_VERSION
/* {{{ proto string mcal_delete_calendar(int stream_id, string calendar)
Delete calendar*/
-void php3_mcal_delete_calendar(INTERNAL_FUNCTION_PARAMETERS)
+void PHP_FUNCTION(mcal_delete_calendar)
{
pval *streamind, *calendar;
int ind, ind_type;
/* {{{ proto string mcal_delete_event(int stream_id, int uid)
Delete event*/
-void php3_mcal_delete_event(INTERNAL_FUNCTION_PARAMETERS)
+void PHP_FUNCTION(mcal_delete_event)
{
pval *streamind, *uid;
int ind, ind_type;
/* }}} */
-void php3_mcal_popen(INTERNAL_FUNCTION_PARAMETERS){
+void PHP_FUNCTION(mcal_popen){
}
/* {{{ proto string mcal_store_event(int stream_id, object event)
Store an event*/
-void php3_mcal_store_event(INTERNAL_FUNCTION_PARAMETERS)
+void PHP_FUNCTION(mcal_store_event)
{
pval *streamind,*storeobject;
int ind, ind_type;
/* {{{ proto string mcal_snooze(int stream_id, int uid)
Snooze an alarm*/
-void php3_mcal_snooze(INTERNAL_FUNCTION_PARAMETERS)
+void PHP_FUNCTION(mcal_snooze)
{
pval *streamind,*uid;
int ind, ind_type;
/* {{{ proto string mcal_event_set_category(int stream_id, string category)
attach a category to an event*/
-void php3_mcal_event_set_category(INTERNAL_FUNCTION_PARAMETERS)
+void PHP_FUNCTION(mcal_event_set_category)
{
pval *streamind,*category;
int ind, ind_type;
/* {{{ proto string mcal_event_set_title(int stream_id, string title)
attach a title to an event*/
-void php3_mcal_event_set_title(INTERNAL_FUNCTION_PARAMETERS)
+void PHP_FUNCTION(mcal_event_set_title)
{
pval *streamind,*title;
int ind, ind_type;
/* {{{ proto string mcal_event_set_description(int stream_id, string description)
attach a description to an event*/
-void php3_mcal_event_set_description(INTERNAL_FUNCTION_PARAMETERS)
+void PHP_FUNCTION(mcal_event_set_description)
{
pval *streamind,*description;
int ind, ind_type;
/* {{{ proto string mcal_event_set_start(int stream_id, int year,int month, int day, [[[int hour],int min],int sec])
attach a start datetime to an event*/
-void php3_mcal_event_set_start(INTERNAL_FUNCTION_PARAMETERS)
+void PHP_FUNCTION(mcal_event_set_start)
{
pval *streamind,*year,*month,*date,*hour,*min,*sec;
int ind, ind_type;
/* {{{ proto string mcal_event_set_end(int stream_id, int year,int month, int day, [[[int hour],int min],int sec])
attach an end datetime to an event*/
-void php3_mcal_event_set_end(INTERNAL_FUNCTION_PARAMETERS)
+void PHP_FUNCTION(mcal_event_set_end)
{
pval *streamind,*year,*month,*date,*hour,*min,*sec;
int ind, ind_type;
/* {{{ proto int mcal_event_set_alarm(int stream_id, int alarm)
add an alarm to the streams global event */
-void php3_mcal_event_set_alarm(INTERNAL_FUNCTION_PARAMETERS)
+void PHP_FUNCTION(mcal_event_set_alarm)
{
pval *streamind,*alarm;
int ind, ind_type;
/* {{{ proto int mcal_event_init(int stream_id)
initialize a streams global event */
-void php3_mcal_event_init(INTERNAL_FUNCTION_PARAMETERS)
+void PHP_FUNCTION(mcal_event_init)
{
pval *streamind;
int ind, ind_type;
php_error(E_WARNING, "Unable to find stream pointer");
RETURN_FALSE;
}
- php3_event_init(mcal_le_struct);
+ php_mcal_event_init(mcal_le_struct);
}
/* }}} */
-void php3_event_init(struct php3_mcal_le_struct *mystruct)
+void php_mcal_event_init(struct _php_mcal_le_struct *mystruct)
{
calevent_free(mystruct->event);
mystruct->event=calevent_new();
/* {{{ proto int mcal_event_set_class(int stream_id, int class)
add an class to the streams global event */
-void php3_mcal_event_set_class(INTERNAL_FUNCTION_PARAMETERS)
+void PHP_FUNCTION(mcal_event_set_class)
{
pval *streamind,*class;
int ind, ind_type;
/* {{{ proto bool mcal_is_leap_year(int year)
returns true if year is a leap year, false if not */
-void php3_mcal_is_leap_year(INTERNAL_FUNCTION_PARAMETERS)
+void PHP_FUNCTION(mcal_is_leap_year)
{
pval *year;
int myargc;
/* {{{ proto int mcal_days_in_month(int month,bool leap_year)
returns the number of days in the given month, needs to know if the year is a leap year or not */
-void php3_mcal_days_in_month(INTERNAL_FUNCTION_PARAMETERS)
+void PHP_FUNCTION(mcal_days_in_month)
{
pval *month,*leap;
int myargc;
/* {{{ proto bool mcal_date_valid(int year,int month,int day)
returns true if the date is a valid date */
-void php3_mcal_date_valid(INTERNAL_FUNCTION_PARAMETERS)
+void PHP_FUNCTION(mcal_date_valid)
{
pval *year,*month,*day;
int myargc;
/* {{{ proto bool mcal_time_valid(int hour,int min,int sec)
returns true if the time is a valid time */
-void php3_mcal_time_valid(INTERNAL_FUNCTION_PARAMETERS)
+void PHP_FUNCTION(mcal_time_valid)
{
pval *hour,*min,*sec;
int myargc;
/* {{{ proto int mcal_day_of_week(int year,int month,int day)
returns the day of the week of the given date */
-void php3_mcal_day_of_week(INTERNAL_FUNCTION_PARAMETERS)
+void PHP_FUNCTION(mcal_day_of_week)
{
pval *year,*month,*day;
int myargc;
/* {{{ proto int mcal_day_of_year(int year,int month,int day)
returns the day of the year of the given date */
-void php3_mcal_day_of_year(INTERNAL_FUNCTION_PARAMETERS)
+void PHP_FUNCTION(mcal_day_of_year)
{
pval *year,*month,*day;
int myargc;
/* {{{ proto int mcal_day_of_week(int ayear,int amonth,int aday,int byear,int bmonth,int bday)
returns <0, 0, >0 if a<b, a==b, a>b respectively */
-void php3_mcal_date_compare(INTERNAL_FUNCTION_PARAMETERS)
+void PHP_FUNCTION(mcal_date_compare)
{
pval *ayear,*amonth,*aday;
pval *byear,*bmonth,*bday;
after the supplied date. Returns empty date field if event does not
occur or something is invalid.
*/
-void php3_mcal_next_recurrence(INTERNAL_FUNCTION_PARAMETERS)
+void PHP_FUNCTION(mcal_next_recurrence)
{
pval *streamind,*weekstart,*next,*pvalue;
int ind, ind_type;
/* {{{ proto string mcal_event_set_recur_daily(int stream_id,int year,int month,int day,int hour,int min,int sec,int interval
create a daily recurrence */
-void php3_mcal_event_set_recur_daily(INTERNAL_FUNCTION_PARAMETERS)
+void PHP_FUNCTION(mcal_event_set_recur_daily)
{
pval *streamind,*year,*month,*day,*hour,*min,*sec,*interval;
int ind, ind_type;
/* {{{ proto string mcal_event_set_recur_weekly(int stream_id,int year,int month,int day,int hour,int min,int sec,int interval, int weekdays)
create a weekly recurrence */
-void php3_mcal_event_set_recur_weekly(INTERNAL_FUNCTION_PARAMETERS)
+void PHP_FUNCTION(mcal_event_set_recur_weekly)
{
pval *streamind,*year,*month,*day,*hour,*min,*sec,*interval,*weekdays;
int ind, ind_type;
/* {{{ proto string mcal_event_set_recur_monthly_mday(int stream_id,int year,int month,int day,int hour,int min,int sec,int interval)
create a monthly by day recurrence */
-void php3_mcal_event_set_recur_monthly_mday(INTERNAL_FUNCTION_PARAMETERS)
+void PHP_FUNCTION(mcal_event_set_recur_monthly_mday)
{
pval *streamind,*year,*month,*day,*hour,*min,*sec,*interval;
int ind, ind_type;
/* {{{ proto string mcal_event_set_recur_monthly_wday(int stream_id,int year,int month,int day,int hour,int min,int sec,int interval)
create a monthy by week recurrence */
-void php3_mcal_event_set_recur_monthly_wday(INTERNAL_FUNCTION_PARAMETERS)
+void PHP_FUNCTION(mcal_event_set_recur_monthly_wday)
{
pval *streamind,*year,*month,*day,*hour,*min,*sec,*interval;
int ind, ind_type;
/* {{{ proto string mcal_event_set_recur_yearly(int stream_id,int year,int month,int day,int hour,int min,int sec,int interval)
create a yearly recurrence */
-void php3_mcal_event_set_recur_yearly(INTERNAL_FUNCTION_PARAMETERS)
+void PHP_FUNCTION(mcal_event_set_recur_yearly)
{
pval *streamind,*year,*month,*day,*hour,*min,*sec,*interval;
int ind, ind_type;
#endif
/* Functions accessable to PHP */
-//extern zend_module_entry php3_mcal_module_entry;
-extern zend_module_entry php3_mcal_module_entry;
-#define php3_mcal_module_ptr &php3_mcal_module_entry
-#define phpext_mcal_ptr php3_mcal_module_ptr
+//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);
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);
+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_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_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_date_compare);
+PHP_FUNCTION(mcal_event_init);
+PHP_FUNCTION(mcal_next_recurrence);
+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 php3_mcal_module_ptr NULL
+#define php_mcal_module_ptr NULL
#endif /* HAVE_MCAL */