From 52da9990eef279bbc349685a7558d26cf4b7893b Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Thu, 2 Jul 2009 13:48:30 -0400 Subject: plugins: allow plugins to more easily suggest port types ZTE modems need to use udev rules to assign port type hints, so generalize that and port all the plugins over to suggested port types in the MMModem interface's grab_port() function. --- plugins/mm-plugin-generic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/mm-plugin-generic.c') diff --git a/plugins/mm-plugin-generic.c b/plugins/mm-plugin-generic.c index 208a61f2..802ab888 100644 --- a/plugins/mm-plugin-generic.c +++ b/plugins/mm-plugin-generic.c @@ -144,7 +144,7 @@ grab_port (MMPluginBase *base, } if (modem) { - if (!mm_modem_grab_port (modem, subsys, name, NULL, error)) { + if (!mm_modem_grab_port (modem, subsys, name, MM_PORT_TYPE_UNKNOWN, NULL, error)) { g_object_unref (modem); return NULL; } @@ -152,7 +152,7 @@ grab_port (MMPluginBase *base, } else { if (caps & (MM_PLUGIN_BASE_PORT_CAP_GSM | CAP_CDMA)) { modem = existing; - if (!mm_modem_grab_port (modem, subsys, name, NULL, error)) + if (!mm_modem_grab_port (modem, subsys, name, MM_PORT_TYPE_UNKNOWN, NULL, error)) return NULL; } } -- cgit v1.2.3-70-g09d2