core: find the existing modem for a port in the manager

This commit is contained in:
Dan Williams
2010-03-30 15:03:35 -07:00
parent 720e38aec0
commit df08f6a43f
5 changed files with 21 additions and 51 deletions

View File

@@ -71,6 +71,7 @@ struct _MMPlugin {
const char *subsys,
const char *name,
const char *physdev_path,
MMModem *existing,
MMSupportsPortResultFunc callback,
gpointer user_data);
@@ -95,6 +96,7 @@ struct _MMPlugin {
MMModem * (*grab_port) (MMPlugin *self,
const char *subsys,
const char *name,
MMModem *existing,
GError **error);
};
@@ -106,6 +108,7 @@ MMPluginSupportsResult mm_plugin_supports_port (MMPlugin *plugin,
const char *subsys,
const char *name,
const char *physdev_path,
MMModem *existing,
MMSupportsPortResultFunc callback,
gpointer user_data);
@@ -116,6 +119,7 @@ void mm_plugin_cancel_supports_port (MMPlugin *plugin,
MMModem *mm_plugin_grab_port (MMPlugin *plugin,
const char *subsys,
const char *name,
MMModem *existing,
GError **error);
#endif /* MM_PLUGIN_H */