static void mm_plugin_simtech_class_init (MMPluginSimtechClass *klass) { MMPluginBaseClass *pb_class = MM_PLUGIN_BASE_CLASS (klass); pb_class->grab_port = grab_port; }
static void mm_plugin_linktop_class_init (MMPluginLinktopClass *klass) { MMPluginBaseClass *pb_class = MM_PLUGIN_BASE_CLASS (klass); pb_class->grab_port = grab_port; }
static void mm_plugin_motorola_class_init (MMPluginMotorolaClass *klass) { MMPluginBaseClass *pb_class = MM_PLUGIN_BASE_CLASS (klass); pb_class->grab_port = grab_port; }
static void mm_plugin_iridium_class_init (MMPluginIridiumClass *klass) { MMPluginBaseClass *pb_class = MM_PLUGIN_BASE_CLASS (klass); pb_class->grab_port = grab_port; }
static void mm_plugin_gobi_class_init (MMPluginGobiClass *klass) { MMPluginBaseClass *pb_class = MM_PLUGIN_BASE_CLASS (klass); pb_class->grab_port = grab_port; }
static void mm_plugin_wavecom_class_init (MMPluginWavecomClass *klass) { MMPluginBaseClass *pb_class = MM_PLUGIN_BASE_CLASS (klass); pb_class->supports_port = supports_port; pb_class->grab_port = grab_port; }
static void mm_plugin_huawei_class_init (MMPluginHuaweiClass *klass) { MMPluginBaseClass *pb_class = MM_PLUGIN_BASE_CLASS (klass); pb_class->supports_port = supports_port; pb_class->grab_port = grab_port; }
static void mm_plugin_longcheer_class_init (MMPluginLongcheerClass *klass) { MMPluginBaseClass *pb_class = MM_PLUGIN_BASE_CLASS (klass); pb_class->supports_port = supports_port; pb_class->grab_port = grab_port; }
static void mm_plugin_sierra_class_init (MMPluginSierraClass *klass) { MMPluginBaseClass *pb_class = MM_PLUGIN_BASE_CLASS (klass); pb_class->supports_port = supports_port; pb_class->grab_port = grab_port; pb_class->handle_probe_response = handle_probe_response; }
static void handle_probe_response (MMPluginBase *self, MMPluginBaseSupportsTask *task, const char *cmd, const char *response, const GError *error) { if (error || !response || strcmp (cmd, "I")) { MM_PLUGIN_BASE_CLASS (mm_plugin_sierra_parent_class)->handle_probe_response (self, task, cmd, response, error); return; } if (strstr (response, "APP1") || strstr (response, "APP2") || strstr (response, "APP3")) { g_object_set_data (G_OBJECT (task), TAG_SIERRA_SECONDARY_PORT, GUINT_TO_POINTER (TRUE)); mm_plugin_base_supports_task_complete (task, 10); return; } /* Not an app port, let the superclass handle the response */ MM_PLUGIN_BASE_CLASS (mm_plugin_sierra_parent_class)->handle_probe_response (self, task, cmd, response, error); }