aboutsummaryrefslogtreecommitdiff
path: root/plugins/wavecom/mm-plugin-wavecom.c
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2012-07-10 11:15:23 +0200
committerAleksander Morgado <aleksander@lanedo.com>2012-08-06 20:06:45 +0200
commite5e46f489e9d89bdecb4c4948b0d9627e33555cc (patch)
tree4b8e1b316787b0a7e1346a1bd6930c293639171f /plugins/wavecom/mm-plugin-wavecom.c
parent7e9d3e4b685f0e92979af2f595be6cd336b5dbd6 (diff)
core: merge `MMPluginBase' and `MMPlugin'
There's no real point in maintaining a separate `MMPlugin' interface, as all the plugins will inherit from `MMPluginBase', so just merge them and simplify everything.
Diffstat (limited to 'plugins/wavecom/mm-plugin-wavecom.c')
-rw-r--r--plugins/wavecom/mm-plugin-wavecom.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/plugins/wavecom/mm-plugin-wavecom.c b/plugins/wavecom/mm-plugin-wavecom.c
index a3e71b26..f55ccad1 100644
--- a/plugins/wavecom/mm-plugin-wavecom.c
+++ b/plugins/wavecom/mm-plugin-wavecom.c
@@ -30,7 +30,7 @@
#include "mm-plugin-wavecom.h"
#include "mm-broadband-modem-wavecom.h"
-G_DEFINE_TYPE (MMPluginWavecom, mm_plugin_wavecom, MM_TYPE_PLUGIN_BASE)
+G_DEFINE_TYPE (MMPluginWavecom, mm_plugin_wavecom, MM_TYPE_PLUGIN)
int mm_plugin_major_version = MM_PLUGIN_MAJOR_VERSION;
int mm_plugin_minor_version = MM_PLUGIN_MINOR_VERSION;
@@ -38,7 +38,7 @@ int mm_plugin_minor_version = MM_PLUGIN_MINOR_VERSION;
/*****************************************************************************/
static MMBaseModem *
-create_modem (MMPluginBase *plugin,
+create_modem (MMPlugin *self,
const gchar *sysfs_path,
const gchar *driver,
guint16 vendor,
@@ -48,13 +48,13 @@ create_modem (MMPluginBase *plugin,
{
return MM_BASE_MODEM (mm_broadband_modem_wavecom_new (sysfs_path,
driver,
- mm_plugin_get_name (MM_PLUGIN (plugin)),
+ mm_plugin_get_name (self),
vendor,
product));
}
static gboolean
-grab_port (MMPluginBase *base,
+grab_port (MMPlugin *self,
MMBaseModem *modem,
MMPortProbe *probe,
GError **error)
@@ -86,10 +86,10 @@ mm_plugin_create (void)
return MM_PLUGIN (
g_object_new (MM_TYPE_PLUGIN_WAVECOM,
- MM_PLUGIN_BASE_NAME, "Wavecom",
- MM_PLUGIN_BASE_ALLOWED_SUBSYSTEMS, subsystems,
- MM_PLUGIN_BASE_ALLOWED_VENDOR_IDS, vendor_ids,
- MM_PLUGIN_BASE_ALLOWED_AT, TRUE,
+ MM_PLUGIN_NAME, "Wavecom",
+ MM_PLUGIN_ALLOWED_SUBSYSTEMS, subsystems,
+ MM_PLUGIN_ALLOWED_VENDOR_IDS, vendor_ids,
+ MM_PLUGIN_ALLOWED_AT, TRUE,
NULL));
}
@@ -101,8 +101,8 @@ mm_plugin_wavecom_init (MMPluginWavecom *self)
static void
mm_plugin_wavecom_class_init (MMPluginWavecomClass *klass)
{
- MMPluginBaseClass *pb_class = MM_PLUGIN_BASE_CLASS (klass);
+ MMPluginClass *plugin_class = MM_PLUGIN_CLASS (klass);
- pb_class->create_modem = create_modem;
- pb_class->grab_port = grab_port;
+ plugin_class->create_modem = create_modem;
+ plugin_class->grab_port = grab_port;
}