diff options
author | Eamon Walsh <ewalsh@tycho.nsa.gov> | 2007-03-08 12:13:52 -0500 |
---|---|---|
committer | Eamon Walsh <ewalsh@moss-uranus.epoch.ncsc.mil> | 2007-03-08 12:13:52 -0500 |
commit | b9cff1670f29949a5bc41afc19aca443f434febb (patch) | |
tree | 40f8e4f398fa85f01ecf839cc3cf85cee66edcc8 /include/resource.h | |
parent | 2fcb45eb5dc1803b372df8b5765f6a43bea83611 (diff) |
Add ResourceStateCallback similar in function to ClientStateCallback.
Diffstat (limited to 'include/resource.h')
-rw-r--r-- | include/resource.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/resource.h b/include/resource.h index 3231e8cd9..9949dd2fc 100644 --- a/include/resource.h +++ b/include/resource.h @@ -120,6 +120,19 @@ typedef unsigned long RESTYPE; #define BAD_RESOURCE 0xe0000000 +/* Resource state callback */ +extern CallbackListPtr ResourceStateCallback; + +typedef enum {ResourceStateAdding, + ResourceStateFreeing} ResourceState; + +typedef struct { + ResourceState state; + XID id; + RESTYPE type; + pointer value; +} ResourceStateInfoRec; + typedef int (*DeleteType)( pointer /*value*/, XID /*id*/); |