summaryrefslogtreecommitdiff
path: root/exports/server.h
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2023-03-29 11:58:46 +0200
committerJeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com>2023-04-18 14:05:19 +0200
commit537a09d4334f1555b80d87b7d935328963a21739 (patch)
tree071eeb52a4ed79a1e1b49831c80d6a2336cee7cf /exports/server.h
parent61871cb9ea7605e5350e9612edf8c9d603da2883 (diff)
Client + Server: Implement a token updater callback
Diffstat (limited to 'exports/server.h')
-rw-r--r--exports/server.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/exports/server.h b/exports/server.h
new file mode 100644
index 0000000..4bc8a16
--- /dev/null
+++ b/exports/server.h
@@ -0,0 +1,47 @@
+#ifndef SERVER_H
+#define SERVER_H
+
+// The struct for a single server profile
+typedef struct serverProfile {
+ const char* id;
+ const char* display_name;
+ //const char* proto_list;
+ int default_gateway;
+} serverProfile;
+
+// The struct for all server profiles
+typedef struct serverProfiles {
+ int current;
+ serverProfile** profiles;
+ size_t total_profiles;
+} serverProfiles;
+
+// The struct for server locations
+typedef struct serverLocations {
+ const char** locations;
+ size_t total_locations;
+} serverLocations;
+
+// The struct for a single server
+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;
+ serverLocations* locations;
+ serverProfiles* profiles;
+ unsigned long long int expire_time;
+} server;
+
+// The struct for all servers
+typedef struct servers {
+ server** custom_servers;
+ size_t total_custom;
+ server** institute_servers;
+ size_t total_institute;
+ server* secure_internet_server;
+} servers;
+
+#endif /* GRANDPARENT_H */