{
php3_printf("Icap Support enabled<br>");
php3_printf("<table>");
- php3_printf("<tr><td>Icap c-client Version:</td>");
+ php3_printf("<tr><td>Icap Version:</td>");
php3_printf("<td>%s</td>",ICAPVER);
php3_printf("</tr></table>");
}
/* }}} */
-/* {{{ 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)
{
}
/* }}} */
+
/* {{{ 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;
+/* {{{ 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;
}
-/* 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;
}
/* }}} */
+
/* {{{ proto string icap_delete_event(int stream_id, int uid)
Delete event*/
-/* }}} */
-
void php3_icap_delete_event(INTERNAL_FUNCTION_PARAMETERS)
{
pval *streamind, *uid;
}
/* }}} */
+/* {{{ 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;
/* }}} */
+/* {{{ proto string icap_snooze(int stream_id, int uid)
+ Snooze an alarm*/
void php3_icap_snooze(INTERNAL_FUNCTION_PARAMETERS)
{
pval *streamind,*uid;
}
+/* }}} */
+
+
+/* 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)