diff options
Diffstat (limited to 'src/mm-port-probe.h')
-rw-r--r-- | src/mm-port-probe.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/mm-port-probe.h b/src/mm-port-probe.h index 820a7eb4..f3b9f905 100644 --- a/src/mm-port-probe.h +++ b/src/mm-port-probe.h @@ -24,6 +24,7 @@ #include "mm-private-boxed-types.h" #include "mm-port-probe-at.h" #include "mm-at-serial-port.h" +#include "mm-device.h" #define MM_TYPE_PORT_PROBE (mm_port_probe_get_type ()) #define MM_PORT_PROBE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MM_TYPE_PORT_PROBE, MMPortProbe)) @@ -45,7 +46,8 @@ typedef struct _MMPortProbe MMPortProbe; typedef struct _MMPortProbeClass MMPortProbeClass; typedef struct _MMPortProbePrivate MMPortProbePrivate; -#define MM_PORT_PROBE_PORT "port" +#define MM_PORT_PROBE_DEVICE "device" +#define MM_PORT_PROBE_PORT "port" struct _MMPortProbe { GObject parent; @@ -71,8 +73,11 @@ typedef gboolean (* MMPortProbeAtCustomInitFinish) (MMPortProbe *probe, GType mm_port_probe_get_type (void); -MMPortProbe *mm_port_probe_new (GUdevDevice *port); +MMPortProbe *mm_port_probe_new (MMDevice *device, + GUdevDevice *port); +MMDevice *mm_port_probe_peek_device (MMPortProbe *self); +MMDevice *mm_port_probe_get_device (MMPortProbe *self); GUdevDevice *mm_port_probe_peek_port (MMPortProbe *self); GUdevDevice *mm_port_probe_get_port (MMPortProbe *self); const gchar *mm_port_probe_get_port_name (MMPortProbe *self); |