imLcSIc.c revision 61b2299d
1/* $Xorg: imLcSIc.c,v 1.3 2000/08/17 19:45:14 cpqbld Exp $ */
2/******************************************************************
3
4          Copyright 1990, 1991, 1992, 1993, 1994 by FUJITSU LIMITED
5
6Permission to use, copy, modify, distribute, and sell this software
7and its documentation for any purpose is hereby granted without fee,
8provided that the above copyright notice appear in all copies and
9that both that copyright notice and this permission notice appear
10in supporting documentation, and that the name of FUJITSU LIMITED
11not be used in advertising or publicity pertaining to distribution
12of the software without specific, written prior permission.
13FUJITSU LIMITED makes no representations about the suitability of
14this software for any purpose.
15It is provided "as is" without express or implied warranty.
16
17FUJITSU LIMITED DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
18INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
19EVENT SHALL FUJITSU LIMITED BE LIABLE FOR ANY SPECIAL, INDIRECT OR
20CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
21USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
22OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
23PERFORMANCE OF THIS SOFTWARE.
24
25  Author: Takashi Fujiwara     FUJITSU LIMITED
26                               fujiwara@a80.tech.yk.fujitsu.co.jp
27
28******************************************************************/
29
30#ifdef HAVE_CONFIG_H
31#include <config.h>
32#endif
33#include <stdio.h>
34#include <X11/Xlib.h>
35#include <X11/Xmd.h>
36#include <X11/Xutil.h>
37#include "Xlibint.h"
38#include "Xlcint.h"
39#include "Ximint.h"
40
41Public char *
42_XimLocalSetICValues(XIC xic, XIMArg *values)
43{
44    XimDefICValues	 ic_values;
45    Xic			 ic = (Xic)xic;
46    char		*name;
47
48    _XimGetCurrentICValues(ic, &ic_values);
49    name = _XimSetICValueData(ic, (XPointer)&ic_values,
50				ic->private.local.ic_resources,
51				ic->private.local.ic_num_resources,
52				values, XIM_SETICVALUES, True);
53    _XimSetCurrentICValues(ic, &ic_values);
54    return(name);
55}
56