aboutsummaryrefslogtreecommitdiff
path: root/src/mm-port-probe.h
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2011-09-10 00:47:54 +0200
committerAleksander Morgado <aleksander@lanedo.com>2012-03-15 14:14:20 +0100
commit05f8493ee7baa43cb7ff1242eae4930fc85e6ee5 (patch)
tree8cd738f15ef4c91a2429e5d4d68f2853eae0ea0b /src/mm-port-probe.h
parent6816c2e61def241eb2a991a11c21da699b06b54f (diff)
port-probe: enable probing for Capabilities
Diffstat (limited to 'src/mm-port-probe.h')
-rw-r--r--src/mm-port-probe.h28
1 files changed, 26 insertions, 2 deletions
diff --git a/src/mm-port-probe.h b/src/mm-port-probe.h
index 127f2263..46b03bc6 100644
--- a/src/mm-port-probe.h
+++ b/src/mm-port-probe.h
@@ -31,7 +31,30 @@
#define MM_PORT_PROBE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), MM_TYPE_PORT_PROBE, MMPortProbeClass))
/* Flags to request port probing */
-#define MM_PORT_PROBE_AT 0x0001
+#define MM_PORT_PROBE_AT 0x0001
+#define MM_PORT_PROBE_AT_CAPABILITIES 0x0002
+
+/* Flags to report probed capabilities */
+#define MM_PORT_PROBE_CAPABILITY_GSM 0x0001 /* GSM */
+#define MM_PORT_PROBE_CAPABILITY_IS707_A 0x0002 /* CDMA Circuit Switched Data */
+#define MM_PORT_PROBE_CAPABILITY_IS707_P 0x0004 /* CDMA Packet Switched Data */
+#define MM_PORT_PROBE_CAPABILITY_DS 0x0008 /* Data compression selection (v.42bis) */
+#define MM_PORT_PROBE_CAPABILITY_ES 0x0010 /* Error control selection (v.42) */
+#define MM_PORT_PROBE_CAPABILITY_FCLASS 0x0020 /* Group III Fax */
+#define MM_PORT_PROBE_CAPABILITY_MS 0x0040 /* Modulation selection */
+#define MM_PORT_PROBE_CAPABILITY_W 0x0080 /* Wireless commands */
+#define MM_PORT_PROBE_CAPABILITY_IS856 0x0100 /* CDMA 3G EVDO rev 0 */
+#define MM_PORT_PROBE_CAPABILITY_IS856_A 0x0200 /* CDMA 3G EVDO rev A */
+
+#define MM_PORT_PROBE_CAPABILITY_CDMA \
+ (MM_PORT_PROBE_CAPABILITY_IS707_A | \
+ MM_PORT_PROBE_CAPABILITY_IS707_P | \
+ MM_PORT_PROBE_CAPABILITY_IS856 | \
+ MM_PORT_PROBE_CAPABILITY_IS856_A)
+
+#define MM_PORT_PROBE_CAPABILITY_GSM_OR_CDMA \
+ (MM_PORT_PROBE_CAPABILITY_CDMA | \
+ MM_PORT_PROBE_CAPABILITY_GSM)
typedef struct _MMPortProbe MMPortProbe;
typedef struct _MMPortProbeClass MMPortProbeClass;
@@ -70,7 +93,8 @@ gboolean mm_port_probe_run_finish (MMPortProbe *self,
gboolean mm_port_probe_run_cancel (MMPortProbe *self);
/* Probing result getters */
-gboolean mm_port_probe_is_at (MMPortProbe *self);
+gboolean mm_port_probe_is_at (MMPortProbe *self);
+guint32 mm_port_probe_get_capabilities (MMPortProbe *self);
#endif /* MM_PORT_PROBE_H */