From 537a09d4334f1555b80d87b7d935328963a21739 Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Wed, 29 Mar 2023 11:58:46 +0200 Subject: Client + Server: Implement a token updater callback --- exports/servers.go | 44 +------------------------------------------- 1 file changed, 1 insertion(+), 43 deletions(-) (limited to 'exports/servers.go') diff --git a/exports/servers.go b/exports/servers.go index 662808c..73b8b6c 100644 --- a/exports/servers.go +++ b/exports/servers.go @@ -4,49 +4,7 @@ package main // for free and size_t #include #include "error.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; +#include "server.h" */ import "C" -- cgit v1.2.3