Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:14:26

0001 /*
0002 
0003 Copyright 1988, 1998  The Open Group
0004 
0005 Permission to use, copy, modify, distribute, and sell this software and its
0006 documentation for any purpose is hereby granted without fee, provided that
0007 the above copyright notice appear in all copies and that both that
0008 copyright notice and this permission notice appear in supporting
0009 documentation.
0010 
0011 The above copyright notice and this permission notice shall be included in
0012 all copies or substantial portions of the Software.
0013 
0014 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
0015 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
0016 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
0017 OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
0018 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
0019 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
0020 
0021 Except as contained in this notice, the name of The Open Group shall not be
0022 used in advertising or otherwise to promote the sale, use or other dealings
0023 in this Software without prior written authorization from The Open Group.
0024 
0025 */
0026 
0027 /*
0028  * The interfaces described by this header file are for miscellaneous utilities
0029  * and are not part of the Xlib standard.
0030  */
0031 
0032 #ifndef _XMU_ATOMS_H_
0033 #define _XMU_ATOMS_H_
0034 
0035 #include <X11/Intrinsic.h>
0036 #include <X11/Xfuncproto.h>
0037 
0038 typedef struct _AtomRec *AtomPtr;
0039 
0040 extern AtomPtr
0041     _XA_ATOM_PAIR,
0042     _XA_CHARACTER_POSITION,
0043     _XA_CLASS,
0044     _XA_CLIENT_WINDOW,
0045     _XA_CLIPBOARD,
0046     _XA_COMPOUND_TEXT,
0047     _XA_DECNET_ADDRESS,
0048     _XA_DELETE,
0049     _XA_FILENAME,
0050     _XA_HOSTNAME,
0051     _XA_IP_ADDRESS,
0052     _XA_LENGTH,
0053     _XA_LIST_LENGTH,
0054     _XA_NAME,
0055     _XA_NET_ADDRESS,
0056     _XA_NULL,
0057     _XA_OWNER_OS,
0058     _XA_SPAN,
0059     _XA_TARGETS,
0060     _XA_TEXT,
0061     _XA_TIMESTAMP,
0062     _XA_USER,
0063     _XA_UTF8_STRING;
0064 
0065 #define XA_ATOM_PAIR(d)     XmuInternAtom(d, _XA_ATOM_PAIR)
0066 #define XA_CHARACTER_POSITION(d) XmuInternAtom(d, _XA_CHARACTER_POSITION)
0067 #define XA_CLASS(d)     XmuInternAtom(d, _XA_CLASS)
0068 #define XA_CLIENT_WINDOW(d) XmuInternAtom(d, _XA_CLIENT_WINDOW)
0069 #define XA_CLIPBOARD(d)     XmuInternAtom(d, _XA_CLIPBOARD)
0070 #define XA_COMPOUND_TEXT(d) XmuInternAtom(d, _XA_COMPOUND_TEXT)
0071 #define XA_DECNET_ADDRESS(d)    XmuInternAtom(d, _XA_DECNET_ADDRESS)
0072 #define XA_DELETE(d)        XmuInternAtom(d, _XA_DELETE)
0073 #define XA_FILENAME(d)      XmuInternAtom(d, _XA_FILENAME)
0074 #define XA_HOSTNAME(d)      XmuInternAtom(d, _XA_HOSTNAME)
0075 #define XA_IP_ADDRESS(d)    XmuInternAtom(d, _XA_IP_ADDRESS)
0076 #define XA_LENGTH(d)        XmuInternAtom(d, _XA_LENGTH)
0077 #define XA_LIST_LENGTH(d)   XmuInternAtom(d, _XA_LIST_LENGTH)
0078 #define XA_NAME(d)      XmuInternAtom(d, _XA_NAME)
0079 #define XA_NET_ADDRESS(d)   XmuInternAtom(d, _XA_NET_ADDRESS)
0080 #define XA_NULL(d)      XmuInternAtom(d, _XA_NULL)
0081 #define XA_OWNER_OS(d)      XmuInternAtom(d, _XA_OWNER_OS)
0082 #define XA_SPAN(d)      XmuInternAtom(d, _XA_SPAN)
0083 #define XA_TARGETS(d)       XmuInternAtom(d, _XA_TARGETS)
0084 #define XA_TEXT(d)      XmuInternAtom(d, _XA_TEXT)
0085 #define XA_TIMESTAMP(d)     XmuInternAtom(d, _XA_TIMESTAMP)
0086 #define XA_USER(d)      XmuInternAtom(d, _XA_USER)
0087 #define XA_UTF8_STRING(d)   XmuInternAtom(d, _XA_UTF8_STRING)
0088 
0089 _XFUNCPROTOBEGIN
0090 
0091 char *XmuGetAtomName
0092 (
0093  Display    *dpy,
0094  Atom       atom
0095  );
0096 
0097 Atom XmuInternAtom
0098 (
0099  Display    *dpy,
0100  AtomPtr    atom_ptr
0101  );
0102 
0103 void XmuInternStrings
0104 (
0105  Display    *dpy,
0106  String     *names,
0107  Cardinal       count,
0108  Atom       *atoms_return
0109 );
0110 
0111 AtomPtr XmuMakeAtom
0112 (
0113  _Xconst char   *name
0114  );
0115 
0116 char *XmuNameOfAtom
0117 (
0118  AtomPtr    atom_ptr
0119  );
0120 
0121 _XFUNCPROTOEND
0122 
0123 #endif /* _XMU_ATOMS_H_ */