plugin: if no grab_port() method given, use the default one

This commit is contained in:
Aleksander Morgado
2012-07-11 12:36:42 +02:00
parent bfc3cb27e1
commit b64f52cddc
2 changed files with 18 additions and 8 deletions

View File

@@ -75,10 +75,8 @@ struct _MMPlugin {
struct _MMPluginClass {
GObjectClass parent;
/* Mandatory subclass functions */
/* Plugins need to provide a method to create a modem object given
* a list of port probes */
* a list of port probes (Mandatory) */
MMBaseModem *(*create_modem) (MMPlugin *plugin,
const gchar *sysfs_path,
const gchar *driver,
@@ -88,7 +86,7 @@ struct _MMPluginClass {
GError **error);
/* Plugins need to provide a method to grab independent ports
* identified by port probes */
* identified by port probes (Optional) */
gboolean (*grab_port) (MMPlugin *plugin,
MMBaseModem *modem,
MMPortProbe *probe,