libidav/jmap.h

branch
dav-2
changeset 927
0bcf3d69b37a
parent 925
61a231a8d8f5
--- a/libidav/jmap.h	Thu Jul 09 22:07:33 2026 +0200
+++ b/libidav/jmap.h	Fri Jul 10 17:56:21 2026 +0200
@@ -34,11 +34,22 @@
 #endif
 
 #include <cx/map.h>
+#include <cx/list.h>
 #include <cx/json.h>
 #include <cx/mempool.h>
 #include <curl/curl.h>
     
+#include <inttypes.h>
+    
 typedef struct JMAPSession JMAPSession;
+typedef struct JMAPPrimaryAccounts JMAPPrimaryAccounts;
+
+struct JMAPPrimaryAccounts {
+    char *mail;
+    char *vacationresponse;
+    char *contacts;
+    char *calendars;
+};
 
 struct JMAPSession {
     CURL *handle;
@@ -51,8 +62,12 @@
     char *downloadUrl;
     char *uploadUrl;
     char *eventSourceUrl;
+    
+    JMAPPrimaryAccounts primary_accounts;
 };
 
+
+
 JMAPSession* jmap_session_new_with_user(const char *session_url, const char *user, const char *password);
 
 #ifdef __cplusplus

mercurial