~ubuntu-branches/ubuntu/intrepid/xterm/intrepid-security

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