]> Pileus Git - lackey/blobdiff - src/util.h
Use CURL simple API for EWS calendars
[lackey] / src / util.h
index 4f5d16e7dd0610658163448513780fbc0e02202d..599246105272ba5797b4544631c9c4037caff451 100644 (file)
 
 #define new0(type) alloc0(sizeof(type))
 
+/* Types */
+typedef struct {
+       void *data;
+       int   len;
+       int   max;
+} buf_t;
+
 /* Debug functions */
 void util_init(void);
 
@@ -35,6 +42,8 @@ int match(const char *a, const char *b);
 
 /* Memory functions */
 void *alloc0(int size);
+void append(buf_t *buf, const void *data, int len);
+void release(buf_t *buf);
 
 /* File functions */
 char *read_file(const char *path, int *len);