aboutsummaryrefslogtreecommitdiff
path: root/src/mm-port.h
diff options
context:
space:
mode:
authorAleksander Morgado <aleksandermj@chromium.org>2022-12-15 21:09:30 +0000
committerAleksander Morgado <aleksandermj@chromium.org>2022-12-18 21:52:51 +0000
commit455c4860915b194c654abb6cd49bcbb483ec650b (patch)
tree4ca9912163d96e179a8217bce576ef0d1b3cc0b8 /src/mm-port.h
parent2a1851536c3c096ab4e3f26ebe6671b946e665be (diff)
port: define new generic 'removed' signal
This signal indicates that the port is no longer accessible. Unlike a udev port removal event, this indication may happen even if the port is still exposed by the system. It is designed to detect protocol proxy crashes, and so when such event is detected by the modem, a full reprobe of the device will be done to start from scratch the protocol management operations.
Diffstat (limited to 'src/mm-port.h')
-rw-r--r--src/mm-port.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mm-port.h b/src/mm-port.h
index 75e749eb..e0cca85c 100644
--- a/src/mm-port.h
+++ b/src/mm-port.h
@@ -61,6 +61,7 @@ typedef enum { /*< underscore_name=mm_port_type >*/
#define MM_PORT_KERNEL_DEVICE "kernel-device"
#define MM_PORT_SIGNAL_TIMED_OUT "timed-out"
+#define MM_PORT_SIGNAL_REMOVED "removed"
typedef struct _MMPort MMPort;
typedef struct _MMPortClass MMPortClass;
@@ -76,6 +77,7 @@ struct _MMPortClass {
/* signals */
void (* timed_out) (MMPort *port, guint n_consecutive_replies);
+ void (* removed) (MMPort *port);
};
GType mm_port_get_type (void);