CALSTREAM *cal_close_full ();
-typedef struct php3_icap_le_struct {
+typedef struct php_icap_le_struct {
CALSTREAM *icap_stream;
long flags;
} pils;
*/
function_entry icap_functions[] = {
- {"icap_open", php3_icap_open, NULL},
- {"icap_popen", php3_icap_popen, NULL},
- {"icap_reopen", php3_icap_reopen, NULL},
- {"icap_fetch_event", php3_icap_fetch_event, NULL},
- {"icap_list_events", php3_icap_list_events, NULL},
- {"icap_list_alarms", php3_icap_list_alarms, NULL},
- {"icap_create_calendar", php3_icap_create_calendar, NULL},
- {"icap_rename_calendar", php3_icap_rename_calendar, NULL},
- {"icap_delete_calendar", php3_icap_delete_calendar, NULL},
- {"icap_delete_event", php3_icap_delete_event, NULL},
- {"icap_store_event", php3_icap_store_event, NULL},
- {"icap_snooze", php3_icap_snooze, NULL},
+ PHP_FE(icap_open, NULL)
+ PHP_FE(icap_popen, NULL)
+ PHP_FE(icap_reopen, NULL)
+ PHP_FE(icap_fetch_event, NULL)
+ PHP_FE(icap_list_event, NULL)
+ PHP_FE(icap_list_alarms, NULL)
+ PHP_FE(icap_create_calendar, NULL)
+ PHP_FE(icap_rename_calendar, NULL)
+ PHP_FE(icap_delete_calendar, NULL)
+ PHP_FE(icap_delete_event, NULL)
+ PHP_FE(icap_store_event, NULL)
+ PHP_FE(icap_snooze, NULL)
{NULL, NULL, NULL}
};
-zend_module_entry php3_icap_module_entry = {
+zend_module_entry php_icap_module_entry = {
CALVER, icap_functions, PHP_MINIT(icap), NULL, NULL, NULL, PHP_MINFO(icap), 0, 0, 0, NULL
};
#if COMPILE_DL
-DLEXPORT zend_module_entry *get_module(void) { return &php3_icap_module_entry; }
+DLEXPORT zend_module_entry *get_module(void) { return &php_icap_module_entry; }
#endif
/*
}
-void php3_icap_do_open(INTERNAL_FUNCTION_PARAMETERS, int persistent)
+void php_icap_do_open(INTERNAL_FUNCTION_PARAMETERS, int persistent)
{
pval *calendar;
pval *user;
/* {{{ proto int icap_close(int stream_id [, int options])
Close an ICAP stream */
-void php3_icap_close(INTERNAL_FUNCTION_PARAMETERS)
+PHP_FUNCTION(icap_close)
{
pval *options, *streamind;
int ind, ind_type;
/* {{{ proto int icap_open(string calendar, string user, string password [, int options])
Open an ICAP stream to a calendar */
-void php3_icap_open(INTERNAL_FUNCTION_PARAMETERS)
+PHP_FUNCTION(icap_open)
{
- php3_icap_do_open(INTERNAL_FUNCTION_PARAM_PASSTHRU, 0);
+ php_icap_do_open(INTERNAL_FUNCTION_PARAM_PASSTHRU, 0);
}
/* }}} */
/* {{{ proto int icap_reopen(int stream_id, string calendar [, int options])
Reopen ICAP stream to new calendar */
-void php3_icap_reopen(INTERNAL_FUNCTION_PARAMETERS)
+PHP_FUNCTION(icap_reopen)
{
pval *streamind;
pval *calendar;
/* {{{ proto int icap_expunge(int stream_id)
Delete all messages marked for deletion */
-void php3_icap_expunge(INTERNAL_FUNCTION_PARAMETERS)
+PHP_FUNCTION(icap_expunge)
{
pval *streamind;
int ind, ind_type;
/* {{{ proto int icap_fetch_event(int stream_id,int eventid, [int options])
Fetch an event*/
-void php3_icap_fetch_event(INTERNAL_FUNCTION_PARAMETERS)
+PHP_FUNCTION(icap_fetch_event)
{
pval *streamind,*eventid,*start,*end,*options=NULL;
int ind, ind_type;
/* {{{ proto array icap_list_events(int stream_id,int begindate, [int enddate])
Returns list of UIDs for that day or range of days */
-void php3_icap_list_events(INTERNAL_FUNCTION_PARAMETERS)
+PHP_FUNCTION(icap_list_events)
{
pval *streamind,*begindate,*enddate;
pval **pvalue;
/* {{{ proto string icap_create_calendar(int stream_id, string calendar)
Create a new calendar*/
-void php3_icap_create_calendar(INTERNAL_FUNCTION_PARAMETERS)
+PHP_FUNCTION(icap_create_calendar)
{
pval *streamind, *calendar;
int ind, ind_type;
/* {{{ proto string icap_rename(int stream_id, string src_calendar, string dest_calendar)
Rename a calendar*/
-void php3_icap_rename_calendar(INTERNAL_FUNCTION_PARAMETERS)
+PHP_FUNCTION(icap_rename_calendar)
{
pval *streamind, *src_calendar,*dest_calendar;
int ind, ind_type;
/* {{{ proto int icap_reopen(int stream_id, array date, array time)
list alarms for a given time */
-void php3_icap_list_alarms(INTERNAL_FUNCTION_PARAMETERS)
+PHP_FUNCTION(icap_list_alarms)
{
pval *streamind, *date,*time;
pval **pvalue;
/* {{{ proto string icap_delete_calendar(int stream_id, string calendar)
Delete calendar*/
-void php3_icap_delete_calendar(INTERNAL_FUNCTION_PARAMETERS)
+PHP_FUNCTION(icap_delete_calendar)
{
pval *streamind, *calendar;
int ind, ind_type;
/* {{{ proto string icap_delete_event(int stream_id, int uid)
Delete event*/
-void php3_icap_delete_event(INTERNAL_FUNCTION_PARAMETERS)
+PHP_FUNCTION(icap_delete_event)
{
pval *streamind, *uid;
int ind, ind_type;
}
/* }}} */
-void php3_icap_popen(INTERNAL_FUNCTION_PARAMETERS){
+PHP_FUNCTION(icap_popen)
+{
}
/* {{{ proto string icap_store_event(int stream_id, object event)
Store an event*/
-void php3_icap_store_event(INTERNAL_FUNCTION_PARAMETERS)
+PHP_FUNCTION(icap_store_event)
{
pval *streamind,*storeobject;
int ind, ind_type;
/* {{{ proto string icap_snooze(int stream_id, int uid)
Snooze an alarm*/
-void php3_icap_snooze(INTERNAL_FUNCTION_PARAMETERS)
+PHP_FUNCTION(icap_snooze)
{
pval *streamind,*uid;
int ind, ind_type;
PHP_MINFO_FUNCTION(icap);
/* Functions accessable to PHP */
-extern zend_module_entry php3_icap_module_entry;
-#define php3_icap_module_ptr &php3_icap_module_entry
-#define phpext_icap_ptr php3_icap_module_ptr
+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);
-void php3_icap_open(INTERNAL_FUNCTION_PARAMETERS);
-void php3_icap_popen(INTERNAL_FUNCTION_PARAMETERS);
-void php3_icap_reopen(INTERNAL_FUNCTION_PARAMETERS);
-void php3_icap_close(INTERNAL_FUNCTION_PARAMETERS);
-void php3_icap_fetch_event(INTERNAL_FUNCTION_PARAMETERS);
-void php3_icap_list_events(INTERNAL_FUNCTION_PARAMETERS);
-void php3_icap_create_calendar(INTERNAL_FUNCTION_PARAMETERS);
-void php3_icap_rename_calendar(INTERNAL_FUNCTION_PARAMETERS);
-void php3_icap_delete_calendar(INTERNAL_FUNCTION_PARAMETERS);
-void php3_icap_store_event(INTERNAL_FUNCTION_PARAMETERS);
-void php3_icap_delete_event(INTERNAL_FUNCTION_PARAMETERS);
-void php3_icap_snooze(INTERNAL_FUNCTION_PARAMETERS);
-void php3_icap_list_alarms(INTERNAL_FUNCTION_PARAMETERS);
-
-
-
+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 php3_icap_module_ptr NULL
+#define php_icap_module_ptr NULL
#endif /* HAVE_ICAP */