aboutsummaryrefslogtreecommitdiff
path: root/src/mm-serial-port.h
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2010-02-21 11:22:16 -0800
committerDan Williams <dcbw@redhat.com>2010-02-21 11:22:16 -0800
commitf5d1a9b40038c4c81b361a089b0753d149b3107c (patch)
tree46db63ac947a83d995a7b1b5fb22fcee19e0e535 /src/mm-serial-port.h
parent2cdefeb6dafa9d8405ddd1247967ca6e3267b1a7 (diff)
serial: allow file descriptor configuration to be handled by subclasses
Diffstat (limited to 'src/mm-serial-port.h')
-rw-r--r--src/mm-serial-port.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mm-serial-port.h b/src/mm-serial-port.h
index c1d8b127..c07d70c8 100644
--- a/src/mm-serial-port.h
+++ b/src/mm-serial-port.h
@@ -75,6 +75,11 @@ struct _MMSerialPortClass {
GError *error,
GCallback callback,
gpointer callback_data);
+
+ /* Called to configure the serial port after it's opened. On error, should
+ * return FALSE and set 'error' as appropriate.
+ */
+ gboolean (*config_fd) (MMSerialPort *self, int fd, GError **error);
};
GType mm_serial_port_get_type (void);