ifupdown: fix connection class inheritance

NMIfupdownConnection really is a subclass of NMSysconfigConnection (as
declared via the G_DEFINE_TYPE macro in nm-ifconfig-connection.c), but
the header incorrectly used NMExportedConnection* in the class and
instance structs. We got away with it because NMSysconfigConnection*
didn't contain anything other than the stuff inherited from
NMExportedConnection*, but it would have caused much trouble if we did
add something.
This commit is contained in:
Daniel Gnoutcheff 2010-08-04 01:54:10 -05:00 committed by Dan Williams
parent d471a58a97
commit 006377f9d2

View file

@ -39,11 +39,11 @@ G_BEGIN_DECLS
#define NM_IFUPDOWN_CONNECTION_IFBLOCK "ifblock"
typedef struct {
NMExportedConnection parent;
NMSysconfigConnection parent;
} NMIfupdownConnection;
typedef struct {
NMExportedConnectionClass parent;
NMSysconfigConnectionClass parent;
} NMIfupdownConnectionClass;
GType nm_ifupdown_connection_get_type (void);