diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-09-16 10:46:28 +0200 |
|---|---|---|
| committer | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-09-16 10:46:28 +0200 |
| commit | 4bf1273c3f446ac3195fb700ec41c7cae7d20ac9 (patch) | |
| tree | cec8d9e405b7d6786023ca9b921a6f0473d28a71 /exports/c | |
| parent | 02db081c85e56e6472c2f39e6a623fa4cdf359c4 (diff) | |
Discovery: Expose c types
Diffstat (limited to 'exports/c')
| -rw-r--r-- | exports/c/disco.h | 19 | ||||
| -rw-r--r-- | exports/c/servers.h | 1 |
2 files changed, 20 insertions, 0 deletions
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 <stddef.h> +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; |
