From 4bf1273c3f446ac3195fb700ec41c7cae7d20ac9 Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Fri, 16 Sep 2022 10:46:28 +0200 Subject: Discovery: Expose c types --- exports/c/disco.h | 19 +++++++++++++++++++ exports/c/servers.h | 1 + 2 files changed, 20 insertions(+) (limited to 'exports/c') diff --git a/exports/c/disco.h b/exports/c/disco.h index 41d59fa..8fa07a4 100644 --- a/exports/c/disco.h +++ b/exports/c/disco.h @@ -1,6 +1,25 @@ // for size_t #include +typedef struct discoveryServer { + const char* authentication_url_template; + const char* base_url; + const char* country_code; + const char* display_name; + const char* keyword_list; + const char** public_key_list; + size_t total_public_keys; + const char* server_type; + const char** support_contact; + size_t total_support_contact; +} discoveryServer; + +typedef struct discoveryServers { + unsigned long long int version; + discoveryServer** servers; + size_t total_servers; +} discoveryServers; + typedef struct discoveryOrganization { const char* display_name; const char* org_id; diff --git a/exports/c/servers.h b/exports/c/servers.h index 39e52a2..1b6cca9 100644 --- a/exports/c/servers.h +++ b/exports/c/servers.h @@ -26,6 +26,7 @@ typedef struct serverLocations { typedef struct server { const char* identifier; const char* display_name; + const char* server_type; const char* country_code; const char** support_contact; size_t total_support_contact; -- cgit v1.2.3