aboutsummaryrefslogtreecommitdiff
path: root/src/ics.mli
diff options
context:
space:
mode:
authorAlban Gruin2020-09-11 23:39:47 +0200
committerAlban Gruin2020-09-11 23:39:47 +0200
commit3dc6cc287227bdfc218e79ea4753b601689eff2a (patch)
treea46ed8f09d8c4145cf327099d5325bc56d174b51 /src/ics.mli
parentdd909afda419f39f16120fbfe0e60d847f6f3e2d (diff)
ics: clean Event module, conversion to string
Signed-off-by: Alban Gruin <alban at pa1ch dot fr>
Diffstat (limited to 'src/ics.mli')
-rw-r--r--src/ics.mli19
1 files changed, 12 insertions, 7 deletions
diff --git a/src/ics.mli b/src/ics.mli
index 352ce68..219f851 100644
--- a/src/ics.mli
+++ b/src/ics.mli
@@ -15,10 +15,15 @@
* along with ucs. If not, see <http://www.gnu.org/licenses/>.
*)
-type event = {
- start: CalendarLib.Calendar.t;
- stop: CalendarLib.Calendar.t;
- summary: string;
- category: string;
- location: string
- }
+module Event : sig
+ type t
+
+ val make : CalendarLib.Calendar.t -> CalendarLib.Calendar.t ->
+ string -> string -> t
+ val to_string : string -> t -> int -> string
+end
+
+type t
+
+val make : Event.t list -> t
+val to_string : t -> string