summaryrefslogtreecommitdiff
path: root/include/resource.h
diff options
context:
space:
mode:
authorEamon Walsh <ewalsh@tycho.nsa.gov>2007-03-08 12:13:52 -0500
committerEamon Walsh <ewalsh@moss-uranus.epoch.ncsc.mil>2007-03-08 12:13:52 -0500
commitb9cff1670f29949a5bc41afc19aca443f434febb (patch)
tree40f8e4f398fa85f01ecf839cc3cf85cee66edcc8 /include/resource.h
parent2fcb45eb5dc1803b372df8b5765f6a43bea83611 (diff)
Add ResourceStateCallback similar in function to ClientStateCallback.
Diffstat (limited to 'include/resource.h')
-rw-r--r--include/resource.h13
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*/);