source: trunk/bindings/idl/handle.h @ 1822

Revision 975, 760 bytes checked in by Mark Koennecke, 4 years ago (diff)
  • First commit of the new IDL binding refs #100
  • Fixed napi5.c bug #98
  • Fixed unreported NX5putslab issue
Line 
1/*
2  This implements a handle management module. Sometimes it is useful to
3  protect the user of some software module from messing with complicated
4  datastructures. In such cases it is useful  to use an integer handle
5  which can be translated into a pointer when needed by the code implementing
6  the module. Such a scheme is implemented in this module.
7
8  Mark Koennecke, October 2000
9*/
10#ifndef HANDLEHANDLE
11#define HANDLEHANDLE
12
13/* The maximum number of handles. */
14#define MAXHANDLE 8192
15
16  int HHMakeHandle(void *pData);
17  void  *HHGetPointer(int handle);
18  void HHChangeHandle(void *pData, int currentHandle);
19  int HHRemoveHandle(int handle); 
20  int HHMakeLinkHandle(void *pData, int currentHandle); 
21  int HHCheckIfHandleExists(int check);
22#endif
23 
Note: See TracBrowser for help on using the repository browser.