base: disable the modem if up to N consecutive commands get timed out

This feature is initially disabled for all modems, but plugins can enable it by
setting a value greater than 0 for the "max-timeouts" property when creating the
modem object.
This commit is contained in:
Aleksander Morgado
2011-06-06 17:20:17 +02:00
parent f2ba435446
commit 22f15b87b5
4 changed files with 111 additions and 4 deletions
+2
View File
@@ -35,6 +35,8 @@
typedef struct _MMModemBase MMModemBase;
typedef struct _MMModemBaseClass MMModemBaseClass;
#define MM_MODEM_BASE_MAX_TIMEOUTS "max-timeouts"
struct _MMModemBase {
GObject parent;
};