From 554b987da7d9579b23a62c50f95b8305e1c5a72c Mon Sep 17 00:00:00 2001 From: Not Zed Date: Fri, 22 Nov 2002 22:28:49 +0000 Subject: Added an optional nspr pipe field. (e_msgport_new): Init nspr pipe to 2002-11-22 Not Zed * e-msgport.c (EMsgPort): Added an optional nspr pipe field. (e_msgport_new): Init nspr pipe to null. (e_msgport_destroy): close prfiledesc's if they're open. (e_msgport_prfd): get the prfiledesc to wait asynchronously on. (e_msgport_put): Write notify to nspr pipe if it exists. (e_msgport_wait): poll nspr pipe fd if it is set, and the pipe fd isn't. (e_msgport_get): skim off a notify byte on the pr pipe if set. (): Include config.h, and nspr stuff if HAVE_NSS is set. svn path=/trunk/; revision=18893 --- e-util/e-msgport.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'e-util/e-msgport.h') diff --git a/e-util/e-msgport.h b/e-util/e-msgport.h index 03dc514b07..6fc01efb14 100644 --- a/e-util/e-msgport.h +++ b/e-util/e-msgport.h @@ -43,6 +43,9 @@ void e_msgport_put(EMsgPort *mp, EMsg *msg); EMsg *e_msgport_wait(EMsgPort *mp); EMsg *e_msgport_get(EMsgPort *mp); void e_msgport_reply(EMsg *msg); +#ifdef HAVE_NSS +struct PRFileDesc *e_msgport_prfd(EMsgPort *mp); +#endif /* e threads, a server thread with a message based request-response, and flexible queuing */ typedef struct _EThread EThread; -- cgit v1.2.3