mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2025-04-02 18:31:50 -04:00
refactor: rename to vpn_options
This commit is contained in:
parent
8de183a53d
commit
77fda0f527
@ -128,7 +128,7 @@ impl Vpn {
|
||||
|
||||
pub async fn disconnect(&self) {
|
||||
if self.status().await == VpnStatus::Disconnected {
|
||||
info!("VPN already disconnected, skipping disconnect");
|
||||
info!("VPN is not connected, nothing to do");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -45,7 +45,7 @@ static void setup_tun_handler(void *_vpninfo)
|
||||
}
|
||||
|
||||
/* Initialize VPN connection */
|
||||
int vpn_connect(const Options *options)
|
||||
int vpn_connect(const vpn_options *options)
|
||||
{
|
||||
struct openconnect_info *vpninfo;
|
||||
struct utsname utsbuf;
|
||||
|
@ -3,15 +3,15 @@
|
||||
#include <stdarg.h>
|
||||
#include <openconnect.h>
|
||||
|
||||
typedef struct Options
|
||||
typedef struct vpn_options
|
||||
{
|
||||
const char *server;
|
||||
const char *cookie;
|
||||
const char *script;
|
||||
void *user_data;
|
||||
} Options;
|
||||
} vpn_options;
|
||||
|
||||
int vpn_connect(const Options *options);
|
||||
int vpn_connect(const vpn_options *options);
|
||||
void vpn_disconnect();
|
||||
|
||||
extern void on_vpn_connected(int cmd_pipe_fd, void *user_data);
|
||||
|
Loading…
Reference in New Issue
Block a user