comparison src/structs.h @ 8165:973686665238 v7.4.1376

commit https://github.com/vim/vim/commit/b6b5252bcde68b296858bc090cb424493635dfec Author: Bram Moolenaar <Bram@vim.org> Date: Sat Feb 20 23:30:07 2016 +0100 patch 7.4.1376 Problem: ch_setoptions() cannot set all options. Solution: Support more options.
author Christian Brabandt <cb@256bit.org>
date Sat, 20 Feb 2016 23:45:04 +0100
parents d8a8e86f39ad
children a0ffb1f3dedc
comparison
equal deleted inserted replaced
8164:9a197f537595 8165:973686665238
1371 * reference. */ 1371 * reference. */
1372 1372
1373 int ch_refcount; /* reference count */ 1373 int ch_refcount; /* reference count */
1374 }; 1374 };
1375 1375
1376 #define JO_MODE 1 /* all modes */ 1376 #define JO_MODE 0x0001 /* channel mode */
1377 #define JO_CALLBACK 2 /* channel callback */ 1377 #define JO_IN_MODE 0x0002 /* stdin mode */
1378 #define JO_WAITTIME 4 /* only for ch_open() */ 1378 #define JO_OUT_MODE 0x0004 /* stdout mode */
1379 #define JO_TIMEOUT 8 /* all timeouts */ 1379 #define JO_ERR_MODE 0x0008 /* stderr mode */
1380 #define JO_PART 16 /* "part" */ 1380 #define JO_CALLBACK 0x0010 /* channel callback */
1381 #define JO_ID 32 /* "id" */ 1381 #define JO_OUT_CALLBACK 0x0020 /* stdout callback */
1382 #define JO_ERR_CALLBACK 0x0040 /* stderr callback */
1383 #define JO_WAITTIME 0x0080 /* only for ch_open() */
1384 #define JO_TIMEOUT 0x0100 /* all timeouts */
1385 #define JO_OUT_TIMEOUT 0x0200 /* stdout timeouts */
1386 #define JO_ERR_TIMEOUT 0x0400 /* stderr timeouts */
1387 #define JO_PART 0x0800 /* "part" */
1388 #define JO_ID 0x1000 /* "id" */
1382 #define JO_ALL 0xffffff 1389 #define JO_ALL 0xffffff
1383 1390
1391 #define JO_MODE_ALL (JO_MODE + JO_IN_MODE + JO_OUT_MODE + JO_ERR_MODE)
1392 #define JO_CB_ALL (JO_CALLBACK + JO_OUT_CALLBACK + JO_ERR_CALLBACK)
1393 #define JO_TIMEOUT_ALL (JO_TIMEOUT + JO_OUT_TIMEOUT + JO_ERR_TIMEOUT)
1394
1384 /* 1395 /*
1385 * Options for job and channel commands. 1396 * Options for job and channel commands.
1386 */ 1397 */
1387 typedef struct 1398 typedef struct
1388 { 1399 {
1389 int jo_set; /* JO_ bits for values that were set */ 1400 int jo_set; /* JO_ bits for values that were set */
1390 1401
1391 ch_mode_T jo_mode; 1402 ch_mode_T jo_mode;
1403 ch_mode_T jo_in_mode;
1404 ch_mode_T jo_out_mode;
1405 ch_mode_T jo_err_mode;
1392 char_u *jo_callback; /* not allocated! */ 1406 char_u *jo_callback; /* not allocated! */
1407 char_u *jo_out_cb; /* not allocated! */
1408 char_u *jo_err_cb; /* not allocated! */
1393 int jo_waittime; 1409 int jo_waittime;
1394 int jo_timeout; 1410 int jo_timeout;
1411 int jo_out_timeout;
1412 int jo_err_timeout;
1395 int jo_part; 1413 int jo_part;
1396 int jo_id; 1414 int jo_id;
1397 } jobopt_T; 1415 } jobopt_T;
1398 1416
1399 1417