aboutsummaryrefslogtreecommitdiffstats
path: root/src/process.h
diff options
context:
space:
mode:
authorGlenn Morris2008-06-13 08:08:20 +0000
committerGlenn Morris2008-06-13 08:08:20 +0000
commitd888760c951787ccc3a48d7f90bc798ee0996b9b (patch)
tree1aabac1ac803d6d2e8614eef3dcf35874e5841de /src/process.h
parent07d99e7544ffa51339ae1ba1a3785f49247e0c6e (diff)
downloademacs-d888760c951787ccc3a48d7f90bc798ee0996b9b.tar.gz
emacs-d888760c951787ccc3a48d7f90bc798ee0996b9b.zip
Daniel Engeler <engeler at gmail.com>
These changes add serial port access. * process.c: Add HAVE_SERIAL. (Fdelete_process, Fprocess_status, Fset_process_buffer) (Fset_process_filter, Fset_process_sentinel, Fprocess_contact) (list_processes_1, select_wrapper, Fstop_process) (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes) (status_notify): Modify to handle serial processes. [HAVE_SERIAL] (Fserial_process_configure) [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process): New functions. * process.h (struct Lisp_Process): Add `type'. * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure): New functions. * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle serial ports. (serial_open, serial_configure) New functions. * w32.h: Add FILE_SERIAL. (struct _child_process): Add ovl_read, ovl_write.
Diffstat (limited to 'src/process.h')
-rw-r--r--src/process.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/process.h b/src/process.h
index 619eb2b5e67..29cf38a2a4f 100644
--- a/src/process.h
+++ b/src/process.h
@@ -51,11 +51,14 @@ struct Lisp_Process
51 Lisp_Object log; 51 Lisp_Object log;
52 /* Buffer that output is going to */ 52 /* Buffer that output is going to */
53 Lisp_Object buffer; 53 Lisp_Object buffer;
54 /* t if this is a real child process. 54 /* t if this is a real child process. For a network or serial
55 For a net connection, it is a plist based on the arguments to make-network-process. */ 55 connection, it is a plist based on the arguments to
56 make-network-process or make-serial-process. */
56 Lisp_Object childp; 57 Lisp_Object childp;
57 /* Plist for programs to keep per-process state information, parameters, etc. */ 58 /* Plist for programs to keep per-process state information, parameters, etc. */
58 Lisp_Object plist; 59 Lisp_Object plist;
60 /* Symbol indicating the type of process: real, network, serial */
61 Lisp_Object type;
59 /* Marker set to end of last buffer-inserted output from this process */ 62 /* Marker set to end of last buffer-inserted output from this process */
60 Lisp_Object mark; 63 Lisp_Object mark;
61 /* Symbol indicating status of process. 64 /* Symbol indicating status of process.
@@ -78,7 +81,8 @@ struct Lisp_Process
78 81
79 /* Number of this process. 82 /* Number of this process.
80 allocate_process assumes this is the first non-Lisp_Object field. 83 allocate_process assumes this is the first non-Lisp_Object field.
81 A value 0 is used for pseudo-processes such as network connections. */ 84 A value 0 is used for pseudo-processes such as network or serial
85 connections. */
82 pid_t pid; 86 pid_t pid;
83 /* Descriptor by which we read from this process */ 87 /* Descriptor by which we read from this process */
84 int infd; 88 int infd;