diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2013-02-18 12:56:24 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2013-02-18 13:47:35 +0100 |
commit | be37f41f06af74280edd3e412c42e2357c180925 (patch) | |
tree | 93c48c3c7d156a43584c3f978f1476ceb0b884f8 /src/mm-serial-port.h | |
parent | 30639606d35dcc323cb13a29b6e0627aad87dd8d (diff) |
at-serial-port: new properties to define and manage a set of init commands
We are now able to specify a list of AT commands to be run whenever the port is
opened for the first time (i.e. open_count from 0 to 1). These commands are
to be treated as a 'port initialization' sequence, where port-configuration
specific AT commands are defined (e.g. ATE0).
Diffstat (limited to 'src/mm-serial-port.h')
-rw-r--r-- | src/mm-serial-port.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mm-serial-port.h b/src/mm-serial-port.h index 31cd5a78..27ebc254 100644 --- a/src/mm-serial-port.h +++ b/src/mm-serial-port.h @@ -87,11 +87,15 @@ struct _MMSerialPortClass { GCallback callback, gpointer callback_data); - /* Called to configure the serial port after it's opened. On error, should + /* Called to configure the serial port fd after it's opened. On error, should * return FALSE and set 'error' as appropriate. */ gboolean (*config_fd) (MMSerialPort *self, int fd, GError **error); + /* Called to configure the serial port after it's opened. Errors, if any, + * should get ignored. */ + void (*config) (MMSerialPort *self); + void (*debug_log) (MMSerialPort *self, const char *prefix, const char *buf, |