1 /*
2 * Motif
3 *
4 * Copyright (c) 1987-2012, The Open Group. All rights reserved.
5 *
6 * These libraries and programs are free software; you can
7 * redistribute them and/or modify them under the terms of the GNU
8 * Lesser General Public License as published by the Free Software
9 * Foundation; either version 2 of the License, or (at your option)
10 * any later version.
11 *
12 * These libraries and programs are distributed in the hope that
13 * they will be useful, but WITHOUT ANY WARRANTY; without even the
14 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU Lesser General Public License for more
16 * details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with these librararies and programs; if not, write
20 * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21 * Floor, Boston, MA 02110-1301 USA
22 */
23 #ifdef REV_INFO
24 #ifndef lint
25 static char rcsid[] = "$TOG: AtomMgr.c /main/13 1997/09/08 14:06:18 cshi $"
26 #endif
27 #endif
28
29 #ifdef HAVE_CONFIG_H
30 #include <config.h>
31 #endif
32
33 #include <Xm/AtomMgr.h>
34 #include <Xm/XmP.h>
35 #include <X11/Xresource.h>
36
37 /*****************************************************************************
38 *
39 * XmInternAtom()
40 *
41 ****************************************************************************/
42
43 Atom
44 XmInternAtom(
45 Display *display,
46 String name,
47 #if NeedWidePrototypes
48 int only_if_exists )
49 #else
50 Boolean only_if_exists )
51 #endif /* NeedWidePrototypes */
52 {
53 /* While not yet obsolete, this routine is not in favor. Use */
54 /* XInternAtom directly. */
55 return XInternAtom(display, name, only_if_exists);
56 }
57
58 /*****************************************************************************
59 *
60 * XmGetAtomName()
61 *
62 ****************************************************************************/
63
64 String
XmGetAtomName(Display * display,Atom atom)65 XmGetAtomName(
66 Display *display,
67 Atom atom )
68 {
69 /* While not yet obsolete, this routine is not in favor. Use */
70 /* XGetAtomName directly. */
71 return XGetAtomName(display, atom);
72 }
73