aboutsummaryrefslogtreecommitdiffstats
path: root/src/process.h
diff options
context:
space:
mode:
authorKenichi Handa2012-08-22 18:05:50 +0900
committerKenichi Handa2012-08-22 18:05:50 +0900
commitfabc1281e9cde34ff9a19d843316d2ceca8647ad (patch)
treef38f13cab3ec6c32ab8ab49ea2e60f64969a0d22 /src/process.h
parent4ff819d728960bf5e52b72501c606f4bb3fde028 (diff)
parent842e3a93aa3a0826cb4148376e54cd1527d10901 (diff)
downloademacs-fabc1281e9cde34ff9a19d843316d2ceca8647ad.tar.gz
emacs-fabc1281e9cde34ff9a19d843316d2ceca8647ad.zip
merge trunk
Diffstat (limited to 'src/process.h')
-rw-r--r--src/process.h27
1 files changed, 23 insertions, 4 deletions
diff --git a/src/process.h b/src/process.h
index 43cc7ea33c0..55a572117c6 100644
--- a/src/process.h
+++ b/src/process.h
@@ -26,10 +26,10 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
26#include "gnutls.h" 26#include "gnutls.h"
27#endif 27#endif
28 28
29/* Most code should use these macros to set 29INLINE_HEADER_BEGIN
30 Lisp fields in struct Lisp_Process. */ 30#ifndef PROCESS_INLINE
31 31# define PROCESS_INLINE INLINE
32#define PSET(p, field, value) ((p)->field = (value)) 32#endif
33 33
34/* This structure records information about a subprocess 34/* This structure records information about a subprocess
35 or network connection. */ 35 or network connection. */
@@ -165,6 +165,23 @@ struct Lisp_Process
165 165
166#define ChannelMask(n) (1 << (n)) 166#define ChannelMask(n) (1 << (n))
167 167
168/* Most code should use these functions to set Lisp fields in struct
169 process. */
170
171PROCESS_INLINE void
172pset_childp (struct Lisp_Process *p, Lisp_Object val)
173{
174 p->childp = val;
175}
176
177#ifdef HAVE_GNUTLS
178PROCESS_INLINE void
179pset_gnutls_cred_type (struct Lisp_Process *p, Lisp_Object val)
180{
181 p->gnutls_cred_type = val;
182}
183#endif
184
168/* True if we are about to fork off a synchronous process or if we 185/* True if we are about to fork off a synchronous process or if we
169 are waiting for it. */ 186 are waiting for it. */
170extern int synch_process_alive; 187extern int synch_process_alive;
@@ -208,3 +225,5 @@ extern void add_read_fd (int fd, fd_callback func, void *data);
208extern void delete_read_fd (int fd); 225extern void delete_read_fd (int fd);
209extern void add_write_fd (int fd, fd_callback func, void *data); 226extern void add_write_fd (int fd, fd_callback func, void *data);
210extern void delete_write_fd (int fd); 227extern void delete_write_fd (int fd);
228
229INLINE_HEADER_END