Add ResourceStateCallback similar in function to ClientStateCallback.

This commit is contained in:
Eamon Walsh
2007-03-08 12:13:52 -05:00
committed by Eamon Walsh
parent 2fcb45eb5d
commit b9cff1670f
3 changed files with 38 additions and 0 deletions

View File

@@ -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*/);