Blame libnm/nm-active-connection.h

Packit Service a1bd4f
/* SPDX-License-Identifier: LGPL-2.1+ */
Packit 5756e2
/*
Packit 5756e2
 * Copyright (C) 2007 - 2014 Red Hat, Inc.
Packit 5756e2
 * Copyright (C) 2008 Novell, Inc.
Packit 5756e2
 */
Packit 5756e2
Packit 5756e2
#ifndef __NM_ACTIVE_CONNECTION_H__
Packit 5756e2
#define __NM_ACTIVE_CONNECTION_H__
Packit 5756e2
Packit Service a1bd4f
#if !defined(__NETWORKMANAGER_H_INSIDE__) && !defined(NETWORKMANAGER_COMPILATION)
Packit Service a1bd4f
    #error "Only <NetworkManager.h> can be included directly."
Packit 5756e2
#endif
Packit 5756e2
Packit 5756e2
#include "nm-object.h"
Packit 5756e2
Packit 5756e2
G_BEGIN_DECLS
Packit 5756e2
Packit Service a1bd4f
#define NM_TYPE_ACTIVE_CONNECTION (nm_active_connection_get_type())
Packit Service a1bd4f
#define NM_ACTIVE_CONNECTION(obj) \
Packit Service a1bd4f
    (G_TYPE_CHECK_INSTANCE_CAST((obj), NM_TYPE_ACTIVE_CONNECTION, NMActiveConnection))
Packit Service a1bd4f
#define NM_ACTIVE_CONNECTION_CLASS(klass) \
Packit Service a1bd4f
    (G_TYPE_CHECK_CLASS_CAST((klass), NM_TYPE_ACTIVE_CONNECTION, NMActiveConnectionClass))
Packit Service a1bd4f
#define NM_IS_ACTIVE_CONNECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), NM_TYPE_ACTIVE_CONNECTION))
Packit Service a1bd4f
#define NM_IS_ACTIVE_CONNECTION_CLASS(klass) \
Packit Service a1bd4f
    (G_TYPE_CHECK_CLASS_TYPE((klass), NM_TYPE_ACTIVE_CONNECTION))
Packit Service a1bd4f
#define NM_ACTIVE_CONNECTION_GET_CLASS(obj) \
Packit Service a1bd4f
    (G_TYPE_INSTANCE_GET_CLASS((obj), NM_TYPE_ACTIVE_CONNECTION, NMActiveConnectionClass))
Packit 5756e2
Packit 5756e2
#define NM_ACTIVE_CONNECTION_CONNECTION           "connection"
Packit 5756e2
#define NM_ACTIVE_CONNECTION_ID                   "id"
Packit 5756e2
#define NM_ACTIVE_CONNECTION_UUID                 "uuid"
Packit 5756e2
#define NM_ACTIVE_CONNECTION_TYPE                 "type"
Packit 5756e2
#define NM_ACTIVE_CONNECTION_SPECIFIC_OBJECT_PATH "specific-object-path"
Packit 5756e2
#define NM_ACTIVE_CONNECTION_DEVICES              "devices"
Packit 5756e2
#define NM_ACTIVE_CONNECTION_STATE                "state"
Packit 5756e2
#define NM_ACTIVE_CONNECTION_STATE_FLAGS          "state-flags"
Packit 5756e2
#define NM_ACTIVE_CONNECTION_DEFAULT              "default"
Packit 5756e2
#define NM_ACTIVE_CONNECTION_IP4_CONFIG           "ip4-config"
Packit 5756e2
#define NM_ACTIVE_CONNECTION_DHCP4_CONFIG         "dhcp4-config"
Packit 5756e2
#define NM_ACTIVE_CONNECTION_DEFAULT6             "default6"
Packit 5756e2
#define NM_ACTIVE_CONNECTION_IP6_CONFIG           "ip6-config"
Packit 5756e2
#define NM_ACTIVE_CONNECTION_DHCP6_CONFIG         "dhcp6-config"
Packit 5756e2
#define NM_ACTIVE_CONNECTION_VPN                  "vpn"
Packit 5756e2
#define NM_ACTIVE_CONNECTION_MASTER               "master"
Packit 5756e2
Packit 5756e2
/**
Packit 5756e2
 * NMActiveConnection:
Packit 5756e2
 */
Packit 5756e2
typedef struct _NMActiveConnectionClass NMActiveConnectionClass;
Packit 5756e2
Packit Service a1bd4f
GType nm_active_connection_get_type(void);
Packit 5756e2
Packit Service a1bd4f
NMRemoteConnection *nm_active_connection_get_connection(NMActiveConnection *connection);
Packit Service a1bd4f
const char *        nm_active_connection_get_id(NMActiveConnection *connection);
Packit Service a1bd4f
const char *        nm_active_connection_get_uuid(NMActiveConnection *connection);
Packit Service a1bd4f
const char *        nm_active_connection_get_connection_type(NMActiveConnection *connection);
Packit Service a1bd4f
const char *        nm_active_connection_get_specific_object_path(NMActiveConnection *connection);
Packit Service a1bd4f
const GPtrArray *   nm_active_connection_get_devices(NMActiveConnection *connection);
Packit Service a1bd4f
NMActiveConnectionState nm_active_connection_get_state(NMActiveConnection *connection);
Packit 5756e2
NM_AVAILABLE_IN_1_10
Packit Service a1bd4f
NMActivationStateFlags nm_active_connection_get_state_flags(NMActiveConnection *connection);
Packit 5756e2
NM_AVAILABLE_IN_1_8
Packit Service a1bd4f
NMActiveConnectionStateReason nm_active_connection_get_state_reason(NMActiveConnection *connection);
Packit Service a1bd4f
NMDevice *                    nm_active_connection_get_master(NMActiveConnection *connection);
Packit Service a1bd4f
gboolean                      nm_active_connection_get_default(NMActiveConnection *connection);
Packit Service a1bd4f
NMIPConfig *                  nm_active_connection_get_ip4_config(NMActiveConnection *connection);
Packit Service a1bd4f
NMDhcpConfig *                nm_active_connection_get_dhcp4_config(NMActiveConnection *connection);
Packit Service a1bd4f
gboolean                      nm_active_connection_get_default6(NMActiveConnection *connection);
Packit Service a1bd4f
NMIPConfig *                  nm_active_connection_get_ip6_config(NMActiveConnection *connection);
Packit Service a1bd4f
NMDhcpConfig *                nm_active_connection_get_dhcp6_config(NMActiveConnection *connection);
Packit Service a1bd4f
gboolean                      nm_active_connection_get_vpn(NMActiveConnection *connection);
Packit 5756e2
Packit 5756e2
G_END_DECLS
Packit 5756e2
Packit 5756e2
#endif /* __NM_ACTIVE_CONNECTION_H__ */