From 90e2bc15807906866ea14eba21d7eda7d6932cd2 Mon Sep 17 00:00:00 2001 From: Mark Musone Date: Tue, 17 Aug 1999 14:41:23 +0000 Subject: [PATCH] more changes --- ext/icap/php3_icap.c | 89 +++++++++++++++++++++----------------------- 1 file changed, 42 insertions(+), 47 deletions(-) diff --git a/ext/icap/php3_icap.c b/ext/icap/php3_icap.c index d6a99048fd..d33c801746 100644 --- a/ext/icap/php3_icap.c +++ b/ext/icap/php3_icap.c @@ -133,7 +133,7 @@ void icap_info(void) { php3_printf("Icap Support enabled
"); php3_printf(""); - php3_printf(""); + php3_printf(""); php3_printf("",ICAPVER); php3_printf("
Icap c-client Version:
Icap Version:%s
"); } @@ -437,9 +437,8 @@ if(myargc == 3) /* }}} */ -/* {{{ proto string icap_create(int stream_id, string calendar) +/* {{{ proto string icap_create_calendar(int stream_id, string calendar) Create a new calendar*/ -/* }}} */ void php3_icap_create_calendar(INTERNAL_FUNCTION_PARAMETERS) { @@ -471,10 +470,9 @@ void php3_icap_create_calendar(INTERNAL_FUNCTION_PARAMETERS) } /* }}} */ + /* {{{ proto string icap_rename(int stream_id, string src_calendar, string dest_calendar) Rename a calendar*/ -/* }}} */ - void php3_icap_rename_calendar(INTERNAL_FUNCTION_PARAMETERS) { pval *streamind, *src_calendar,*dest_calendar; @@ -503,6 +501,8 @@ void php3_icap_rename_calendar(INTERNAL_FUNCTION_PARAMETERS) +/* {{{ 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) { pval *streamind, *date,*time; @@ -567,50 +567,11 @@ void php3_icap_list_alarms(INTERNAL_FUNCTION_PARAMETERS) } -/* Interfaces to C-client */ - - -void cc_searched (u_int32_t cal_uid) -{ - - if(g_cal_list==NULL) - { - g_cal_list=malloc(sizeof(struct cal_list)); - g_cal_list->uid=cal_uid; - g_cal_list->next=NULL; - g_cal_list_end=g_cal_list; - } - else - { - g_cal_list_end->next=malloc(sizeof(struct cal_list)); - g_cal_list_end=g_cal_list_end->next; - g_cal_list_end->uid=cal_uid; - g_cal_list_end->next=NULL; - } -} - - - - -cal_expunge() -{ - return 1; -} - - +/* }}} */ -icap_create(){ - return 1; -} - -icap_rename(){ - return 1; -} /* {{{ proto string icap_delete_calendar(int stream_id, string calendar) Delete calendar*/ -/* }}} */ - void php3_icap_delete_calendar(INTERNAL_FUNCTION_PARAMETERS) { pval *streamind, *calendar; @@ -641,10 +602,9 @@ void php3_icap_delete_calendar(INTERNAL_FUNCTION_PARAMETERS) } /* }}} */ + /* {{{ proto string icap_delete_event(int stream_id, int uid) Delete event*/ -/* }}} */ - void php3_icap_delete_event(INTERNAL_FUNCTION_PARAMETERS) { pval *streamind, *uid; @@ -675,14 +635,19 @@ void php3_icap_delete_event(INTERNAL_FUNCTION_PARAMETERS) } /* }}} */ +/* {{{ proto string icap_delete_calendar(int stream_id, int uid) + Delete event*/ icap_delete_calendar(){ return 1; } +/* }}} */ void php3_icap_popen(INTERNAL_FUNCTION_PARAMETERS){ } +/* {{{ proto string icap_store_event(int stream_id, object event) + Store an event*/ void php3_icap_store_event(INTERNAL_FUNCTION_PARAMETERS) { pval *streamind,*storeobject; @@ -794,6 +759,8 @@ void php3_icap_store_event(INTERNAL_FUNCTION_PARAMETERS) /* }}} */ +/* {{{ proto string icap_snooze(int stream_id, int uid) + Snooze an alarm*/ void php3_icap_snooze(INTERNAL_FUNCTION_PARAMETERS) { pval *streamind,*uid; @@ -829,6 +796,34 @@ void php3_icap_snooze(INTERNAL_FUNCTION_PARAMETERS) } +/* }}} */ + + +/* Interfaces to callbacks */ + + +void cc_searched (u_int32_t cal_uid) +{ + + if(g_cal_list==NULL) + { + g_cal_list=malloc(sizeof(struct cal_list)); + g_cal_list->uid=cal_uid; + g_cal_list->next=NULL; + g_cal_list_end=g_cal_list; + } + else + { + g_cal_list_end->next=malloc(sizeof(struct cal_list)); + g_cal_list_end=g_cal_list_end->next; + g_cal_list_end->uid=cal_uid; + g_cal_list_end->next=NULL; + } +} + + + + void cc_appended(u_int32_t uid) -- 2.40.0