1/* 2 * $XTermId: xutf8.h,v 1.4 2010/10/10 14:10:12 Jeremy.Huddleston Exp $ 3 */ 4/* 5Copyright (c) 2001 by Juliusz Chroboczek 6 7Permission is hereby granted, free of charge, to any person obtaining a copy 8of this software and associated documentation files (the "Software"), to deal 9in the Software without restriction, including without limitation the rights 10to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11copies of the Software, and to permit persons to whom the Software is 12furnished to do so, subject to the following conditions: 13 14The above copyright notice and this permission notice shall be included in 15all copies or substantial portions of the Software. 16 17THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23THE SOFTWARE. 24*/ 25 26#include <X11/Xlib.h> 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