core: new kernel device object instead of an explicit GUdevDevice
Instead of relying constantly on GUdevDevice objects reported by GUdev, we now use a new generic object (MMKernelDevice) for which we provide an initial GUdev based backend.
This commit is contained in:
@@ -20,12 +20,12 @@
|
||||
|
||||
#include <glib.h>
|
||||
#include <glib-object.h>
|
||||
#include <gudev/gudev.h>
|
||||
|
||||
#include "mm-base-modem.h"
|
||||
#include "mm-port.h"
|
||||
#include "mm-port-probe.h"
|
||||
#include "mm-device.h"
|
||||
#include "mm-kernel-device.h"
|
||||
|
||||
#define MM_PLUGIN_GENERIC_NAME "Generic"
|
||||
#define MM_PLUGIN_MAJOR_VERSION 4
|
||||
@@ -125,13 +125,13 @@ const gchar *mm_plugin_get_name (MMPlugin *plugin);
|
||||
|
||||
/* This method will run all pre-probing filters, to see if we can discard this
|
||||
* plugin from the probing logic as soon as possible. */
|
||||
MMPluginSupportsHint mm_plugin_discard_port_early (MMPlugin *plugin,
|
||||
MMDevice *device,
|
||||
GUdevDevice *port);
|
||||
MMPluginSupportsHint mm_plugin_discard_port_early (MMPlugin *plugin,
|
||||
MMDevice *device,
|
||||
MMKernelDevice *port);
|
||||
|
||||
void mm_plugin_supports_port (MMPlugin *plugin,
|
||||
MMDevice *device,
|
||||
GUdevDevice *port,
|
||||
MMKernelDevice *port,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
|
Reference in New Issue
Block a user