libnm: hide NMSimpleConnection type from public headers

(cherry picked from commit 860b280248)
This commit is contained in:
Thomas Haller 2021-06-11 00:27:31 +02:00
parent 65278461a3
commit fd2c614b71
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728
2 changed files with 15 additions and 13 deletions

View file

@ -20,6 +20,20 @@
/*****************************************************************************/
/**
* NMSimpleConnection:
*/
struct _NMSimpleConnection {
GObject parent;
};
struct _NMSimpleConnectionClass {
GObjectClass parent;
/* In the past, this struct was public API. Preserve ABI! */
gpointer padding[4];
};
static void nm_simple_connection_interface_init(NMConnectionInterface *iface);
G_DEFINE_TYPE_WITH_CODE(NMSimpleConnection,

View file

@ -25,19 +25,7 @@ G_BEGIN_DECLS
#define NM_SIMPLE_CONNECTION_GET_CLASS(obj) \
(G_TYPE_INSTANCE_GET_CLASS((obj), NM_TYPE_SIMPLE_CONNECTION, NMSimpleConnectionClass))
/**
* NMSimpleConnection:
*/
struct _NMSimpleConnection {
GObject parent;
};
typedef struct {
GObjectClass parent_class;
/*< private >*/
gpointer padding[4];
} NMSimpleConnectionClass;
typedef struct _NMSimpleConnectionClass NMSimpleConnectionClass;
GType nm_simple_connection_get_type(void);