1/* SPDX-License-Identifier: LGPL-2.1-or-later */
2/*
3 * Copyright (C) 2007 - 2008 Novell, Inc.
4 * Copyright (C) 2007 - 2010 Red Hat, Inc.
5 */
6
7#ifndef __NM_VPN_CONNECTION_H__
8#define __NM_VPN_CONNECTION_H__
9
10#if !defined(__NETWORKMANAGER_H_INSIDE__) && !defined(NETWORKMANAGER_COMPILATION)
11#error "Only <NetworkManager.h> can be included directly."
12#endif
13
14#include "nm-active-connection.h"
15#include "nm-vpn-dbus-interface.h"
16
17G_BEGIN_DECLS
18
19#define NM_TYPE_VPN_CONNECTION (nm_vpn_connection_get_type())
20#define NM_VPN_CONNECTION(obj) \
21 (G_TYPE_CHECK_INSTANCE_CAST((obj), NM_TYPE_VPN_CONNECTION, NMVpnConnection))
22#define NM_VPN_CONNECTION_CLASS(klass) \
23 (G_TYPE_CHECK_CLASS_CAST((klass), NM_TYPE_VPN_CONNECTION, NMVpnConnectionClass))
24#define NM_IS_VPN_CONNECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), NM_TYPE_VPN_CONNECTION))
25#define NM_IS_VPN_CONNECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), NM_TYPE_VPN_CONNECTION))
26#define NM_VPN_CONNECTION_GET_CLASS(obj) \
27 (G_TYPE_INSTANCE_GET_CLASS((obj), NM_TYPE_VPN_CONNECTION, NMVpnConnectionClass))
28
29#define NM_VPN_CONNECTION_VPN_STATE "vpn-state"
30#define NM_VPN_CONNECTION_BANNER "banner"
31
32/**
33 * NMVpnConnection:
34 */
35typedef struct _NMVpnConnectionClass NMVpnConnectionClass;
36
37GType nm_vpn_connection_get_type(void);
38
39NMVpnConnectionState nm_vpn_connection_get_vpn_state(NMVpnConnection *vpn);
40const char *nm_vpn_connection_get_banner(NMVpnConnection *vpn);
41
42G_END_DECLS
43
44#endif /* __NM_VPN_CONNECTION_H__ */
45

source code of include/libnm/nm-vpn-connection.h