plugins: setup new helper macros to define plugins

We also remove the plugin headers completely as they are not really
required anywhere.
This commit is contained in:
Aleksander Morgado
2023-01-03 13:56:25 +00:00
committed by Aleksander Morgado
parent d30ba8414a
commit f0a9f09558
83 changed files with 274 additions and 1997 deletions
+5 -7
View File
@@ -28,13 +28,11 @@
#define _LIBMM_INSIDE_MM
#include <libmm-glib.h>
#include "mm-plugin-wavecom.h"
#include "mm-plugin-common.h"
#include "mm-broadband-modem-wavecom.h"
G_DEFINE_TYPE (MMPluginWavecom, mm_plugin_wavecom, MM_TYPE_PLUGIN)
MM_PLUGIN_DEFINE_MAJOR_VERSION
MM_PLUGIN_DEFINE_MINOR_VERSION
#define MM_TYPE_PLUGIN_WAVECOM mm_plugin_wavecom_get_type ()
MM_DEFINE_PLUGIN (WAVECOM, wavecom, Wavecom)
/*****************************************************************************/
@@ -57,8 +55,8 @@ create_modem (MMPlugin *self,
/*****************************************************************************/
G_MODULE_EXPORT MMPlugin *
mm_plugin_create (void)
MM_PLUGIN_NAMED_CREATOR_SCOPE MMPlugin *
mm_plugin_create_wavecom (void)
{
static const gchar *subsystems[] = { "tty", NULL };
static const guint16 vendor_ids[] = { 0x114f, 0 };