aboutsummaryrefslogtreecommitdiff
path: root/src/mm-port.h
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2022-06-30 00:25:31 +0200
committerAleksander Morgado <aleksander@aleksander.es>2022-06-30 01:08:15 +0200
commit8387629a8c6a276df498d0555996f39d11d44acf (patch)
tree4f80df50f90893bef8a0929317500e8b8e1f0dfe /src/mm-port.h
parenta2195babf2765cc21a943eea6d52a7902db37e8f (diff)
port: make 'timed-out' a signal for all port types, not just serial
Diffstat (limited to 'src/mm-port.h')
-rw-r--r--src/mm-port.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mm-port.h b/src/mm-port.h
index b5d58706..75e749eb 100644
--- a/src/mm-port.h
+++ b/src/mm-port.h
@@ -60,6 +60,8 @@ typedef enum { /*< underscore_name=mm_port_type >*/
#define MM_PORT_CONNECTED "connected"
#define MM_PORT_KERNEL_DEVICE "kernel-device"
+#define MM_PORT_SIGNAL_TIMED_OUT "timed-out"
+
typedef struct _MMPort MMPort;
typedef struct _MMPortClass MMPortClass;
typedef struct _MMPortPrivate MMPortPrivate;
@@ -71,6 +73,9 @@ struct _MMPort {
struct _MMPortClass {
GObjectClass parent;
+
+ /* signals */
+ void (* timed_out) (MMPort *port, guint n_consecutive_replies);
};
GType mm_port_get_type (void);