Fix zero_ext documentation
[deliverable/binutils-gdb.git] / gdb / serial.h
index 495b04d73164f131d4c38eaea7ad7a26a61dd205..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);
@@ -248,7 +255,6 @@ struct serial
     int timeout_remaining;     /* (ser-unix.c termio{,s} only), we
                                   still need to wait for this many
                                   more seconds.  */
-    char *name;                        /* The name of the device or host */
     struct serial *next;       /* Pointer to the next `struct serial *' */
     int debug_p;               /* Trace this serial devices operation.  */
     int async_state;           /* Async internal state.  */
This page took 0.024604 seconds and 4 git commands to generate.