diff options
author | Hugo Hörnquist <hugo@hornquist.se> | 2019-11-02 22:29:47 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@hornquist.se> | 2019-11-02 22:29:47 +0100 |
commit | 3a1d3898c3d42d43645b79586f0b26ab4f8ff331 (patch) | |
tree | 9f4d1a41f33bebcff24ade2e5364d87f8bb78c82 /src/calendar.h | |
parent | Move parser into module subtree. (diff) | |
download | calp-3a1d3898c3d42d43645b79586f0b26ab4f8ff331.tar.gz calp-3a1d3898c3d42d43645b79586f0b26ab4f8ff331.tar.xz |
Remove ALL c code.
Diffstat (limited to '')
-rw-r--r-- | src/calendar.h | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/src/calendar.h b/src/calendar.h deleted file mode 100644 index 776d9900..00000000 --- a/src/calendar.h +++ /dev/null @@ -1,41 +0,0 @@ -#ifndef CALENDAR_H -#define CALENDAR_H - -#include <libguile.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(SCM 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(SCM cal, char* path); - -/* Handle a directory of ics files */ -int handle_dir(SCM cal, char* path); - -/* - * Helper for opening a single ICS file. Handles file internally, and - * writes output to cal. - */ -int open_ics (char* resolved_path, SCM cal); - -#endif /* CALENDAR_H */ |