diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2012-07-11 13:25:20 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-08-06 20:06:47 +0200 |
commit | ff8a962d990c53a0e901a96df4fc01211e4d1962 (patch) | |
tree | 3b84194c3d636ef6282d0d4bb1e446cf4f9af6c4 /src/mm-port-probe.h | |
parent | 1ca46cc0ec2fd407f3c70dcac11279dec4cc61d8 (diff) |
port-probe: let us peek the `MMDevice' owning the probe from the probe itself
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); |