aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/gosuncn/mm-plugin-gosuncn.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/gosuncn/mm-plugin-gosuncn.c')
-rw-r--r--src/plugins/gosuncn/mm-plugin-gosuncn.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/plugins/gosuncn/mm-plugin-gosuncn.c b/src/plugins/gosuncn/mm-plugin-gosuncn.c
index 010e93eb..d140e482 100644
--- a/src/plugins/gosuncn/mm-plugin-gosuncn.c
+++ b/src/plugins/gosuncn/mm-plugin-gosuncn.c
@@ -20,7 +20,7 @@
#include <libmm-glib.h>
#include "mm-log-object.h"
-#include "mm-plugin-gosuncn.h"
+#include "mm-plugin-common.h"
#include "mm-broadband-modem.h"
#if defined WITH_QMI
@@ -31,10 +31,8 @@
# include "mm-broadband-modem-mbim.h"
#endif
-G_DEFINE_TYPE (MMPluginGosuncn, mm_plugin_gosuncn, MM_TYPE_PLUGIN)
-
-MM_PLUGIN_DEFINE_MAJOR_VERSION
-MM_PLUGIN_DEFINE_MINOR_VERSION
+#define MM_TYPE_PLUGIN_GOSUNCN mm_plugin_gosuncn_get_type ()
+MM_DEFINE_PLUGIN (GOSUNCN, gosuncn, Gosuncn)
/*****************************************************************************/
@@ -80,8 +78,8 @@ create_modem (MMPlugin *self,
/*****************************************************************************/
-G_MODULE_EXPORT MMPlugin *
-mm_plugin_create (void)
+MM_PLUGIN_NAMED_CREATOR_SCOPE MMPlugin *
+mm_plugin_create_gosuncn (void)
{
static const gchar *subsystems[] = { "tty", "net", "usbmisc", NULL };
static const guint16 vendor_ids[] = { 0x305a, 0 };