aboutsummaryrefslogtreecommitdiff
path: root/calendar.h
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2019-03-22 20:11:11 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2019-03-22 20:17:52 +0100
commitd46183860c1f3f10095e95023adcb79b1896ab0e (patch)
treedd331a0efe9777bfe84160139da1e39df3226b71 /calendar.h
parentAdd stuff to test.scm. (diff)
downloadcalp-d46183860c1f3f10095e95023adcb79b1896ab0e.tar.gz
calp-d46183860c1f3f10095e95023adcb79b1896ab0e.tar.xz
Move C and Scheme code into subdirs.
Diffstat (limited to 'calendar.h')
-rw-r--r--calendar.h41
1 files changed, 0 insertions, 41 deletions
diff --git a/calendar.h b/calendar.h
deleted file mode 100644
index 20b78a9f..00000000
--- a/calendar.h
+++ /dev/null
@@ -1,41 +0,0 @@
-#ifndef CALENDAR_H
-#define CALENDAR_H
-
-#include "vcal.h"
-
-/*
- * Reads all ics flies in path into the given vcomponent. The
- * component is assumed to be a abstract ROOT element, whose first
- * component will most likely become a VCALENDAR.
- *
- * path should either be a single .ics file (vcalendar), or a
- * directory directly containing .ics files (vdir).
- */
-int read_vcalendar(vcomponent* cal, char* path);
-
-/*
- * Gets extension from filename. Writes output to ext.
- * Assumes that the extension is the text between the last dot and
- * the end of the string, and that no slashes can occur between the
- * dot and the end.
- *
- * Returns the length of the extension, 0 if no extension.
- */
-int get_extension(const char* filename, char* ext, ssize_t max_len);
-
-/* Returns 1 if path has extension ext, 0 otherwise */
-int check_ext (const char* path, const char* ext);
-
-/* Handle a lone ics file */
-int handle_file(vcomponent* cal, char* path);
-
-/* Handle a directory of ics files */
-int handle_dir(vcomponent* cal, char* path);
-
-/*
- * Helper for opening a single ICS file. Handles file internally, and
- * writes output to cal.
- */
-int open_ics (char* resolved_path, vcomponent* cal);
-
-#endif /* CALENDAR_H */