Initial import of the CDE 2.1.30 sources from the Open Group.
This commit is contained in:
63
cde/lib/DtSvc/DtEncap/SbEvent.c
Normal file
63
cde/lib/DtSvc/DtEncap/SbEvent.c
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* File: SbEvent.c $XConsortium: SbEvent.c /main/3 1995/10/26 15:35:08 rswiston $
|
||||
* Language: C
|
||||
*
|
||||
* (c) Copyright 1990, Hewlett-Packard Company, all rights reserved.
|
||||
*
|
||||
* (c) Copyright 1993, 1994 Hewlett-Packard Company *
|
||||
* (c) Copyright 1993, 1994 International Business Machines Corp. *
|
||||
* (c) Copyright 1993, 1994 Sun Microsystems, Inc. *
|
||||
* (c) Copyright 1993, 1994 Novell, Inc. *
|
||||
*/
|
||||
|
||||
#define __need_fd_set
|
||||
|
||||
#include <bms/sbport.h> /* NOTE: sbport.h must be the first include. */
|
||||
#include <errno.h>
|
||||
|
||||
typedef char Boolean;
|
||||
#include <bms/XeUserMsg.h>
|
||||
|
||||
#ifdef _AIX
|
||||
/*
|
||||
* The AIX compiler gives an internal error if it includes
|
||||
* <bms/SbEvent.h>. The required typedefs were removed from
|
||||
* this header and placed within this file.
|
||||
*/
|
||||
typedef void (*SbInputCallbackProc) ();
|
||||
typedef unsigned long SbInputId;
|
||||
#else
|
||||
#include <bms/SbEvent.h>
|
||||
#endif
|
||||
|
||||
#include <sys/types.h> /* for fd_set, FD_SET macros, et. al. */
|
||||
|
||||
SbInputId (*SbAddInput_hookfn) (
|
||||
int fd,
|
||||
SbInputCallbackProc proc,
|
||||
void* data) = NULL;
|
||||
|
||||
SbInputId (*SbAddException_hookfn) (
|
||||
int fd,
|
||||
SbInputCallbackProc proc,
|
||||
void* data) = NULL;
|
||||
|
||||
void (*SbRemoveInput_hookfn) (
|
||||
SbInputId id) = NULL;
|
||||
|
||||
void (*SbRemoveException_hookfn) (
|
||||
SbInputId id) = NULL;
|
||||
|
||||
void (*SbMainLoopUntil_hookfn) (
|
||||
Boolean *flag) = NULL;
|
||||
|
||||
void (*SbBreakMainLoop_hookfn) (
|
||||
void) = NULL;
|
||||
|
||||
/* spcd calls this guy */
|
||||
|
||||
void XeCall_SbMainLoopUntil(Boolean *flag)
|
||||
{
|
||||
(*SbMainLoopUntil_hookfn)(flag);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user