port-probe: new type to define commands used during probing

The new `MMPortProbeAtCommand' type defines what command will be sent to the
serial AT port, and also a response processor method to parse the string
returned by the port.

The response processor gets as input either the text reply string or an error,
and it should give as output either a GValue (type depends on the probing kind
being done) or a new error (which will force the whole probing process to be
aborted.
This commit is contained in:
Aleksander Morgado
2012-03-15 14:14:20 +01:00
parent f7b1d99fa0
commit d7238403c4
2 changed files with 55 additions and 0 deletions
+1
View File
@@ -132,6 +132,7 @@ modem_manager_SOURCES = \
mm-modem-simple.h \
mm-port-probe.h \
mm-port-probe.c \
mm-port-probe-at-command.h \
mm-plugin.c \
mm-plugin.h \
mm-plugin-base.c \