comparison src/events.h @ 371:cc15677e0335 r21-2b1

Import from CVS: tag r21-2b1
author cvs
date Mon, 13 Aug 2007 11:03:08 +0200
parents a4f53d9b3154
children 8626e4521993
comparison
equal deleted inserted replaced
370:bd866891f083 371:cc15677e0335
271 Since there are many possible processes/event loop combinations, the event code 271 Since there are many possible processes/event loop combinations, the event code
272 is responsible for creating an appropriare lstream type. The process 272 is responsible for creating an appropriare lstream type. The process
273 implementation does not care about that implementation. 273 implementation does not care about that implementation.
274 274
275 The Create stream pair function is passed two void* values, which identify 275 The Create stream pair function is passed two void* values, which identify
276 process-dependent 'handles'. The process implementation uses these handles 276 process-dependant 'handles'. The process implementation uses these handles
277 to communicate with child processes. The function must be prepared to receive 277 to communicate with child processes. The function must be prepared to receive
278 handle types of any process implementation. Since there only one process 278 handle types of any process implementation. Since there only one process
279 implementation exists in a particular XEmacs configuration, preprocessing 279 implementation exists in a particular XEmacs configuration, preprocessing
280 is a mean of compiling in the support for the code which deals with particular 280 is a mean of compiling in the support for the code which deals with particular
281 handle types. 281 handle types.
291 291
292 The handle given may have special denying value, in which case the 292 The handle given may have special denying value, in which case the
293 corresponding lstream should not be created. 293 corresponding lstream should not be created.
294 294
295 The return value of the function is a unique stream identifier. It is used 295 The return value of the function is a unique stream identifier. It is used
296 by processes implementation, in its platform-independent part. There is 296 by processes implementation, in its platform-independant part. There is
297 the get_process_from_usid function, which returns process object given its 297 the get_process_from_usid function, which returns process object given its
298 USID. The event stream is responsible for converting its internal handle 298 USID. The event stream is responsible for converting its internal handle
299 type into USID. 299 type into USID.
300 300
301 Example is the TTY event stream. When a file descriptor signals input, the 301 Example is the TTY event stream. When a file descriptor signals input, the