diff options
author | jim <empty> | 1989-09-25 16:08:45 +0000 |
---|---|---|
committer | jim <empty> | 1989-09-25 16:08:45 +0000 |
commit | 5686594de686acc0a90e4fcb7e860f0e703fc8d6 (patch) | |
tree | 1e608d02f478e757cc2ee570aee5a3d4a2379717 /xc/include | |
parent | e1323e86d8ee373bc82ba6f6a2164d6296df2334 (diff) |
add XextHasExtension macro
Diffstat (limited to 'xc/include')
-rw-r--r-- | xc/include/extensions/extutil.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/xc/include/extensions/extutil.h b/xc/include/extensions/extutil.h index 69fa18630..532b3c193 100644 --- a/xc/include/extensions/extutil.h +++ b/xc/include/extensions/extutil.h @@ -10,7 +10,16 @@ typedef struct _XExtDisplayInfo { caddr_t data; /* extra data for extension to use */ } XExtDisplayInfo; -extern XExtDisplayInfo *XextInitDisplay(); +typedef struct _XExtensionInfo { + XExtDisplayInfo *head; /* start of list */ + XExtDisplayInfo *cur; /* most recently used */ + int ndisplays; /* number of displays */ +} XExtensionInfo; + +extern XExtensionInfo *XextCreateExtension(); +extern void XextDestroyExtension(); +extern XExtDisplayInfo *XextAddDisplay(); +extern int XextRemoveDisplay(); extern XExtDisplayInfo *XextFindDisplay(); -extern int XextCloseDisplay(); +#define XextHasExtension(i) ((i) && ((i)->codes)) |