diff options
| author | Kenichi Handa | 2012-08-22 18:05:50 +0900 |
|---|---|---|
| committer | Kenichi Handa | 2012-08-22 18:05:50 +0900 |
| commit | fabc1281e9cde34ff9a19d843316d2ceca8647ad (patch) | |
| tree | f38f13cab3ec6c32ab8ab49ea2e60f64969a0d22 /src/process.h | |
| parent | 4ff819d728960bf5e52b72501c606f4bb3fde028 (diff) | |
| parent | 842e3a93aa3a0826cb4148376e54cd1527d10901 (diff) | |
| download | emacs-fabc1281e9cde34ff9a19d843316d2ceca8647ad.tar.gz emacs-fabc1281e9cde34ff9a19d843316d2ceca8647ad.zip | |
merge trunk
Diffstat (limited to 'src/process.h')
| -rw-r--r-- | src/process.h | 27 |
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 | 29 | INLINE_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 | |||
| 171 | PROCESS_INLINE void | ||
| 172 | pset_childp (struct Lisp_Process *p, Lisp_Object val) | ||
| 173 | { | ||
| 174 | p->childp = val; | ||
| 175 | } | ||
| 176 | |||
| 177 | #ifdef HAVE_GNUTLS | ||
| 178 | PROCESS_INLINE void | ||
| 179 | pset_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. */ |
| 170 | extern int synch_process_alive; | 187 | extern int synch_process_alive; |
| @@ -208,3 +225,5 @@ extern void add_read_fd (int fd, fd_callback func, void *data); | |||
| 208 | extern void delete_read_fd (int fd); | 225 | extern void delete_read_fd (int fd); |
| 209 | extern void add_write_fd (int fd, fd_callback func, void *data); | 226 | extern void add_write_fd (int fd, fd_callback func, void *data); |
| 210 | extern void delete_write_fd (int fd); | 227 | extern void delete_write_fd (int fd); |
| 228 | |||
| 229 | INLINE_HEADER_END | ||