Introduce a serial interface for select'able events
[deliverable/binutils-gdb.git] / gdb / serial.h
index b339f6627829ca1882cc98adf8cc1e098be653eb..10b06434198c15d9a7cca00f9eeece705d45c716 100644 (file)
@@ -34,6 +34,9 @@ struct ui_file;
 
 typedef void *serial_ttystate;
 struct serial;
+struct serial_ops;
+
+/* Create a new serial for OPS.  The new serial is not opened.  */
 
 /* Try to open NAME.  Returns a new `struct serial *' on success, NULL
    on failure.  The new serial object has a reference count of 1.
@@ -44,6 +47,10 @@ struct serial;
 
 extern struct serial *serial_open (const char *name);
 
+/* Open a new serial stream using OPS.  */
+
+extern struct serial *serial_open_ops (const struct serial_ops *ops);
+
 /* Returns true if SCB is open.  */
 
 extern int serial_is_open (struct serial *scb);
This page took 0.023139 seconds and 4 git commands to generate.