plugin: simplify interface by passing around the device and/or port objects

This commit is contained in:
Aleksander Morgado
2012-07-10 12:41:00 +02:00
parent b816887cac
commit 74dd724669
4 changed files with 61 additions and 114 deletions

View File

@@ -292,7 +292,7 @@ mm_device_create_modem (MMDevice *self,
g_list_length (self->priv->port_probes));
self->priv->modem = mm_plugin_create_modem (self->priv->plugin,
self->priv->port_probes,
G_OBJECT (self),
error);
if (self->priv->modem) {
/* Keep the object manager */