From 50ea91976b2357974d276d242a57aab8592cb7f0 Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Fri, 20 Jun 1997 16:25:00 +0000 Subject: [PATCH] Mods for user mainloop event handling --- Mac/Include/macglue.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Mac/Include/macglue.h b/Mac/Include/macglue.h index 4d52fe689e1..7986071dc4e 100644 --- a/Mac/Include/macglue.h +++ b/Mac/Include/macglue.h @@ -71,12 +71,13 @@ extern int PyMac_GetArgv Py_PROTO((char ***, int)); /* Get argc, argv (from maca extern PyObject *PyMac_OSErrException; /* Exception for OSErr */ PyObject *PyMac_GetOSErrException(void); /* Initialize & return it */ -void PyMac_Yield Py_PROTO((void)); /* optional idle routine for mainloop */ void PyMac_GetSchedParams Py_PROTO((PyMacSchedParams *)); /* Get schedulers params */ void PyMac_SetSchedParams Py_PROTO((PyMacSchedParams *)); /* Set schedulers params */ PyObject *PyErr_Mac(PyObject *, int); /* Exception with a mac error */ PyObject *PyMac_Error(OSErr); /* Uses PyMac_GetOSErrException */ -void PyMac_HandleEvent Py_PROTO((EventRecord *, int)); /* Handle one event, if possible */ +int PyMac_HandleEvent Py_PROTO((EventRecord *)); /* Handle one event, possibly in Python */ +void PyMac_HandleEventIntern Py_PROTO((EventRecord *)); /* Handle one event internal only */ +int PyMac_SetEventHandler Py_PROTO((PyObject *)); /* set python-coded event handler */ void PyMac_InitMenuBar(void); /* Setup menu bar as we want it */ void PyMac_RestoreMenuBar(void); /* Restore menu bar for ease of exiting */