aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/longcheer/mm-plugin-longcheer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/longcheer/mm-plugin-longcheer.c')
-rw-r--r--src/plugins/longcheer/mm-plugin-longcheer.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/plugins/longcheer/mm-plugin-longcheer.c b/src/plugins/longcheer/mm-plugin-longcheer.c
index 31774efb..f3c6bc6c 100644
--- a/src/plugins/longcheer/mm-plugin-longcheer.c
+++ b/src/plugins/longcheer/mm-plugin-longcheer.c
@@ -23,13 +23,11 @@
#include "mm-log-object.h"
#include "mm-modem-helpers.h"
-#include "mm-plugin-longcheer.h"
+#include "mm-plugin-common.h"
#include "mm-broadband-modem-longcheer.h"
-G_DEFINE_TYPE (MMPluginLongcheer, mm_plugin_longcheer, MM_TYPE_PLUGIN)
-
-MM_PLUGIN_DEFINE_MAJOR_VERSION
-MM_PLUGIN_DEFINE_MINOR_VERSION
+#define MM_TYPE_PLUGIN_LONGCHEER mm_plugin_longcheer_get_type ()
+MM_DEFINE_PLUGIN (LONGCHEER, longcheer, Longcheer)
/*****************************************************************************/
/* Custom init */
@@ -200,8 +198,8 @@ create_modem (MMPlugin *self,
/*****************************************************************************/
-G_MODULE_EXPORT MMPlugin *
-mm_plugin_create (void)
+MM_PLUGIN_NAMED_CREATOR_SCOPE MMPlugin *
+mm_plugin_create_longcheer (void)
{
static const gchar *subsystems[] = { "tty", NULL };
/* Vendors: Longcheer and TAMobile */