X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fserial.h;h=10b06434198c15d9a7cca00f9eeece705d45c716;hb=45e3745ed0e034fdec5beee0738f383bd6e2e045;hp=495b04d73164f131d4c38eaea7ad7a26a61dd205;hpb=618f726fcb851883a0094aa7fa17003889b7189f;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/serial.h b/gdb/serial.h index 495b04d731..10b0643419 100644 --- a/gdb/serial.h +++ b/gdb/serial.h @@ -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. */