diff -r 8470d5aac30e -r 0bcf3d69b37a libidav/jmap.h --- 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 +#include #include #include #include +#include + 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