2019-09-10 11:19:01 +02:00
|
|
|
// SPDX-License-Identifier: LGPL-2.1+
|
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__
|
|
|
|
|
|
|
|
|
|
#if !defined (__NETWORKMANAGER_H_INSIDE__) && !defined (NETWORKMANAGER_COMPILATION)
|
|
|
|
|
#error "Only <NetworkManager.h> can be included directly."
|
|
|
|
|
#endif
|
|
|
|
|
|
2017-03-09 13:02:20 +01:00
|
|
|
#include "nm-connection.h"
|
2014-08-13 14:34:29 -04:00
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
|
|
#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))
|
|
|
|
|
|
2016-05-05 09:36:32 +02:00
|
|
|
/**
|
|
|
|
|
* NMSimpleConnection:
|
|
|
|
|
*/
|
2014-10-21 22:09:52 -04:00
|
|
|
struct _NMSimpleConnection {
|
2014-08-13 14:34:29 -04:00
|
|
|
GObject parent;
|
2014-10-21 22:09:52 -04:00
|
|
|
};
|
2014-08-13 14:34:29 -04:00
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
|
GObjectClass parent_class;
|
|
|
|
|
|
|
|
|
|
/*< private >*/
|
|
|
|
|
gpointer padding[4];
|
|
|
|
|
} NMSimpleConnectionClass;
|
|
|
|
|
|
|
|
|
|
GType nm_simple_connection_get_type (void);
|
|
|
|
|
|
|
|
|
|
NMConnection *nm_simple_connection_new (void);
|
|
|
|
|
|
2014-08-16 10:09:48 -04:00
|
|
|
NMConnection *nm_simple_connection_new_from_dbus (GVariant *dict,
|
2014-08-13 14:34:29 -04:00
|
|
|
GError **error);
|
|
|
|
|
|
|
|
|
|
NMConnection *nm_simple_connection_new_clone (NMConnection *connection);
|
|
|
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
|
|
#endif /* __NM_SIMPLE_CONNECTION__ */
|