mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-22 20:35:43 +00:00
Add ResourceStateCallback similar in function to ClientStateCallback.
This commit is contained in:
parent
2fcb45eb5d
commit
b9cff1670f
3 changed files with 38 additions and 0 deletions
|
|
@ -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*/);
|
||||
|
|
|
|||
Loading…
Reference in a new issue