diff options
Diffstat (limited to 'jim-eventloop.h')
-rw-r--r-- | jim-eventloop.h | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/jim-eventloop.h b/jim-eventloop.h index 52ec4e8..3e20e6f 100644 --- a/jim-eventloop.h +++ b/jim-eventloop.h @@ -36,20 +36,18 @@ * are those of the authors and should not be interpreted as representing * official policies, either expressed or implied, of the Jim Tcl Project. **/ + /* ------ USAGE ------- - * - * In order to use this file from other extensions include it in every - * file where you need to call the eventloop API, also in the init - * function of your extension call Jim_ImportEventloopAPI(interp) - * after the Jim_InitExtension() call. - * - * See the UDP extension as example. + * See jim-aio.c as an example of an event provider. */ - #ifndef __JIM_EVENTLOOP_H__ #define __JIM_EVENTLOOP_H__ +#ifdef __cplusplus +extern "C" { +#endif + #include <stdio.h> typedef int Jim_FileProc(Jim_Interp *interp, void *clientData, int mask); @@ -84,4 +82,8 @@ JIM_EXPORT int Jim_EvalObjBackground (Jim_Interp *interp, Jim_Obj *scriptObjPtr) int Jim_eventloopInit(Jim_Interp *interp); +#ifdef __cplusplus +} +#endif + #endif /* __JIM_EVENTLOOP_H__ */ |