1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-01 18:00:40 -08:00
emacs/mps/code/eventpro.h
Richard Brooksby 3d5e2ca85f Adding hopenames back into the master sources, so that they can be included in the union sources along with the id keywords.
This was achieved by partially undoing changelist 24817, including an accidental corruption of eventgen.pl.

Copied from Perforce
 Change: 24877
 ServerID: perforce.ravenbrook.com
2001-12-06 18:14:02 +00:00

42 lines
1.1 KiB
C

/* impl.h.eventpro: Interface for event processing routines
* Copyright (c) 2001 Ravenbrook Limited.
*
* $Id$
* $HopeName: MMsrc!eventpro.h(trunk.4) $
*/
#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 */