1 /* 2 3 Copyright 1988, 1998 The Open Group 4 5 Permission to use, copy, modify, distribute, and sell this software and its 6 documentation for any purpose is hereby granted without fee, provided that 7 the above copyright notice appear in all copies and that both that 8 copyright notice and this permission notice appear in supporting 9 documentation. 10 11 The above copyright notice and this permission notice shall be included in 12 all copies or substantial portions of the Software. 13 14 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17 OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 18 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 19 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 21 Except as contained in this notice, the name of The Open Group shall not be 22 used in advertising or otherwise to promote the sale, use or other dealings 23 in this Software without prior written authorization from The Open Group. 24 25 */ 26 27 /* 28 * The interfaces described by this header file are for miscellaneous utilities 29 * and are not part of the Xlib standard. 30 */ 31 32 #ifndef _XMU_ATOMS_H_ 33 #define _XMU_ATOMS_H_ 34 35 #include <X11/Intrinsic.h> 36 #include <X11/Xfuncproto.h> 37 38 typedef struct _AtomRec *AtomPtr; 39 40 extern AtomPtr 41 _XA_ATOM_PAIR, 42 _XA_CHARACTER_POSITION, 43 _XA_CLASS, 44 _XA_CLIENT_WINDOW, 45 _XA_CLIPBOARD, 46 _XA_COMPOUND_TEXT, 47 _XA_DECNET_ADDRESS, 48 _XA_DELETE, 49 _XA_FILENAME, 50 _XA_HOSTNAME, 51 _XA_IP_ADDRESS, 52 _XA_LENGTH, 53 _XA_LIST_LENGTH, 54 _XA_NAME, 55 _XA_NET_ADDRESS, 56 _XA_NULL, 57 _XA_OWNER_OS, 58 _XA_SPAN, 59 _XA_TARGETS, 60 _XA_TEXT, 61 _XA_TIMESTAMP, 62 _XA_USER, 63 _XA_UTF8_STRING; 64 65 #define XA_ATOM_PAIR(d) XmuInternAtom(d, _XA_ATOM_PAIR) 66 #define XA_CHARACTER_POSITION(d) XmuInternAtom(d, _XA_CHARACTER_POSITION) 67 #define XA_CLASS(d) XmuInternAtom(d, _XA_CLASS) 68 #define XA_CLIENT_WINDOW(d) XmuInternAtom(d, _XA_CLIENT_WINDOW) 69 #define XA_CLIPBOARD(d) XmuInternAtom(d, _XA_CLIPBOARD) 70 #define XA_COMPOUND_TEXT(d) XmuInternAtom(d, _XA_COMPOUND_TEXT) 71 #define XA_DECNET_ADDRESS(d) XmuInternAtom(d, _XA_DECNET_ADDRESS) 72 #define XA_DELETE(d) XmuInternAtom(d, _XA_DELETE) 73 #define XA_FILENAME(d) XmuInternAtom(d, _XA_FILENAME) 74 #define XA_HOSTNAME(d) XmuInternAtom(d, _XA_HOSTNAME) 75 #define XA_IP_ADDRESS(d) XmuInternAtom(d, _XA_IP_ADDRESS) 76 #define XA_LENGTH(d) XmuInternAtom(d, _XA_LENGTH) 77 #define XA_LIST_LENGTH(d) XmuInternAtom(d, _XA_LIST_LENGTH) 78 #define XA_NAME(d) XmuInternAtom(d, _XA_NAME) 79 #define XA_NET_ADDRESS(d) XmuInternAtom(d, _XA_NET_ADDRESS) 80 #define XA_NULL(d) XmuInternAtom(d, _XA_NULL) 81 #define XA_OWNER_OS(d) XmuInternAtom(d, _XA_OWNER_OS) 82 #define XA_SPAN(d) XmuInternAtom(d, _XA_SPAN) 83 #define XA_TARGETS(d) XmuInternAtom(d, _XA_TARGETS) 84 #define XA_TEXT(d) XmuInternAtom(d, _XA_TEXT) 85 #define XA_TIMESTAMP(d) XmuInternAtom(d, _XA_TIMESTAMP) 86 #define XA_USER(d) XmuInternAtom(d, _XA_USER) 87 #define XA_UTF8_STRING(d) XmuInternAtom(d, _XA_UTF8_STRING) 88 89 _XFUNCPROTOBEGIN 90 91 char *XmuGetAtomName 92 ( 93 Display *dpy, 94 Atom atom 95 ); 96 97 Atom XmuInternAtom 98 ( 99 Display *dpy, 100 AtomPtr atom_ptr 101 ); 102 103 void XmuInternStrings 104 ( 105 Display *dpy, 106 String *names, 107 Cardinal count, 108 Atom *atoms_return 109 ); 110 111 AtomPtr XmuMakeAtom 112 ( 113 _Xconst char *name 114 ); 115 116 char *XmuNameOfAtom 117 ( 118 AtomPtr atom_ptr 119 ); 120 121 _XFUNCPROTOEND 122 123 #endif /* _XMU_ATOMS_H_ */ 124