Back to index

im-sdk  12.3.91
SunIMCore.h
Go to the documentation of this file.
00001 /*
00002  * Copyright 1998 by Sun Microsystems, Inc., 901 San Antonio Road,
00003  * Palo Alto, California, 94303, U.S.A. All rights reserved.
00004  * 
00005  * This software is the confidential and proprietary information of Sun
00006  * Microsystems, Inc. ("Confidential Information").  You shall not
00007  * disclose such Confidential Information and shall use it only in
00008  * accordance with the terms of the license agreement you entered
00009  * into with Sun.
00010  */
00011 
00012 #ifndef SUNIMCORE_H
00013 #define SUNIMCORE_H
00014 
00015 typedef struct _iml_inst_mem_block_list   iml_inst_mem_block_list_t;
00016 typedef struct _iml_inst_mem_elem_list    iml_inst_mem_elem_list_t;
00017 
00018 typedef struct _iml_session {
00019   /* public */
00020     iml_if_t *If;                  /* parent IF */
00021     iml_desktop_t *desktop;        /* parent desktop */
00022     void *specific_data;           /* specific data per session */
00023     int current_active_region;            /* check active region */
00024     int public_status;                    /* check conversion on/off */
00025 
00026   /* private */
00027     IMPreeditDrawCallbackStruct PreEditTextInfo; /* preedit cache */
00028     int PreEditTextBufferSize;
00029     int PreEditAttrBufferSize;
00030 
00031     status_cache_t status_cache;          /* cache for status string */
00032 
00033     iml_inst_mem_block_list_t *mem_block_short_term_small;
00034     iml_inst_mem_elem_list_t *mem_elem_short_term;
00035     iml_inst_mem_elem_list_t *mem_elem_long_term;
00036 
00037     void *SessionContext;                 /* reference for iml_execute() */
00038 
00039     struct _iml_session *next;                   /* link */
00040 }   iml_session_t;
00041 
00042 #endif