Giving up on doing citserver-side REPORT parsing.
[citadel.git] / citadel / server / modules / calendar / serv_calendar.h
1 // iCalendar implementation for Citadel
2 //
3 // Copyright (c) 1987-2024 by the citadel.org team
4 //
5 // This program is open source software.  Use, duplication, or disclosure
6 // is subject to the terms of the GNU General Public License version 3.
7
8 #define PRODID "-//Citadel//NONSGML Citadel Calendar//EN"
9
10 // "server_generated_invitations" tells the Citadel server that the
11 // client wants invitations to be generated and sent out by the
12 // server.  Set to 1 to enable this functionality.
13
14 // "avoid_sending_invitations" is a server-internal variable.  It is
15 // set internally during certain transactions and cleared
16 // automatically.
17
18 struct cit_ical {
19         int server_generated_invitations;
20         int avoid_sending_invitations;
21 };
22
23 #define CIT_ICAL CC->CIT_ICAL
24 #define MAX_RECUR 1000
25
26
27 // This is a structure to pass data back and forth between callbacks.
28 struct ical_respond_data {
29         char desired_partnum[SIZ];
30         icalcomponent *cal;
31 };
32
33
34 // Everything below was generated by
35 // cproto -f2 *.c 2>/dev/null |sed 's/^\/\*/\n\/\//g' | sed 's/\ \*\/$//g'
36
37 // serv_calendar.c
38 icalcomponent *icalcomponent_new_citadel_vcalendar(void);
39 icalcomponent *ical_encapsulate_subcomponent(icalcomponent *);
40 void ical_write_to_cal(struct ctdluser *, icalcomponent *);
41 void ical_send_a_reply(icalcomponent *, char *);
42 void ical_locate_part(char *, char *, char *, char *, void *, char *, char *, size_t, char *, char *, void *);
43 void ical_respond(long, char *, char *);
44 void ical_learn_uid_of_reply(char *, icalcomponent *);
45 void ical_hunt_for_event_to_update(long, void *);
46 void ical_locate_original_event(char *, char *, char *, char *, void *, char *, char *, size_t, char *, char *, void *);
47 void ical_merge_attendee_reply(icalcomponent *, icalcomponent *);
48 int ical_update_my_calendar_with_reply(icalcomponent *);
49 void ical_handle_rsvp(long, char *, char *);
50 icalproperty *ical_ctdl_get_subprop(icalcomponent *, icalproperty_kind);
51 int ical_ctdl_is_overlap(struct icaltimetype, struct icaltimetype, struct icaltimetype, struct icaltimetype);
52 int ical_conflicts_phase6(struct icaltimetype, struct icaltimetype, struct icaltimetype, struct icaltimetype, long, char *, char *, char *);
53 void ical_conflicts_phase5(struct icaltimetype, struct icaltimetype, icalcomponent *, long, char *);
54 void ical_conflicts_phase4(icalcomponent *, icalcomponent *, long);
55 void ical_hunt_for_conflicts_backend(long, void *);
56 void ical_hunt_for_conflicts(icalcomponent *);
57 void ical_conflicts(long, char *);
58 void ical_add_to_freebusy(icalcomponent *, icalcomponent *);
59 void ical_freebusy_backend(long, void *);
60 void ical_freebusy(char *);
61 void ical_getics_backend(long, void *);
62 void ical_getics(void);
63 void ical_putics_grabtzids(icalparameter *, void *);
64 void ical_putics(void);
65 void ical_CtdlCreateRoom(void);
66 void ical_send_out_invitations(icalcomponent *, icalcomponent *);
67 void ical_saving_vevent(icalcomponent *, icalcomponent *);
68 void ical_obj_beforesave_backend(char *, char *, char *, char *, void *, char *, char *, size_t, char *, char *, void *);
69 int ical_obj_beforesave(struct CtdlMessage *, struct recptypes *);
70 void ical_obj_aftersave_backend(char *, char *, char *, char *, void *, char *, char *, size_t, char *, char *, void *);
71 int ical_obj_aftersave(struct CtdlMessage *, struct recptypes *);
72 void ical_session_startup(void);
73 void ical_session_shutdown(void);
74 void ical_fixed_output_backend(icalcomponent *, int);
75 void ical_fixed_output(char *, int);
76 void cmd_ical(char *);
77 char *ctdl_module_init_calendar(void);