diff options
author | Kaleb Keithley <kaleb@freedesktop.org> | 2003-11-17 19:04:09 +0000 |
---|---|---|
committer | Kaleb Keithley <kaleb@freedesktop.org> | 2003-11-17 19:04:09 +0000 |
commit | b17cee6189110ce86a0dc1e848dfa9b73f78c300 (patch) | |
tree | 02cb7504dab187ebcae1e7fbb0b002225dda2a73 /xtwatch.c | |
parent | c8ddd5d82a72167de6e0a544b55f9b03ab93053e (diff) |
merge XFree86 4.3.0.1 to -CURRENT
Diffstat (limited to 'xtwatch.c')
-rw-r--r-- | xtwatch.c | 35 |
1 files changed, 12 insertions, 23 deletions
@@ -23,40 +23,34 @@ Except as contained in this notice, the name of The Open Group shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. ******************************************************************************/ +/* $XFree86: xc/programs/xsm/xtwatch.c,v 1.5 2001/12/14 20:02:28 dawes Exp $ */ #include <X11/ICE/ICElib.h> #include <X11/Intrinsic.h> #include "xsm.h" +#include "xtwatch.h" -extern void CloseDownClient (); - +static void _XtIceWatchProc(IceConn ice_conn, IcePointer client_data, + Bool opening, IcePointer *watch_data ); +static void _XtProcessIceMsgProc(XtPointer client_data, int *source, + XtInputId *id); Status -InitWatchProcs (appContext) - -XtAppContext appContext; - +InitWatchProcs(XtAppContext appContext) { - void _XtIceWatchProc (); return (IceAddConnectionWatch (_XtIceWatchProc, (IcePointer) appContext)); } -void -_XtIceWatchProc (ice_conn, client_data, opening, watch_data) - -IceConn ice_conn; -IcePointer client_data; -Bool opening; -IcePointer *watch_data; - +static void +_XtIceWatchProc(IceConn ice_conn, IcePointer client_data, Bool opening, + IcePointer *watch_data) { if (opening) { XtAppContext appContext = (XtAppContext) client_data; - void _XtProcessIceMsgProc (); *watch_data = (IcePointer) XtAppAddInput ( appContext, @@ -72,13 +66,8 @@ IcePointer *watch_data; } -void -_XtProcessIceMsgProc (client_data, source, id) - -XtPointer client_data; -int *source; -XtInputId *id; - +static void +_XtProcessIceMsgProc(XtPointer client_data, int *source, XtInputId *id) { IceConn ice_conn = (IceConn) client_data; IceProcessMessagesStatus status; |