Commit eb98255d authored by Hodong Kim's avatar Hodong Kim
Browse files

IMdkit: Code cleanup (#106)

parent 431abd5c
......@@ -75,10 +75,6 @@ Files: modules/services/xim/IMdkit/i18nAttr.c
modules/services/xim/IMdkit/i18nMethod.c
modules/services/xim/IMdkit/i18nMethod.h
modules/services/xim/IMdkit/i18nPtHdr.c
modules/services/xim/IMdkit/IMConn.c
modules/services/xim/IMdkit/IMdkit.h
modules/services/xim/IMdkit/IMMethod.c
modules/services/xim/IMdkit/Xi18nX.h
modules/services/xim/IMdkit/XimFunc.h
Copyright: 1993, 1994 Hewlett-Packard Company
1994, 1995 Sun Microsystems, Inc.
......
/* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 2; tab-width: 2 -*- */
/******************************************************************
Copyright 1994, 1995 by Sun Microsystems, Inc.
Copyright 1993, 1994 by Hewlett-Packard Company
Permission to use, copy, modify, distribute, and sell this software
and its documentation for any purpose is hereby granted without fee,
provided that the above copyright notice appear in all copies and
that both that copyright notice and this permission notice appear
in supporting documentation, and that the name of Sun Microsystems, Inc.
and Hewlett-Packard not be used in advertising or publicity pertaining to
distribution of the software without specific, written prior permission.
Sun Microsystems, Inc. and Hewlett-Packard make no representations about
the suitability of this software for any purpose. It is provided "as is"
without express or implied warranty.
SUN MICROSYSTEMS INC. AND HEWLETT-PACKARD COMPANY DISCLAIMS ALL
WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
SUN MICROSYSTEMS, INC. AND HEWLETT-PACKARD COMPANY BE LIABLE FOR ANY
SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER
RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF
CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
Author: Hidetoshi Tajima(tajima@Eng.Sun.COM) Sun Microsystems, Inc.
This version tidied and debugged by Steve Underwood May 1999
******************************************************************/
#include <X11/Xlib.h>
#include <stdlib.h>
#include <string.h>
#include "IMdkit.h"
#include <stdarg.h>
#include <glib.h>
#include "nimf-xim.h"
XIMS IMOpenIM (NimfXim *xim)
{
XIMS ims;
Status ret;
extern IMMethodsRec Xi18n_im_methods;
ims = (XIMS) g_malloc0 (sizeof (XIMProtocolRec));
ims->methods = &Xi18n_im_methods;
ims->protocol = (*ims->methods->setup) (xim->display);
if (ims->protocol == (void *) NULL)
{
XFree (ims);
return (XIMS) NULL;
}
ret = (ims->methods->openIM) (ims, xim->im_window);
if (ret == False)
{
XFree (ims);
return (XIMS) NULL;
}
return (XIMS) ims;
}
Status IMCloseIM (XIMS ims)
{
(ims->methods->closeIM) (ims);
XFree (ims);
return True;
}
/******************************************************************
Copyright 1994, 1995 by Sun Microsystems, Inc.
Copyright 1993, 1994 by Hewlett-Packard Company
Permission to use, copy, modify, distribute, and sell this software
and its documentation for any purpose is hereby granted without fee,
provided that the above copyright notice appear in all copies and
that both that copyright notice and this permission notice appear
in supporting documentation, and that the name of Sun Microsystems, Inc.
and Hewlett-Packard not be used in advertising or publicity pertaining to
distribution of the software without specific, written prior permission.
Sun Microsystems, Inc. and Hewlett-Packard make no representations about
the suitability of this software for any purpose. It is provided "as is"
without express or implied warranty.
SUN MICROSYSTEMS INC. AND HEWLETT-PACKARD COMPANY DISCLAIMS ALL
WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
SUN MICROSYSTEMS, INC. AND HEWLETT-PACKARD COMPANY BE LIABLE FOR ANY
SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER
RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF
CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
Author: Hidetoshi Tajima(tajima@Eng.Sun.COM) Sun Microsystems, Inc.
This version tidied and debugged by Steve Underwood May 1999
******************************************************************/
#include <X11/Xlib.h>
#include "IMdkit.h"
/* Public Function */
void IMForwardEvent (XIMS ims, XPointer call_data)
{
(ims->methods->forwardEvent) (ims, call_data);
}
void IMCommitString (XIMS ims, XPointer call_data)
{
(ims->methods->commitString) (ims, call_data);
}
int IMSyncXlib(XIMS ims, XPointer call_data)
{
ims->sync = True;
return (ims->methods->syncXlib) (ims, call_data);
}
/* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 2; tab-width: 2 -*- */
/******************************************************************
Copyright 1994, 1995 by Sun Microsystems, Inc.
Copyright 1993, 1994 by Hewlett-Packard Company
Permission to use, copy, modify, distribute, and sell this software
and its documentation for any purpose is hereby granted without fee,
provided that the above copyright notice appear in all copies and
that both that copyright notice and this permission notice appear
in supporting documentation, and that the name of Sun Microsystems, Inc.
and Hewlett-Packard not be used in advertising or publicity pertaining to
distribution of the software without specific, written prior permission.
Sun Microsystems, Inc. and Hewlett-Packard make no representations about
the suitability of this software for any purpose. It is provided "as is"
without express or implied warranty.
SUN MICROSYSTEMS INC. AND HEWLETT-PACKARD COMPANY DISCLAIMS ALL
WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
SUN MICROSYSTEMS, INC. AND HEWLETT-PACKARD COMPANY BE LIABLE FOR ANY
SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER
RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF
CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
Author: Hidetoshi Tajima(tajima@Eng.Sun.COM) Sun Microsystems, Inc.
This version tidied and debugged by Steve Underwood May 1999
******************************************************************/
#ifndef _IMdkit_h
#define _IMdkit_h
#include <X11/Xmd.h>
typedef struct _NimfXim NimfXim;
#ifdef __cplusplus
extern "C" {
#endif
/* IM Attributes Name */
#define IMProtocolDepend "protocolDepend"
/* Masks for IM Attributes Name */
#define I18N_PROTO_DEPEND 0x0400 /* IMProtoDepend */
typedef struct
{
CARD32 keysym;
CARD32 modifier;
CARD32 modifier_mask;
} XIMTriggerKey;
typedef char *XIMEncoding;
typedef struct
{
unsigned short count_encodings;
XIMEncoding *supported_encodings;
} XIMEncodings;
typedef struct _XIMS *XIMS;
typedef struct
{
void* (*setup) (Display *);
Status (*openIM) (XIMS, Window);
Status (*closeIM) (XIMS);
Status (*forwardEvent) (XIMS, XPointer);
Status (*commitString) (XIMS, XPointer);
int (*syncXlib) (XIMS, XPointer);
} IMMethodsRec, *IMMethods;
typedef struct _XIMS
{
IMMethods methods;
Bool sync;
void *protocol;
} XIMProtocolRec;
/*
* X function declarations.
*/
extern XIMS IMOpenIM (NimfXim *);
extern Status IMCloseIM (XIMS);
void IMForwardEvent (XIMS, XPointer);
void IMCommitString (XIMS, XPointer);
int IMSyncXlib (XIMS, XPointer);
#ifdef __cplusplus
}
#endif
#endif /* IMdkit_h */
......@@ -50,7 +50,6 @@ IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include <stddef.h>
#include <stdlib.h>
#include "IMdkit.h"
/* XI18N Valid Attribute Name Definition */
#define ExtForwardKeyEvent "extForwardKeyEvent"
......@@ -68,6 +67,8 @@ IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#define LOCALES "LOCALES"
#define TRANSPORT "TRANSPORT"
typedef struct _NimfXim NimfXim;
typedef struct _XIMPending
{
unsigned char *p;
......@@ -160,8 +161,6 @@ typedef struct _Xi18nClient
struct _Xi18nClient *next;
} Xi18nClient;
typedef struct _Xi18nCore *Xi18n;
/*
* Callback Struct for XIM Protocol
*/
......@@ -446,13 +445,11 @@ typedef union _IMProtocol
long pad[32];
} IMProtocol;
typedef int (*IMProtoHandler) (XIMS, IMProtocol*, void*);
typedef int (*IMProtoHandler) (NimfXim *, IMProtocol*, void*);
/* Xi18nAddressRec structure */
typedef struct _Xi18nAddressRec
{
Display *dpy;
CARD8 im_byteOrder; /* byte order 'B' or 'l' */
/* XIM_SERVERS target Atoms */
Atom selection;
Atom Localename;
......@@ -468,31 +465,10 @@ typedef struct _Xi18nAddressRec
/* XIMExtension List */
int ext_num;
XIMExt extension[COMMON_EXTENSIONS_NUM];
/* transport specific connection address */
void *connect_addr;
/* actual data is defined:
XSpecRec in Xi18nX.h for X-based connection.
TransSpecRec in Xi18nTr.h for Socket-based connection.
*/
/* clients table */
Xi18nClient *clients;
Xi18nClient *free_clients;
} Xi18nAddressRec;
typedef struct _Xi18nMethodsRec
{
Bool (*begin) (XIMS);
Bool (*end) (XIMS);
Bool (*send) (XIMS, CARD16, unsigned char*, long);
Bool (*wait) (XIMS, CARD16, CARD8, CARD8);
Bool (*disconnect) (XIMS, CARD16);
} Xi18nMethodsRec;
typedef struct _Xi18nCore
{
Xi18nAddressRec address;
Xi18nMethodsRec methods;
} Xi18nCore;
#endif
/******************************************************************
Copyright 1994, 1995 by Sun Microsystems, Inc.
Copyright 1993, 1994 by Hewlett-Packard Company
Permission to use, copy, modify, distribute, and sell this software
and its documentation for any purpose is hereby granted without fee,
provided that the above copyright notice appear in all copies and
that both that copyright notice and this permission notice appear
in supporting documentation, and that the name of Sun Microsystems, Inc.
and Hewlett-Packard not be used in advertising or publicity pertaining to
distribution of the software without specific, written prior permission.
Sun Microsystems, Inc. and Hewlett-Packard make no representations about
the suitability of this software for any purpose. It is provided "as is"
without express or implied warranty.
SUN MICROSYSTEMS INC. AND HEWLETT-PACKARD COMPANY DISCLAIMS ALL
WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
SUN MICROSYSTEMS, INC. AND HEWLETT-PACKARD COMPANY BE LIABLE FOR ANY
SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER
RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF
CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
Author: Hidetoshi Tajima(tajima@Eng.Sun.COM) Sun Microsystems, Inc.
This version tidied and debugged by Steve Underwood May 1999
******************************************************************/
#ifndef _Xi18nTrX_h
#define _Xi18nTrX_h
#define _XIM_PROTOCOL "_XIM_PROTOCOL"
#define _XIM_XCONNECT "_XIM_XCONNECT"
#define XCM_DATA_LIMIT 20
typedef struct _XClient
{
Window client_win; /* client window */
Window accept_win; /* accept window */
} XClient;
typedef struct
{
Atom xim_request;
Atom connect_request;
} XSpecRec;
#endif
......@@ -33,19 +33,19 @@ IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#define _XimFunc_h
/* i18nAttr.c */
void _Xi18nInitAttrList (Xi18n i18n_core);
void _Xi18nInitExtension(Xi18n i18n_core);
void _Xi18nInitAttrList (NimfXim *xim);
void _Xi18nInitExtension(NimfXim *xim);
/* i18nClbk.c */
int _Xi18nGeometryCallback (XIMS ims, IMProtocol *call_data);
int _Xi18nPreeditStartCallback (XIMS ims, IMProtocol *call_data);
int _Xi18nPreeditDrawCallback (XIMS ims, IMProtocol *call_data);
int _Xi18nPreeditCaretCallback (XIMS ims, IMProtocol *call_data);
int _Xi18nPreeditDoneCallback (XIMS ims, IMProtocol *call_data);
int _Xi18nStatusStartCallback (XIMS ims, IMProtocol *call_data);
int _Xi18nStatusDrawCallback (XIMS ims, IMProtocol *call_data);
int _Xi18nStatusDoneCallback (XIMS ims, IMProtocol *call_data);
int _Xi18nStringConversionCallback (XIMS ims, IMProtocol *call_data);
int _Xi18nGeometryCallback (NimfXim *xim, IMProtocol *call_data);
int _Xi18nPreeditStartCallback (NimfXim *xim, IMProtocol *call_data);
int _Xi18nPreeditDrawCallback (NimfXim *xim, IMProtocol *call_data);
int _Xi18nPreeditCaretCallback (NimfXim *xim, IMProtocol *call_data);
int _Xi18nPreeditDoneCallback (NimfXim *xim, IMProtocol *call_data);
int _Xi18nStatusStartCallback (NimfXim *xim, IMProtocol *call_data);
int _Xi18nStatusDrawCallback (NimfXim *xim, IMProtocol *call_data);
int _Xi18nStatusDoneCallback (NimfXim *xim, IMProtocol *call_data);
int _Xi18nStringConversionCallback (NimfXim *xim, IMProtocol *call_data);
/* i18nIc.c */
void _Xi18nChangeIC (NimfXim *xim, IMProtocol *call_data, unsigned char *p,
......@@ -53,13 +53,13 @@ void _Xi18nChangeIC (NimfXim *xim, IMProtocol *call_data, unsigned char *p,
void _Xi18nGetIC (NimfXim *xim, IMProtocol *call_data, unsigned char *p);
/* i18nUtil.c */
int _Xi18nNeedSwap (Xi18n i18n_core, CARD16 connect_id);
Xi18nClient *_Xi18nNewClient(Xi18n i18n_core);
Xi18nClient *_Xi18nFindClient (Xi18n i18n_core, CARD16 connect_id);
void _Xi18nDeleteClient (Xi18n i18n_core, CARD16 connect_id);
void _Xi18nSendMessage (XIMS ims, CARD16 connect_id, CARD8 major_opcode,
int _Xi18nNeedSwap (NimfXim *xim, CARD16 connect_id);
Xi18nClient *_Xi18nNewClient(NimfXim *xim);
Xi18nClient *_Xi18nFindClient (NimfXim *xim, CARD16 connect_id);
void _Xi18nDeleteClient (NimfXim *xim, CARD16 connect_id);
void _Xi18nSendMessage (NimfXim *xim, CARD16 connect_id, CARD8 major_opcode,
CARD8 minor_opcode, unsigned char *data, long length);
void _Xi18nSetEventMask (XIMS ims, CARD16 connect_id, CARD16 im_id,
void _Xi18nSetEventMask (NimfXim *xim, CARD16 connect_id, CARD16 im_id,
CARD16 ic_id, CARD32 forward_mask, CARD32 sync_mask);
#endif
......@@ -135,12 +135,6 @@ PERFORMANCE OF THIS SOFTWARE.
#define XIM_LocaleNotSupported 16
#define XIM_BadSomething 999
/*
* byte order
*/
#define BIGENDIAN (CARD8) 0x42 /* MSB first */
#define LITTLEENDIAN (CARD8) 0x6c /* LSB first */
/*
* values for the type of XIMATTR & XICATTR
*/
......@@ -155,7 +149,6 @@ PERFORMANCE OF THIS SOFTWARE.
#define XimType_XPoint 12
#define XimType_XFontSet 13
#define XimType_XIMOptions 14
#define XimType_XIMHotKeyTriggers 15
#define XimType_XIMHotKeyState 16
#define XimType_XIMStringConversion 17
#define XimType_XIMValuesList 18
......@@ -167,11 +160,6 @@ PERFORMANCE OF THIS SOFTWARE.
#define XIM_Encoding_NameCategory 0
#define XIM_Encoding_DetailCategory 1
/*
* value for the index of XIM_ENCODING_NEGOTIATON_REPLY
*/
#define XIM_Default_Encoding_IDX -1
/*
* value for the flag of XIM_FORWARD_EVENT, XIM_COMMIT
*/
......
/******************************************************************
Copyright 1994, 1995 by Sun Microsystems, Inc.
Copyright 1993, 1994 by Hewlett-Packard Company
Permission to use, copy, modify, distribute, and sell this software
and its documentation for any purpose is hereby granted without fee,
provided that the above copyright notice appear in all copies and
......@@ -13,7 +13,7 @@ distribution of the software without specific, written prior permission.
Sun Microsystems, Inc. and Hewlett-Packard make no representations about
the suitability of this software for any purpose. It is provided "as is"
without express or implied warranty.
SUN MICROSYSTEMS INC. AND HEWLETT-PACKARD COMPANY DISCLAIMS ALL
WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
......@@ -22,20 +22,20 @@ SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER
RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF
CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
Author: Hidetoshi Tajima(tajima@Eng.Sun.COM) Sun Microsystems, Inc.
This version tidied and debugged by Steve Underwood May 1999
******************************************************************/
#include <X11/Xlib.h>
#include <X11/Xresource.h>
#include "IMdkit.h"
#include "Xi18n.h"
#include "XimFunc.h"
#include "nimf-xim.h"
typedef struct
typedef struct
{
char *name;
CARD16 type;
......@@ -51,7 +51,6 @@ typedef struct
IMListOfAttr Default_IMattr[] =
{
{XNQueryInputStyle, XimType_XIMStyles},
/* {XNQueryIMValuesList, XimType_XIMValuesList}, */
{(char *) NULL, (CARD16) 0}
};
......@@ -97,7 +96,7 @@ static void CountAttrList(IMListOfAttr *attr, int *total_count)
}
}
static XIMAttr *CreateAttrList (Xi18n i18n_core,
static XIMAttr *CreateAttrList (NimfXim *xim,
IMListOfAttr *attr,
int *total_count)
{
......@@ -120,11 +119,11 @@ static XIMAttr *CreateAttrList (Xi18n i18n_core,
p->type = (CARD16) attr->type;
p->attribute_id = XrmStringToQuark (p->name);
if (strcmp (p->name, XNPreeditAttributes) == 0)
i18n_core->address.preeditAttr_id = p->attribute_id;
xim->address.preeditAttr_id = p->attribute_id;
else if (strcmp (p->name, XNStatusAttributes) == 0)
i18n_core->address.statusAttr_id = p->attribute_id;
xim->address.statusAttr_id = p->attribute_id;
else if (strcmp (p->name, XNSeparatorofNestedList) == 0)
i18n_core->address.separatorAttr_id = p->attribute_id;
xim->address.separatorAttr_id = p->attribute_id;
/*endif*/
}
/*endfor*/
......@@ -133,35 +132,35 @@ static XIMAttr *CreateAttrList (Xi18n i18n_core,
return args;
}
void _Xi18nInitAttrList (Xi18n i18n_core)
void _Xi18nInitAttrList (NimfXim *xim)
{
XIMAttr *args;
int total_count;
/* init IMAttr list */
if (i18n_core->address.xim_attr)
XFree ((char *)i18n_core->address.xim_attr);
if (xim->address.xim_attr)
XFree ((char *) xim->address.xim_attr);
/*endif*/
args = CreateAttrList (i18n_core, Default_IMattr, &total_count);
args = CreateAttrList (xim, Default_IMattr, &total_count);
i18n_core->address.im_attr_num = total_count;
i18n_core->address.xim_attr = (XIMAttr *)args;
xim->address.im_attr_num = total_count;
xim->address.xim_attr = (XIMAttr *)args;
/* init ICAttr list */
if (i18n_core->address.xic_attr)
XFree ((char *) i18n_core->address.xic_attr);
if (xim->address.xic_attr)
XFree ((char *) xim->address.xic_attr);
/*endif*/
args = CreateAttrList (i18n_core, Default_ICattr, &total_count);
args = CreateAttrList (xim, Default_ICattr, &total_count);
i18n_core->address.ic_attr_num = total_count;
i18n_core->address.xic_attr = (XICAttr *) args;
xim->address.ic_attr_num = total_count;
xim->address.xic_attr = (XICAttr *) args;
}
void _Xi18nInitExtension(Xi18n i18n_core)
void _Xi18nInitExtension(NimfXim *xim)
{
register int i;
IMExtList *extensions = (IMExtList *) Default_Extension;
XIMExt *ext_list = (XIMExt *) i18n_core->address.extension;
XIMExt *ext_list = (XIMExt *) xim->address.extension;
for (i = 0; extensions->name; i++, ext_list++, extensions++)
{
......@@ -170,6 +169,6 @@ void _Xi18nInitExtension(Xi18n i18n_core)
ext_list->name = extensions->name;
ext_list->length = strlen(ext_list->name);
}
/*endfor*/
i18n_core->address.ext_num = i;
xim->address.ext_num = i;
}
/******************************************************************
Copyright 1994, 1995 by Sun Microsystems, Inc.
Copyright 1993, 1994 by Hewlett-Packard Company
Permission to use, copy, modify, distribute, and sell this software
and its documentation for any purpose is hereby granted without fee,
provided that the above copyright notice appear in all copies and
......@@ -13,7 +13,7 @@ distribution of the software without specific, written prior permission.
Sun Microsystems, Inc. and Hewlett-Packard make no representations about
the suitability of this software for any purpose. It is provided "as is"
without express or implied warranty.
SUN MICROSYSTEMS INC. AND HEWLETT-PACKARD COMPANY DISCLAIMS ALL
WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
......@@ -22,22 +22,22 @@ SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER
RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF
CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
Author: Hidetoshi Tajima(tajima@Eng.Sun.COM) Sun Microsystems, Inc.
This version tidied and debugged by Steve Underwood May 1999
******************************************************************/
#include <X11/Xlib.h>
#include "IMdkit.h"
#include "Xi18n.h"
#include "FrameMgr.h"
#include "XimFunc.h"
#include "nimf-xim.h"
#include "i18nX.h"
int _Xi18nGeometryCallback (XIMS ims, IMProtocol *call_data)
int _Xi18nGeometryCallback (NimfXim *xim, IMProtocol *call_data)
{