diary

Text-based journaling program
git clone https://git.in0rdr.ch/diary.git
Log | Files | Refs | Pull requests |Archive | README | LICENSE

caldav.h (770B)


      1 #ifndef DIARY_CALDAV_H
      2 #define DIARY_CALDAV_H
      3 
      4 #define _XOPEN_SOURCE 700
      5 #include <stdio.h>
      6 #include <stdlib.h>
      7 #include <string.h>
      8 #include <pthread.h>
      9 #include <time.h>
     10 #include <sys/stat.h>
     11 #include <sys/socket.h>
     12 #include <sys/poll.h>
     13 #include <netdb.h>
     14 #include <fcntl.h>
     15 #include <netinet/in.h>
     16 #include <arpa/inet.h>
     17 #include <errno.h>
     18 #include <ncurses.h>
     19 #include <curl/curl.h>
     20 #include "utils.h"
     21 
     22 #define STR(s) #s
     23 #define MKSTR(s) STR(s)
     24 
     25 int caldav_sync(struct tm* date,
     26                  WINDOW* header,
     27                  WINDOW* cal,
     28                  int pad_pos,
     29                  const char* dir,
     30                  size_t dir_size,
     31                  bool confirm);
     32 
     33 struct curl_mem_chunk {
     34     char* memory;
     35     size_t size;
     36 };
     37 
     38 extern config CONFIG;
     39 
     40 #endif