summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Wijenbergh <jeroen.wijenbergh@geant.org>2025-09-05 12:12:51 +0200
committerJeroen Wijenbergh <jeroen.wijenbergh@geant.org>2025-09-05 12:12:51 +0200
commit9542bd563e9b1cb72f009315ba54851db637da2a (patch)
tree084ac39b492b8dc662897eae3ad02dd8749f8536
parentb6154d85f001e6d5db65d86c6ff32eef3808b1fd (diff)
Exports + Python: Remove RefreshList
-rw-r--r--exports/exports.h5
-rw-r--r--wrappers/python/eduvpn_common/loader.py1
-rw-r--r--wrappers/python/eduvpn_common/main.py1
-rw-r--r--wrappers/python/eduvpn_common/types.py1
4 files changed, 0 insertions, 8 deletions
diff --git a/exports/exports.h b/exports/exports.h
index 9ec39e4..0d5ee61 100644
--- a/exports/exports.h
+++ b/exports/exports.h
@@ -8,7 +8,6 @@ typedef long long int (*ReadRxBytes)();
typedef int (*StateCB)(int oldstate, int newstate, void* data);
-typedef void (*RefreshList)();
typedef void (*TokenGetter)(const char* server_id, int server_type, char* out, size_t len);
typedef void (*TokenSetter)(const char* server_id, int server_type, const char* tokens);
typedef void (*ProxySetup)(int fd);
@@ -21,10 +20,6 @@ static int call_callback(StateCB callback, int oldstate, int newstate, void* dat
{
return callback(oldstate, newstate, data);
}
-static void call_refresh_list(RefreshList refresh)
-{
- refresh();
-}
static void call_token_getter(TokenGetter getter, const char* server_id, int server_type, char* out, size_t len)
{
getter(server_id, server_type, out, len);
diff --git a/wrappers/python/eduvpn_common/loader.py b/wrappers/python/eduvpn_common/loader.py
index d902453..0fa6aab 100644
--- a/wrappers/python/eduvpn_common/loader.py
+++ b/wrappers/python/eduvpn_common/loader.py
@@ -8,7 +8,6 @@ from eduvpn_common.types import (
HandlerError,
ProxySetup,
ReadRxBytes,
- RefreshList,
TokenGetter,
TokenSetter,
VPNStateChange,
diff --git a/wrappers/python/eduvpn_common/main.py b/wrappers/python/eduvpn_common/main.py
index e63ea92..2a7723c 100644
--- a/wrappers/python/eduvpn_common/main.py
+++ b/wrappers/python/eduvpn_common/main.py
@@ -9,7 +9,6 @@ from eduvpn_common.state import State
from eduvpn_common.types import (
ProxySetup,
ReadRxBytes,
- RefreshList,
TokenGetter,
TokenSetter,
VPNStateChange,
diff --git a/wrappers/python/eduvpn_common/types.py b/wrappers/python/eduvpn_common/types.py
index 5e23d61..ca798ca 100644
--- a/wrappers/python/eduvpn_common/types.py
+++ b/wrappers/python/eduvpn_common/types.py
@@ -47,7 +47,6 @@ class BoolError(Structure):
VPNStateChange = CFUNCTYPE(c_int, c_int, c_int, c_char_p)
ProxySetup = CFUNCTYPE(c_void_p, c_int)
ReadRxBytes = CFUNCTYPE(c_ulonglong)
-RefreshList = CFUNCTYPE(c_void_p)
TokenGetter = CFUNCTYPE(c_void_p, c_char_p, c_int, POINTER(c_char), c_size_t)
TokenSetter = CFUNCTYPE(c_void_p, c_char_p, c_int, c_char_p)