aboutsummaryrefslogtreecommitdiffstats
path: root/src/process.h
diff options
context:
space:
mode:
authorStefan Monnier2010-09-30 01:28:20 +0200
committerStefan Monnier2010-09-30 01:28:20 +0200
commita01a7932080e8a6e7bc8472c58cefabcc2c37df3 (patch)
tree94b28b19c8f1536e76ffe7d5826811b74a79e3a5 /src/process.h
parentcc390e46c7ba95b76ea133d98fd386214cd01709 (diff)
parent6b0f7311f16646e0de2045b2410e20921901c616 (diff)
downloademacs-a01a7932080e8a6e7bc8472c58cefabcc2c37df3.tar.gz
emacs-a01a7932080e8a6e7bc8472c58cefabcc2c37df3.zip
Merge from trunk
Diffstat (limited to 'src/process.h')
-rw-r--r--src/process.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/process.h b/src/process.h
index 35b01aba6a4..0350e95310d 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,15 @@ 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 gnutls_x509_cred;
137 gnutls_anon_client_credentials_t gnutls_anon_cred;
138 int gnutls_log_level;
139 int gnutls_p;
140#endif
124}; 141};
125 142
126/* Every field in the preceding structure except for the first two 143/* Every field in the preceding structure except for the first two
@@ -177,5 +194,12 @@ extern void hold_keyboard_input (void);
177extern void unhold_keyboard_input (void); 194extern void unhold_keyboard_input (void);
178extern int kbd_on_hold_p (void); 195extern int kbd_on_hold_p (void);
179 196
197typedef void (*fd_callback)(int fd, void *data, int for_read);
198
199extern void add_read_fd (int fd, fd_callback func, void *data);
200extern void delete_read_fd (int fd);
201extern void add_write_fd (int fd, fd_callback func, void *data);
202extern void delete_write_fd (int fd);
203
180/* arch-tag: dffedfc4-d7bc-4b58-a26f-c16155449c72 204/* arch-tag: dffedfc4-d7bc-4b58-a26f-c16155449c72
181 (do not change this comment) */ 205 (do not change this comment) */