source: golgotha/src/maxtool/sdk_inc/notify.h @ 80

Last change on this file since 80 was 80, checked in by Sam Hocevar, 12 years ago
  • Adding the Golgotha source code. Not sure what's going to be interesting in there, but since it's all public domain, there's certainly stuff to pick up.
  • Property svn:keywords set to Id
File size: 1.3 KB
Line 
1/**********************************************************************
2 *<
3        FILE: notify.h
4
5        DESCRIPTION: Include file for event notification support
6
7        CREATED BY: Tom Hudson
8
9        HISTORY: Created 8 April 1995
10
11 *>     Copyright (c) 1995, All Rights Reserved.
12 **********************************************************************/
13
14#ifndef _NOTIFY_H_
15
16#define _NOTIFY_H_
17
18// Pre-defined Jaguar system notification codes
19
20#define NOTIFY_UNITS_CHANGE                     0x00000001
21#define NOTIFY_TIMEUNITS_CHANGE         0x00000002
22#define NOTIFY_VIEWPORT_CHANGE          0x00000003
23#define NOTIFY_SPACEMODE_CHANGE         0x00000004
24
25// Notification information structure -- Passed to NOTIFYPROC to inform it what
26// it's being notified about...
27typedef struct {
28        int intcode;            // Zero if user code
29        } NotifyInfo;
30
31// The notification callback function
32typedef void (* NOTIFYPROC)(void *param, NotifyInfo *info);
33
34// Integer versions -- For pre-defined Jaguar codes
35int CoreExport RegisterNotification(NOTIFYPROC proc, void *param, int code);
36int CoreExport UnRegisterNotification(NOTIFYPROC proc, void *param, int code);
37void CoreExport BroadcastNotification(int code);
38
39// Unregister a callback from all codes
40int CoreExport UnRegisterNotification(NOTIFYPROC proc, void *param);
41
42#endif // _NOTIFY_H_
Note: See TracBrowser for help on using the repository browser.