xutf8.h revision d522f475
1/* $XFree86: xc/programs/xterm/xutf8.h,v 1.1 2001/06/18 19:09:28 dickey Exp $ */ 2/* 3Copyright (c) 2001 by Juliusz Chroboczek 4 5Permission is hereby granted, free of charge, to any person obtaining a copy 6of this software and associated documentation files (the "Software"), to deal 7in the Software without restriction, including without limitation the rights 8to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9copies of the Software, and to permit persons to whom the Software is 10furnished to do so, subject to the following conditions: 11 12The above copyright notice and this permission notice shall be included in 13all copies or substantial portions of the Software. 14 15THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21THE SOFTWARE. 22*/ 23 24#ifndef _XLIB_H_ 25#error Please include <X11/Xlib.h> before "xutf8.h" 26#endif 27 28#ifndef X_HAVE_UTF8_STRING 29 30#undef XA_UTF8_STRING 31Atom _xa_utf8_string(Display*); 32#define XA_UTF8_STRING(dpy) _xa_utf8_string(dpy) 33 34#undef XUTF8StringStyle 35#define XUTF8StringStyle 4 36 37int Xutf8TextPropertyToTextList( 38 Display *, 39 const XTextProperty *, 40 char ***, 41 int * 42); 43int 44Xutf8TextListToTextProperty( 45 Display *, 46 char **, 47 int, 48 XICCEncodingStyle, 49 XTextProperty * 50); 51int Xutf8LookupString( 52 XIC, 53 XKeyPressedEvent *, 54 char *, 55 int, 56 KeySym *, 57 Status * 58); 59#else 60void xutf8_dummy(void); 61#endif 62