plugin: minor coding style update

This commit is contained in:
Aleksander Morgado
2019-09-06 15:06:37 +02:00
parent cc5880898c
commit a45508ba40

View File

@@ -106,7 +106,7 @@ struct _MMPluginClass {
/* Plugins need to provide a method to create a modem object given /* Plugins need to provide a method to create a modem object given
* a list of port probes (Mandatory) */ * a list of port probes (Mandatory) */
MMBaseModem *(*create_modem) (MMPlugin *plugin, MMBaseModem *(*create_modem) (MMPlugin *self,
const gchar *uid, const gchar *uid,
const gchar **drivers, const gchar **drivers,
guint16 vendor, guint16 vendor,
@@ -116,7 +116,7 @@ struct _MMPluginClass {
/* Plugins need to provide a method to grab independent ports /* Plugins need to provide a method to grab independent ports
* identified by port probes (Optional) */ * identified by port probes (Optional) */
gboolean (*grab_port) (MMPlugin *plugin, gboolean (*grab_port) (MMPlugin *self,
MMBaseModem *modem, MMBaseModem *modem,
MMPortProbe *probe, MMPortProbe *probe,
GError **error); GError **error);
@@ -124,25 +124,25 @@ struct _MMPluginClass {
GType mm_plugin_get_type (void); GType mm_plugin_get_type (void);
const gchar *mm_plugin_get_name (MMPlugin *plugin); const gchar *mm_plugin_get_name (MMPlugin *self);
/* This method will run all pre-probing filters, to see if we can discard this /* This method will run all pre-probing filters, to see if we can discard this
* plugin from the probing logic as soon as possible. */ * plugin from the probing logic as soon as possible. */
MMPluginSupportsHint mm_plugin_discard_port_early (MMPlugin *plugin, MMPluginSupportsHint mm_plugin_discard_port_early (MMPlugin *self,
MMDevice *device, MMDevice *device,
MMKernelDevice *port); MMKernelDevice *port);
void mm_plugin_supports_port (MMPlugin *plugin, void mm_plugin_supports_port (MMPlugin *self,
MMDevice *device, MMDevice *device,
MMKernelDevice *port, MMKernelDevice *port,
GCancellable *cancellable, GCancellable *cancellable,
GAsyncReadyCallback callback, GAsyncReadyCallback callback,
gpointer user_data); gpointer user_data);
MMPluginSupportsResult mm_plugin_supports_port_finish (MMPlugin *plugin, MMPluginSupportsResult mm_plugin_supports_port_finish (MMPlugin *self,
GAsyncResult *result, GAsyncResult *result,
GError **error); GError **error);
MMBaseModem *mm_plugin_create_modem (MMPlugin *plugin, MMBaseModem *mm_plugin_create_modem (MMPlugin *self,
MMDevice *device, MMDevice *device,
GError **error); GError **error);