Back to index

im-sdk  12.3.91
SunIMProt.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 SUNIMPROT_H
00013 #define SUNIMPROT_H
00014 
00015 #ifndef Private
00016 #define Private static
00017 #define Public       
00018 #endif /* Private */
00019 
00020 /*
00021  * This is for public_status in iml_session_t/status in IC. Used by
00022  * IML_SET_STATUS/IML_GET_STATUS
00023  */
00024 typedef int iml_status_t;
00025 
00026 #define IMLSTATUS_Henkan_Mode                 0x00000001
00027 #define IMLSTATUS_Mode_switch                 0x00000002
00028 #define IMLSTATUS_Backfront                   0x00000004       /* if 1, backend */
00029 #define IMLSTATUS_Backfront_Recommendation    0x00000008       /* if 1, backend */
00030 
00031 /* ------------------------------------------------------------ */
00032 
00033 /*
00034  * IML to IMM opcode
00035  */
00036 typedef unsigned int IMM_Opcode;
00037 
00038 #define IMM_NOP                  0 /* Nop */
00039 
00040 #define IMM_RESET                1 /* Reset the IC */
00041 
00042 #define IMM_COMMIT               2 /* Returning a committed
00043                                     * string */
00044 
00045 #define IMM_SET_STATUS           3 /* iml status i.e.ConvOn/off
00046                                     * kana etc.. */
00047 
00048 #define IMM_PREEDIT_START        4 /* Call the preedit_start
00049                                     * callback */
00050 
00051 #define IMM_PREEDIT_DRAW         5 /* Call the preedit_draw
00052                                     * callback */
00053 
00054 #define IMM_PREEDIT_CARET        6 /* Call the preedit_caret
00055                                     * callback */
00056 
00057 #define IMM_PREEDIT_DONE         7 /* Call the preedit_done call
00058                                     * back */
00059 
00060 #define IMM_LOOKUP_START         8 /* Call the lookup_start
00061                                     * callback */
00062 
00063 #define IMM_LOOKUP_DRAW          9 /* Call the lookup_draw
00064                                     * callback */
00065 
00066 #define IMM_LOOKUP_PROCESS      10 /* Call the lookup_process
00067                                     * callback */
00068 
00069 #define IMM_LOOKUP_DONE         11 /* Call the lookup_done
00070                                     * callback */
00071 
00072 #define IMM_KEY_INFO            12 /* Return the key that
00073                                     * corresponds to */
00074 /* specified function */
00075 /* operand : keymaps_t */
00076 #define IMM_PUT_QUEUE           13 /* Put the string back to X
00077                                     * queue */
00078 
00079 #define IMM_STATUS_START        14 /* Call the status_start
00080                                     * callback */
00081 
00082 #define IMM_STATUS_DRAW         15 /* Call the status_draw
00083                                     * callback */
00084 
00085 #define IMM_STATUS_DONE         16 /* Call the status_done
00086                                     * callback */
00087 
00088 #define IMM_KEYPRESS            17 /* Return X event to the
00089                                     * client */
00090 
00091 #define IMM_RESET_RETURN        18 /* same as commit */
00092 
00093 #define IMM_AUX_START_2            20     /* Call the aux_start
00094                                     * callback */
00095 
00096 #define IMM_AUX_DRAW_2             21     /* Call the aux_draw callback */
00097 
00098 #define IMM_AUX_DONE_2             22     /* Call the aux_done callback */
00099 
00100 #define IMM_OBJECTDOWNLOADING      23     /* Call the aux_done callback */
00101 
00102 #define MAX_IMM_OPCODE          24 /* maximam opcode value */
00103 
00104 #define IMM_CB_RESULT_REQUIRED  0x10000000
00105 
00106 /*
00107  * iml_inst structure
00108  */
00109 typedef struct _iml_inst {
00110     struct _iml_inst *next;
00111     int size_of_operand;
00112     IMM_Opcode opcode;
00113     char *operand;
00114 }   iml_inst;
00115 
00116 #endif /* SUNIMPROT_H */