2020-12-23 22:21:36 +01:00
|
|
|
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
2014-08-13 14:34:29 -04:00
|
|
|
/*
|
2019-10-01 09:20:35 +02:00
|
|
|
* Copyright (C) 2014 Red Hat, Inc.
|
2014-08-13 14:34:29 -04:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef __NM_SIMPLE_CONNECTION_H__
|
|
|
|
|
#define __NM_SIMPLE_CONNECTION_H__
|
|
|
|
|
|
2020-09-28 16:03:33 +02:00
|
|
|
#if !defined(__NETWORKMANAGER_H_INSIDE__) && !defined(NETWORKMANAGER_COMPILATION)
|
|
|
|
|
#error "Only <NetworkManager.h> can be included directly."
|
2014-08-13 14:34:29 -04:00
|
|
|
#endif
|
|
|
|
|
|
2017-03-09 13:02:20 +01:00
|
|
|
#include "nm-connection.h"
|
2014-08-13 14:34:29 -04:00
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
2020-09-28 16:03:33 +02:00
|
|
|
#define NM_TYPE_SIMPLE_CONNECTION (nm_simple_connection_get_type())
|
|
|
|
|
#define NM_SIMPLE_CONNECTION(obj) \
|
|
|
|
|
(G_TYPE_CHECK_INSTANCE_CAST((obj), NM_TYPE_SIMPLE_CONNECTION, NMSimpleConnection))
|
|
|
|
|
#define NM_SIMPLE_CONNECTION_CLASS(klass) \
|
|
|
|
|
(G_TYPE_CHECK_CLASS_CAST((klass), NM_TYPE_SIMPLE_CONNECTION, NMSimpleConnectionClass))
|
|
|
|
|
#define NM_IS_SIMPLE_CONNECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), NM_TYPE_SIMPLE_CONNECTION))
|
|
|
|
|
#define NM_IS_SIMPLE_CONNECTION_CLASS(klass) \
|
|
|
|
|
(G_TYPE_CHECK_CLASS_TYPE((klass), NM_TYPE_SIMPLE_CONNECTION))
|
|
|
|
|
#define NM_SIMPLE_CONNECTION_GET_CLASS(obj) \
|
|
|
|
|
(G_TYPE_INSTANCE_GET_CLASS((obj), NM_TYPE_SIMPLE_CONNECTION, NMSimpleConnectionClass))
|
2014-08-13 14:34:29 -04:00
|
|
|
|
2016-05-05 09:36:32 +02:00
|
|
|
/**
|
|
|
|
|
* NMSimpleConnection:
|
|
|
|
|
*/
|
2014-10-21 22:09:52 -04:00
|
|
|
struct _NMSimpleConnection {
|
2020-09-28 16:03:33 +02:00
|
|
|
GObject parent;
|
2014-10-21 22:09:52 -04:00
|
|
|
};
|
2014-08-13 14:34:29 -04:00
|
|
|
|
|
|
|
|
typedef struct {
|
2020-09-28 16:03:33 +02:00
|
|
|
GObjectClass parent_class;
|
2014-08-13 14:34:29 -04:00
|
|
|
|
2020-09-28 16:03:33 +02:00
|
|
|
/*< private >*/
|
|
|
|
|
gpointer padding[4];
|
2014-08-13 14:34:29 -04:00
|
|
|
} NMSimpleConnectionClass;
|
|
|
|
|
|
2020-09-28 16:03:33 +02:00
|
|
|
GType nm_simple_connection_get_type(void);
|
2014-08-13 14:34:29 -04:00
|
|
|
|
2020-09-28 16:03:33 +02:00
|
|
|
NMConnection *nm_simple_connection_new(void);
|
2014-08-13 14:34:29 -04:00
|
|
|
|
2020-09-28 16:03:33 +02:00
|
|
|
NMConnection *nm_simple_connection_new_from_dbus(GVariant *dict, GError **error);
|
2014-08-13 14:34:29 -04:00
|
|
|
|
2020-09-28 16:03:33 +02:00
|
|
|
NMConnection *nm_simple_connection_new_clone(NMConnection *connection);
|
2014-08-13 14:34:29 -04:00
|
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
|
2020-09-28 16:03:33 +02:00
|
|
|
#endif /* __NM_SIMPLE_CONNECTION__ */
|