mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-24 14:30:43 -08:00
This change will be integrated but ignored (-ay) to the gg-epcore/union sources, so that they retain HopeNames. Copied from Perforce Change: 24911 ServerID: perforce.ravenbrook.com
41 lines
1.1 KiB
C
41 lines
1.1 KiB
C
/* impl.h.eventpro: Interface for event processing routines
|
|
* Copyright (c) 2001 Ravenbrook Limited.
|
|
*
|
|
* $Id$
|
|
*/
|
|
|
|
#ifndef eventpro_h
|
|
#define eventpro_h
|
|
|
|
#include "config.h"
|
|
/* override variety setting for EVENT */
|
|
#define EVENT
|
|
|
|
#include "eventcom.h"
|
|
#include "mpmtypes.h"
|
|
|
|
|
|
typedef struct EventProcStruct *EventProc;
|
|
typedef Res (*EventProcReader)(void *, void *, size_t);
|
|
|
|
|
|
extern EventCode EventName2Code(char *name);
|
|
extern char *EventCode2Name(EventCode code);
|
|
extern EventCode EventGetCode(Event event);
|
|
extern char *EventCode2Format(EventCode code);
|
|
extern Bool EventCodeIsValid(EventCode code);
|
|
|
|
extern Word AddrLabel(EventProc proc, Addr addr);
|
|
extern EventString LabelText(EventProc proc, Word label);
|
|
|
|
extern Res EventRead(Event *eventReturn, EventProc proc);
|
|
extern void EventDestroy(EventProc proc, Event event);
|
|
|
|
extern Res EventRecord(EventProc proc, Event event, Word etime);
|
|
|
|
extern Res EventProcCreate(EventProc *procReturn, Bool partial,
|
|
EventProcReader reader, void *readerP);
|
|
extern void EventProcDestroy(EventProc proc);
|
|
|
|
|
|
#endif /* eventpro_h */
|