agendafs

A filesystem for your calendar.

git clone git://mccd.space/agendafs

agenda_entry.h (949B)

      1 #ifndef agenda_entry_h_INCLUDED
      2 #define agenda_entry_h_INCLUDED
      3 
      4 #include "hashmap.h"
      5 #include "arena.h"
      6 #include "path.h"
      7 #include "tree.h"
      8 #include "util.h"
      9 #include <dirent.h>
     10 #include <libical/ical.h>
     11 #include <pthread.h>
     12 #include <regex.h>
     13 #include <stdbool.h>
     14 #include <stdio.h>
     15 #include <stdlib.h>
     16 #include <string.h>
     17 #include <sys/inotify.h>
     18 #include <sys/stat.h>
     19 #include <time.h>
     20 #include <unistd.h>
     21 #include <uuid/uuid.h>
     22 #include <wordexp.h>
     23 
     24 struct agenda_entry {
     25 	// filename is full path relative to fuse directory
     26 	// I.E. hello world
     27 	char *filename;
     28 	// filename_original is the relative path to ICS_DIR
     29 	// I.E. 910319208nrao19p.ics
     30 	char *filename_vdir;
     31 };
     32 
     33 struct agenda_entry *
     34 copy_agenda_entry(const struct agenda_entry *src);
     35 
     36 void
     37 free_agenda_entry(struct agenda_entry *entry);
     38 
     39 struct agenda_entry *
     40 create_agenda_entry(arena *ar, const char *filename,
     41 		    const char *filename_vdir);
     42 #endif // agenda_entry_h_INCLUDED
     43