|
Yet Another eXchange Tool
DO_NOT_EDIT_HERE
|
maps integers to data pointers More...
Go to the source code of this file.
Typedefs | |
| typedef struct Xt_handle_set_type_ * | Xt_handle_set_type |
Functions | |
| int | xt_handle_is_valid (Xt_handle_set_type hset, int handle) |
| Xt_handle_set_type | xt_handle_set_new (int cap) |
| void | xt_handle_set_delete (Xt_handle_set_type hset) |
| int | xt_handle_new (Xt_handle_set_type hset, void *p) |
| void | xt_handle_delete (Xt_handle_set_type hset, int handle) |
| void * | xt_handle2pointer (Xt_handle_set_type hset, int handle) |
maps integers to data pointers
contains utility routines for handle sets
Definition in file xt_handles.h.
| typedef struct Xt_handle_set_type_* Xt_handle_set_type |
Definition at line 61 of file xt_handles.h.
| void* xt_handle2pointer | ( | Xt_handle_set_type | hset, |
| int | handle | ||
| ) |
inquires about user pointer connected with handle
| [in] | hset | handle set |
| [in] | handle | handle |
Definition at line 77 of file xt_handles.c.
| void xt_handle_delete | ( | Xt_handle_set_type | hset, |
| int | handle | ||
| ) |
unregisters handle
| [in,out] | hset | handle set |
| [in] | handle | handle |
Definition at line 151 of file xt_handles.c.
| int xt_handle_is_valid | ( | Xt_handle_set_type | hset, |
| int | handle | ||
| ) |
checks if a given handle is valid within a handle set
| [in] | hset | handle set |
| [in] | handle | handle within handle set |
Definition at line 70 of file xt_handles.c.
| int xt_handle_new | ( | Xt_handle_set_type | hset, |
| void * | p | ||
| ) |
registers user pointer with a new handle
| [in,out] | hset | handle set |
| [in] | p | pointer to user data |
Definition at line 130 of file xt_handles.c.
| void xt_handle_set_delete | ( | Xt_handle_set_type | hset | ) |
destructor
| [in,out] | hset | handle set |
Definition at line 123 of file xt_handles.c.
| Xt_handle_set_type xt_handle_set_new | ( | int | cap | ) |
constructor for handle sets
| [in] | cap | start capacity (size of handle space) |
Definition at line 82 of file xt_handles.c.
1.8.13