comparison include/CachedAtom.h @ 0:92745d501b9a

initial import from kinput2-v3.1
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Mon, 08 Mar 2010 04:44:30 +0900
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:92745d501b9a
1 /* $Id: CachedAtom.h,v 1.5 1999/01/07 03:06:20 ishisone Exp $ */
2 /*
3 * Copyright (c) 1991 Software Research Associates, Inc.
4 *
5 * Permission to use, copy, modify, and distribute this software and its
6 * documentation for any purpose and without fee is hereby granted, provided
7 * that the above copyright notice appear in all copies and that both that
8 * copyright notice and this permission notice appear in supporting
9 * documentation, and that the name of Software Research Associates not be
10 * used in advertising or publicity pertaining to distribution of the
11 * software without specific, written prior permission. Software Research
12 * Associates makes no representations about the suitability of this software
13 * for any purpose. It is provided "as is" without express or implied
14 * warranty.
15 *
16 * Author: Makoto Ishisone, Software Research Associates, Inc., Japan
17 */
18
19 #ifndef _CachedAtom_h
20 #define _CachedAtom_h
21
22 /*
23 * Atom CachedInternAtom(Display *dpy, String name, Bool only_if_exists)
24 * String CachedGetAtomName(Display *dpy, Atom atom)
25 * $B$=$l$>$l(B XInternAtom(), XGetAtomName() $B$H$[$\F1$8!#(B
26 * $B%-%c%C%7%s%0$r9T$J$&$H$3$m$,0c$&!#(B(R5 $B$N(B XInternAtom() $B$O(B
27 * $B%-%c%C%7%e$9$k$,(B XGetAtomName() $B$O$7$J$$(B)
28 * $B$^$?!"(BCachedGetAtomName() $B$,JV$9J8;zNs$O6&M-$5$l$F$$$k$N$G(B
29 * free() $B$7$F$O$J$i$J$$!#(B
30 */
31
32 extern Atom CachedInternAtom(
33 #if NeedFunctionPrototypes
34 Display * /* dpy */,
35 String /* name */,
36 Bool /* only_if_exists */
37 #endif
38 );
39
40 extern String CachedGetAtomName(
41 #if NeedFunctionPrototypes
42 Display * /* dpy */,
43 Atom /* atom */
44 #endif
45 );
46
47 #endif