aboutsummaryrefslogtreecommitdiffstats
path: root/src/process.h
diff options
context:
space:
mode:
authorKenichi Handa2010-09-27 14:42:43 +0900
committerKenichi Handa2010-09-27 14:42:43 +0900
commitb3253cd4b4bcbe1ab4ad1fdc98b30c33af70332c (patch)
tree4d55005558f96dfb44bfcd746098ed0882aff2d0 /src/process.h
parent4be9765d4bad14d68cdfee2a2c6afe1001d9516a (diff)
parente5fa38990bca723fc3ef1d0ede792e8ff84b84f7 (diff)
downloademacs-b3253cd4b4bcbe1ab4ad1fdc98b30c33af70332c.tar.gz
emacs-b3253cd4b4bcbe1ab4ad1fdc98b30c33af70332c.zip
merge trunk
Diffstat (limited to 'src/process.h')
-rw-r--r--src/process.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/process.h b/src/process.h
index 35b01aba6a4..d6e842cfbbc 100644
--- a/src/process.h
+++ b/src/process.h
@@ -24,6 +24,10 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
24#include <unistd.h> 24#include <unistd.h>
25#endif 25#endif
26 26
27#ifdef HAVE_GNUTLS
28#include "gnutls.h"
29#endif
30
27/* This structure records information about a subprocess 31/* This structure records information about a subprocess
28 or network connection. 32 or network connection.
29 33
@@ -76,6 +80,10 @@ struct Lisp_Process
76 /* Working buffer for encoding. */ 80 /* Working buffer for encoding. */
77 Lisp_Object encoding_buf; 81 Lisp_Object encoding_buf;
78 82
83#ifdef HAVE_GNUTLS
84 Lisp_Object gnutls_cred_type;
85#endif
86
79 /* After this point, there are no Lisp_Objects any more. */ 87 /* After this point, there are no Lisp_Objects any more. */
80 /* alloc.c assumes that `pid' is the first such non-Lisp slot. */ 88 /* alloc.c assumes that `pid' is the first such non-Lisp slot. */
81 89
@@ -121,6 +129,13 @@ struct Lisp_Process
121 needs to be synced to `status'. */ 129 needs to be synced to `status'. */
122 unsigned int raw_status_new : 1; 130 unsigned int raw_status_new : 1;
123 int raw_status; 131 int raw_status;
132
133#ifdef HAVE_GNUTLS
134 gnutls_initstage_t gnutls_initstage;
135 gnutls_session_t gnutls_state;
136 gnutls_certificate_client_credentials x509_cred;
137 gnutls_anon_client_credentials_t anon_cred;
138#endif
124}; 139};
125 140
126/* Every field in the preceding structure except for the first two 141/* Every field in the preceding structure except for the first two
@@ -177,5 +192,12 @@ extern void hold_keyboard_input (void);
177extern void unhold_keyboard_input (void); 192extern void unhold_keyboard_input (void);
178extern int kbd_on_hold_p (void); 193extern int kbd_on_hold_p (void);
179 194
195typedef void (*fd_callback)(int fd, void *data, int for_read);
196
197extern void add_read_fd (int fd, fd_callback func, void *data);
198extern void delete_read_fd (int fd);
199extern void add_write_fd (int fd, fd_callback func, void *data);
200extern void delete_write_fd (int fd);
201
180/* arch-tag: dffedfc4-d7bc-4b58-a26f-c16155449c72 202/* arch-tag: dffedfc4-d7bc-4b58-a26f-c16155449c72
181 (do not change this comment) */ 203 (do not change this comment) */